From 516c1aabcfa5dfd3478369d4a1f39be39770d7c8 Mon Sep 17 00:00:00 2001 From: nshCore Date: Wed, 19 Feb 2020 14:42:02 +0000 Subject: [PATCH 1/8] fix dep location (#119) --- packages/sdk-js/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sdk-js/package.json b/packages/sdk-js/package.json index 9ecfb41..e1f8158 100644 --- a/packages/sdk-js/package.json +++ b/packages/sdk-js/package.json @@ -23,11 +23,11 @@ }, "homepage": "https://github.com/catalyst-network/protocol#readme", "devDependencies": { - "google-protobuf": "^3.11.2", - "protobufjs": "^6.8.8", "ts-protoc-gen": "^0.12.0" }, "dependencies": { + "google-protobuf": "^3.11.2", + "protobufjs": "^6.8.8", "@types/google-protobuf": "^3.7.2" } } From b736365a7764b47701e32f5469b618ffe0d37a95 Mon Sep 17 00:00:00 2001 From: nshcore Date: Wed, 19 Feb 2020 14:43:02 +0000 Subject: [PATCH 2/8] Bump version of sdk-js npm package --- packages/sdk-js/package.json | 2 +- packages/sdk-js/publish.sh | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100755 packages/sdk-js/publish.sh diff --git a/packages/sdk-js/package.json b/packages/sdk-js/package.json index e1f8158..8fae4c0 100644 --- a/packages/sdk-js/package.json +++ b/packages/sdk-js/package.json @@ -4,7 +4,7 @@ "type": "git", "url": "git+https://github.com/catalyst-network/protocol.git" }, - "version": "0.0.3", + "version": "0.0.4", "description": "Catalyst Protocol SDK-JS", "main": "src/index.js", "scripts": { diff --git a/packages/sdk-js/publish.sh b/packages/sdk-js/publish.sh deleted file mode 100755 index 930087b..0000000 --- a/packages/sdk-js/publish.sh +++ /dev/null @@ -1,14 +0,0 @@ -#! /bin/sh - -# setup for npm credentials -echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - -if [ "$TAG_NEXT" == "true" ]; then - # if we want to publish a testing version - npm install --unsafe-perm --no-optional \ - && npm publish --access public --tag next -else - # production publish, uses version in package.json - npm install --unsafe-perm --no-optional \ - && npm publish --access public -fi From 2a81761ef4650011a9e43117c2a7965499afcea9 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 30 Mar 2020 11:08:39 +0100 Subject: [PATCH 3/8] Add GasUsed, Sync Data (#121) * Update latest delta hash response to use delta index instead of plain cid * changes required for Web3 integration * Update to IPPN * Develop (#120) * fix dep location (#119) * Bump version of sdk-js npm package * Update ping response * Update IPPN * Revert ping * Add GasUsed to delta * update js package version Co-authored-by: Tomasz Kajetan Stanczak Co-authored-by: nshCore Co-authored-by: stxphxn --- packages/sdk-js/package.json | 2 +- src/Deltas.proto | 1 + src/IPPN.proto | 11 +++++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/sdk-js/package.json b/packages/sdk-js/package.json index 8fae4c0..c6d6396 100644 --- a/packages/sdk-js/package.json +++ b/packages/sdk-js/package.json @@ -4,7 +4,7 @@ "type": "git", "url": "git+https://github.com/catalyst-network/protocol.git" }, - "version": "0.0.4", + "version": "0.0.5", "description": "Catalyst Protocol SDK-JS", "main": "src/index.js", "scripts": { diff --git a/src/Deltas.proto b/src/Deltas.proto index 96211b5..9387ba1 100644 --- a/src/Deltas.proto +++ b/src/Deltas.proto @@ -41,4 +41,5 @@ message Delta { repeated Transaction.CoinbaseEntry coinbase_entries = 7; // one per active worker bytes state_root = 8; // the hash of the state root int64 delta_number = 9; // the consecutive delta number + int64 gas_used = 10; // the gas used in the delta } diff --git a/src/IPPN.proto b/src/IPPN.proto index c73a636..d3e0a2d 100644 --- a/src/IPPN.proto +++ b/src/IPPN.proto @@ -32,14 +32,17 @@ message PeerNeighborsResponse { repeated Peer.PeerId peers = 1; // Random subset of a nodes peer db. } -message PingRequest { } +message PingRequest { +} -message PingResponse { } +message PingResponse { +} message LatestDeltaHashRequest { } message LatestDeltaHashResponse { - Deltas.DeltaIndex result = 1; // K given del + bool isSync = 1; + Deltas.DeltaIndex deltaIndex = 2; // K given del } message DeltaHistoryRequest { @@ -48,5 +51,5 @@ message DeltaHistoryRequest { } message DeltaHistoryResponse { - repeated Deltas.DeltaIndex result = 1; // K given del + repeated Deltas.DeltaIndex deltaIndex = 1; // K given del } \ No newline at end of file From 46c786f8902df9dfeebc9656ab8431f8a57a91a2 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 17 Apr 2020 10:27:36 +0100 Subject: [PATCH 4/8] Remove timestamp from transaction (#122) * Update latest delta hash response to use delta index instead of plain cid * changes required for Web3 integration * Update to IPPN * Develop (#120) * fix dep location (#119) * Bump version of sdk-js npm package * Update ping response * Update IPPN * Revert ping * Add GasUsed to delta * update js package version * src/Transaction.proto * bump version Co-authored-by: Tomasz Kajetan Stanczak Co-authored-by: nshCore Co-authored-by: stxphxn --- packages/sdk-js/package.json | 2 +- src/Transaction.proto | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/sdk-js/package.json b/packages/sdk-js/package.json index c6d6396..378ccc4 100644 --- a/packages/sdk-js/package.json +++ b/packages/sdk-js/package.json @@ -4,7 +4,7 @@ "type": "git", "url": "git+https://github.com/catalyst-network/protocol.git" }, - "version": "0.0.5", + "version": "0.0.6", "description": "Catalyst Protocol SDK-JS", "main": "src/index.js", "scripts": { diff --git a/src/Transaction.proto b/src/Transaction.proto index 3b44885..8d92e50 100644 --- a/src/Transaction.proto +++ b/src/Transaction.proto @@ -37,11 +37,10 @@ message PublicEntry { bytes sender_address = 2;// Address of sender. bytes amount = 3; // uint256 amount bytes data = 4; // Smart contract data. - google.protobuf.Timestamp timestamp = 5; - bytes gas_price = 6; - uint64 gas_limit = 7; - uint64 nonce = 9; // A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction - Cryptography.Signature signature = 10; // is the ed25519ph context signature + bytes gas_price = 5; + uint64 gas_limit = 6; + uint64 nonce = 7; // A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction + Cryptography.Signature signature = 8; // is the ed25519ph context signature } message ConfidentialEntry { From 66a67f4028df0437a14cd2097f312f769568ba22 Mon Sep 17 00:00:00 2001 From: franssl <46971650+franssl@users.noreply.github.com> Date: Wed, 17 Jun 2020 14:35:26 +0100 Subject: [PATCH 5/8] Fix sdk build pipeline (#126) * protobuf codegen version now fixed to be same as protobuf package version * remove triggers for js release pipeline --- packages/sdk-js/azure-pipeline-release.yml | 5 +++-- packages/sdk-rust/Cargo.toml | 2 +- packages/sdk-rust/azure-pipeline.yml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/sdk-js/azure-pipeline-release.yml b/packages/sdk-js/azure-pipeline-release.yml index 1582773..a5084db 100644 --- a/packages/sdk-js/azure-pipeline-release.yml +++ b/packages/sdk-js/azure-pipeline-release.yml @@ -1,5 +1,6 @@ -trigger: - - master +trigger: none + +pr: none pool: vmImage: 'ubuntu-latest' diff --git a/packages/sdk-rust/Cargo.toml b/packages/sdk-rust/Cargo.toml index c45f3bf..231715b 100644 --- a/packages/sdk-rust/Cargo.toml +++ b/packages/sdk-rust/Cargo.toml @@ -11,4 +11,4 @@ exclude = [".gitignore", "tests/*.rs"] license = "MIT" [dependencies] -protobuf = "=2.10.0" +protobuf = "=2.14.0" diff --git a/packages/sdk-rust/azure-pipeline.yml b/packages/sdk-rust/azure-pipeline.yml index cfc1cb9..56abf30 100644 --- a/packages/sdk-rust/azure-pipeline.yml +++ b/packages/sdk-rust/azure-pipeline.yml @@ -1,5 +1,5 @@ steps: -- script: cargo install protobuf-codegen +- script: cargo install protobuf-codegen --version 2.14.0 displayName: 'Install Rust protobuff-codegen' - script: cd packages/sdk-rust && make build From 2da276ca07c6c09675fa65984e203ff29c3c8163 Mon Sep 17 00:00:00 2001 From: Stephen <991266+stxphxn@users.noreply.github.com> Date: Wed, 17 Jun 2020 14:49:53 +0100 Subject: [PATCH 6/8] build packages (#123) * build packages * update js and rust package versions Co-authored-by: franssl <46971650+franssl@users.noreply.github.com> Co-authored-by: fran --- packages/sdk-cpp/src/Account.pb.cc | 545 +- packages/sdk-cpp/src/Account.pb.h | 330 +- packages/sdk-cpp/src/Cryptography.pb.cc | 1441 +- packages/sdk-cpp/src/Cryptography.pb.h | 900 +- packages/sdk-cpp/src/Deltas.pb.cc | 1546 +- packages/sdk-cpp/src/Deltas.pb.h | 954 +- packages/sdk-cpp/src/DfsMarketplace.pb.cc | 1697 +- packages/sdk-cpp/src/DfsMarketplace.pb.h | 1000 +- packages/sdk-cpp/src/IPPN.pb.cc | 2015 +- packages/sdk-cpp/src/IPPN.pb.h | 1245 +- packages/sdk-cpp/src/Network.pb.cc | 129 +- packages/sdk-cpp/src/Network.pb.h | 114 +- packages/sdk-cpp/src/Peer.pb.cc | 1443 +- packages/sdk-cpp/src/Peer.pb.h | 890 +- packages/sdk-cpp/src/Rpc.pb.cc | 20161 +++++++++------- packages/sdk-cpp/src/Rpc.pb.h | 11916 ++++----- packages/sdk-cpp/src/Transaction.pb.cc | 3732 ++- packages/sdk-cpp/src/Transaction.pb.h | 2424 +- packages/sdk-cpp/src/Wire.pb.cc | 2976 ++- packages/sdk-cpp/src/Wire.pb.h | 1816 +- .../Catalyst/Protocol/Account/Account.java | 12 +- .../Protocol/Account/AccountType.java | 6 - .../Catalyst/Protocol/Account/Address.java | 133 +- .../Protocol/Account/AddressOrBuilder.java | 5 - .../Protocol/Cryptography/Cryptography.java | 16 +- .../Protocol/Cryptography/ErrorCode.java | 6 - .../Protocol/Cryptography/Signature.java | 119 +- .../Protocol/Cryptography/SignatureBatch.java | 208 +- .../Cryptography/SignatureBatchOrBuilder.java | 13 - .../Cryptography/SignatureOrBuilder.java | 3 - .../Protocol/Cryptography/SignatureType.java | 6 - .../Protocol/Cryptography/SigningContext.java | 124 +- .../Cryptography/SigningContextOrBuilder.java | 4 - .../src/Catalyst/Protocol/Deltas/Delta.java | 315 +- .../Catalyst/Protocol/Deltas/DeltaIndex.java | 117 +- .../Protocol/Deltas/DeltaIndexOrBuilder.java | 2 - .../Protocol/Deltas/DeltaOrBuilder.java | 16 +- .../src/Catalyst/Protocol/Deltas/Deltas.java | 20 +- .../BlockChallengeBroadcast.java | 147 +- .../BlockChallengeBroadcastOrBuilder.java | 8 - .../DfsMarketplace/BlockChallengeRequest.java | 133 +- .../BlockChallengeRequestOrBuilder.java | 5 - .../BlockChallengeResponse.java | 124 +- .../BlockChallengeResponseOrBuilder.java | 4 - .../DfsMarketplace/DfsMarketplace.java | 14 +- .../Protocol/IPPN/DeltaHistoryRequest.java | 118 +- .../IPPN/DeltaHistoryRequestOrBuilder.java | 2 - .../Protocol/IPPN/DeltaHistoryResponse.java | 411 +- .../IPPN/DeltaHistoryResponseOrBuilder.java | 20 +- .../src/Catalyst/Protocol/IPPN/IPPN.java | 29 +- .../Protocol/IPPN/LatestDeltaHashRequest.java | 87 +- .../IPPN/LatestDeltaHashResponse.java | 335 +- .../LatestDeltaHashResponseOrBuilder.java | 19 +- .../Protocol/IPPN/PeerNeighborsRequest.java | 87 +- .../Protocol/IPPN/PeerNeighborsResponse.java | 111 +- .../Catalyst/Protocol/IPPN/PingRequest.java | 87 +- .../Catalyst/Protocol/IPPN/PingResponse.java | 87 +- .../Catalyst/Protocol/Network/Network.java | 12 +- .../Protocol/Network/NetworkType.java | 6 - .../src/Catalyst/Protocol/Peer/Peer.java | 14 +- .../src/Catalyst/Protocol/Peer/PeerId.java | 126 +- .../Protocol/Peer/PeerIdOrBuilder.java | 3 - .../src/Catalyst/Protocol/Peer/PeerInfo.java | 190 +- .../Protocol/Peer/PeerInfoOrBuilder.java | 13 - .../Rpc/Node/AddFileToDfsRequest.java | 134 +- .../Node/AddFileToDfsRequestOrBuilder.java | 5 - .../Rpc/Node/AddFileToDfsResponse.java | 120 +- .../Node/AddFileToDfsResponseOrBuilder.java | 3 - .../Protocol/Rpc/Node/AddNodeRequest.java | 108 +- .../Rpc/Node/AddNodeRequestOrBuilder.java | 1 - .../Protocol/Rpc/Node/AddNodeResponse.java | 111 +- .../Rpc/Node/AddNodeResponseOrBuilder.java | 2 - .../Node/BroadcastRawTransactionRequest.java | 110 +- ...oadcastRawTransactionRequestOrBuilder.java | 2 - .../Node/BroadcastRawTransactionResponse.java | 111 +- ...adcastRawTransactionResponseOrBuilder.java | 2 - .../Rpc/Node/CreateAddressRequest.java | 108 +- .../Node/CreateAddressRequestOrBuilder.java | 1 - .../Rpc/Node/CreateAddressResponse.java | 111 +- .../Node/CreateAddressResponseOrBuilder.java | 2 - .../Rpc/Node/CreateRawTransactionRequest.java | 108 +- .../CreateRawTransactionRequestOrBuilder.java | 1 - .../Node/CreateRawTransactionResponse.java | 111 +- ...CreateRawTransactionResponseOrBuilder.java | 2 - .../Rpc/Node/CreateWalletRequest.java | 108 +- .../Node/CreateWalletRequestOrBuilder.java | 1 - .../Rpc/Node/CreateWalletResponse.java | 111 +- .../Node/CreateWalletResponseOrBuilder.java | 2 - .../Rpc/Node/DecodeRawTransactionRequest.java | 108 +- .../DecodeRawTransactionRequestOrBuilder.java | 1 - .../Node/DecodeRawTransactionResponse.java | 111 +- ...DecodeRawTransactionResponseOrBuilder.java | 2 - .../Protocol/Rpc/Node/GetAddressRequest.java | 108 +- .../Rpc/Node/GetAddressRequestOrBuilder.java | 1 - .../Protocol/Rpc/Node/GetAddressResponse.java | 111 +- .../Rpc/Node/GetAddressResponseOrBuilder.java | 2 - .../Protocol/Rpc/Node/GetBalanceRequest.java | 108 +- .../Rpc/Node/GetBalanceRequestOrBuilder.java | 1 - .../Protocol/Rpc/Node/GetBalanceResponse.java | 111 +- .../Rpc/Node/GetBalanceResponseOrBuilder.java | 2 - .../Rpc/Node/GetConnectionCountRequest.java | 108 +- .../GetConnectionCountRequestOrBuilder.java | 1 - .../Rpc/Node/GetConnectionCountResponse.java | 111 +- .../GetConnectionCountResponseOrBuilder.java | 2 - .../Protocol/Rpc/Node/GetDeltaRequest.java | 107 +- .../Rpc/Node/GetDeltaRequestOrBuilder.java | 1 - .../Protocol/Rpc/Node/GetDeltaResponse.java | 110 +- .../Rpc/Node/GetDeltaResponseOrBuilder.java | 2 - .../Rpc/Node/GetFileFromDfsRequest.java | 111 +- .../Node/GetFileFromDfsRequestOrBuilder.java | 2 - .../Rpc/Node/GetFileFromDfsResponse.java | 117 +- .../Node/GetFileFromDfsResponseOrBuilder.java | 2 - .../Protocol/Rpc/Node/GetInfoRequest.java | 108 +- .../Rpc/Node/GetInfoRequestOrBuilder.java | 1 - .../Protocol/Rpc/Node/GetInfoResponse.java | 111 +- .../Rpc/Node/GetInfoResponseOrBuilder.java | 2 - .../Protocol/Rpc/Node/GetMempoolRequest.java | 108 +- .../Rpc/Node/GetMempoolRequestOrBuilder.java | 1 - .../Protocol/Rpc/Node/GetMempoolResponse.java | 111 +- .../Rpc/Node/GetPeerCountRequest.java | 87 +- .../Rpc/Node/GetPeerCountResponse.java | 108 +- .../Node/GetPeerCountResponseOrBuilder.java | 1 - .../Protocol/Rpc/Node/GetPeerInfoRequest.java | 116 +- .../Rpc/Node/GetPeerInfoRequestOrBuilder.java | 2 - .../Rpc/Node/GetPeerInfoResponse.java | 111 +- .../Protocol/Rpc/Node/GetPeerListRequest.java | 87 +- .../Rpc/Node/GetPeerListResponse.java | 111 +- .../Rpc/Node/GetPeerReputationRequest.java | 116 +- .../GetPeerReputationRequestOrBuilder.java | 2 - .../Rpc/Node/GetPeerReputationResponse.java | 108 +- .../GetPeerReputationResponseOrBuilder.java | 1 - .../Protocol/Rpc/Node/ListAddressRequest.java | 108 +- .../Rpc/Node/ListAddressRequestOrBuilder.java | 1 - .../Rpc/Node/ListAddressResponse.java | 111 +- .../Node/ListAddressResponseOrBuilder.java | 2 - .../Protocol/Rpc/Node/ListWalletRequest.java | 108 +- .../Rpc/Node/ListWalletRequestOrBuilder.java | 1 - .../Protocol/Rpc/Node/ListWalletResponse.java | 111 +- .../Rpc/Node/ListWalletResponseOrBuilder.java | 2 - .../Protocol/Rpc/Node/RemovePeerRequest.java | 116 +- .../Rpc/Node/RemovePeerRequestOrBuilder.java | 2 - .../Protocol/Rpc/Node/RemovePeerResponse.java | 108 +- .../Rpc/Node/RemovePeerResponseOrBuilder.java | 1 - .../Protocol/Rpc/Node/ResponseCode.java | 6 - .../src/Catalyst/Protocol/Rpc/Node/Rpc.java | 30 +- .../Rpc/Node/SendFromManyRequest.java | 108 +- .../Node/SendFromManyRequestOrBuilder.java | 1 - .../Rpc/Node/SendFromManyResponse.java | 111 +- .../Node/SendFromManyResponseOrBuilder.java | 2 - .../Protocol/Rpc/Node/SendManyRequest.java | 108 +- .../Rpc/Node/SendManyRequestOrBuilder.java | 1 - .../Protocol/Rpc/Node/SendManyResponse.java | 111 +- .../Rpc/Node/SendManyResponseOrBuilder.java | 2 - .../Protocol/Rpc/Node/SendToFromRequest.java | 108 +- .../Rpc/Node/SendToFromRequestOrBuilder.java | 1 - .../Protocol/Rpc/Node/SendToFromResponse.java | 111 +- .../Rpc/Node/SendToFromResponseOrBuilder.java | 2 - .../Protocol/Rpc/Node/SendToRequest.java | 108 +- .../Rpc/Node/SendToRequestOrBuilder.java | 1 - .../Protocol/Rpc/Node/SendToResponse.java | 111 +- .../Rpc/Node/SendToResponseOrBuilder.java | 2 - .../Rpc/Node/ServiceStatusRequest.java | 108 +- .../Node/ServiceStatusRequestOrBuilder.java | 1 - .../Rpc/Node/ServiceStatusResponse.java | 111 +- .../Node/ServiceStatusResponseOrBuilder.java | 2 - .../Rpc/Node/SetPeerBlackListRequest.java | 548 + .../SetPeerBlackListRequestOrBuilder.java | 24 + .../Rpc/Node/SetPeerBlackListResponse.java | 548 + .../SetPeerBlackListResponseOrBuilder.java | 24 + .../Rpc/Node/SetPeerDataFolderRequest.java | 111 +- .../SetPeerDataFolderRequestOrBuilder.java | 2 - .../Rpc/Node/SetPeerDataFolderResponse.java | 108 +- .../SetPeerDataFolderResponseOrBuilder.java | 1 - .../Protocol/Rpc/Node/SignMessageRequest.java | 132 +- .../Rpc/Node/SignMessageRequestOrBuilder.java | 5 - .../Rpc/Node/SignMessageResponse.java | 125 +- .../Node/SignMessageResponseOrBuilder.java | 3 - .../Rpc/Node/SignRawTransactionRequest.java | 108 +- .../SignRawTransactionRequestOrBuilder.java | 1 - .../Rpc/Node/SignRawTransactionResponse.java | 111 +- .../SignRawTransactionResponseOrBuilder.java | 2 - .../Rpc/Node/TransferFileBytesRequest.java | 126 +- .../TransferFileBytesRequestOrBuilder.java | 3 - .../Rpc/Node/TransferFileBytesResponse.java | 107 +- .../TransferFileBytesResponseOrBuilder.java | 1 - .../Rpc/Node/ValidateAddressRequest.java | 108 +- .../Node/ValidateAddressRequestOrBuilder.java | 1 - .../Rpc/Node/ValidateAddressResponse.java | 111 +- .../ValidateAddressResponseOrBuilder.java | 2 - .../Rpc/Node/VerifyMessageRequest.java | 137 +- .../Node/VerifyMessageRequestOrBuilder.java | 5 - .../Rpc/Node/VerifyMessageResponse.java | 108 +- .../Node/VerifyMessageResponseOrBuilder.java | 1 - .../Protocol/Rpc/Node/VersionRequest.java | 108 +- .../Rpc/Node/VersionRequestOrBuilder.java | 1 - .../Protocol/Rpc/Node/VersionResponse.java | 111 +- .../Rpc/Node/VersionResponseOrBuilder.java | 2 - .../Protocol/Transaction/CoinbaseEntry.java | 116 +- .../Transaction/CoinbaseEntryOrBuilder.java | 2 - .../Transaction/ConfidentialEntry.java | 158 +- .../ConfidentialEntryOrBuilder.java | 7 - .../Protocol/Transaction/PublicEntry.java | 438 +- .../Transaction/PublicEntryOrBuilder.java | 36 +- .../Protocol/Transaction/RangeProof.java | 304 +- .../Transaction/RangeProofOrBuilder.java | 21 - .../Protocol/Transaction/Transaction.java | 32 +- .../Protocol/Transaction/TransactionType.java | 6 - .../Wire/CandidateDeltaBroadcast.java | 128 +- .../CandidateDeltaBroadcastOrBuilder.java | 4 - .../Protocol/Wire/DeltaDfsHashBroadcast.java | 116 +- .../Wire/DeltaDfsHashBroadcastOrBuilder.java | 2 - .../Wire/FavouriteDeltaBroadcast.java | 122 +- .../FavouriteDeltaBroadcastOrBuilder.java | 4 - .../Protocol/Wire/ProtocolErrorMessage.java | 143 +- .../Wire/ProtocolErrorMessageOrBuilder.java | 6 - .../Protocol/Wire/ProtocolMessage.java | 155 +- .../Wire/ProtocolMessageOrBuilder.java | 8 - .../Protocol/Wire/TransactionBroadcast.java | 110 +- .../Wire/TransactionBroadcastOrBuilder.java | 2 - .../src/Catalyst/Protocol/Wire/Wire.java | 16 +- packages/sdk-js/package-lock.json | 43 +- packages/sdk-js/package.json | 2 +- packages/sdk-js/src/Account_pb.js | 48 +- packages/sdk-js/src/Cryptography_pb.js | 273 +- packages/sdk-js/src/Deltas_pb.d.ts | 4 + packages/sdk-js/src/Deltas_pb.js | 229 +- packages/sdk-js/src/DfsMarketplace_pb.js | 221 +- packages/sdk-js/src/IPPN_pb.d.ts | 24 +- packages/sdk-js/src/IPPN_pb.js | 539 +- packages/sdk-js/src/Network_pb.js | 3 - packages/sdk-js/src/Peer_pb.js | 210 +- packages/sdk-js/src/Rpc_pb.js | 4476 ++-- packages/sdk-js/src/Transaction_pb.d.ts | 7 - packages/sdk-js/src/Transaction_pb.js | 568 +- packages/sdk-js/src/Wire_pb.js | 482 +- packages/sdk-objc/src/Account.pbobjc.h | 2 +- packages/sdk-objc/src/Account.pbobjc.m | 19 +- packages/sdk-objc/src/Cryptography.pbobjc.h | 2 +- packages/sdk-objc/src/Cryptography.pbobjc.m | 30 +- packages/sdk-objc/src/Deltas.pbobjc.h | 6 +- packages/sdk-objc/src/Deltas.pbobjc.m | 31 +- packages/sdk-objc/src/DfsMarketplace.pbobjc.h | 2 +- packages/sdk-objc/src/DfsMarketplace.pbobjc.m | 18 +- packages/sdk-objc/src/Ippn.pbobjc.h | 21 +- packages/sdk-objc/src/Ippn.pbobjc.m | 86 +- packages/sdk-objc/src/Network.pbobjc.h | 2 +- packages/sdk-objc/src/Network.pbobjc.m | 11 +- packages/sdk-objc/src/Peer.pbobjc.h | 2 +- packages/sdk-objc/src/Peer.pbobjc.m | 20 +- packages/sdk-objc/src/Rpc.pbobjc.h | 2 +- packages/sdk-objc/src/Rpc.pbobjc.m | 293 +- packages/sdk-objc/src/Transaction.pbobjc.h | 16 +- packages/sdk-objc/src/Transaction.pbobjc.m | 48 +- packages/sdk-objc/src/Wire.pbobjc.h | 2 +- packages/sdk-objc/src/Wire.pbobjc.m | 40 +- .../Catalyst/Protocol/Account/AccountType.php | 49 +- .../src/Catalyst/Protocol/Account/Address.php | 77 +- .../Protocol/Cryptography/ErrorCode.php | 77 +- .../Protocol/Cryptography/Signature.php | 58 +- .../Protocol/Cryptography/SignatureBatch.php | 84 +- .../Protocol/Cryptography/SignatureType.php | 59 +- .../Protocol/Cryptography/SigningContext.php | 56 +- .../src/Catalyst/Protocol/Deltas/Delta.php | 216 +- .../Catalyst/Protocol/Deltas/DeltaIndex.php | 42 +- .../BlockChallengeBroadcast.php | 76 +- .../DfsMarketplace/BlockChallengeRequest.php | 56 +- .../DfsMarketplace/BlockChallengeResponse.php | 42 +- .../Protocol/IPPN/DeltaHistoryRequest.php | 56 +- .../Protocol/IPPN/DeltaHistoryResponse.php | 45 +- .../Protocol/IPPN/LatestDeltaHashRequest.php | 14 +- .../Protocol/IPPN/LatestDeltaHashResponse.php | 62 +- .../Protocol/IPPN/PeerNeighborsRequest.php | 14 +- .../Protocol/IPPN/PeerNeighborsResponse.php | 39 +- .../Catalyst/Protocol/IPPN/PingRequest.php | 14 +- .../Catalyst/Protocol/IPPN/PingResponse.php | 14 +- .../Catalyst/Protocol/Network/NetworkType.php | 47 +- .../src/Catalyst/Protocol/Peer/PeerId.php | 79 +- .../src/Catalyst/Protocol/Peer/PeerInfo.php | 192 +- .../Protocol/Rpc/Node/AddFileToDfsRequest.php | 56 +- .../Rpc/Node/AddFileToDfsResponse.php | 42 +- .../Protocol/Rpc/Node/AddNodeRequest.php | 28 +- .../Protocol/Rpc/Node/AddNodeResponse.php | 28 +- .../Node/BroadcastRawTransactionRequest.php | 30 +- .../Node/BroadcastRawTransactionResponse.php | 28 +- .../Rpc/Node/CreateAddressRequest.php | 28 +- .../Rpc/Node/CreateAddressResponse.php | 28 +- .../Rpc/Node/CreateRawTransactionRequest.php | 28 +- .../Rpc/Node/CreateRawTransactionResponse.php | 28 +- .../Protocol/Rpc/Node/CreateWalletRequest.php | 28 +- .../Rpc/Node/CreateWalletResponse.php | 28 +- .../Rpc/Node/DecodeRawTransactionRequest.php | 28 +- .../Rpc/Node/DecodeRawTransactionResponse.php | 28 +- .../Protocol/Rpc/Node/GetAddressRequest.php | 28 +- .../Protocol/Rpc/Node/GetAddressResponse.php | 28 +- .../Protocol/Rpc/Node/GetBalanceRequest.php | 28 +- .../Protocol/Rpc/Node/GetBalanceResponse.php | 28 +- .../Rpc/Node/GetConnectionCountRequest.php | 28 +- .../Rpc/Node/GetConnectionCountResponse.php | 28 +- .../Protocol/Rpc/Node/GetDeltaRequest.php | 28 +- .../Protocol/Rpc/Node/GetDeltaResponse.php | 30 +- .../Rpc/Node/GetFileFromDfsRequest.php | 28 +- .../Rpc/Node/GetFileFromDfsResponse.php | 42 +- .../Protocol/Rpc/Node/GetInfoRequest.php | 28 +- .../Protocol/Rpc/Node/GetInfoResponse.php | 28 +- .../Protocol/Rpc/Node/GetMempoolRequest.php | 28 +- .../Protocol/Rpc/Node/GetMempoolResponse.php | 32 +- .../Protocol/Rpc/Node/GetPeerCountRequest.php | 14 +- .../Rpc/Node/GetPeerCountResponse.php | 28 +- .../Protocol/Rpc/Node/GetPeerInfoRequest.php | 42 +- .../Protocol/Rpc/Node/GetPeerInfoResponse.php | 32 +- .../Protocol/Rpc/Node/GetPeerListRequest.php | 14 +- .../Protocol/Rpc/Node/GetPeerListResponse.php | 32 +- .../Rpc/Node/GetPeerReputationRequest.php | 42 +- .../Rpc/Node/GetPeerReputationResponse.php | 28 +- .../Protocol/Rpc/Node/ListAddressRequest.php | 28 +- .../Protocol/Rpc/Node/ListAddressResponse.php | 28 +- .../Protocol/Rpc/Node/ListWalletRequest.php | 28 +- .../Protocol/Rpc/Node/ListWalletResponse.php | 28 +- .../Protocol/Rpc/Node/RemovePeerRequest.php | 42 +- .../Protocol/Rpc/Node/RemovePeerResponse.php | 28 +- .../Protocol/Rpc/Node/ResponseCode.php | 48 +- .../Protocol/Rpc/Node/SendFromManyRequest.php | 28 +- .../Rpc/Node/SendFromManyResponse.php | 28 +- .../Protocol/Rpc/Node/SendManyRequest.php | 28 +- .../Protocol/Rpc/Node/SendManyResponse.php | 28 +- .../Protocol/Rpc/Node/SendToFromRequest.php | 28 +- .../Protocol/Rpc/Node/SendToFromResponse.php | 28 +- .../Protocol/Rpc/Node/SendToRequest.php | 28 +- .../Protocol/Rpc/Node/SendToResponse.php | 28 +- .../Rpc/Node/ServiceStatusRequest.php | 28 +- .../Rpc/Node/ServiceStatusResponse.php | 28 +- .../Rpc/Node/SetPeerBlackListRequest.php | 86 + .../Rpc/Node/SetPeerBlackListResponse.php | 86 + .../Rpc/Node/SetPeerDataFolderRequest.php | 28 +- .../Rpc/Node/SetPeerDataFolderResponse.php | 28 +- .../Protocol/Rpc/Node/SignMessageRequest.php | 58 +- .../Protocol/Rpc/Node/SignMessageResponse.php | 56 +- .../Rpc/Node/SignRawTransactionRequest.php | 28 +- .../Rpc/Node/SignRawTransactionResponse.php | 28 +- .../Rpc/Node/TransferFileBytesRequest.php | 56 +- .../Rpc/Node/TransferFileBytesResponse.php | 28 +- .../Rpc/Node/ValidateAddressRequest.php | 28 +- .../Rpc/Node/ValidateAddressResponse.php | 28 +- .../Rpc/Node/VerifyMessageRequest.php | 72 +- .../Rpc/Node/VerifyMessageResponse.php | 28 +- .../Protocol/Rpc/Node/VersionRequest.php | 28 +- .../Protocol/Rpc/Node/VersionResponse.php | 28 +- .../Protocol/Transaction/CoinbaseEntry.php | 56 +- .../Transaction/ConfidentialEntry.php | 135 +- .../Protocol/Transaction/PublicEntry.php | 197 +- .../Protocol/Transaction/RangeProof.php | 273 +- .../Protocol/Transaction/TransactionType.php | 44 +- .../Protocol/Wire/CandidateDeltaBroadcast.php | 79 +- .../Protocol/Wire/DeltaDfsHashBroadcast.php | 56 +- .../Protocol/Wire/FavouriteDeltaBroadcast.php | 60 +- .../Protocol/Wire/ProtocolErrorMessage.php | 76 +- .../Protocol/Wire/ProtocolMessage.php | 125 +- .../Protocol/Wire/TransactionBroadcast.php | 37 +- packages/sdk-php/src/GPBMetadata/Account.php | 16 +- .../sdk-php/src/GPBMetadata/Cryptography.php | 32 +- packages/sdk-php/src/GPBMetadata/Deltas.php | 22 +- .../src/GPBMetadata/DfsMarketplace.php | 20 +- packages/sdk-php/src/GPBMetadata/IPPN.php | 19 +- packages/sdk-php/src/GPBMetadata/Network.php | 8 +- packages/sdk-php/src/GPBMetadata/Peer.php | 20 +- packages/sdk-php/src/GPBMetadata/Rpc.php | 127 +- .../sdk-php/src/GPBMetadata/Transaction.php | 38 +- packages/sdk-php/src/GPBMetadata/Wire.php | 35 +- packages/sdk-python/src/Account_pb2.py | 40 +- packages/sdk-python/src/Cryptography_pb2.py | 98 +- packages/sdk-python/src/Deltas_pb2.py | 73 +- packages/sdk-python/src/DfsMarketplace_pb2.py | 72 +- packages/sdk-python/src/IPPN_pb2.py | 129 +- packages/sdk-python/src/Network_pb2.py | 22 +- packages/sdk-python/src/Peer_pb2.py | 58 +- packages/sdk-python/src/Rpc_pb2.py | 976 +- packages/sdk-python/src/Transaction_pb2.py | 203 +- packages/sdk-python/src/Wire_pb2.py | 122 +- packages/sdk-ruby/src/Account_pb.rb | 26 +- packages/sdk-ruby/src/Cryptography_pb.rb | 78 +- packages/sdk-ruby/src/Deltas_pb.rb | 35 +- packages/sdk-ruby/src/DfsMarketplace_pb.rb | 36 +- packages/sdk-ruby/src/IPPN_pb.rb | 59 +- packages/sdk-ruby/src/Network_pb.rb | 14 +- packages/sdk-ruby/src/Peer_pb.rb | 34 +- packages/sdk-ruby/src/Rpc_pb.rb | 600 +- packages/sdk-ruby/src/Transaction_pb.rb | 94 +- packages/sdk-ruby/src/Wire_pb.rb | 70 +- packages/sdk-rust/Cargo.toml | 2 +- packages/sdk-rust/src/Account.rs | 102 +- packages/sdk-rust/src/Cryptography.rs | 251 +- packages/sdk-rust/src/Deltas.rs | 209 +- packages/sdk-rust/src/DfsMarketplace.rs | 152 +- packages/sdk-rust/src/IPPN.rs | 377 +- packages/sdk-rust/src/Network.rs | 29 +- packages/sdk-rust/src/Peer.rs | 147 +- packages/sdk-rust/src/Rpc.rs | 1832 +- packages/sdk-rust/src/Transaction.rs | 513 +- packages/sdk-rust/src/Wire.rs | 275 +- src/Transaction.proto | 1 - 400 files changed, 42543 insertions(+), 48331 deletions(-) create mode 100644 packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListRequest.java create mode 100644 packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListRequestOrBuilder.java create mode 100644 packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListResponse.java create mode 100644 packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListResponseOrBuilder.java create mode 100644 packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListRequest.php create mode 100644 packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListResponse.php diff --git a/packages/sdk-cpp/src/Account.pb.cc b/packages/sdk-cpp/src/Account.pb.cc index 194c68d..cef4f30 100644 --- a/packages/sdk-cpp/src/Account.pb.cc +++ b/packages/sdk-cpp/src/Account.pb.cc @@ -1,101 +1,136 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Account.proto +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "Account.pb.h" #include +#include +#include +#include #include -#include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) -#include + namespace Catalyst { namespace Protocol { namespace Account { -class AddressDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed
_instance; +class AddressDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed
{ } _Address_default_instance_; -} // namespace Account -} // namespace Protocol -} // namespace Catalyst -static void InitDefaultsscc_info_Address_Account_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - { - void* ptr = &::Catalyst::Protocol::Account::_Address_default_instance_; - new (ptr) ::Catalyst::Protocol::Account::Address(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Account::Address::InitAsDefaultInstance(); -} +namespace protobuf_Account_2eproto { -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Address_Account_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Address_Account_2eproto}, {}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Account_2eproto[1]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_Account_2eproto[1]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Account_2eproto = nullptr; +namespace { -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Account_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +::google::protobuf::Metadata file_level_metadata[1]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +} // namespace + +const ::google::protobuf::uint32 TableStruct::offsets[] = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Account::Address, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Address, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Account::Address, network_type_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Account::Address, account_type_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Account::Address, public_key_hash_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::Catalyst::Protocol::Account::Address)}, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Address, network_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Address, account_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Address, public_key_hash_), }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::Catalyst::Protocol::Account::_Address_default_instance_), +static const ::google::protobuf::internal::MigrationSchema schemas[] = { + { 0, -1, sizeof(Address)}, }; -const char descriptor_table_protodef_Account_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\rAccount.proto\022\031Catalyst.Protocol.Accou" - "nt\032\022Cryptography.proto\032\rNetwork.proto\"\236\001" - "\n\007Address\022<\n\014network_type\030\001 \001(\0162&.Cataly" - "st.Protocol.Network.NetworkType\022<\n\014accou" - "nt_type\030\002 \001(\0162&.Catalyst.Protocol.Accoun" - "t.AccountType\022\027\n\017public_key_hash\030\003 \001(\014*q" - "\n\013AccountType\022\030\n\024ACCOUNT_TYPE_UNKNOWN\020\000\022" - "\022\n\016PUBLIC_ACCOUNT\020\010\022\030\n\024CONFIDENTIAL_ACCO" - "UNT\020\020\022\032\n\026SMART_CONTRACT_ACCOUNT\020\030B\002P\001b\006p" - "roto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Account_2eproto_deps[2] = { - &::descriptor_table_Cryptography_2eproto, - &::descriptor_table_Network_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Account_2eproto_sccs[1] = { - &scc_info_Address_Account_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Account_2eproto_once; -static bool descriptor_table_Account_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Account_2eproto = { - &descriptor_table_Account_2eproto_initialized, descriptor_table_protodef_Account_2eproto, "Account.proto", 365, - &descriptor_table_Account_2eproto_once, descriptor_table_Account_2eproto_sccs, descriptor_table_Account_2eproto_deps, 1, 2, - schemas, file_default_instances, TableStruct_Account_2eproto::offsets, - file_level_metadata_Account_2eproto, 1, file_level_enum_descriptors_Account_2eproto, file_level_service_descriptors_Account_2eproto, +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&_Address_default_instance_), }; -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_Account_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Account_2eproto), true); -namespace Catalyst { -namespace Protocol { -namespace Account { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AccountType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_Account_2eproto); - return file_level_enum_descriptors_Account_2eproto[0]; +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "Account.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); +} + +} // namespace + +void TableStruct::Shutdown() { + _Address_default_instance_.Shutdown(); + delete file_level_metadata[0].reflection; +} + +void TableStruct::InitDefaultsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::internal::InitProtobufDefaults(); + ::Catalyst::Protocol::Cryptography::protobuf_Cryptography_2eproto::InitDefaults(); + ::Catalyst::Protocol::Network::protobuf_Network_2eproto::InitDefaults(); + _Address_default_instance_.DefaultConstruct(); +} + +void InitDefaults() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); +} +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] = { + "\n\rAccount.proto\022\031Catalyst.Protocol.Accou" + "nt\032\022Cryptography.proto\032\rNetwork.proto\"\236\001" + "\n\007Address\022<\n\014network_type\030\001 \001(\0162&.Cataly" + "st.Protocol.Network.NetworkType\022<\n\014accou" + "nt_type\030\002 \001(\0162&.Catalyst.Protocol.Accoun" + "t.AccountType\022\027\n\017public_key_hash\030\003 \001(\014*q" + "\n\013AccountType\022\030\n\024ACCOUNT_TYPE_UNKNOWN\020\000\022" + "\022\n\016PUBLIC_ACCOUNT\020\010\022\030\n\024CONFIDENTIAL_ACCO" + "UNT\020\020\022\032\n\026SMART_CONTRACT_ACCOUNT\020\030B\002P\001b\006p" + "roto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 365); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Account.proto", &protobuf_RegisterTypes); + ::Catalyst::Protocol::Cryptography::protobuf_Cryptography_2eproto::AddDescriptors(); + ::Catalyst::Protocol::Network::protobuf_Network_2eproto::AddDescriptors(); + ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; + +} // namespace protobuf_Account_2eproto + +const ::google::protobuf::EnumDescriptor* AccountType_descriptor() { + protobuf_Account_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Account_2eproto::file_level_enum_descriptors[0]; } bool AccountType_IsValid(int value) { switch (value) { @@ -112,37 +147,40 @@ bool AccountType_IsValid(int value) { // =================================================================== -void Address::InitAsDefaultInstance() { -} -class Address::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Address::kNetworkTypeFieldNumber; +const int Address::kAccountTypeFieldNumber; +const int Address::kPublicKeyHashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Address::Address() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Account_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Account.Address) } Address::Address(const Address& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - public_key_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_public_key_hash().empty()) { - public_key_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_hash_); + public_key_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.public_key_hash().size() > 0) { + public_key_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_hash_); } ::memcpy(&network_type_, &from.network_type_, - static_cast(reinterpret_cast(&account_type_) - - reinterpret_cast(&network_type_)) + sizeof(account_type_)); + reinterpret_cast(&account_type_) - + reinterpret_cast(&network_type_) + sizeof(account_type_)); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Account.Address) } void Address::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Address_Account_2eproto.base); - public_key_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&network_type_, 0, static_cast( - reinterpret_cast(&account_type_) - - reinterpret_cast(&network_type_)) + sizeof(account_type_)); + public_key_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&network_type_, 0, reinterpret_cast(&account_type_) - + reinterpret_cast(&network_type_) + sizeof(account_type_)); + _cached_size_ = 0; } Address::~Address() { @@ -151,112 +189,156 @@ Address::~Address() { } void Address::SharedDtor() { - public_key_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void Address::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Address::descriptor() { + protobuf_Account_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Account_2eproto::file_level_metadata[0].descriptor; } + const Address& Address::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Address_Account_2eproto.base); + protobuf_Account_2eproto::InitDefaults(); return *internal_default_instance(); } +Address* Address::New(::google::protobuf::Arena* arena) const { + Address* n = new Address; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void Address::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Account.Address) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - public_key_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&network_type_, 0, static_cast( - reinterpret_cast(&account_type_) - - reinterpret_cast(&network_type_)) + sizeof(account_type_)); - _internal_metadata_.Clear(); -} - -const char* Address::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + public_key_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&network_type_, 0, reinterpret_cast(&account_type_) - + reinterpret_cast(&network_type_) + sizeof(account_type_)); +} + +bool Address::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Account.Address) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .Catalyst.Protocol.Network.NetworkType network_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - _internal_set_network_type(static_cast<::Catalyst::Protocol::Network::NetworkType>(val)); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_network_type(static_cast< ::Catalyst::Protocol::Network::NetworkType >(value)); + } else { + goto handle_unusual; + } + break; + } + // .Catalyst.Protocol.Account.AccountType account_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - _internal_set_account_type(static_cast<::Catalyst::Protocol::Account::AccountType>(val)); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 16u) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_account_type(static_cast< ::Catalyst::Protocol::Account::AccountType >(value)); + } else { + goto handle_unusual; + } + break; + } + // bytes public_key_hash = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_public_key_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key_hash())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Account.Address) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Account.Address) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* Address::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Account.Address) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void Address::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Account.Address) // .Catalyst.Protocol.Network.NetworkType network_type = 1; if (this->network_type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_network_type(), target); + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->network_type(), output); } // .Catalyst.Protocol.Account.AccountType account_type = 2; if (this->account_type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_account_type(), target); + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->account_type(), output); } // bytes public_key_hash = 3; if (this->public_key_hash().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_public_key_hash(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->public_key_hash(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Account.Address) +} + +::google::protobuf::uint8* Address::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Account.Address) + // .Catalyst.Protocol.Network.NetworkType network_type = 1; + if (this->network_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->network_type(), target); + } + + // .Catalyst.Protocol.Account.AccountType account_type = 2; + if (this->account_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->account_type(), target); + } + + // bytes public_key_hash = 3; + if (this->public_key_hash().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->public_key_hash(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Account.Address) return target; } @@ -265,47 +347,41 @@ size_t Address::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Account.Address) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes public_key_hash = 3; if (this->public_key_hash().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key_hash()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key_hash()); } // .Catalyst.Protocol.Network.NetworkType network_type = 1; if (this->network_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_network_type()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->network_type()); } // .Catalyst.Protocol.Account.AccountType account_type = 2; if (this->account_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_account_type()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->account_type()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void Address::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Address::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Account.Address) GOOGLE_DCHECK_NE(&from, this); const Address* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated
( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Account.Address) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Account.Address) MergeFrom(*source); @@ -316,22 +392,19 @@ void Address::MergeFrom(const Address& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Account.Address) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.public_key_hash().size() > 0) { - public_key_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_hash_); + public_key_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_hash_); } if (from.network_type() != 0) { - _internal_set_network_type(from._internal_network_type()); + set_network_type(from.network_type()); } if (from.account_type() != 0) { - _internal_set_account_type(from._internal_account_type()); + set_account_type(from.account_type()); } } -void Address::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Address::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Account.Address) if (&from == this) return; Clear(); @@ -349,29 +422,111 @@ bool Address::IsInitialized() const { return true; } +void Address::Swap(Address* other) { + if (other == this) return; + InternalSwap(other); +} void Address::InternalSwap(Address* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - public_key_hash_.Swap(&other->public_key_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(network_type_, other->network_type_); - swap(account_type_, other->account_type_); + public_key_hash_.Swap(&other->public_key_hash_); + std::swap(network_type_, other->network_type_); + std::swap(account_type_, other->account_type_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata Address::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata Address::GetMetadata() const { + protobuf_Account_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Account_2eproto::file_level_metadata[0]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// Address + +// .Catalyst.Protocol.Network.NetworkType network_type = 1; +void Address::clear_network_type() { + network_type_ = 0; +} +::Catalyst::Protocol::Network::NetworkType Address::network_type() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Account.Address.network_type) + return static_cast< ::Catalyst::Protocol::Network::NetworkType >(network_type_); +} +void Address::set_network_type(::Catalyst::Protocol::Network::NetworkType value) { + + network_type_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Account.Address.network_type) +} + +// .Catalyst.Protocol.Account.AccountType account_type = 2; +void Address::clear_account_type() { + account_type_ = 0; +} +::Catalyst::Protocol::Account::AccountType Address::account_type() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Account.Address.account_type) + return static_cast< ::Catalyst::Protocol::Account::AccountType >(account_type_); +} +void Address::set_account_type(::Catalyst::Protocol::Account::AccountType value) { + + account_type_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Account.Address.account_type) +} + +// bytes public_key_hash = 3; +void Address::clear_public_key_hash() { + public_key_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& Address::public_key_hash() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Account.Address.public_key_hash) + return public_key_hash_.GetNoArena(); +} +void Address::set_public_key_hash(const ::std::string& value) { + + public_key_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Account.Address.public_key_hash) +} +#if LANG_CXX11 +void Address::set_public_key_hash(::std::string&& value) { + + public_key_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Account.Address.public_key_hash) +} +#endif +void Address::set_public_key_hash(const char* value) { + + public_key_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Account.Address.public_key_hash) +} +void Address::set_public_key_hash(const void* value, size_t size) { + + public_key_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Account.Address.public_key_hash) +} +::std::string* Address::mutable_public_key_hash() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Account.Address.public_key_hash) + return public_key_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* Address::release_public_key_hash() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Account.Address.public_key_hash) + + return public_key_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void Address::set_allocated_public_key_hash(::std::string* public_key_hash) { + if (public_key_hash != NULL) { + + } else { + + } + public_key_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key_hash); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Account.Address.public_key_hash) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) + } // namespace Account } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Account::Address* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Account::Address >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Account::Address >(arena); -} -PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include diff --git a/packages/sdk-cpp/src/Account.pb.h b/packages/sdk-cpp/src/Account.pb.h index 7eef975..4ef2f9f 100644 --- a/packages/sdk-cpp/src/Account.pb.h +++ b/packages/sdk-cpp/src/Account.pb.h @@ -1,33 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Account.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_Account_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_Account_2eproto +#ifndef PROTOBUF_Account_2eproto__INCLUDED +#define PROTOBUF_Account_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3011000 +#include + +#if GOOGLE_PROTOBUF_VERSION < 3002000 #error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update +#error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3002000 < GOOGLE_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 incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif -#include #include #include #include -#include #include -#include #include -#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -36,27 +32,6 @@ #include "Cryptography.pb.h" #include "Network.pb.h" // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_Account_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_Account_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Account_2eproto; namespace Catalyst { namespace Protocol { namespace Account { @@ -64,227 +39,184 @@ class Address; class AddressDefaultTypeInternal; extern AddressDefaultTypeInternal _Address_default_instance_; } // namespace Account +namespace Cryptography { +class Signature; +class SignatureDefaultTypeInternal; +extern SignatureDefaultTypeInternal _Signature_default_instance_; +class SignatureBatch; +class SignatureBatchDefaultTypeInternal; +extern SignatureBatchDefaultTypeInternal _SignatureBatch_default_instance_; +class SigningContext; +class SigningContextDefaultTypeInternal; +extern SigningContextDefaultTypeInternal _SigningContext_default_instance_; +} // namespace Cryptography +namespace Network { +} // namespace Network } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> ::Catalyst::Protocol::Account::Address* Arena::CreateMaybeMessage<::Catalyst::Protocol::Account::Address>(Arena*); -PROTOBUF_NAMESPACE_CLOSE + namespace Catalyst { namespace Protocol { namespace Account { -enum AccountType : int { +namespace protobuf_Account_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::uint32 offsets[]; + static void InitDefaultsImpl(); + static void Shutdown(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_Account_2eproto + +enum AccountType { ACCOUNT_TYPE_UNKNOWN = 0, PUBLIC_ACCOUNT = 8, CONFIDENTIAL_ACCOUNT = 16, SMART_CONTRACT_ACCOUNT = 24, - AccountType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - AccountType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + AccountType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + AccountType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max }; bool AccountType_IsValid(int value); -constexpr AccountType AccountType_MIN = ACCOUNT_TYPE_UNKNOWN; -constexpr AccountType AccountType_MAX = SMART_CONTRACT_ACCOUNT; -constexpr int AccountType_ARRAYSIZE = AccountType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* AccountType_descriptor(); -template -inline const std::string& AccountType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AccountType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - AccountType_descriptor(), enum_t_value); +const AccountType AccountType_MIN = ACCOUNT_TYPE_UNKNOWN; +const AccountType AccountType_MAX = SMART_CONTRACT_ACCOUNT; +const int AccountType_ARRAYSIZE = AccountType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* AccountType_descriptor(); +inline const ::std::string& AccountType_Name(AccountType value) { + return ::google::protobuf::internal::NameOfEnum( + AccountType_descriptor(), value); } inline bool AccountType_Parse( - const std::string& name, AccountType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + const ::std::string& name, AccountType* value) { + return ::google::protobuf::internal::ParseNamedEnum( AccountType_descriptor(), name, value); } // =================================================================== -class Address : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Account.Address) */ { +class Address : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Account.Address) */ { public: Address(); virtual ~Address(); Address(const Address& 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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const Address& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Address* internal_default_instance() { return reinterpret_cast( &_Address_default_instance_); } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(Address& a, Address& b) { - a.Swap(&b); - } - inline void Swap(Address* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(Address* other); // implements Message ---------------------------------------------- - inline Address* New() const final { - return CreateMaybeMessage
(nullptr); - } + inline Address* New() const PROTOBUF_FINAL { return New(NULL); } - Address* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage
(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + Address* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const Address& from); void MergeFrom(const Address& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(Address* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Account.Address"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Account_2eproto); - return ::descriptor_table_Account_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPublicKeyHashFieldNumber = 3, - kNetworkTypeFieldNumber = 1, - kAccountTypeFieldNumber = 2, - }; // bytes public_key_hash = 3; void clear_public_key_hash(); - const std::string& public_key_hash() const; - void set_public_key_hash(const std::string& value); - void set_public_key_hash(std::string&& value); + static const int kPublicKeyHashFieldNumber = 3; + const ::std::string& public_key_hash() const; + void set_public_key_hash(const ::std::string& value); + #if LANG_CXX11 + void set_public_key_hash(::std::string&& value); + #endif void set_public_key_hash(const char* value); void set_public_key_hash(const void* value, size_t size); - std::string* mutable_public_key_hash(); - std::string* release_public_key_hash(); - void set_allocated_public_key_hash(std::string* public_key_hash); - private: - const std::string& _internal_public_key_hash() const; - void _internal_set_public_key_hash(const std::string& value); - std::string* _internal_mutable_public_key_hash(); - public: + ::std::string* mutable_public_key_hash(); + ::std::string* release_public_key_hash(); + void set_allocated_public_key_hash(::std::string* public_key_hash); // .Catalyst.Protocol.Network.NetworkType network_type = 1; void clear_network_type(); + static const int kNetworkTypeFieldNumber = 1; ::Catalyst::Protocol::Network::NetworkType network_type() const; void set_network_type(::Catalyst::Protocol::Network::NetworkType value); - private: - ::Catalyst::Protocol::Network::NetworkType _internal_network_type() const; - void _internal_set_network_type(::Catalyst::Protocol::Network::NetworkType value); - public: // .Catalyst.Protocol.Account.AccountType account_type = 2; void clear_account_type(); + static const int kAccountTypeFieldNumber = 2; ::Catalyst::Protocol::Account::AccountType account_type() const; void set_account_type(::Catalyst::Protocol::Account::AccountType value); - private: - ::Catalyst::Protocol::Account::AccountType _internal_account_type() const; - void _internal_set_account_type(::Catalyst::Protocol::Account::AccountType value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Account.Address) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_hash_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr public_key_hash_; int network_type_; int account_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Account_2eproto; + mutable int _cached_size_; + friend struct protobuf_Account_2eproto::TableStruct; }; // =================================================================== // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +#if !PROTOBUF_INLINE_NOT_IN_HEADERS // Address // .Catalyst.Protocol.Network.NetworkType network_type = 1; inline void Address::clear_network_type() { network_type_ = 0; } -inline ::Catalyst::Protocol::Network::NetworkType Address::_internal_network_type() const { - return static_cast< ::Catalyst::Protocol::Network::NetworkType >(network_type_); -} inline ::Catalyst::Protocol::Network::NetworkType Address::network_type() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Account.Address.network_type) - return _internal_network_type(); + return static_cast< ::Catalyst::Protocol::Network::NetworkType >(network_type_); } -inline void Address::_internal_set_network_type(::Catalyst::Protocol::Network::NetworkType value) { +inline void Address::set_network_type(::Catalyst::Protocol::Network::NetworkType value) { network_type_ = value; -} -inline void Address::set_network_type(::Catalyst::Protocol::Network::NetworkType value) { - _internal_set_network_type(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Account.Address.network_type) } @@ -292,103 +224,91 @@ inline void Address::set_network_type(::Catalyst::Protocol::Network::NetworkType inline void Address::clear_account_type() { account_type_ = 0; } -inline ::Catalyst::Protocol::Account::AccountType Address::_internal_account_type() const { - return static_cast< ::Catalyst::Protocol::Account::AccountType >(account_type_); -} inline ::Catalyst::Protocol::Account::AccountType Address::account_type() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Account.Address.account_type) - return _internal_account_type(); + return static_cast< ::Catalyst::Protocol::Account::AccountType >(account_type_); } -inline void Address::_internal_set_account_type(::Catalyst::Protocol::Account::AccountType value) { +inline void Address::set_account_type(::Catalyst::Protocol::Account::AccountType value) { account_type_ = value; -} -inline void Address::set_account_type(::Catalyst::Protocol::Account::AccountType value) { - _internal_set_account_type(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Account.Address.account_type) } // bytes public_key_hash = 3; inline void Address::clear_public_key_hash() { - public_key_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& Address::public_key_hash() const { +inline const ::std::string& Address::public_key_hash() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Account.Address.public_key_hash) - return _internal_public_key_hash(); -} -inline void Address::set_public_key_hash(const std::string& value) { - _internal_set_public_key_hash(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Account.Address.public_key_hash) -} -inline std::string* Address::mutable_public_key_hash() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Account.Address.public_key_hash) - return _internal_mutable_public_key_hash(); -} -inline const std::string& Address::_internal_public_key_hash() const { return public_key_hash_.GetNoArena(); } -inline void Address::_internal_set_public_key_hash(const std::string& value) { +inline void Address::set_public_key_hash(const ::std::string& value) { - public_key_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + public_key_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Account.Address.public_key_hash) } -inline void Address::set_public_key_hash(std::string&& value) { +#if LANG_CXX11 +inline void Address::set_public_key_hash(::std::string&& value) { public_key_hash_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Account.Address.public_key_hash) } +#endif inline void Address::set_public_key_hash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - public_key_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + public_key_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Account.Address.public_key_hash) } inline void Address::set_public_key_hash(const void* value, size_t size) { - public_key_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + public_key_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Account.Address.public_key_hash) } -inline std::string* Address::_internal_mutable_public_key_hash() { +inline ::std::string* Address::mutable_public_key_hash() { - return public_key_hash_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Account.Address.public_key_hash) + return public_key_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Address::release_public_key_hash() { +inline ::std::string* Address::release_public_key_hash() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Account.Address.public_key_hash) - return public_key_hash_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return public_key_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Address::set_allocated_public_key_hash(std::string* public_key_hash) { - if (public_key_hash != nullptr) { +inline void Address::set_allocated_public_key_hash(::std::string* public_key_hash) { + if (public_key_hash != NULL) { } else { } - public_key_hash_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key_hash); + public_key_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key_hash); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Account.Address.public_key_hash) } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) + } // namespace Account } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN +#ifndef SWIG +namespace google { +namespace protobuf { -template <> struct is_proto_enum< ::Catalyst::Protocol::Account::AccountType> : ::std::true_type {}; +template <> struct is_proto_enum< ::Catalyst::Protocol::Account::AccountType> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::Catalyst::Protocol::Account::AccountType>() { return ::Catalyst::Protocol::Account::AccountType_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google +#endif // SWIG // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Account_2eproto +#endif // PROTOBUF_Account_2eproto__INCLUDED diff --git a/packages/sdk-cpp/src/Cryptography.pb.cc b/packages/sdk-cpp/src/Cryptography.pb.cc index 096aa42..bb59078 100644 --- a/packages/sdk-cpp/src/Cryptography.pb.cc +++ b/packages/sdk-cpp/src/Cryptography.pb.cc @@ -1,171 +1,175 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Cryptography.proto +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "Cryptography.pb.h" #include +#include +#include +#include #include -#include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_Cryptography_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SigningContext_Cryptography_2eproto; + namespace Catalyst { namespace Protocol { namespace Cryptography { -class SignatureDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class SignatureDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _Signature_default_instance_; -class SigningContextDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class SigningContextDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _SigningContext_default_instance_; -class SignatureBatchDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class SignatureBatchDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _SignatureBatch_default_instance_; -} // namespace Cryptography -} // namespace Protocol -} // namespace Catalyst -static void InitDefaultsscc_info_Signature_Cryptography_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Cryptography::_Signature_default_instance_; - new (ptr) ::Catalyst::Protocol::Cryptography::Signature(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Cryptography::Signature::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Signature_Cryptography_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Signature_Cryptography_2eproto}, { - &scc_info_SigningContext_Cryptography_2eproto.base,}}; - -static void InitDefaultsscc_info_SignatureBatch_Cryptography_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Cryptography::_SignatureBatch_default_instance_; - new (ptr) ::Catalyst::Protocol::Cryptography::SignatureBatch(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Cryptography::SignatureBatch::InitAsDefaultInstance(); -} -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SignatureBatch_Cryptography_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SignatureBatch_Cryptography_2eproto}, {}}; +namespace protobuf_Cryptography_2eproto { -static void InitDefaultsscc_info_SigningContext_Cryptography_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - { - void* ptr = &::Catalyst::Protocol::Cryptography::_SigningContext_default_instance_; - new (ptr) ::Catalyst::Protocol::Cryptography::SigningContext(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Cryptography::SigningContext::InitAsDefaultInstance(); -} +namespace { -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SigningContext_Cryptography_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SigningContext_Cryptography_2eproto}, {}}; +::google::protobuf::Metadata file_level_metadata[3]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2]; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Cryptography_2eproto[3]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_Cryptography_2eproto[2]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Cryptography_2eproto = nullptr; +} // namespace -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Cryptography_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct::offsets[] = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Cryptography::Signature, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Signature, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Cryptography::Signature, signing_context_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Cryptography::Signature, raw_bytes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Signature, signing_context_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Signature, raw_bytes_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Cryptography::SigningContext, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SigningContext, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Cryptography::SigningContext, network_type_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Cryptography::SigningContext, signature_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SigningContext, network_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SigningContext, signature_type_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Cryptography::SignatureBatch, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignatureBatch, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Cryptography::SignatureBatch, signatures_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Cryptography::SignatureBatch, public_keys_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Cryptography::SignatureBatch, messages_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Cryptography::SignatureBatch, context_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::Catalyst::Protocol::Cryptography::Signature)}, - { 7, -1, sizeof(::Catalyst::Protocol::Cryptography::SigningContext)}, - { 14, -1, sizeof(::Catalyst::Protocol::Cryptography::SignatureBatch)}, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignatureBatch, signatures_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignatureBatch, public_keys_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignatureBatch, messages_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignatureBatch, context_), }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::Catalyst::Protocol::Cryptography::_Signature_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Cryptography::_SigningContext_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Cryptography::_SignatureBatch_default_instance_), +static const ::google::protobuf::internal::MigrationSchema schemas[] = { + { 0, -1, sizeof(Signature)}, + { 6, -1, sizeof(SigningContext)}, + { 12, -1, sizeof(SignatureBatch)}, }; -const char descriptor_table_protodef_Cryptography_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\022Cryptography.proto\022\036Catalyst.Protocol." - "Cryptography\032\rNetwork.proto\"g\n\tSignature" - "\022G\n\017signing_context\030\001 \001(\0132..Catalyst.Pro" - "tocol.Cryptography.SigningContext\022\021\n\traw" - "_bytes\030\002 \001(\014\"\225\001\n\016SigningContext\022<\n\014netwo" - "rk_type\030\001 \001(\0162&.Catalyst.Protocol.Networ" - "k.NetworkType\022E\n\016signature_type\030\002 \001(\0162-." - "Catalyst.Protocol.Cryptography.Signature" - "Type\"\\\n\016SignatureBatch\022\022\n\nsignatures\030\001 \003" - "(\014\022\023\n\013public_keys\030\002 \003(\014\022\020\n\010messages\030\003 \003(" - "\014\022\017\n\007context\030\004 \001(\014*\230\001\n\rSignatureType\022\032\n\026" - "SIGNATURE_TYPE_UNKNOWN\020\000\022\026\n\022TRANSACTION_" - "PUBLIC\020\001\022\034\n\030TRANSACTION_CONFIDENTIAL\020\002\022\020" - "\n\014PROTOCOL_RPC\020\003\022\021\n\rPROTOCOL_PEER\020\004\022\020\n\014W" - "EB3_MESSAGE\020\005*\222\002\n\tErrorCode\022\026\n\022ERROR_COD" - "E_UNKNOWN\020\000\022\025\n\021INVALID_SIGNATURE\020\001\022\026\n\022IN" - "VALID_PUBLIC_KEY\020\002\022\027\n\023INVALID_PRIVATE_KE" - "Y\020\003\022\"\n\036SIGNATURE_VERIFICATION_FAILURE\020\004\022" - "\032\n\026INVALID_CONTEXT_LENGTH\020\005\022\031\n\025INVALID_B" - "ATCH_MESSAGE\020\006\022\033\n\027ARRAYS_NOT_EQUAL_LENGT" - "H\020\007\022\036\n\032BATCH_VERIFICATION_FAILURE\020\010\022\r\n\010N" - "O_ERROR\020\242\003B\002P\001b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Cryptography_2eproto_deps[1] = { - &::descriptor_table_Network_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Cryptography_2eproto_sccs[3] = { - &scc_info_Signature_Cryptography_2eproto.base, - &scc_info_SignatureBatch_Cryptography_2eproto.base, - &scc_info_SigningContext_Cryptography_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Cryptography_2eproto_once; -static bool descriptor_table_Cryptography_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Cryptography_2eproto = { - &descriptor_table_Cryptography_2eproto_initialized, descriptor_table_protodef_Cryptography_2eproto, "Cryptography.proto", 862, - &descriptor_table_Cryptography_2eproto_once, descriptor_table_Cryptography_2eproto_sccs, descriptor_table_Cryptography_2eproto_deps, 3, 1, - schemas, file_default_instances, TableStruct_Cryptography_2eproto::offsets, - file_level_metadata_Cryptography_2eproto, 3, file_level_enum_descriptors_Cryptography_2eproto, file_level_service_descriptors_Cryptography_2eproto, +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&_Signature_default_instance_), + reinterpret_cast(&_SigningContext_default_instance_), + reinterpret_cast(&_SignatureBatch_default_instance_), }; -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_Cryptography_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Cryptography_2eproto), true); -namespace Catalyst { -namespace Protocol { -namespace Cryptography { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SignatureType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_Cryptography_2eproto); - return file_level_enum_descriptors_Cryptography_2eproto[0]; +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "Cryptography.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3); +} + +} // namespace + +void TableStruct::Shutdown() { + _Signature_default_instance_.Shutdown(); + delete file_level_metadata[0].reflection; + _SigningContext_default_instance_.Shutdown(); + delete file_level_metadata[1].reflection; + _SignatureBatch_default_instance_.Shutdown(); + delete file_level_metadata[2].reflection; +} + +void TableStruct::InitDefaultsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::internal::InitProtobufDefaults(); + ::Catalyst::Protocol::Network::protobuf_Network_2eproto::InitDefaults(); + _Signature_default_instance_.DefaultConstruct(); + _SigningContext_default_instance_.DefaultConstruct(); + _SignatureBatch_default_instance_.DefaultConstruct(); + _Signature_default_instance_.get_mutable()->signing_context_ = const_cast< ::Catalyst::Protocol::Cryptography::SigningContext*>( + ::Catalyst::Protocol::Cryptography::SigningContext::internal_default_instance()); +} + +void InitDefaults() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); +} +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] = { + "\n\022Cryptography.proto\022\036Catalyst.Protocol." + "Cryptography\032\rNetwork.proto\"g\n\tSignature" + "\022G\n\017signing_context\030\001 \001(\0132..Catalyst.Pro" + "tocol.Cryptography.SigningContext\022\021\n\traw" + "_bytes\030\002 \001(\014\"\225\001\n\016SigningContext\022<\n\014netwo" + "rk_type\030\001 \001(\0162&.Catalyst.Protocol.Networ" + "k.NetworkType\022E\n\016signature_type\030\002 \001(\0162-." + "Catalyst.Protocol.Cryptography.Signature" + "Type\"\\\n\016SignatureBatch\022\022\n\nsignatures\030\001 \003" + "(\014\022\023\n\013public_keys\030\002 \003(\014\022\020\n\010messages\030\003 \003(" + "\014\022\017\n\007context\030\004 \001(\014*\230\001\n\rSignatureType\022\032\n\026" + "SIGNATURE_TYPE_UNKNOWN\020\000\022\026\n\022TRANSACTION_" + "PUBLIC\020\001\022\034\n\030TRANSACTION_CONFIDENTIAL\020\002\022\020" + "\n\014PROTOCOL_RPC\020\003\022\021\n\rPROTOCOL_PEER\020\004\022\020\n\014W" + "EB3_MESSAGE\020\005*\222\002\n\tErrorCode\022\026\n\022ERROR_COD" + "E_UNKNOWN\020\000\022\025\n\021INVALID_SIGNATURE\020\001\022\026\n\022IN" + "VALID_PUBLIC_KEY\020\002\022\027\n\023INVALID_PRIVATE_KE" + "Y\020\003\022\"\n\036SIGNATURE_VERIFICATION_FAILURE\020\004\022" + "\032\n\026INVALID_CONTEXT_LENGTH\020\005\022\031\n\025INVALID_B" + "ATCH_MESSAGE\020\006\022\033\n\027ARRAYS_NOT_EQUAL_LENGT" + "H\020\007\022\036\n\032BATCH_VERIFICATION_FAILURE\020\010\022\r\n\010N" + "O_ERROR\020\242\003B\002P\001b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 862); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Cryptography.proto", &protobuf_RegisterTypes); + ::Catalyst::Protocol::Network::protobuf_Network_2eproto::AddDescriptors(); + ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; + +} // namespace protobuf_Cryptography_2eproto + +const ::google::protobuf::EnumDescriptor* SignatureType_descriptor() { + protobuf_Cryptography_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Cryptography_2eproto::file_level_enum_descriptors[0]; } bool SignatureType_IsValid(int value) { switch (value) { @@ -181,9 +185,9 @@ bool SignatureType_IsValid(int value) { } } -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_Cryptography_2eproto); - return file_level_enum_descriptors_Cryptography_2eproto[1]; +const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor() { + protobuf_Cryptography_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Cryptography_2eproto::file_level_enum_descriptors[1]; } bool ErrorCode_IsValid(int value) { switch (value) { @@ -206,44 +210,40 @@ bool ErrorCode_IsValid(int value) { // =================================================================== -void Signature::InitAsDefaultInstance() { - ::Catalyst::Protocol::Cryptography::_Signature_default_instance_._instance.get_mutable()->signing_context_ = const_cast< ::Catalyst::Protocol::Cryptography::SigningContext*>( - ::Catalyst::Protocol::Cryptography::SigningContext::internal_default_instance()); -} -class Signature::_Internal { - public: - static const ::Catalyst::Protocol::Cryptography::SigningContext& signing_context(const Signature* msg); -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Signature::kSigningContextFieldNumber; +const int Signature::kRawBytesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::Catalyst::Protocol::Cryptography::SigningContext& -Signature::_Internal::signing_context(const Signature* msg) { - return *msg->signing_context_; -} Signature::Signature() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Cryptography_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Cryptography.Signature) } Signature::Signature(const Signature& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - raw_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_raw_bytes().empty()) { - raw_bytes_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.raw_bytes_); + raw_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.raw_bytes().size() > 0) { + raw_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_bytes_); } - if (from._internal_has_signing_context()) { + if (from.has_signing_context()) { signing_context_ = new ::Catalyst::Protocol::Cryptography::SigningContext(*from.signing_context_); } else { - signing_context_ = nullptr; + signing_context_ = NULL; } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Cryptography.Signature) } void Signature::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Signature_Cryptography_2eproto.base); - raw_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - signing_context_ = nullptr; + raw_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signing_context_ = NULL; + _cached_size_ = 0; } Signature::~Signature() { @@ -252,99 +252,133 @@ Signature::~Signature() { } void Signature::SharedDtor() { - raw_bytes_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete signing_context_; + raw_bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) { + delete signing_context_; + } } void Signature::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Signature::descriptor() { + protobuf_Cryptography_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Cryptography_2eproto::file_level_metadata[0].descriptor; } + const Signature& Signature::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Signature_Cryptography_2eproto.base); + protobuf_Cryptography_2eproto::InitDefaults(); return *internal_default_instance(); } +Signature* Signature::New(::google::protobuf::Arena* arena) const { + Signature* n = new Signature; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void Signature::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Cryptography.Signature) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - raw_bytes_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && signing_context_ != nullptr) { + raw_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && signing_context_ != NULL) { delete signing_context_; } - signing_context_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* Signature::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + signing_context_ = NULL; +} + +bool Signature::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Cryptography.Signature) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_signing_context(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_signing_context())); + } else { + goto handle_unusual; + } + break; + } + // bytes raw_bytes = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_raw_bytes(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_raw_bytes())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Cryptography.Signature) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Cryptography.Signature) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* Signature::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Cryptography.Signature) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void Signature::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Cryptography.Signature) // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; if (this->has_signing_context()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::signing_context(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->signing_context_, output); } // bytes raw_bytes = 2; if (this->raw_bytes().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_raw_bytes(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->raw_bytes(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Cryptography.Signature) +} + +::google::protobuf::uint8* Signature::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Cryptography.Signature) + // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; + if (this->has_signing_context()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *this->signing_context_, false, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // bytes raw_bytes = 2; + if (this->raw_bytes().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->raw_bytes(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Cryptography.Signature) return target; } @@ -353,42 +387,36 @@ size_t Signature::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Cryptography.Signature) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes raw_bytes = 2; if (this->raw_bytes().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_raw_bytes()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->raw_bytes()); } // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; if (this->has_signing_context()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *signing_context_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->signing_context_); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void Signature::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Signature::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Cryptography.Signature) GOOGLE_DCHECK_NE(&from, this); const Signature* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Cryptography.Signature) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Cryptography.Signature) MergeFrom(*source); @@ -399,19 +427,16 @@ void Signature::MergeFrom(const Signature& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Cryptography.Signature) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.raw_bytes().size() > 0) { - raw_bytes_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.raw_bytes_); + raw_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.raw_bytes_); } if (from.has_signing_context()) { - _internal_mutable_signing_context()->::Catalyst::Protocol::Cryptography::SigningContext::MergeFrom(from._internal_signing_context()); + mutable_signing_context()->::Catalyst::Protocol::Cryptography::SigningContext::MergeFrom(from.signing_context()); } } -void Signature::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Signature::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Cryptography.Signature) if (&from == this) return; Clear(); @@ -429,46 +454,147 @@ bool Signature::IsInitialized() const { return true; } +void Signature::Swap(Signature* other) { + if (other == this) return; + InternalSwap(other); +} void Signature::InternalSwap(Signature* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - raw_bytes_.Swap(&other->raw_bytes_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(signing_context_, other->signing_context_); + raw_bytes_.Swap(&other->raw_bytes_); + std::swap(signing_context_, other->signing_context_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata Signature::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata Signature::GetMetadata() const { + protobuf_Cryptography_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Cryptography_2eproto::file_level_metadata[0]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// Signature + +// .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; +bool Signature::has_signing_context() const { + return this != internal_default_instance() && signing_context_ != NULL; +} +void Signature::clear_signing_context() { + if (GetArenaNoVirtual() == NULL && signing_context_ != NULL) delete signing_context_; + signing_context_ = NULL; +} +const ::Catalyst::Protocol::Cryptography::SigningContext& Signature::signing_context() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.Signature.signing_context) + return signing_context_ != NULL ? *signing_context_ + : *::Catalyst::Protocol::Cryptography::SigningContext::internal_default_instance(); +} +::Catalyst::Protocol::Cryptography::SigningContext* Signature::mutable_signing_context() { + + if (signing_context_ == NULL) { + signing_context_ = new ::Catalyst::Protocol::Cryptography::SigningContext; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.Signature.signing_context) + return signing_context_; +} +::Catalyst::Protocol::Cryptography::SigningContext* Signature::release_signing_context() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Cryptography.Signature.signing_context) + + ::Catalyst::Protocol::Cryptography::SigningContext* temp = signing_context_; + signing_context_ = NULL; + return temp; +} +void Signature::set_allocated_signing_context(::Catalyst::Protocol::Cryptography::SigningContext* signing_context) { + delete signing_context_; + signing_context_ = signing_context; + if (signing_context) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Cryptography.Signature.signing_context) +} + +// bytes raw_bytes = 2; +void Signature::clear_raw_bytes() { + raw_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& Signature::raw_bytes() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.Signature.raw_bytes) + return raw_bytes_.GetNoArena(); +} +void Signature::set_raw_bytes(const ::std::string& value) { + + raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.Signature.raw_bytes) +} +#if LANG_CXX11 +void Signature::set_raw_bytes(::std::string&& value) { + + raw_bytes_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Cryptography.Signature.raw_bytes) +} +#endif +void Signature::set_raw_bytes(const char* value) { + + raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Cryptography.Signature.raw_bytes) +} +void Signature::set_raw_bytes(const void* value, size_t size) { + + raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Cryptography.Signature.raw_bytes) +} +::std::string* Signature::mutable_raw_bytes() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.Signature.raw_bytes) + return raw_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* Signature::release_raw_bytes() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Cryptography.Signature.raw_bytes) + + return raw_bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void Signature::set_allocated_raw_bytes(::std::string* raw_bytes) { + if (raw_bytes != NULL) { + + } else { + + } + raw_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), raw_bytes); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Cryptography.Signature.raw_bytes) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SigningContext::InitAsDefaultInstance() { -} -class SigningContext::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SigningContext::kNetworkTypeFieldNumber; +const int SigningContext::kSignatureTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SigningContext::SigningContext() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Cryptography_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Cryptography.SigningContext) } SigningContext::SigningContext(const SigningContext& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&network_type_, &from.network_type_, - static_cast(reinterpret_cast(&signature_type_) - - reinterpret_cast(&network_type_)) + sizeof(signature_type_)); + reinterpret_cast(&signature_type_) - + reinterpret_cast(&network_type_) + sizeof(signature_type_)); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Cryptography.SigningContext) } void SigningContext::SharedCtor() { - ::memset(&network_type_, 0, static_cast( - reinterpret_cast(&signature_type_) - - reinterpret_cast(&network_type_)) + sizeof(signature_type_)); + ::memset(&network_type_, 0, reinterpret_cast(&signature_type_) - + reinterpret_cast(&network_type_) + sizeof(signature_type_)); + _cached_size_ = 0; } SigningContext::~SigningContext() { @@ -480,93 +606,127 @@ void SigningContext::SharedDtor() { } void SigningContext::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SigningContext::descriptor() { + protobuf_Cryptography_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Cryptography_2eproto::file_level_metadata[1].descriptor; } + const SigningContext& SigningContext::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SigningContext_Cryptography_2eproto.base); + protobuf_Cryptography_2eproto::InitDefaults(); return *internal_default_instance(); } +SigningContext* SigningContext::New(::google::protobuf::Arena* arena) const { + SigningContext* n = new SigningContext; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SigningContext::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Cryptography.SigningContext) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&network_type_, 0, static_cast( - reinterpret_cast(&signature_type_) - - reinterpret_cast(&network_type_)) + sizeof(signature_type_)); - _internal_metadata_.Clear(); -} - -const char* SigningContext::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + ::memset(&network_type_, 0, reinterpret_cast(&signature_type_) - + reinterpret_cast(&network_type_) + sizeof(signature_type_)); +} + +bool SigningContext::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Cryptography.SigningContext) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .Catalyst.Protocol.Network.NetworkType network_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - _internal_set_network_type(static_cast<::Catalyst::Protocol::Network::NetworkType>(val)); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_network_type(static_cast< ::Catalyst::Protocol::Network::NetworkType >(value)); + } else { + goto handle_unusual; + } + break; + } + // .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - _internal_set_signature_type(static_cast<::Catalyst::Protocol::Cryptography::SignatureType>(val)); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 16u) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_signature_type(static_cast< ::Catalyst::Protocol::Cryptography::SignatureType >(value)); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Cryptography.SigningContext) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Cryptography.SigningContext) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SigningContext::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Cryptography.SigningContext) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SigningContext::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Cryptography.SigningContext) // .Catalyst.Protocol.Network.NetworkType network_type = 1; if (this->network_type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_network_type(), target); + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->network_type(), output); } // .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; if (this->signature_type() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_signature_type(), target); + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->signature_type(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Cryptography.SigningContext) +} + +::google::protobuf::uint8* SigningContext::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Cryptography.SigningContext) + // .Catalyst.Protocol.Network.NetworkType network_type = 1; + if (this->network_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->network_type(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; + if (this->signature_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->signature_type(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Cryptography.SigningContext) return target; } @@ -575,40 +735,34 @@ size_t SigningContext::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Cryptography.SigningContext) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // .Catalyst.Protocol.Network.NetworkType network_type = 1; if (this->network_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_network_type()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->network_type()); } // .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; if (this->signature_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_signature_type()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->signature_type()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SigningContext::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SigningContext::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Cryptography.SigningContext) GOOGLE_DCHECK_NE(&from, this); const SigningContext* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Cryptography.SigningContext) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Cryptography.SigningContext) MergeFrom(*source); @@ -619,18 +773,15 @@ void SigningContext::MergeFrom(const SigningContext& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Cryptography.SigningContext) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.network_type() != 0) { - _internal_set_network_type(from._internal_network_type()); + set_network_type(from.network_type()); } if (from.signature_type() != 0) { - _internal_set_signature_type(from._internal_signature_type()); + set_signature_type(from.signature_type()); } } -void SigningContext::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SigningContext::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Cryptography.SigningContext) if (&from == this) return; Clear(); @@ -648,48 +799,89 @@ bool SigningContext::IsInitialized() const { return true; } +void SigningContext::Swap(SigningContext* other) { + if (other == this) return; + InternalSwap(other); +} void SigningContext::InternalSwap(SigningContext* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(network_type_, other->network_type_); - swap(signature_type_, other->signature_type_); + std::swap(network_type_, other->network_type_); + std::swap(signature_type_, other->signature_type_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata SigningContext::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata SigningContext::GetMetadata() const { + protobuf_Cryptography_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Cryptography_2eproto::file_level_metadata[1]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SigningContext -// =================================================================== +// .Catalyst.Protocol.Network.NetworkType network_type = 1; +void SigningContext::clear_network_type() { + network_type_ = 0; +} +::Catalyst::Protocol::Network::NetworkType SigningContext::network_type() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.SigningContext.network_type) + return static_cast< ::Catalyst::Protocol::Network::NetworkType >(network_type_); +} +void SigningContext::set_network_type(::Catalyst::Protocol::Network::NetworkType value) { + + network_type_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SigningContext.network_type) +} -void SignatureBatch::InitAsDefaultInstance() { +// .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; +void SigningContext::clear_signature_type() { + signature_type_ = 0; } -class SignatureBatch::_Internal { - public: -}; +::Catalyst::Protocol::Cryptography::SignatureType SigningContext::signature_type() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.SigningContext.signature_type) + return static_cast< ::Catalyst::Protocol::Cryptography::SignatureType >(signature_type_); +} +void SigningContext::set_signature_type(::Catalyst::Protocol::Cryptography::SignatureType value) { + + signature_type_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SigningContext.signature_type) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignatureBatch::kSignaturesFieldNumber; +const int SignatureBatch::kPublicKeysFieldNumber; +const int SignatureBatch::kMessagesFieldNumber; +const int SignatureBatch::kContextFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SignatureBatch::SignatureBatch() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Cryptography_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Cryptography.SignatureBatch) } SignatureBatch::SignatureBatch(const SignatureBatch& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), + : ::google::protobuf::Message(), + _internal_metadata_(NULL), signatures_(from.signatures_), public_keys_(from.public_keys_), - messages_(from.messages_) { + messages_(from.messages_), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - context_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_context().empty()) { - context_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.context_); + context_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.context().size() > 0) { + context_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.context_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Cryptography.SignatureBatch) } void SignatureBatch::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SignatureBatch_Cryptography_2eproto.base); - context_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + context_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } SignatureBatch::~SignatureBatch() { @@ -698,139 +890,174 @@ SignatureBatch::~SignatureBatch() { } void SignatureBatch::SharedDtor() { - context_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + context_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void SignatureBatch::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SignatureBatch::descriptor() { + protobuf_Cryptography_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Cryptography_2eproto::file_level_metadata[2].descriptor; } + const SignatureBatch& SignatureBatch::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SignatureBatch_Cryptography_2eproto.base); + protobuf_Cryptography_2eproto::InitDefaults(); return *internal_default_instance(); } +SignatureBatch* SignatureBatch::New(::google::protobuf::Arena* arena) const { + SignatureBatch* n = new SignatureBatch; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SignatureBatch::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Cryptography.SignatureBatch) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - signatures_.Clear(); public_keys_.Clear(); messages_.Clear(); - context_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* SignatureBatch::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + context_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool SignatureBatch::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Cryptography.SignatureBatch) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated bytes signatures = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_signatures(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_signatures())); + } else { + goto handle_unusual; + } + break; + } + // repeated bytes public_keys = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_public_keys(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_public_keys())); + } else { + goto handle_unusual; + } + break; + } + // repeated bytes messages = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_messages(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_messages())); + } else { + goto handle_unusual; + } + break; + } + // bytes context = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_context(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 4: { + if (tag == 34u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_context())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Cryptography.SignatureBatch) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Cryptography.SignatureBatch) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SignatureBatch::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Cryptography.SignatureBatch) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SignatureBatch::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Cryptography.SignatureBatch) // repeated bytes signatures = 1; - for (int i = 0, n = this->_internal_signatures_size(); i < n; i++) { - const auto& s = this->_internal_signatures(i); - target = stream->WriteBytes(1, s, target); + for (int i = 0; i < this->signatures_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->signatures(i), output); } // repeated bytes public_keys = 2; - for (int i = 0, n = this->_internal_public_keys_size(); i < n; i++) { - const auto& s = this->_internal_public_keys(i); - target = stream->WriteBytes(2, s, target); + for (int i = 0; i < this->public_keys_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->public_keys(i), output); } // repeated bytes messages = 3; - for (int i = 0, n = this->_internal_messages_size(); i < n; i++) { - const auto& s = this->_internal_messages(i); - target = stream->WriteBytes(3, s, target); + for (int i = 0; i < this->messages_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->messages(i), output); } // bytes context = 4; if (this->context().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_context(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->context(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Cryptography.SignatureBatch) +} + +::google::protobuf::uint8* SignatureBatch::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Cryptography.SignatureBatch) + // repeated bytes signatures = 1; + for (int i = 0; i < this->signatures_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(1, this->signatures(i), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // repeated bytes public_keys = 2; + for (int i = 0; i < this->public_keys_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(2, this->public_keys(i), target); + } + + // repeated bytes messages = 3; + for (int i = 0; i < this->messages_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(3, this->messages(i), target); + } + + // bytes context = 4; + if (this->context().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->context(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Cryptography.SignatureBatch) return target; } @@ -839,59 +1066,53 @@ size_t SignatureBatch::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Cryptography.SignatureBatch) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // repeated bytes signatures = 1; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(signatures_.size()); - for (int i = 0, n = signatures_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - signatures_.Get(i)); + ::google::protobuf::internal::FromIntSize(this->signatures_size()); + for (int i = 0; i < this->signatures_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signatures(i)); } // repeated bytes public_keys = 2; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(public_keys_.size()); - for (int i = 0, n = public_keys_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - public_keys_.Get(i)); + ::google::protobuf::internal::FromIntSize(this->public_keys_size()); + for (int i = 0; i < this->public_keys_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_keys(i)); } // repeated bytes messages = 3; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(messages_.size()); - for (int i = 0, n = messages_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - messages_.Get(i)); + ::google::protobuf::internal::FromIntSize(this->messages_size()); + for (int i = 0; i < this->messages_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->messages(i)); } // bytes context = 4; if (this->context().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_context()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->context()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SignatureBatch::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SignatureBatch::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Cryptography.SignatureBatch) GOOGLE_DCHECK_NE(&from, this); const SignatureBatch* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Cryptography.SignatureBatch) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Cryptography.SignatureBatch) MergeFrom(*source); @@ -902,19 +1123,16 @@ void SignatureBatch::MergeFrom(const SignatureBatch& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Cryptography.SignatureBatch) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - signatures_.MergeFrom(from.signatures_); public_keys_.MergeFrom(from.public_keys_); messages_.MergeFrom(from.messages_); if (from.context().size() > 0) { - context_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.context_); + context_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.context_); } } -void SignatureBatch::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SignatureBatch::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Cryptography.SignatureBatch) if (&from == this) return; Clear(); @@ -932,36 +1150,249 @@ bool SignatureBatch::IsInitialized() const { return true; } +void SignatureBatch::Swap(SignatureBatch* other) { + if (other == this) return; + InternalSwap(other); +} void SignatureBatch::InternalSwap(SignatureBatch* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - signatures_.InternalSwap(&other->signatures_); - public_keys_.InternalSwap(&other->public_keys_); - messages_.InternalSwap(&other->messages_); - context_.Swap(&other->context_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + signatures_.UnsafeArenaSwap(&other->signatures_); + public_keys_.UnsafeArenaSwap(&other->public_keys_); + messages_.UnsafeArenaSwap(&other->messages_); + context_.Swap(&other->context_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata SignatureBatch::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata SignatureBatch::GetMetadata() const { + protobuf_Cryptography_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Cryptography_2eproto::file_level_metadata[2]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SignatureBatch + +// repeated bytes signatures = 1; +int SignatureBatch::signatures_size() const { + return signatures_.size(); +} +void SignatureBatch::clear_signatures() { + signatures_.Clear(); +} +const ::std::string& SignatureBatch::signatures(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) + return signatures_.Get(index); +} +::std::string* SignatureBatch::mutable_signatures(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) + return signatures_.Mutable(index); +} +void SignatureBatch::set_signatures(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) + signatures_.Mutable(index)->assign(value); +} +void SignatureBatch::set_signatures(int index, const char* value) { + signatures_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) +} +void SignatureBatch::set_signatures(int index, const void* value, size_t size) { + signatures_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) +} +::std::string* SignatureBatch::add_signatures() { + // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) + return signatures_.Add(); +} +void SignatureBatch::add_signatures(const ::std::string& value) { + signatures_.Add()->assign(value); + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) +} +void SignatureBatch::add_signatures(const char* value) { + signatures_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) +} +void SignatureBatch::add_signatures(const void* value, size_t size) { + signatures_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) +} +const ::google::protobuf::RepeatedPtrField< ::std::string>& +SignatureBatch::signatures() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) + return signatures_; +} +::google::protobuf::RepeatedPtrField< ::std::string>* +SignatureBatch::mutable_signatures() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) + return &signatures_; +} + +// repeated bytes public_keys = 2; +int SignatureBatch::public_keys_size() const { + return public_keys_.size(); +} +void SignatureBatch::clear_public_keys() { + public_keys_.Clear(); +} +const ::std::string& SignatureBatch::public_keys(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) + return public_keys_.Get(index); +} +::std::string* SignatureBatch::mutable_public_keys(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) + return public_keys_.Mutable(index); +} +void SignatureBatch::set_public_keys(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) + public_keys_.Mutable(index)->assign(value); +} +void SignatureBatch::set_public_keys(int index, const char* value) { + public_keys_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) +} +void SignatureBatch::set_public_keys(int index, const void* value, size_t size) { + public_keys_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) +} +::std::string* SignatureBatch::add_public_keys() { + // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) + return public_keys_.Add(); +} +void SignatureBatch::add_public_keys(const ::std::string& value) { + public_keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) +} +void SignatureBatch::add_public_keys(const char* value) { + public_keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) +} +void SignatureBatch::add_public_keys(const void* value, size_t size) { + public_keys_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) +} +const ::google::protobuf::RepeatedPtrField< ::std::string>& +SignatureBatch::public_keys() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) + return public_keys_; +} +::google::protobuf::RepeatedPtrField< ::std::string>* +SignatureBatch::mutable_public_keys() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) + return &public_keys_; +} + +// repeated bytes messages = 3; +int SignatureBatch::messages_size() const { + return messages_.size(); +} +void SignatureBatch::clear_messages() { + messages_.Clear(); +} +const ::std::string& SignatureBatch::messages(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.SignatureBatch.messages) + return messages_.Get(index); +} +::std::string* SignatureBatch::mutable_messages(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.messages) + return messages_.Mutable(index); +} +void SignatureBatch::set_messages(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SignatureBatch.messages) + messages_.Mutable(index)->assign(value); +} +void SignatureBatch::set_messages(int index, const char* value) { + messages_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Cryptography.SignatureBatch.messages) +} +void SignatureBatch::set_messages(int index, const void* value, size_t size) { + messages_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.messages) +} +::std::string* SignatureBatch::add_messages() { + // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.messages) + return messages_.Add(); +} +void SignatureBatch::add_messages(const ::std::string& value) { + messages_.Add()->assign(value); + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Cryptography.SignatureBatch.messages) +} +void SignatureBatch::add_messages(const char* value) { + messages_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:Catalyst.Protocol.Cryptography.SignatureBatch.messages) +} +void SignatureBatch::add_messages(const void* value, size_t size) { + messages_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.messages) +} +const ::google::protobuf::RepeatedPtrField< ::std::string>& +SignatureBatch::messages() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.Cryptography.SignatureBatch.messages) + return messages_; +} +::google::protobuf::RepeatedPtrField< ::std::string>* +SignatureBatch::mutable_messages() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Cryptography.SignatureBatch.messages) + return &messages_; +} + +// bytes context = 4; +void SignatureBatch::clear_context() { + context_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SignatureBatch::context() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.SignatureBatch.context) + return context_.GetNoArena(); +} +void SignatureBatch::set_context(const ::std::string& value) { + + context_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SignatureBatch.context) +} +#if LANG_CXX11 +void SignatureBatch::set_context(::std::string&& value) { + + context_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Cryptography.SignatureBatch.context) +} +#endif +void SignatureBatch::set_context(const char* value) { + + context_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Cryptography.SignatureBatch.context) +} +void SignatureBatch::set_context(const void* value, size_t size) { + + context_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.context) +} +::std::string* SignatureBatch::mutable_context() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.context) + return context_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SignatureBatch::release_context() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Cryptography.SignatureBatch.context) + + return context_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SignatureBatch::set_allocated_context(::std::string* context) { + if (context != NULL) { + + } else { + + } + context_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), context); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Cryptography.SignatureBatch.context) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) + } // namespace Cryptography } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Cryptography::Signature* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Cryptography::Signature >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Cryptography::Signature >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Cryptography::SigningContext* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Cryptography::SigningContext >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Cryptography::SigningContext >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Cryptography::SignatureBatch* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Cryptography::SignatureBatch >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Cryptography::SignatureBatch >(arena); -} -PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include diff --git a/packages/sdk-cpp/src/Cryptography.pb.h b/packages/sdk-cpp/src/Cryptography.pb.h index 5d59230..ee7c883 100644 --- a/packages/sdk-cpp/src/Cryptography.pb.h +++ b/packages/sdk-cpp/src/Cryptography.pb.h @@ -1,33 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Cryptography.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_Cryptography_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_Cryptography_2eproto +#ifndef PROTOBUF_Cryptography_2eproto__INCLUDED +#define PROTOBUF_Cryptography_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3011000 +#include + +#if GOOGLE_PROTOBUF_VERSION < 3002000 #error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update +#error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3002000 < GOOGLE_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 incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif -#include #include #include #include -#include #include -#include #include -#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -35,27 +31,6 @@ #include #include "Network.pb.h" // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_Cryptography_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_Cryptography_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Cryptography_2eproto; namespace Catalyst { namespace Protocol { namespace Cryptography { @@ -69,47 +44,52 @@ class SigningContext; class SigningContextDefaultTypeInternal; extern SigningContextDefaultTypeInternal _SigningContext_default_instance_; } // namespace Cryptography +namespace Network { +} // namespace Network } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> ::Catalyst::Protocol::Cryptography::Signature* Arena::CreateMaybeMessage<::Catalyst::Protocol::Cryptography::Signature>(Arena*); -template<> ::Catalyst::Protocol::Cryptography::SignatureBatch* Arena::CreateMaybeMessage<::Catalyst::Protocol::Cryptography::SignatureBatch>(Arena*); -template<> ::Catalyst::Protocol::Cryptography::SigningContext* Arena::CreateMaybeMessage<::Catalyst::Protocol::Cryptography::SigningContext>(Arena*); -PROTOBUF_NAMESPACE_CLOSE + namespace Catalyst { namespace Protocol { namespace Cryptography { -enum SignatureType : int { +namespace protobuf_Cryptography_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::uint32 offsets[]; + static void InitDefaultsImpl(); + static void Shutdown(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_Cryptography_2eproto + +enum SignatureType { SIGNATURE_TYPE_UNKNOWN = 0, TRANSACTION_PUBLIC = 1, TRANSACTION_CONFIDENTIAL = 2, PROTOCOL_RPC = 3, PROTOCOL_PEER = 4, WEB3_MESSAGE = 5, - SignatureType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - SignatureType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + SignatureType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + SignatureType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max }; bool SignatureType_IsValid(int value); -constexpr SignatureType SignatureType_MIN = SIGNATURE_TYPE_UNKNOWN; -constexpr SignatureType SignatureType_MAX = WEB3_MESSAGE; -constexpr int SignatureType_ARRAYSIZE = SignatureType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SignatureType_descriptor(); -template -inline const std::string& SignatureType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function SignatureType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - SignatureType_descriptor(), enum_t_value); +const SignatureType SignatureType_MIN = SIGNATURE_TYPE_UNKNOWN; +const SignatureType SignatureType_MAX = WEB3_MESSAGE; +const int SignatureType_ARRAYSIZE = SignatureType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SignatureType_descriptor(); +inline const ::std::string& SignatureType_Name(SignatureType value) { + return ::google::protobuf::internal::NameOfEnum( + SignatureType_descriptor(), value); } inline bool SignatureType_Parse( - const std::string& name, SignatureType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + const ::std::string& name, SignatureType* value) { + return ::google::protobuf::internal::ParseNamedEnum( SignatureType_descriptor(), name, value); } -enum ErrorCode : int { +enum ErrorCode { ERROR_CODE_UNKNOWN = 0, INVALID_SIGNATURE = 1, INVALID_PUBLIC_KEY = 2, @@ -120,660 +100,453 @@ enum ErrorCode : int { ARRAYS_NOT_EQUAL_LENGTH = 7, BATCH_VERIFICATION_FAILURE = 8, NO_ERROR = 418, - ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max }; bool ErrorCode_IsValid(int value); -constexpr ErrorCode ErrorCode_MIN = ERROR_CODE_UNKNOWN; -constexpr ErrorCode ErrorCode_MAX = NO_ERROR; -constexpr int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor(); -template -inline const std::string& ErrorCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ErrorCode_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ErrorCode_descriptor(), enum_t_value); +const ErrorCode ErrorCode_MIN = ERROR_CODE_UNKNOWN; +const ErrorCode ErrorCode_MAX = NO_ERROR; +const int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor(); +inline const ::std::string& ErrorCode_Name(ErrorCode value) { + return ::google::protobuf::internal::NameOfEnum( + ErrorCode_descriptor(), value); } inline bool ErrorCode_Parse( - const std::string& name, ErrorCode* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + const ::std::string& name, ErrorCode* value) { + return ::google::protobuf::internal::ParseNamedEnum( ErrorCode_descriptor(), name, value); } // =================================================================== -class Signature : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Cryptography.Signature) */ { +class Signature : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Cryptography.Signature) */ { public: Signature(); virtual ~Signature(); Signature(const Signature& 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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const Signature& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Signature* internal_default_instance() { return reinterpret_cast( &_Signature_default_instance_); } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(Signature& a, Signature& b) { - a.Swap(&b); - } - inline void Swap(Signature* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(Signature* other); // implements Message ---------------------------------------------- - inline Signature* New() const final { - return CreateMaybeMessage(nullptr); - } + inline Signature* New() const PROTOBUF_FINAL { return New(NULL); } - Signature* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + Signature* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const Signature& from); void MergeFrom(const Signature& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(Signature* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Cryptography.Signature"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Cryptography_2eproto); - return ::descriptor_table_Cryptography_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kRawBytesFieldNumber = 2, - kSigningContextFieldNumber = 1, - }; // bytes raw_bytes = 2; void clear_raw_bytes(); - const std::string& raw_bytes() const; - void set_raw_bytes(const std::string& value); - void set_raw_bytes(std::string&& value); + static const int kRawBytesFieldNumber = 2; + const ::std::string& raw_bytes() const; + void set_raw_bytes(const ::std::string& value); + #if LANG_CXX11 + void set_raw_bytes(::std::string&& value); + #endif void set_raw_bytes(const char* value); void set_raw_bytes(const void* value, size_t size); - std::string* mutable_raw_bytes(); - std::string* release_raw_bytes(); - void set_allocated_raw_bytes(std::string* raw_bytes); - private: - const std::string& _internal_raw_bytes() const; - void _internal_set_raw_bytes(const std::string& value); - std::string* _internal_mutable_raw_bytes(); - public: + ::std::string* mutable_raw_bytes(); + ::std::string* release_raw_bytes(); + void set_allocated_raw_bytes(::std::string* raw_bytes); // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; bool has_signing_context() const; - private: - bool _internal_has_signing_context() const; - public: void clear_signing_context(); + static const int kSigningContextFieldNumber = 1; const ::Catalyst::Protocol::Cryptography::SigningContext& signing_context() const; - ::Catalyst::Protocol::Cryptography::SigningContext* release_signing_context(); ::Catalyst::Protocol::Cryptography::SigningContext* mutable_signing_context(); + ::Catalyst::Protocol::Cryptography::SigningContext* release_signing_context(); void set_allocated_signing_context(::Catalyst::Protocol::Cryptography::SigningContext* signing_context); - private: - const ::Catalyst::Protocol::Cryptography::SigningContext& _internal_signing_context() const; - ::Catalyst::Protocol::Cryptography::SigningContext* _internal_mutable_signing_context(); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Cryptography.Signature) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_bytes_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr raw_bytes_; ::Catalyst::Protocol::Cryptography::SigningContext* signing_context_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Cryptography_2eproto; + mutable int _cached_size_; + friend struct protobuf_Cryptography_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SigningContext : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Cryptography.SigningContext) */ { +class SigningContext : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Cryptography.SigningContext) */ { public: SigningContext(); virtual ~SigningContext(); SigningContext(const SigningContext& from); - SigningContext(SigningContext&& from) noexcept - : SigningContext() { - *this = ::std::move(from); - } inline SigningContext& operator=(const SigningContext& from) { CopyFrom(from); return *this; } - inline SigningContext& operator=(SigningContext&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SigningContext& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SigningContext* internal_default_instance() { return reinterpret_cast( &_SigningContext_default_instance_); } - static constexpr int kIndexInFileMessages = - 1; - friend void swap(SigningContext& a, SigningContext& b) { - a.Swap(&b); - } - inline void Swap(SigningContext* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SigningContext* other); // implements Message ---------------------------------------------- - inline SigningContext* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SigningContext* New() const PROTOBUF_FINAL { return New(NULL); } - SigningContext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SigningContext* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SigningContext& from); void MergeFrom(const SigningContext& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SigningContext* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Cryptography.SigningContext"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Cryptography_2eproto); - return ::descriptor_table_Cryptography_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kNetworkTypeFieldNumber = 1, - kSignatureTypeFieldNumber = 2, - }; // .Catalyst.Protocol.Network.NetworkType network_type = 1; void clear_network_type(); + static const int kNetworkTypeFieldNumber = 1; ::Catalyst::Protocol::Network::NetworkType network_type() const; void set_network_type(::Catalyst::Protocol::Network::NetworkType value); - private: - ::Catalyst::Protocol::Network::NetworkType _internal_network_type() const; - void _internal_set_network_type(::Catalyst::Protocol::Network::NetworkType value); - public: // .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; void clear_signature_type(); + static const int kSignatureTypeFieldNumber = 2; ::Catalyst::Protocol::Cryptography::SignatureType signature_type() const; void set_signature_type(::Catalyst::Protocol::Cryptography::SignatureType value); - private: - ::Catalyst::Protocol::Cryptography::SignatureType _internal_signature_type() const; - void _internal_set_signature_type(::Catalyst::Protocol::Cryptography::SignatureType value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Cryptography.SigningContext) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; int network_type_; int signature_type_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Cryptography_2eproto; + mutable int _cached_size_; + friend struct protobuf_Cryptography_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SignatureBatch : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Cryptography.SignatureBatch) */ { +class SignatureBatch : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Cryptography.SignatureBatch) */ { public: SignatureBatch(); virtual ~SignatureBatch(); SignatureBatch(const SignatureBatch& from); - SignatureBatch(SignatureBatch&& from) noexcept - : SignatureBatch() { - *this = ::std::move(from); - } inline SignatureBatch& operator=(const SignatureBatch& from) { CopyFrom(from); return *this; } - inline SignatureBatch& operator=(SignatureBatch&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SignatureBatch& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SignatureBatch* internal_default_instance() { return reinterpret_cast( &_SignatureBatch_default_instance_); } - static constexpr int kIndexInFileMessages = - 2; - friend void swap(SignatureBatch& a, SignatureBatch& b) { - a.Swap(&b); - } - inline void Swap(SignatureBatch* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SignatureBatch* other); // implements Message ---------------------------------------------- - inline SignatureBatch* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SignatureBatch* New() const PROTOBUF_FINAL { return New(NULL); } - SignatureBatch* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SignatureBatch* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SignatureBatch& from); void MergeFrom(const SignatureBatch& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SignatureBatch* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Cryptography.SignatureBatch"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Cryptography_2eproto); - return ::descriptor_table_Cryptography_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kSignaturesFieldNumber = 1, - kPublicKeysFieldNumber = 2, - kMessagesFieldNumber = 3, - kContextFieldNumber = 4, - }; // repeated bytes signatures = 1; int signatures_size() const; - private: - int _internal_signatures_size() const; - public: void clear_signatures(); - const std::string& signatures(int index) const; - std::string* mutable_signatures(int index); - void set_signatures(int index, const std::string& value); - void set_signatures(int index, std::string&& value); + static const int kSignaturesFieldNumber = 1; + const ::std::string& signatures(int index) const; + ::std::string* mutable_signatures(int index); + void set_signatures(int index, const ::std::string& value); void set_signatures(int index, const char* value); void set_signatures(int index, const void* value, size_t size); - std::string* add_signatures(); - void add_signatures(const std::string& value); - void add_signatures(std::string&& value); + ::std::string* add_signatures(); + void add_signatures(const ::std::string& value); void add_signatures(const char* value); void add_signatures(const void* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& signatures() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_signatures(); - private: - const std::string& _internal_signatures(int index) const; - std::string* _internal_add_signatures(); - public: + const ::google::protobuf::RepeatedPtrField< ::std::string>& signatures() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_signatures(); // repeated bytes public_keys = 2; int public_keys_size() const; - private: - int _internal_public_keys_size() const; - public: void clear_public_keys(); - const std::string& public_keys(int index) const; - std::string* mutable_public_keys(int index); - void set_public_keys(int index, const std::string& value); - void set_public_keys(int index, std::string&& value); + static const int kPublicKeysFieldNumber = 2; + const ::std::string& public_keys(int index) const; + ::std::string* mutable_public_keys(int index); + void set_public_keys(int index, const ::std::string& value); void set_public_keys(int index, const char* value); void set_public_keys(int index, const void* value, size_t size); - std::string* add_public_keys(); - void add_public_keys(const std::string& value); - void add_public_keys(std::string&& value); + ::std::string* add_public_keys(); + void add_public_keys(const ::std::string& value); void add_public_keys(const char* value); void add_public_keys(const void* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& public_keys() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_public_keys(); - private: - const std::string& _internal_public_keys(int index) const; - std::string* _internal_add_public_keys(); - public: + const ::google::protobuf::RepeatedPtrField< ::std::string>& public_keys() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_public_keys(); // repeated bytes messages = 3; int messages_size() const; - private: - int _internal_messages_size() const; - public: void clear_messages(); - const std::string& messages(int index) const; - std::string* mutable_messages(int index); - void set_messages(int index, const std::string& value); - void set_messages(int index, std::string&& value); + static const int kMessagesFieldNumber = 3; + const ::std::string& messages(int index) const; + ::std::string* mutable_messages(int index); + void set_messages(int index, const ::std::string& value); void set_messages(int index, const char* value); void set_messages(int index, const void* value, size_t size); - std::string* add_messages(); - void add_messages(const std::string& value); - void add_messages(std::string&& value); + ::std::string* add_messages(); + void add_messages(const ::std::string& value); void add_messages(const char* value); void add_messages(const void* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& messages() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_messages(); - private: - const std::string& _internal_messages(int index) const; - std::string* _internal_add_messages(); - public: + const ::google::protobuf::RepeatedPtrField< ::std::string>& messages() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_messages(); // bytes context = 4; void clear_context(); - const std::string& context() const; - void set_context(const std::string& value); - void set_context(std::string&& value); + static const int kContextFieldNumber = 4; + const ::std::string& context() const; + void set_context(const ::std::string& value); + #if LANG_CXX11 + void set_context(::std::string&& value); + #endif void set_context(const char* value); void set_context(const void* value, size_t size); - std::string* mutable_context(); - std::string* release_context(); - void set_allocated_context(std::string* context); - private: - const std::string& _internal_context() const; - void _internal_set_context(const std::string& value); - std::string* _internal_mutable_context(); - public: + ::std::string* mutable_context(); + ::std::string* release_context(); + void set_allocated_context(::std::string* context); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Cryptography.SignatureBatch) private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField signatures_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField public_keys_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField messages_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr context_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Cryptography_2eproto; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::std::string> signatures_; + ::google::protobuf::RepeatedPtrField< ::std::string> public_keys_; + ::google::protobuf::RepeatedPtrField< ::std::string> messages_; + ::google::protobuf::internal::ArenaStringPtr context_; + mutable int _cached_size_; + friend struct protobuf_Cryptography_2eproto::TableStruct; }; // =================================================================== // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +#if !PROTOBUF_INLINE_NOT_IN_HEADERS // Signature // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; -inline bool Signature::_internal_has_signing_context() const { - return this != internal_default_instance() && signing_context_ != nullptr; -} inline bool Signature::has_signing_context() const { - return _internal_has_signing_context(); + return this != internal_default_instance() && signing_context_ != NULL; } inline void Signature::clear_signing_context() { - if (GetArenaNoVirtual() == nullptr && signing_context_ != nullptr) { - delete signing_context_; - } - signing_context_ = nullptr; -} -inline const ::Catalyst::Protocol::Cryptography::SigningContext& Signature::_internal_signing_context() const { - const ::Catalyst::Protocol::Cryptography::SigningContext* p = signing_context_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Cryptography::_SigningContext_default_instance_); + if (GetArenaNoVirtual() == NULL && signing_context_ != NULL) delete signing_context_; + signing_context_ = NULL; } inline const ::Catalyst::Protocol::Cryptography::SigningContext& Signature::signing_context() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.Signature.signing_context) - return _internal_signing_context(); + return signing_context_ != NULL ? *signing_context_ + : *::Catalyst::Protocol::Cryptography::SigningContext::internal_default_instance(); +} +inline ::Catalyst::Protocol::Cryptography::SigningContext* Signature::mutable_signing_context() { + + if (signing_context_ == NULL) { + signing_context_ = new ::Catalyst::Protocol::Cryptography::SigningContext; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.Signature.signing_context) + return signing_context_; } inline ::Catalyst::Protocol::Cryptography::SigningContext* Signature::release_signing_context() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Cryptography.Signature.signing_context) ::Catalyst::Protocol::Cryptography::SigningContext* temp = signing_context_; - signing_context_ = nullptr; + signing_context_ = NULL; return temp; } -inline ::Catalyst::Protocol::Cryptography::SigningContext* Signature::_internal_mutable_signing_context() { - - if (signing_context_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Cryptography::SigningContext>(GetArenaNoVirtual()); - signing_context_ = p; - } - return signing_context_; -} -inline ::Catalyst::Protocol::Cryptography::SigningContext* Signature::mutable_signing_context() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.Signature.signing_context) - return _internal_mutable_signing_context(); -} inline void Signature::set_allocated_signing_context(::Catalyst::Protocol::Cryptography::SigningContext* signing_context) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete signing_context_; - } + delete signing_context_; + signing_context_ = signing_context; if (signing_context) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - signing_context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, signing_context, submessage_arena); - } } else { } - signing_context_ = signing_context; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Cryptography.Signature.signing_context) } // bytes raw_bytes = 2; inline void Signature::clear_raw_bytes() { - raw_bytes_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + raw_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& Signature::raw_bytes() const { +inline const ::std::string& Signature::raw_bytes() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.Signature.raw_bytes) - return _internal_raw_bytes(); -} -inline void Signature::set_raw_bytes(const std::string& value) { - _internal_set_raw_bytes(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.Signature.raw_bytes) -} -inline std::string* Signature::mutable_raw_bytes() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.Signature.raw_bytes) - return _internal_mutable_raw_bytes(); -} -inline const std::string& Signature::_internal_raw_bytes() const { return raw_bytes_.GetNoArena(); } -inline void Signature::_internal_set_raw_bytes(const std::string& value) { +inline void Signature::set_raw_bytes(const ::std::string& value) { - raw_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.Signature.raw_bytes) } -inline void Signature::set_raw_bytes(std::string&& value) { +#if LANG_CXX11 +inline void Signature::set_raw_bytes(::std::string&& value) { raw_bytes_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Cryptography.Signature.raw_bytes) } +#endif inline void Signature::set_raw_bytes(const char* value) { - GOOGLE_DCHECK(value != nullptr); - raw_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Cryptography.Signature.raw_bytes) } inline void Signature::set_raw_bytes(const void* value, size_t size) { - raw_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + raw_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Cryptography.Signature.raw_bytes) } -inline std::string* Signature::_internal_mutable_raw_bytes() { +inline ::std::string* Signature::mutable_raw_bytes() { - return raw_bytes_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.Signature.raw_bytes) + return raw_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Signature::release_raw_bytes() { +inline ::std::string* Signature::release_raw_bytes() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Cryptography.Signature.raw_bytes) - return raw_bytes_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return raw_bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Signature::set_allocated_raw_bytes(std::string* raw_bytes) { - if (raw_bytes != nullptr) { +inline void Signature::set_allocated_raw_bytes(::std::string* raw_bytes) { + if (raw_bytes != NULL) { } else { } - raw_bytes_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), raw_bytes); + raw_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), raw_bytes); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Cryptography.Signature.raw_bytes) } @@ -785,19 +558,13 @@ inline void Signature::set_allocated_raw_bytes(std::string* raw_bytes) { inline void SigningContext::clear_network_type() { network_type_ = 0; } -inline ::Catalyst::Protocol::Network::NetworkType SigningContext::_internal_network_type() const { - return static_cast< ::Catalyst::Protocol::Network::NetworkType >(network_type_); -} inline ::Catalyst::Protocol::Network::NetworkType SigningContext::network_type() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.SigningContext.network_type) - return _internal_network_type(); + return static_cast< ::Catalyst::Protocol::Network::NetworkType >(network_type_); } -inline void SigningContext::_internal_set_network_type(::Catalyst::Protocol::Network::NetworkType value) { +inline void SigningContext::set_network_type(::Catalyst::Protocol::Network::NetworkType value) { network_type_ = value; -} -inline void SigningContext::set_network_type(::Catalyst::Protocol::Network::NetworkType value) { - _internal_set_network_type(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SigningContext.network_type) } @@ -805,19 +572,13 @@ inline void SigningContext::set_network_type(::Catalyst::Protocol::Network::Netw inline void SigningContext::clear_signature_type() { signature_type_ = 0; } -inline ::Catalyst::Protocol::Cryptography::SignatureType SigningContext::_internal_signature_type() const { - return static_cast< ::Catalyst::Protocol::Cryptography::SignatureType >(signature_type_); -} inline ::Catalyst::Protocol::Cryptography::SignatureType SigningContext::signature_type() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.SigningContext.signature_type) - return _internal_signature_type(); + return static_cast< ::Catalyst::Protocol::Cryptography::SignatureType >(signature_type_); } -inline void SigningContext::_internal_set_signature_type(::Catalyst::Protocol::Cryptography::SignatureType value) { +inline void SigningContext::set_signature_type(::Catalyst::Protocol::Cryptography::SignatureType value) { signature_type_ = value; -} -inline void SigningContext::set_signature_type(::Catalyst::Protocol::Cryptography::SignatureType value) { - _internal_set_signature_type(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SigningContext.signature_type) } @@ -826,40 +587,25 @@ inline void SigningContext::set_signature_type(::Catalyst::Protocol::Cryptograph // SignatureBatch // repeated bytes signatures = 1; -inline int SignatureBatch::_internal_signatures_size() const { - return signatures_.size(); -} inline int SignatureBatch::signatures_size() const { - return _internal_signatures_size(); + return signatures_.size(); } inline void SignatureBatch::clear_signatures() { signatures_.Clear(); } -inline std::string* SignatureBatch::add_signatures() { - // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) - return _internal_add_signatures(); -} -inline const std::string& SignatureBatch::_internal_signatures(int index) const { - return signatures_.Get(index); -} -inline const std::string& SignatureBatch::signatures(int index) const { +inline const ::std::string& SignatureBatch::signatures(int index) const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) - return _internal_signatures(index); + return signatures_.Get(index); } -inline std::string* SignatureBatch::mutable_signatures(int index) { +inline ::std::string* SignatureBatch::mutable_signatures(int index) { // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) return signatures_.Mutable(index); } -inline void SignatureBatch::set_signatures(int index, const std::string& value) { +inline void SignatureBatch::set_signatures(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) signatures_.Mutable(index)->assign(value); } -inline void SignatureBatch::set_signatures(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) - signatures_.Mutable(index)->assign(std::move(value)); -} inline void SignatureBatch::set_signatures(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); signatures_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) } @@ -868,19 +614,15 @@ inline void SignatureBatch::set_signatures(int index, const void* value, size_t reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) } -inline std::string* SignatureBatch::_internal_add_signatures() { +inline ::std::string* SignatureBatch::add_signatures() { + // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) return signatures_.Add(); } -inline void SignatureBatch::add_signatures(const std::string& value) { +inline void SignatureBatch::add_signatures(const ::std::string& value) { signatures_.Add()->assign(value); // @@protoc_insertion_point(field_add:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) } -inline void SignatureBatch::add_signatures(std::string&& value) { - signatures_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) -} inline void SignatureBatch::add_signatures(const char* value) { - GOOGLE_DCHECK(value != nullptr); signatures_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) } @@ -888,52 +630,37 @@ inline void SignatureBatch::add_signatures(const void* value, size_t size) { signatures_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& SignatureBatch::signatures() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) return signatures_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField< ::std::string>* SignatureBatch::mutable_signatures() { // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Cryptography.SignatureBatch.signatures) return &signatures_; } // repeated bytes public_keys = 2; -inline int SignatureBatch::_internal_public_keys_size() const { - return public_keys_.size(); -} inline int SignatureBatch::public_keys_size() const { - return _internal_public_keys_size(); + return public_keys_.size(); } inline void SignatureBatch::clear_public_keys() { public_keys_.Clear(); } -inline std::string* SignatureBatch::add_public_keys() { - // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) - return _internal_add_public_keys(); -} -inline const std::string& SignatureBatch::_internal_public_keys(int index) const { - return public_keys_.Get(index); -} -inline const std::string& SignatureBatch::public_keys(int index) const { +inline const ::std::string& SignatureBatch::public_keys(int index) const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) - return _internal_public_keys(index); + return public_keys_.Get(index); } -inline std::string* SignatureBatch::mutable_public_keys(int index) { +inline ::std::string* SignatureBatch::mutable_public_keys(int index) { // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) return public_keys_.Mutable(index); } -inline void SignatureBatch::set_public_keys(int index, const std::string& value) { +inline void SignatureBatch::set_public_keys(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) public_keys_.Mutable(index)->assign(value); } -inline void SignatureBatch::set_public_keys(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) - public_keys_.Mutable(index)->assign(std::move(value)); -} inline void SignatureBatch::set_public_keys(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); public_keys_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) } @@ -942,19 +669,15 @@ inline void SignatureBatch::set_public_keys(int index, const void* value, size_t reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) } -inline std::string* SignatureBatch::_internal_add_public_keys() { +inline ::std::string* SignatureBatch::add_public_keys() { + // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) return public_keys_.Add(); } -inline void SignatureBatch::add_public_keys(const std::string& value) { +inline void SignatureBatch::add_public_keys(const ::std::string& value) { public_keys_.Add()->assign(value); // @@protoc_insertion_point(field_add:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) } -inline void SignatureBatch::add_public_keys(std::string&& value) { - public_keys_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) -} inline void SignatureBatch::add_public_keys(const char* value) { - GOOGLE_DCHECK(value != nullptr); public_keys_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) } @@ -962,52 +685,37 @@ inline void SignatureBatch::add_public_keys(const void* value, size_t size) { public_keys_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& SignatureBatch::public_keys() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) return public_keys_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField< ::std::string>* SignatureBatch::mutable_public_keys() { // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Cryptography.SignatureBatch.public_keys) return &public_keys_; } // repeated bytes messages = 3; -inline int SignatureBatch::_internal_messages_size() const { - return messages_.size(); -} inline int SignatureBatch::messages_size() const { - return _internal_messages_size(); + return messages_.size(); } inline void SignatureBatch::clear_messages() { messages_.Clear(); } -inline std::string* SignatureBatch::add_messages() { - // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.messages) - return _internal_add_messages(); -} -inline const std::string& SignatureBatch::_internal_messages(int index) const { - return messages_.Get(index); -} -inline const std::string& SignatureBatch::messages(int index) const { +inline const ::std::string& SignatureBatch::messages(int index) const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.SignatureBatch.messages) - return _internal_messages(index); + return messages_.Get(index); } -inline std::string* SignatureBatch::mutable_messages(int index) { +inline ::std::string* SignatureBatch::mutable_messages(int index) { // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.messages) return messages_.Mutable(index); } -inline void SignatureBatch::set_messages(int index, const std::string& value) { +inline void SignatureBatch::set_messages(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SignatureBatch.messages) messages_.Mutable(index)->assign(value); } -inline void SignatureBatch::set_messages(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SignatureBatch.messages) - messages_.Mutable(index)->assign(std::move(value)); -} inline void SignatureBatch::set_messages(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); messages_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Cryptography.SignatureBatch.messages) } @@ -1016,19 +724,15 @@ inline void SignatureBatch::set_messages(int index, const void* value, size_t si reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.messages) } -inline std::string* SignatureBatch::_internal_add_messages() { +inline ::std::string* SignatureBatch::add_messages() { + // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.messages) return messages_.Add(); } -inline void SignatureBatch::add_messages(const std::string& value) { +inline void SignatureBatch::add_messages(const ::std::string& value) { messages_.Add()->assign(value); // @@protoc_insertion_point(field_add:Catalyst.Protocol.Cryptography.SignatureBatch.messages) } -inline void SignatureBatch::add_messages(std::string&& value) { - messages_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:Catalyst.Protocol.Cryptography.SignatureBatch.messages) -} inline void SignatureBatch::add_messages(const char* value) { - GOOGLE_DCHECK(value != nullptr); messages_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:Catalyst.Protocol.Cryptography.SignatureBatch.messages) } @@ -1036,12 +740,12 @@ inline void SignatureBatch::add_messages(const void* value, size_t size) { messages_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.messages) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& SignatureBatch::messages() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.Cryptography.SignatureBatch.messages) return messages_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField< ::std::string>* SignatureBatch::mutable_messages() { // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Cryptography.SignatureBatch.messages) return &messages_; @@ -1049,67 +753,57 @@ SignatureBatch::mutable_messages() { // bytes context = 4; inline void SignatureBatch::clear_context() { - context_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + context_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SignatureBatch::context() const { +inline const ::std::string& SignatureBatch::context() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Cryptography.SignatureBatch.context) - return _internal_context(); -} -inline void SignatureBatch::set_context(const std::string& value) { - _internal_set_context(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SignatureBatch.context) -} -inline std::string* SignatureBatch::mutable_context() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.context) - return _internal_mutable_context(); -} -inline const std::string& SignatureBatch::_internal_context() const { return context_.GetNoArena(); } -inline void SignatureBatch::_internal_set_context(const std::string& value) { +inline void SignatureBatch::set_context(const ::std::string& value) { - context_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + context_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Cryptography.SignatureBatch.context) } -inline void SignatureBatch::set_context(std::string&& value) { +#if LANG_CXX11 +inline void SignatureBatch::set_context(::std::string&& value) { context_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Cryptography.SignatureBatch.context) } +#endif inline void SignatureBatch::set_context(const char* value) { - GOOGLE_DCHECK(value != nullptr); - context_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + context_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Cryptography.SignatureBatch.context) } inline void SignatureBatch::set_context(const void* value, size_t size) { - context_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + context_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Cryptography.SignatureBatch.context) } -inline std::string* SignatureBatch::_internal_mutable_context() { +inline ::std::string* SignatureBatch::mutable_context() { - return context_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Cryptography.SignatureBatch.context) + return context_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SignatureBatch::release_context() { +inline ::std::string* SignatureBatch::release_context() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Cryptography.SignatureBatch.context) - return context_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return context_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SignatureBatch::set_allocated_context(std::string* context) { - if (context != nullptr) { +inline void SignatureBatch::set_allocated_context(::std::string* context) { + if (context != NULL) { } else { } - context_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), context); + context_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), context); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Cryptography.SignatureBatch.context) } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -1117,26 +811,30 @@ inline void SignatureBatch::set_allocated_context(std::string* context) { // @@protoc_insertion_point(namespace_scope) + } // namespace Cryptography } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN +#ifndef SWIG +namespace google { +namespace protobuf { -template <> struct is_proto_enum< ::Catalyst::Protocol::Cryptography::SignatureType> : ::std::true_type {}; +template <> struct is_proto_enum< ::Catalyst::Protocol::Cryptography::SignatureType> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::Catalyst::Protocol::Cryptography::SignatureType>() { return ::Catalyst::Protocol::Cryptography::SignatureType_descriptor(); } -template <> struct is_proto_enum< ::Catalyst::Protocol::Cryptography::ErrorCode> : ::std::true_type {}; +template <> struct is_proto_enum< ::Catalyst::Protocol::Cryptography::ErrorCode> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::Catalyst::Protocol::Cryptography::ErrorCode>() { return ::Catalyst::Protocol::Cryptography::ErrorCode_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google +#endif // SWIG // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Cryptography_2eproto +#endif // PROTOBUF_Cryptography_2eproto__INCLUDED diff --git a/packages/sdk-cpp/src/Deltas.pb.cc b/packages/sdk-cpp/src/Deltas.pb.cc index 28a1e4c..b76d16b 100644 --- a/packages/sdk-cpp/src/Deltas.pb.cc +++ b/packages/sdk-cpp/src/Deltas.pb.cc @@ -1,174 +1,191 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Deltas.proto +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "Deltas.pb.h" #include +#include +#include +#include #include -#include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_Transaction_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CoinbaseEntry_Transaction_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Transaction_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ConfidentialEntry_Transaction_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Transaction_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_PublicEntry_Transaction_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; + namespace Catalyst { namespace Protocol { namespace Deltas { -class DeltaIndexDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class DeltaIndexDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _DeltaIndex_default_instance_; -class DeltaDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class DeltaDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _Delta_default_instance_; -} // namespace Deltas -} // namespace Protocol -} // namespace Catalyst -static void InitDefaultsscc_info_Delta_Deltas_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - { - void* ptr = &::Catalyst::Protocol::Deltas::_Delta_default_instance_; - new (ptr) ::Catalyst::Protocol::Deltas::Delta(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Deltas::Delta::InitAsDefaultInstance(); -} +namespace protobuf_Deltas_2eproto { -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_Delta_Deltas_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_Delta_Deltas_2eproto}, { - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_PublicEntry_Transaction_2eproto.base, - &scc_info_ConfidentialEntry_Transaction_2eproto.base, - &scc_info_CoinbaseEntry_Transaction_2eproto.base,}}; -static void InitDefaultsscc_info_DeltaIndex_Deltas_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +namespace { - { - void* ptr = &::Catalyst::Protocol::Deltas::_DeltaIndex_default_instance_; - new (ptr) ::Catalyst::Protocol::Deltas::DeltaIndex(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Deltas::DeltaIndex::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeltaIndex_Deltas_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DeltaIndex_Deltas_2eproto}, {}}; +::google::protobuf::Metadata file_level_metadata[2]; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Deltas_2eproto[2]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Deltas_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Deltas_2eproto = nullptr; +} // namespace -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Deltas_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct::offsets[] = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::DeltaIndex, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeltaIndex, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::DeltaIndex, height_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::DeltaIndex, cid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeltaIndex, height_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeltaIndex, cid_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::Delta, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Delta, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::Delta, previous_delta_dfs_hash_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::Delta, merkle_root_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::Delta, merkle_poda_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::Delta, time_stamp_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::Delta, public_entries_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::Delta, confidential_entries_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::Delta, coinbase_entries_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::Delta, state_root_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Deltas::Delta, delta_number_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::Catalyst::Protocol::Deltas::DeltaIndex)}, - { 7, -1, sizeof(::Catalyst::Protocol::Deltas::Delta)}, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Delta, previous_delta_dfs_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Delta, merkle_root_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Delta, merkle_poda_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Delta, time_stamp_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Delta, public_entries_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Delta, confidential_entries_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Delta, coinbase_entries_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Delta, state_root_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Delta, delta_number_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Delta, gas_used_), }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::Catalyst::Protocol::Deltas::_DeltaIndex_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Deltas::_Delta_default_instance_), +static const ::google::protobuf::internal::MigrationSchema schemas[] = { + { 0, -1, sizeof(DeltaIndex)}, + { 6, -1, sizeof(Delta)}, }; -const char descriptor_table_protodef_Deltas_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\014Deltas.proto\022\030Catalyst.Protocol.Deltas" - "\032\021Transaction.proto\032\037google/protobuf/tim" - "estamp.proto\")\n\nDeltaIndex\022\016\n\006height\030\001 \001" - "(\r\022\013\n\003cid\030\002 \001(\014\"\210\003\n\005Delta\022\037\n\027previous_de" - "lta_dfs_hash\030\001 \001(\014\022\023\n\013merkle_root\030\002 \001(\014\022" - "\023\n\013merkle_poda\030\003 \001(\014\022.\n\ntime_stamp\030\004 \001(\013" - "2\032.google.protobuf.Timestamp\022B\n\016public_e" - "ntries\030\005 \003(\0132*.Catalyst.Protocol.Transac" - "tion.PublicEntry\022N\n\024confidential_entries" - "\030\006 \003(\01320.Catalyst.Protocol.Transaction.C" - "onfidentialEntry\022F\n\020coinbase_entries\030\007 \003" - "(\0132,.Catalyst.Protocol.Transaction.Coinb" - "aseEntry\022\022\n\nstate_root\030\010 \001(\014\022\024\n\014delta_nu" - "mber\030\t \001(\003B\002P\001b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Deltas_2eproto_deps[2] = { - &::descriptor_table_Transaction_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Deltas_2eproto_sccs[2] = { - &scc_info_Delta_Deltas_2eproto.base, - &scc_info_DeltaIndex_Deltas_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Deltas_2eproto_once; -static bool descriptor_table_Deltas_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Deltas_2eproto = { - &descriptor_table_Deltas_2eproto_initialized, descriptor_table_protodef_Deltas_2eproto, "Deltas.proto", 542, - &descriptor_table_Deltas_2eproto_once, descriptor_table_Deltas_2eproto_sccs, descriptor_table_Deltas_2eproto_deps, 2, 2, - schemas, file_default_instances, TableStruct_Deltas_2eproto::offsets, - file_level_metadata_Deltas_2eproto, 2, file_level_enum_descriptors_Deltas_2eproto, file_level_service_descriptors_Deltas_2eproto, +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&_DeltaIndex_default_instance_), + reinterpret_cast(&_Delta_default_instance_), }; -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_Deltas_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Deltas_2eproto), true); -namespace Catalyst { -namespace Protocol { -namespace Deltas { +namespace { -// =================================================================== +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "Deltas.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} -void DeltaIndex::InitAsDefaultInstance() { +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -class DeltaIndex::_Internal { - public: -}; + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); +} + +} // namespace + +void TableStruct::Shutdown() { + _DeltaIndex_default_instance_.Shutdown(); + delete file_level_metadata[0].reflection; + _Delta_default_instance_.Shutdown(); + delete file_level_metadata[1].reflection; +} + +void TableStruct::InitDefaultsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::internal::InitProtobufDefaults(); + ::Catalyst::Protocol::Transaction::protobuf_Transaction_2eproto::InitDefaults(); + ::google::protobuf::protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaults(); + _DeltaIndex_default_instance_.DefaultConstruct(); + _Delta_default_instance_.DefaultConstruct(); + _Delta_default_instance_.get_mutable()->time_stamp_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} + +void InitDefaults() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); +} +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] = { + "\n\014Deltas.proto\022\030Catalyst.Protocol.Deltas" + "\032\021Transaction.proto\032\037google/protobuf/tim" + "estamp.proto\")\n\nDeltaIndex\022\016\n\006height\030\001 \001" + "(\r\022\013\n\003cid\030\002 \001(\014\"\232\003\n\005Delta\022\037\n\027previous_de" + "lta_dfs_hash\030\001 \001(\014\022\023\n\013merkle_root\030\002 \001(\014\022" + "\023\n\013merkle_poda\030\003 \001(\014\022.\n\ntime_stamp\030\004 \001(\013" + "2\032.google.protobuf.Timestamp\022B\n\016public_e" + "ntries\030\005 \003(\0132*.Catalyst.Protocol.Transac" + "tion.PublicEntry\022N\n\024confidential_entries" + "\030\006 \003(\01320.Catalyst.Protocol.Transaction.C" + "onfidentialEntry\022F\n\020coinbase_entries\030\007 \003" + "(\0132,.Catalyst.Protocol.Transaction.Coinb" + "aseEntry\022\022\n\nstate_root\030\010 \001(\014\022\024\n\014delta_nu" + "mber\030\t \001(\003\022\020\n\010gas_used\030\n \001(\003B\002P\001b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 560); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Deltas.proto", &protobuf_RegisterTypes); + ::Catalyst::Protocol::Transaction::protobuf_Transaction_2eproto::AddDescriptors(); + ::google::protobuf::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors(); + ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; + +} // namespace protobuf_Deltas_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DeltaIndex::kHeightFieldNumber; +const int DeltaIndex::kCidFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 DeltaIndex::DeltaIndex() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Deltas_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Deltas.DeltaIndex) } DeltaIndex::DeltaIndex(const DeltaIndex& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - cid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_cid().empty()) { - cid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cid_); + cid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.cid().size() > 0) { + cid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cid_); } height_ = from.height_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Deltas.DeltaIndex) } void DeltaIndex::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DeltaIndex_Deltas_2eproto.base); - cid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + cid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); height_ = 0u; + _cached_size_ = 0; } DeltaIndex::~DeltaIndex() { @@ -177,93 +194,126 @@ DeltaIndex::~DeltaIndex() { } void DeltaIndex::SharedDtor() { - cid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + cid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void DeltaIndex::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeltaIndex::descriptor() { + protobuf_Deltas_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Deltas_2eproto::file_level_metadata[0].descriptor; } + const DeltaIndex& DeltaIndex::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeltaIndex_Deltas_2eproto.base); + protobuf_Deltas_2eproto::InitDefaults(); return *internal_default_instance(); } +DeltaIndex* DeltaIndex::New(::google::protobuf::Arena* arena) const { + DeltaIndex* n = new DeltaIndex; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void DeltaIndex::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Deltas.DeltaIndex) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + cid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); height_ = 0u; - _internal_metadata_.Clear(); } -const char* DeltaIndex::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool DeltaIndex::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Deltas.DeltaIndex) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // uint32 height = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &height_))); + } else { + goto handle_unusual; + } + break; + } + // bytes cid = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_cid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_cid())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Deltas.DeltaIndex) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Deltas.DeltaIndex) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* DeltaIndex::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Deltas.DeltaIndex) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void DeltaIndex::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Deltas.DeltaIndex) // uint32 height = 1; if (this->height() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_height(), target); + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->height(), output); } // bytes cid = 2; if (this->cid().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_cid(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->cid(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Deltas.DeltaIndex) +} + +::google::protobuf::uint8* DeltaIndex::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Deltas.DeltaIndex) + // uint32 height = 1; + if (this->height() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->height(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // bytes cid = 2; + if (this->cid().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->cid(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Deltas.DeltaIndex) return target; } @@ -272,42 +322,36 @@ size_t DeltaIndex::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Deltas.DeltaIndex) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes cid = 2; if (this->cid().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_cid()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->cid()); } // uint32 height = 1; if (this->height() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_height()); + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->height()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void DeltaIndex::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DeltaIndex::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Deltas.DeltaIndex) GOOGLE_DCHECK_NE(&from, this); const DeltaIndex* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Deltas.DeltaIndex) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Deltas.DeltaIndex) MergeFrom(*source); @@ -318,19 +362,16 @@ void DeltaIndex::MergeFrom(const DeltaIndex& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Deltas.DeltaIndex) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.cid().size() > 0) { - cid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cid_); + cid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cid_); } if (from.height() != 0) { - _internal_set_height(from._internal_height()); + set_height(from.height()); } } -void DeltaIndex::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DeltaIndex::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Deltas.DeltaIndex) if (&from == this) return; Clear(); @@ -348,95 +389,158 @@ bool DeltaIndex::IsInitialized() const { return true; } +void DeltaIndex::Swap(DeltaIndex* other) { + if (other == this) return; + InternalSwap(other); +} void DeltaIndex::InternalSwap(DeltaIndex* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - cid_.Swap(&other->cid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(height_, other->height_); + cid_.Swap(&other->cid_); + std::swap(height_, other->height_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata DeltaIndex::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata DeltaIndex::GetMetadata() const { + protobuf_Deltas_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Deltas_2eproto::file_level_metadata[0]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// DeltaIndex -// =================================================================== - -void Delta::InitAsDefaultInstance() { - ::Catalyst::Protocol::Deltas::_Delta_default_instance_._instance.get_mutable()->time_stamp_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>( - PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance()); +// uint32 height = 1; +void DeltaIndex::clear_height() { + height_ = 0u; +} +::google::protobuf::uint32 DeltaIndex::height() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.DeltaIndex.height) + return height_; +} +void DeltaIndex::set_height(::google::protobuf::uint32 value) { + + height_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.DeltaIndex.height) } -class Delta::_Internal { - public: - static const PROTOBUF_NAMESPACE_ID::Timestamp& time_stamp(const Delta* msg); -}; -const PROTOBUF_NAMESPACE_ID::Timestamp& -Delta::_Internal::time_stamp(const Delta* msg) { - return *msg->time_stamp_; +// bytes cid = 2; +void DeltaIndex::clear_cid() { + cid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void Delta::clear_time_stamp() { - if (GetArenaNoVirtual() == nullptr && time_stamp_ != nullptr) { - delete time_stamp_; - } - time_stamp_ = nullptr; +const ::std::string& DeltaIndex::cid() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.DeltaIndex.cid) + return cid_.GetNoArena(); } -void Delta::clear_public_entries() { - public_entries_.Clear(); +void DeltaIndex::set_cid(const ::std::string& value) { + + cid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.DeltaIndex.cid) } -void Delta::clear_confidential_entries() { - confidential_entries_.Clear(); +#if LANG_CXX11 +void DeltaIndex::set_cid(::std::string&& value) { + + cid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Deltas.DeltaIndex.cid) } -void Delta::clear_coinbase_entries() { - coinbase_entries_.Clear(); +#endif +void DeltaIndex::set_cid(const char* value) { + + cid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Deltas.DeltaIndex.cid) +} +void DeltaIndex::set_cid(const void* value, size_t size) { + + cid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Deltas.DeltaIndex.cid) } +::std::string* DeltaIndex::mutable_cid() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.DeltaIndex.cid) + return cid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* DeltaIndex::release_cid() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.DeltaIndex.cid) + + return cid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void DeltaIndex::set_allocated_cid(::std::string* cid) { + if (cid != NULL) { + + } else { + + } + cid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cid); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Deltas.DeltaIndex.cid) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Delta::kPreviousDeltaDfsHashFieldNumber; +const int Delta::kMerkleRootFieldNumber; +const int Delta::kMerklePodaFieldNumber; +const int Delta::kTimeStampFieldNumber; +const int Delta::kPublicEntriesFieldNumber; +const int Delta::kConfidentialEntriesFieldNumber; +const int Delta::kCoinbaseEntriesFieldNumber; +const int Delta::kStateRootFieldNumber; +const int Delta::kDeltaNumberFieldNumber; +const int Delta::kGasUsedFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + Delta::Delta() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Deltas_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Deltas.Delta) } Delta::Delta(const Delta& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), + : ::google::protobuf::Message(), + _internal_metadata_(NULL), public_entries_(from.public_entries_), confidential_entries_(from.confidential_entries_), - coinbase_entries_(from.coinbase_entries_) { + coinbase_entries_(from.coinbase_entries_), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - previous_delta_dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_previous_delta_dfs_hash().empty()) { - previous_delta_dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.previous_delta_dfs_hash_); + previous_delta_dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.previous_delta_dfs_hash().size() > 0) { + previous_delta_dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.previous_delta_dfs_hash_); } - merkle_root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_merkle_root().empty()) { - merkle_root_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.merkle_root_); + merkle_root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.merkle_root().size() > 0) { + merkle_root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.merkle_root_); } - merkle_poda_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_merkle_poda().empty()) { - merkle_poda_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.merkle_poda_); + merkle_poda_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.merkle_poda().size() > 0) { + merkle_poda_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.merkle_poda_); } - state_root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_state_root().empty()) { - state_root_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.state_root_); + state_root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.state_root().size() > 0) { + state_root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_root_); } - if (from._internal_has_time_stamp()) { - time_stamp_ = new PROTOBUF_NAMESPACE_ID::Timestamp(*from.time_stamp_); + if (from.has_time_stamp()) { + time_stamp_ = new ::google::protobuf::Timestamp(*from.time_stamp_); } else { - time_stamp_ = nullptr; + time_stamp_ = NULL; } - delta_number_ = from.delta_number_; + ::memcpy(&delta_number_, &from.delta_number_, + reinterpret_cast(&gas_used_) - + reinterpret_cast(&delta_number_) + sizeof(gas_used_)); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Deltas.Delta) } void Delta::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Delta_Deltas_2eproto.base); - previous_delta_dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - merkle_root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - merkle_poda_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - state_root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&time_stamp_, 0, static_cast( - reinterpret_cast(&delta_number_) - - reinterpret_cast(&time_stamp_)) + sizeof(delta_number_)); + previous_delta_dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + merkle_root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + merkle_poda_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + state_root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&time_stamp_, 0, reinterpret_cast(&gas_used_) - + reinterpret_cast(&time_stamp_) + sizeof(gas_used_)); + _cached_size_ = 0; } Delta::~Delta() { @@ -445,224 +549,340 @@ Delta::~Delta() { } void Delta::SharedDtor() { - previous_delta_dfs_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - merkle_root_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - merkle_poda_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - state_root_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete time_stamp_; + previous_delta_dfs_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + merkle_root_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + merkle_poda_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + state_root_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) { + delete time_stamp_; + } } void Delta::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* Delta::descriptor() { + protobuf_Deltas_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Deltas_2eproto::file_level_metadata[1].descriptor; +} + const Delta& Delta::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Delta_Deltas_2eproto.base); + protobuf_Deltas_2eproto::InitDefaults(); return *internal_default_instance(); } +Delta* Delta::New(::google::protobuf::Arena* arena) const { + Delta* n = new Delta; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void Delta::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Deltas.Delta) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - public_entries_.Clear(); confidential_entries_.Clear(); coinbase_entries_.Clear(); - previous_delta_dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - merkle_root_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - merkle_poda_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - state_root_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && time_stamp_ != nullptr) { + previous_delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + merkle_root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + merkle_poda_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + state_root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && time_stamp_ != NULL) { delete time_stamp_; } - time_stamp_ = nullptr; - delta_number_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); + time_stamp_ = NULL; + ::memset(&delta_number_, 0, reinterpret_cast(&gas_used_) - + reinterpret_cast(&delta_number_) + sizeof(gas_used_)); } -const char* Delta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool Delta::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Deltas.Delta) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes previous_delta_dfs_hash = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_previous_delta_dfs_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_previous_delta_dfs_hash())); + } else { + goto handle_unusual; + } + break; + } + // bytes merkle_root = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_merkle_root(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_merkle_root())); + } else { + goto handle_unusual; + } + break; + } + // bytes merkle_poda = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_merkle_poda(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_merkle_poda())); + } else { + goto handle_unusual; + } + break; + } + // .google.protobuf.Timestamp time_stamp = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_time_stamp(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 4: { + if (tag == 34u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_time_stamp())); + } else { + goto handle_unusual; + } + break; + } + // repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_public_entries(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else goto handle_unusual; - continue; + case 5: { + if (tag == 42u) { + DO_(input->IncrementRecursionDepth()); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + input, add_public_entries())); + } else { + goto handle_unusual; + } + input->UnsafeDecrementRecursionDepth(); + break; + } + // repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_confidential_entries(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else goto handle_unusual; - continue; + case 6: { + if (tag == 50u) { + DO_(input->IncrementRecursionDepth()); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + input, add_confidential_entries())); + } else { + goto handle_unusual; + } + input->UnsafeDecrementRecursionDepth(); + break; + } + // repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_coinbase_entries(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); - } else goto handle_unusual; - continue; + case 7: { + if (tag == 58u) { + DO_(input->IncrementRecursionDepth()); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + input, add_coinbase_entries())); + } else { + goto handle_unusual; + } + input->UnsafeDecrementRecursionDepth(); + break; + } + // bytes state_root = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { - auto str = _internal_mutable_state_root(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 8: { + if (tag == 66u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_state_root())); + } else { + goto handle_unusual; + } + break; + } + // int64 delta_number = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { - delta_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 9: { + if (tag == 72u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &delta_number_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 gas_used = 10; + case 10: { + if (tag == 80u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &gas_used_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Deltas.Delta) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Deltas.Delta) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* Delta::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Deltas.Delta) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +void Delta::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Deltas.Delta) + // bytes previous_delta_dfs_hash = 1; + if (this->previous_delta_dfs_hash().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->previous_delta_dfs_hash(), output); + } + + // bytes merkle_root = 2; + if (this->merkle_root().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->merkle_root(), output); + } + + // bytes merkle_poda = 3; + if (this->merkle_poda().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->merkle_poda(), output); + } + + // .google.protobuf.Timestamp time_stamp = 4; + if (this->has_time_stamp()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->time_stamp_, output); + } + + // repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; + for (unsigned int i = 0, n = this->public_entries_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->public_entries(i), output); + } + + // repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; + for (unsigned int i = 0, n = this->confidential_entries_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->confidential_entries(i), output); + } + // repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; + for (unsigned int i = 0, n = this->coinbase_entries_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, this->coinbase_entries(i), output); + } + + // bytes state_root = 8; + if (this->state_root().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 8, this->state_root(), output); + } + + // int64 delta_number = 9; + if (this->delta_number() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(9, this->delta_number(), output); + } + + // int64 gas_used = 10; + if (this->gas_used() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(10, this->gas_used(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Deltas.Delta) +} + +::google::protobuf::uint8* Delta::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Deltas.Delta) // bytes previous_delta_dfs_hash = 1; if (this->previous_delta_dfs_hash().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_previous_delta_dfs_hash(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->previous_delta_dfs_hash(), target); } // bytes merkle_root = 2; if (this->merkle_root().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_merkle_root(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->merkle_root(), target); } // bytes merkle_poda = 3; if (this->merkle_poda().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_merkle_poda(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->merkle_poda(), target); } // .google.protobuf.Timestamp time_stamp = 4; if (this->has_time_stamp()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::time_stamp(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 4, *this->time_stamp_, false, target); } // repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; - for (unsigned int i = 0, - n = static_cast(this->_internal_public_entries_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, this->_internal_public_entries(i), target, stream); + for (unsigned int i = 0, n = this->public_entries_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 5, this->public_entries(i), false, target); } // repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; - for (unsigned int i = 0, - n = static_cast(this->_internal_confidential_entries_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, this->_internal_confidential_entries(i), target, stream); + for (unsigned int i = 0, n = this->confidential_entries_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 6, this->confidential_entries(i), false, target); } // repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; - for (unsigned int i = 0, - n = static_cast(this->_internal_coinbase_entries_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(7, this->_internal_coinbase_entries(i), target, stream); + for (unsigned int i = 0, n = this->coinbase_entries_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 7, this->coinbase_entries(i), false, target); } // bytes state_root = 8; if (this->state_root().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 8, this->_internal_state_root(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 8, this->state_root(), target); } // int64 delta_number = 9; if (this->delta_number() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->_internal_delta_number(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(9, this->delta_number(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // int64 gas_used = 10; + if (this->gas_used() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(10, this->gas_used(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Deltas.Delta) return target; } @@ -671,91 +891,104 @@ size_t Delta::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Deltas.Delta) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; - total_size += 1UL * this->_internal_public_entries_size(); - for (const auto& msg : this->public_entries_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + { + unsigned int count = this->public_entries_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->public_entries(i)); + } } // repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; - total_size += 1UL * this->_internal_confidential_entries_size(); - for (const auto& msg : this->confidential_entries_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + { + unsigned int count = this->confidential_entries_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->confidential_entries(i)); + } } // repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; - total_size += 1UL * this->_internal_coinbase_entries_size(); - for (const auto& msg : this->coinbase_entries_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + { + unsigned int count = this->coinbase_entries_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->coinbase_entries(i)); + } } // bytes previous_delta_dfs_hash = 1; if (this->previous_delta_dfs_hash().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_previous_delta_dfs_hash()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->previous_delta_dfs_hash()); } // bytes merkle_root = 2; if (this->merkle_root().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_merkle_root()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->merkle_root()); } // bytes merkle_poda = 3; if (this->merkle_poda().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_merkle_poda()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->merkle_poda()); } // bytes state_root = 8; if (this->state_root().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_state_root()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->state_root()); } // .google.protobuf.Timestamp time_stamp = 4; if (this->has_time_stamp()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *time_stamp_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->time_stamp_); } // int64 delta_number = 9; if (this->delta_number() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_delta_number()); + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->delta_number()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); + // int64 gas_used = 10; + if (this->gas_used() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->gas_used()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void Delta::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Delta::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Deltas.Delta) GOOGLE_DCHECK_NE(&from, this); const Delta* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Deltas.Delta) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Deltas.Delta) MergeFrom(*source); @@ -766,37 +999,37 @@ void Delta::MergeFrom(const Delta& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Deltas.Delta) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - public_entries_.MergeFrom(from.public_entries_); confidential_entries_.MergeFrom(from.confidential_entries_); coinbase_entries_.MergeFrom(from.coinbase_entries_); if (from.previous_delta_dfs_hash().size() > 0) { - previous_delta_dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.previous_delta_dfs_hash_); + previous_delta_dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.previous_delta_dfs_hash_); } if (from.merkle_root().size() > 0) { - merkle_root_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.merkle_root_); + merkle_root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.merkle_root_); } if (from.merkle_poda().size() > 0) { - merkle_poda_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.merkle_poda_); + merkle_poda_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.merkle_poda_); } if (from.state_root().size() > 0) { - state_root_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.state_root_); + state_root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.state_root_); } if (from.has_time_stamp()) { - _internal_mutable_time_stamp()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_time_stamp()); + mutable_time_stamp()->::google::protobuf::Timestamp::MergeFrom(from.time_stamp()); } if (from.delta_number() != 0) { - _internal_set_delta_number(from._internal_delta_number()); + set_delta_number(from.delta_number()); + } + if (from.gas_used() != 0) { + set_gas_used(from.gas_used()); } } -void Delta::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Delta::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Deltas.Delta) if (&from == this) return; Clear(); @@ -814,41 +1047,408 @@ bool Delta::IsInitialized() const { return true; } +void Delta::Swap(Delta* other) { + if (other == this) return; + InternalSwap(other); +} void Delta::InternalSwap(Delta* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - public_entries_.InternalSwap(&other->public_entries_); - confidential_entries_.InternalSwap(&other->confidential_entries_); - coinbase_entries_.InternalSwap(&other->coinbase_entries_); - previous_delta_dfs_hash_.Swap(&other->previous_delta_dfs_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - merkle_root_.Swap(&other->merkle_root_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - merkle_poda_.Swap(&other->merkle_poda_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - state_root_.Swap(&other->state_root_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(time_stamp_, other->time_stamp_); - swap(delta_number_, other->delta_number_); + public_entries_.UnsafeArenaSwap(&other->public_entries_); + confidential_entries_.UnsafeArenaSwap(&other->confidential_entries_); + coinbase_entries_.UnsafeArenaSwap(&other->coinbase_entries_); + previous_delta_dfs_hash_.Swap(&other->previous_delta_dfs_hash_); + merkle_root_.Swap(&other->merkle_root_); + merkle_poda_.Swap(&other->merkle_poda_); + state_root_.Swap(&other->state_root_); + std::swap(time_stamp_, other->time_stamp_); + std::swap(delta_number_, other->delta_number_); + std::swap(gas_used_, other->gas_used_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata Delta::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata Delta::GetMetadata() const { + protobuf_Deltas_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Deltas_2eproto::file_level_metadata[1]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// Delta + +// bytes previous_delta_dfs_hash = 1; +void Delta::clear_previous_delta_dfs_hash() { + previous_delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& Delta::previous_delta_dfs_hash() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) + return previous_delta_dfs_hash_.GetNoArena(); +} +void Delta::set_previous_delta_dfs_hash(const ::std::string& value) { + + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) +} +#if LANG_CXX11 +void Delta::set_previous_delta_dfs_hash(::std::string&& value) { + + previous_delta_dfs_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) +} +#endif +void Delta::set_previous_delta_dfs_hash(const char* value) { + + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) +} +void Delta::set_previous_delta_dfs_hash(const void* value, size_t size) { + + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) +} +::std::string* Delta::mutable_previous_delta_dfs_hash() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) + return previous_delta_dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* Delta::release_previous_delta_dfs_hash() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) + + return previous_delta_dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void Delta::set_allocated_previous_delta_dfs_hash(::std::string* previous_delta_dfs_hash) { + if (previous_delta_dfs_hash != NULL) { + + } else { + + } + previous_delta_dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), previous_delta_dfs_hash); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) +} + +// bytes merkle_root = 2; +void Delta::clear_merkle_root() { + merkle_root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& Delta::merkle_root() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.merkle_root) + return merkle_root_.GetNoArena(); +} +void Delta::set_merkle_root(const ::std::string& value) { + + merkle_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.merkle_root) +} +#if LANG_CXX11 +void Delta::set_merkle_root(::std::string&& value) { + + merkle_root_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Deltas.Delta.merkle_root) +} +#endif +void Delta::set_merkle_root(const char* value) { + + merkle_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Deltas.Delta.merkle_root) +} +void Delta::set_merkle_root(const void* value, size_t size) { + + merkle_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Deltas.Delta.merkle_root) +} +::std::string* Delta::mutable_merkle_root() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.merkle_root) + return merkle_root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* Delta::release_merkle_root() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.Delta.merkle_root) + + return merkle_root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void Delta::set_allocated_merkle_root(::std::string* merkle_root) { + if (merkle_root != NULL) { + + } else { + + } + merkle_root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), merkle_root); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Deltas.Delta.merkle_root) +} + +// bytes merkle_poda = 3; +void Delta::clear_merkle_poda() { + merkle_poda_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& Delta::merkle_poda() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.merkle_poda) + return merkle_poda_.GetNoArena(); +} +void Delta::set_merkle_poda(const ::std::string& value) { + + merkle_poda_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.merkle_poda) +} +#if LANG_CXX11 +void Delta::set_merkle_poda(::std::string&& value) { + + merkle_poda_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Deltas.Delta.merkle_poda) +} +#endif +void Delta::set_merkle_poda(const char* value) { + + merkle_poda_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Deltas.Delta.merkle_poda) +} +void Delta::set_merkle_poda(const void* value, size_t size) { + + merkle_poda_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Deltas.Delta.merkle_poda) +} +::std::string* Delta::mutable_merkle_poda() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.merkle_poda) + return merkle_poda_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* Delta::release_merkle_poda() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.Delta.merkle_poda) + + return merkle_poda_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void Delta::set_allocated_merkle_poda(::std::string* merkle_poda) { + if (merkle_poda != NULL) { + + } else { + + } + merkle_poda_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), merkle_poda); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Deltas.Delta.merkle_poda) +} + +// .google.protobuf.Timestamp time_stamp = 4; +bool Delta::has_time_stamp() const { + return this != internal_default_instance() && time_stamp_ != NULL; +} +void Delta::clear_time_stamp() { + if (GetArenaNoVirtual() == NULL && time_stamp_ != NULL) delete time_stamp_; + time_stamp_ = NULL; +} +const ::google::protobuf::Timestamp& Delta::time_stamp() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.time_stamp) + return time_stamp_ != NULL ? *time_stamp_ + : *::google::protobuf::Timestamp::internal_default_instance(); +} +::google::protobuf::Timestamp* Delta::mutable_time_stamp() { + + if (time_stamp_ == NULL) { + time_stamp_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.time_stamp) + return time_stamp_; +} +::google::protobuf::Timestamp* Delta::release_time_stamp() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.Delta.time_stamp) + + ::google::protobuf::Timestamp* temp = time_stamp_; + time_stamp_ = NULL; + return temp; +} +void Delta::set_allocated_time_stamp(::google::protobuf::Timestamp* time_stamp) { + delete time_stamp_; + if (time_stamp != NULL && time_stamp->GetArena() != NULL) { + ::google::protobuf::Timestamp* new_time_stamp = new ::google::protobuf::Timestamp; + new_time_stamp->CopyFrom(*time_stamp); + time_stamp = new_time_stamp; + } + time_stamp_ = time_stamp; + if (time_stamp) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Deltas.Delta.time_stamp) +} + +// repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; +int Delta::public_entries_size() const { + return public_entries_.size(); +} +void Delta::clear_public_entries() { + public_entries_.Clear(); +} +const ::Catalyst::Protocol::Transaction::PublicEntry& Delta::public_entries(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.public_entries) + return public_entries_.Get(index); +} +::Catalyst::Protocol::Transaction::PublicEntry* Delta::mutable_public_entries(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.public_entries) + return public_entries_.Mutable(index); +} +::Catalyst::Protocol::Transaction::PublicEntry* Delta::add_public_entries() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Deltas.Delta.public_entries) + return public_entries_.Add(); +} +::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >* +Delta::mutable_public_entries() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Deltas.Delta.public_entries) + return &public_entries_; +} +const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >& +Delta::public_entries() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.Deltas.Delta.public_entries) + return public_entries_; +} + +// repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; +int Delta::confidential_entries_size() const { + return confidential_entries_.size(); +} +void Delta::clear_confidential_entries() { + confidential_entries_.Clear(); +} +const ::Catalyst::Protocol::Transaction::ConfidentialEntry& Delta::confidential_entries(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.confidential_entries) + return confidential_entries_.Get(index); +} +::Catalyst::Protocol::Transaction::ConfidentialEntry* Delta::mutable_confidential_entries(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.confidential_entries) + return confidential_entries_.Mutable(index); +} +::Catalyst::Protocol::Transaction::ConfidentialEntry* Delta::add_confidential_entries() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Deltas.Delta.confidential_entries) + return confidential_entries_.Add(); +} +::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::ConfidentialEntry >* +Delta::mutable_confidential_entries() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Deltas.Delta.confidential_entries) + return &confidential_entries_; +} +const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::ConfidentialEntry >& +Delta::confidential_entries() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.Deltas.Delta.confidential_entries) + return confidential_entries_; +} + +// repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; +int Delta::coinbase_entries_size() const { + return coinbase_entries_.size(); +} +void Delta::clear_coinbase_entries() { + coinbase_entries_.Clear(); +} +const ::Catalyst::Protocol::Transaction::CoinbaseEntry& Delta::coinbase_entries(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.coinbase_entries) + return coinbase_entries_.Get(index); +} +::Catalyst::Protocol::Transaction::CoinbaseEntry* Delta::mutable_coinbase_entries(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.coinbase_entries) + return coinbase_entries_.Mutable(index); +} +::Catalyst::Protocol::Transaction::CoinbaseEntry* Delta::add_coinbase_entries() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Deltas.Delta.coinbase_entries) + return coinbase_entries_.Add(); +} +::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::CoinbaseEntry >* +Delta::mutable_coinbase_entries() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Deltas.Delta.coinbase_entries) + return &coinbase_entries_; +} +const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::CoinbaseEntry >& +Delta::coinbase_entries() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.Deltas.Delta.coinbase_entries) + return coinbase_entries_; +} + +// bytes state_root = 8; +void Delta::clear_state_root() { + state_root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& Delta::state_root() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.state_root) + return state_root_.GetNoArena(); +} +void Delta::set_state_root(const ::std::string& value) { + + state_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.state_root) +} +#if LANG_CXX11 +void Delta::set_state_root(::std::string&& value) { + + state_root_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Deltas.Delta.state_root) +} +#endif +void Delta::set_state_root(const char* value) { + + state_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Deltas.Delta.state_root) +} +void Delta::set_state_root(const void* value, size_t size) { + + state_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Deltas.Delta.state_root) +} +::std::string* Delta::mutable_state_root() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.state_root) + return state_root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* Delta::release_state_root() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.Delta.state_root) + + return state_root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void Delta::set_allocated_state_root(::std::string* state_root) { + if (state_root != NULL) { + + } else { + + } + state_root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), state_root); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Deltas.Delta.state_root) +} + +// int64 delta_number = 9; +void Delta::clear_delta_number() { + delta_number_ = GOOGLE_LONGLONG(0); +} +::google::protobuf::int64 Delta::delta_number() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.delta_number) + return delta_number_; +} +void Delta::set_delta_number(::google::protobuf::int64 value) { + + delta_number_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.delta_number) +} + +// int64 gas_used = 10; +void Delta::clear_gas_used() { + gas_used_ = GOOGLE_LONGLONG(0); +} +::google::protobuf::int64 Delta::gas_used() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.gas_used) + return gas_used_; +} +void Delta::set_gas_used(::google::protobuf::int64 value) { + + gas_used_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.gas_used) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) + } // namespace Deltas } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Deltas::DeltaIndex* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Deltas::DeltaIndex >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Deltas::DeltaIndex >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Deltas::Delta* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Deltas::Delta >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Deltas::Delta >(arena); -} -PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include diff --git a/packages/sdk-cpp/src/Deltas.pb.h b/packages/sdk-cpp/src/Deltas.pb.h index b684609..0cca333 100644 --- a/packages/sdk-cpp/src/Deltas.pb.h +++ b/packages/sdk-cpp/src/Deltas.pb.h @@ -1,33 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Deltas.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_Deltas_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_Deltas_2eproto +#ifndef PROTOBUF_Deltas_2eproto__INCLUDED +#define PROTOBUF_Deltas_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3011000 +#include + +#if GOOGLE_PROTOBUF_VERSION < 3002000 #error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update +#error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3002000 < GOOGLE_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 incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif -#include #include #include #include -#include #include -#include #include -#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -35,27 +31,6 @@ #include "Transaction.pb.h" #include // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_Deltas_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_Deltas_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Deltas_2eproto; namespace Catalyst { namespace Protocol { namespace Deltas { @@ -66,527 +41,413 @@ class DeltaIndex; class DeltaIndexDefaultTypeInternal; extern DeltaIndexDefaultTypeInternal _DeltaIndex_default_instance_; } // namespace Deltas +namespace Transaction { +class CoinbaseEntry; +class CoinbaseEntryDefaultTypeInternal; +extern CoinbaseEntryDefaultTypeInternal _CoinbaseEntry_default_instance_; +class ConfidentialEntry; +class ConfidentialEntryDefaultTypeInternal; +extern ConfidentialEntryDefaultTypeInternal _ConfidentialEntry_default_instance_; +class PublicEntry; +class PublicEntryDefaultTypeInternal; +extern PublicEntryDefaultTypeInternal _PublicEntry_default_instance_; +class RangeProof; +class RangeProofDefaultTypeInternal; +extern RangeProofDefaultTypeInternal _RangeProof_default_instance_; +} // namespace Transaction } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> ::Catalyst::Protocol::Deltas::Delta* Arena::CreateMaybeMessage<::Catalyst::Protocol::Deltas::Delta>(Arena*); -template<> ::Catalyst::Protocol::Deltas::DeltaIndex* Arena::CreateMaybeMessage<::Catalyst::Protocol::Deltas::DeltaIndex>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +class Timestamp; +class TimestampDefaultTypeInternal; +extern TimestampDefaultTypeInternal _Timestamp_default_instance_; +} // namespace protobuf +} // namespace google + namespace Catalyst { namespace Protocol { namespace Deltas { +namespace protobuf_Deltas_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::uint32 offsets[]; + static void InitDefaultsImpl(); + static void Shutdown(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_Deltas_2eproto + // =================================================================== -class DeltaIndex : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Deltas.DeltaIndex) */ { +class DeltaIndex : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Deltas.DeltaIndex) */ { public: DeltaIndex(); virtual ~DeltaIndex(); DeltaIndex(const DeltaIndex& from); - DeltaIndex(DeltaIndex&& from) noexcept - : DeltaIndex() { - *this = ::std::move(from); - } inline DeltaIndex& operator=(const DeltaIndex& from) { CopyFrom(from); return *this; } - inline DeltaIndex& operator=(DeltaIndex&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const DeltaIndex& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DeltaIndex* internal_default_instance() { return reinterpret_cast( &_DeltaIndex_default_instance_); } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(DeltaIndex& a, DeltaIndex& b) { - a.Swap(&b); - } - inline void Swap(DeltaIndex* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(DeltaIndex* other); // implements Message ---------------------------------------------- - inline DeltaIndex* New() const final { - return CreateMaybeMessage(nullptr); - } + inline DeltaIndex* New() const PROTOBUF_FINAL { return New(NULL); } - DeltaIndex* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + DeltaIndex* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const DeltaIndex& from); void MergeFrom(const DeltaIndex& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(DeltaIndex* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Deltas.DeltaIndex"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Deltas_2eproto); - return ::descriptor_table_Deltas_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCidFieldNumber = 2, - kHeightFieldNumber = 1, - }; // bytes cid = 2; void clear_cid(); - const std::string& cid() const; - void set_cid(const std::string& value); - void set_cid(std::string&& value); + static const int kCidFieldNumber = 2; + const ::std::string& cid() const; + void set_cid(const ::std::string& value); + #if LANG_CXX11 + void set_cid(::std::string&& value); + #endif void set_cid(const char* value); void set_cid(const void* value, size_t size); - std::string* mutable_cid(); - std::string* release_cid(); - void set_allocated_cid(std::string* cid); - private: - const std::string& _internal_cid() const; - void _internal_set_cid(const std::string& value); - std::string* _internal_mutable_cid(); - public: + ::std::string* mutable_cid(); + ::std::string* release_cid(); + void set_allocated_cid(::std::string* cid); // uint32 height = 1; void clear_height(); - ::PROTOBUF_NAMESPACE_ID::uint32 height() const; - void set_height(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_height() const; - void _internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: + static const int kHeightFieldNumber = 1; + ::google::protobuf::uint32 height() const; + void set_height(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Deltas.DeltaIndex) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cid_; - ::PROTOBUF_NAMESPACE_ID::uint32 height_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Deltas_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr cid_; + ::google::protobuf::uint32 height_; + mutable int _cached_size_; + friend struct protobuf_Deltas_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class Delta : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Deltas.Delta) */ { +class Delta : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Deltas.Delta) */ { public: Delta(); virtual ~Delta(); Delta(const Delta& from); - Delta(Delta&& from) noexcept - : Delta() { - *this = ::std::move(from); - } inline Delta& operator=(const Delta& from) { CopyFrom(from); return *this; } - inline Delta& operator=(Delta&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const Delta& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Delta* internal_default_instance() { return reinterpret_cast( &_Delta_default_instance_); } - static constexpr int kIndexInFileMessages = - 1; - friend void swap(Delta& a, Delta& b) { - a.Swap(&b); - } - inline void Swap(Delta* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(Delta* other); // implements Message ---------------------------------------------- - inline Delta* New() const final { - return CreateMaybeMessage(nullptr); - } + inline Delta* New() const PROTOBUF_FINAL { return New(NULL); } - Delta* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + Delta* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const Delta& from); void MergeFrom(const Delta& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(Delta* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Deltas.Delta"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Deltas_2eproto); - return ::descriptor_table_Deltas_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPublicEntriesFieldNumber = 5, - kConfidentialEntriesFieldNumber = 6, - kCoinbaseEntriesFieldNumber = 7, - kPreviousDeltaDfsHashFieldNumber = 1, - kMerkleRootFieldNumber = 2, - kMerklePodaFieldNumber = 3, - kStateRootFieldNumber = 8, - kTimeStampFieldNumber = 4, - kDeltaNumberFieldNumber = 9, - }; // repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; int public_entries_size() const; - private: - int _internal_public_entries_size() const; - public: void clear_public_entries(); - ::Catalyst::Protocol::Transaction::PublicEntry* mutable_public_entries(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >* - mutable_public_entries(); - private: - const ::Catalyst::Protocol::Transaction::PublicEntry& _internal_public_entries(int index) const; - ::Catalyst::Protocol::Transaction::PublicEntry* _internal_add_public_entries(); - public: + static const int kPublicEntriesFieldNumber = 5; const ::Catalyst::Protocol::Transaction::PublicEntry& public_entries(int index) const; + ::Catalyst::Protocol::Transaction::PublicEntry* mutable_public_entries(int index); ::Catalyst::Protocol::Transaction::PublicEntry* add_public_entries(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >& + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >* + mutable_public_entries(); + const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >& public_entries() const; // repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; int confidential_entries_size() const; - private: - int _internal_confidential_entries_size() const; - public: void clear_confidential_entries(); - ::Catalyst::Protocol::Transaction::ConfidentialEntry* mutable_confidential_entries(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::ConfidentialEntry >* - mutable_confidential_entries(); - private: - const ::Catalyst::Protocol::Transaction::ConfidentialEntry& _internal_confidential_entries(int index) const; - ::Catalyst::Protocol::Transaction::ConfidentialEntry* _internal_add_confidential_entries(); - public: + static const int kConfidentialEntriesFieldNumber = 6; const ::Catalyst::Protocol::Transaction::ConfidentialEntry& confidential_entries(int index) const; + ::Catalyst::Protocol::Transaction::ConfidentialEntry* mutable_confidential_entries(int index); ::Catalyst::Protocol::Transaction::ConfidentialEntry* add_confidential_entries(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::ConfidentialEntry >& + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::ConfidentialEntry >* + mutable_confidential_entries(); + const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::ConfidentialEntry >& confidential_entries() const; // repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; int coinbase_entries_size() const; - private: - int _internal_coinbase_entries_size() const; - public: void clear_coinbase_entries(); - ::Catalyst::Protocol::Transaction::CoinbaseEntry* mutable_coinbase_entries(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::CoinbaseEntry >* - mutable_coinbase_entries(); - private: - const ::Catalyst::Protocol::Transaction::CoinbaseEntry& _internal_coinbase_entries(int index) const; - ::Catalyst::Protocol::Transaction::CoinbaseEntry* _internal_add_coinbase_entries(); - public: + static const int kCoinbaseEntriesFieldNumber = 7; const ::Catalyst::Protocol::Transaction::CoinbaseEntry& coinbase_entries(int index) const; + ::Catalyst::Protocol::Transaction::CoinbaseEntry* mutable_coinbase_entries(int index); ::Catalyst::Protocol::Transaction::CoinbaseEntry* add_coinbase_entries(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::CoinbaseEntry >& + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::CoinbaseEntry >* + mutable_coinbase_entries(); + const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::CoinbaseEntry >& coinbase_entries() const; // bytes previous_delta_dfs_hash = 1; void clear_previous_delta_dfs_hash(); - const std::string& previous_delta_dfs_hash() const; - void set_previous_delta_dfs_hash(const std::string& value); - void set_previous_delta_dfs_hash(std::string&& value); + static const int kPreviousDeltaDfsHashFieldNumber = 1; + const ::std::string& previous_delta_dfs_hash() const; + void set_previous_delta_dfs_hash(const ::std::string& value); + #if LANG_CXX11 + void set_previous_delta_dfs_hash(::std::string&& value); + #endif void set_previous_delta_dfs_hash(const char* value); void set_previous_delta_dfs_hash(const void* value, size_t size); - std::string* mutable_previous_delta_dfs_hash(); - std::string* release_previous_delta_dfs_hash(); - void set_allocated_previous_delta_dfs_hash(std::string* previous_delta_dfs_hash); - private: - const std::string& _internal_previous_delta_dfs_hash() const; - void _internal_set_previous_delta_dfs_hash(const std::string& value); - std::string* _internal_mutable_previous_delta_dfs_hash(); - public: + ::std::string* mutable_previous_delta_dfs_hash(); + ::std::string* release_previous_delta_dfs_hash(); + void set_allocated_previous_delta_dfs_hash(::std::string* previous_delta_dfs_hash); // bytes merkle_root = 2; void clear_merkle_root(); - const std::string& merkle_root() const; - void set_merkle_root(const std::string& value); - void set_merkle_root(std::string&& value); + static const int kMerkleRootFieldNumber = 2; + const ::std::string& merkle_root() const; + void set_merkle_root(const ::std::string& value); + #if LANG_CXX11 + void set_merkle_root(::std::string&& value); + #endif void set_merkle_root(const char* value); void set_merkle_root(const void* value, size_t size); - std::string* mutable_merkle_root(); - std::string* release_merkle_root(); - void set_allocated_merkle_root(std::string* merkle_root); - private: - const std::string& _internal_merkle_root() const; - void _internal_set_merkle_root(const std::string& value); - std::string* _internal_mutable_merkle_root(); - public: + ::std::string* mutable_merkle_root(); + ::std::string* release_merkle_root(); + void set_allocated_merkle_root(::std::string* merkle_root); // bytes merkle_poda = 3; void clear_merkle_poda(); - const std::string& merkle_poda() const; - void set_merkle_poda(const std::string& value); - void set_merkle_poda(std::string&& value); + static const int kMerklePodaFieldNumber = 3; + const ::std::string& merkle_poda() const; + void set_merkle_poda(const ::std::string& value); + #if LANG_CXX11 + void set_merkle_poda(::std::string&& value); + #endif void set_merkle_poda(const char* value); void set_merkle_poda(const void* value, size_t size); - std::string* mutable_merkle_poda(); - std::string* release_merkle_poda(); - void set_allocated_merkle_poda(std::string* merkle_poda); - private: - const std::string& _internal_merkle_poda() const; - void _internal_set_merkle_poda(const std::string& value); - std::string* _internal_mutable_merkle_poda(); - public: + ::std::string* mutable_merkle_poda(); + ::std::string* release_merkle_poda(); + void set_allocated_merkle_poda(::std::string* merkle_poda); // bytes state_root = 8; void clear_state_root(); - const std::string& state_root() const; - void set_state_root(const std::string& value); - void set_state_root(std::string&& value); + static const int kStateRootFieldNumber = 8; + const ::std::string& state_root() const; + void set_state_root(const ::std::string& value); + #if LANG_CXX11 + void set_state_root(::std::string&& value); + #endif void set_state_root(const char* value); void set_state_root(const void* value, size_t size); - std::string* mutable_state_root(); - std::string* release_state_root(); - void set_allocated_state_root(std::string* state_root); - private: - const std::string& _internal_state_root() const; - void _internal_set_state_root(const std::string& value); - std::string* _internal_mutable_state_root(); - public: + ::std::string* mutable_state_root(); + ::std::string* release_state_root(); + void set_allocated_state_root(::std::string* state_root); // .google.protobuf.Timestamp time_stamp = 4; bool has_time_stamp() const; - private: - bool _internal_has_time_stamp() const; - public: void clear_time_stamp(); - const PROTOBUF_NAMESPACE_ID::Timestamp& time_stamp() const; - PROTOBUF_NAMESPACE_ID::Timestamp* release_time_stamp(); - PROTOBUF_NAMESPACE_ID::Timestamp* mutable_time_stamp(); - void set_allocated_time_stamp(PROTOBUF_NAMESPACE_ID::Timestamp* time_stamp); - private: - const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_time_stamp() const; - PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_time_stamp(); - public: + static const int kTimeStampFieldNumber = 4; + const ::google::protobuf::Timestamp& time_stamp() const; + ::google::protobuf::Timestamp* mutable_time_stamp(); + ::google::protobuf::Timestamp* release_time_stamp(); + void set_allocated_time_stamp(::google::protobuf::Timestamp* time_stamp); // int64 delta_number = 9; void clear_delta_number(); - ::PROTOBUF_NAMESPACE_ID::int64 delta_number() const; - void set_delta_number(::PROTOBUF_NAMESPACE_ID::int64 value); - private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_delta_number() const; - void _internal_set_delta_number(::PROTOBUF_NAMESPACE_ID::int64 value); - public: + static const int kDeltaNumberFieldNumber = 9; + ::google::protobuf::int64 delta_number() const; + void set_delta_number(::google::protobuf::int64 value); + + // int64 gas_used = 10; + void clear_gas_used(); + static const int kGasUsedFieldNumber = 10; + ::google::protobuf::int64 gas_used() const; + void set_gas_used(::google::protobuf::int64 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Deltas.Delta) private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry > public_entries_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::ConfidentialEntry > confidential_entries_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::CoinbaseEntry > coinbase_entries_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr previous_delta_dfs_hash_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr merkle_root_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr merkle_poda_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr state_root_; - PROTOBUF_NAMESPACE_ID::Timestamp* time_stamp_; - ::PROTOBUF_NAMESPACE_ID::int64 delta_number_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Deltas_2eproto; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry > public_entries_; + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::ConfidentialEntry > confidential_entries_; + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::CoinbaseEntry > coinbase_entries_; + ::google::protobuf::internal::ArenaStringPtr previous_delta_dfs_hash_; + ::google::protobuf::internal::ArenaStringPtr merkle_root_; + ::google::protobuf::internal::ArenaStringPtr merkle_poda_; + ::google::protobuf::internal::ArenaStringPtr state_root_; + ::google::protobuf::Timestamp* time_stamp_; + ::google::protobuf::int64 delta_number_; + ::google::protobuf::int64 gas_used_; + mutable int _cached_size_; + friend struct protobuf_Deltas_2eproto::TableStruct; }; // =================================================================== // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +#if !PROTOBUF_INLINE_NOT_IN_HEADERS // DeltaIndex // uint32 height = 1; inline void DeltaIndex::clear_height() { height_ = 0u; } -inline ::PROTOBUF_NAMESPACE_ID::uint32 DeltaIndex::_internal_height() const { - return height_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 DeltaIndex::height() const { +inline ::google::protobuf::uint32 DeltaIndex::height() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.DeltaIndex.height) - return _internal_height(); + return height_; } -inline void DeltaIndex::_internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void DeltaIndex::set_height(::google::protobuf::uint32 value) { height_ = value; -} -inline void DeltaIndex::set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_height(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.DeltaIndex.height) } // bytes cid = 2; inline void DeltaIndex::clear_cid() { - cid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + cid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& DeltaIndex::cid() const { +inline const ::std::string& DeltaIndex::cid() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.DeltaIndex.cid) - return _internal_cid(); -} -inline void DeltaIndex::set_cid(const std::string& value) { - _internal_set_cid(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.DeltaIndex.cid) -} -inline std::string* DeltaIndex::mutable_cid() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.DeltaIndex.cid) - return _internal_mutable_cid(); -} -inline const std::string& DeltaIndex::_internal_cid() const { return cid_.GetNoArena(); } -inline void DeltaIndex::_internal_set_cid(const std::string& value) { +inline void DeltaIndex::set_cid(const ::std::string& value) { - cid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + cid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.DeltaIndex.cid) } -inline void DeltaIndex::set_cid(std::string&& value) { +#if LANG_CXX11 +inline void DeltaIndex::set_cid(::std::string&& value) { cid_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Deltas.DeltaIndex.cid) } +#endif inline void DeltaIndex::set_cid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - cid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + cid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Deltas.DeltaIndex.cid) } inline void DeltaIndex::set_cid(const void* value, size_t size) { - cid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + cid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Deltas.DeltaIndex.cid) } -inline std::string* DeltaIndex::_internal_mutable_cid() { +inline ::std::string* DeltaIndex::mutable_cid() { - return cid_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.DeltaIndex.cid) + return cid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* DeltaIndex::release_cid() { +inline ::std::string* DeltaIndex::release_cid() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.DeltaIndex.cid) - return cid_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return cid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void DeltaIndex::set_allocated_cid(std::string* cid) { - if (cid != nullptr) { +inline void DeltaIndex::set_allocated_cid(::std::string* cid) { + if (cid != NULL) { } else { } - cid_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cid); + cid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cid); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Deltas.DeltaIndex.cid) } @@ -596,342 +457,289 @@ inline void DeltaIndex::set_allocated_cid(std::string* cid) { // bytes previous_delta_dfs_hash = 1; inline void Delta::clear_previous_delta_dfs_hash() { - previous_delta_dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + previous_delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& Delta::previous_delta_dfs_hash() const { +inline const ::std::string& Delta::previous_delta_dfs_hash() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) - return _internal_previous_delta_dfs_hash(); -} -inline void Delta::set_previous_delta_dfs_hash(const std::string& value) { - _internal_set_previous_delta_dfs_hash(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) -} -inline std::string* Delta::mutable_previous_delta_dfs_hash() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) - return _internal_mutable_previous_delta_dfs_hash(); -} -inline const std::string& Delta::_internal_previous_delta_dfs_hash() const { return previous_delta_dfs_hash_.GetNoArena(); } -inline void Delta::_internal_set_previous_delta_dfs_hash(const std::string& value) { +inline void Delta::set_previous_delta_dfs_hash(const ::std::string& value) { - previous_delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) } -inline void Delta::set_previous_delta_dfs_hash(std::string&& value) { +#if LANG_CXX11 +inline void Delta::set_previous_delta_dfs_hash(::std::string&& value) { previous_delta_dfs_hash_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) } +#endif inline void Delta::set_previous_delta_dfs_hash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - previous_delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) } inline void Delta::set_previous_delta_dfs_hash(const void* value, size_t size) { - previous_delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) } -inline std::string* Delta::_internal_mutable_previous_delta_dfs_hash() { +inline ::std::string* Delta::mutable_previous_delta_dfs_hash() { - return previous_delta_dfs_hash_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) + return previous_delta_dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Delta::release_previous_delta_dfs_hash() { +inline ::std::string* Delta::release_previous_delta_dfs_hash() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) - return previous_delta_dfs_hash_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return previous_delta_dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Delta::set_allocated_previous_delta_dfs_hash(std::string* previous_delta_dfs_hash) { - if (previous_delta_dfs_hash != nullptr) { +inline void Delta::set_allocated_previous_delta_dfs_hash(::std::string* previous_delta_dfs_hash) { + if (previous_delta_dfs_hash != NULL) { } else { } - previous_delta_dfs_hash_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), previous_delta_dfs_hash); + previous_delta_dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), previous_delta_dfs_hash); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash) } // bytes merkle_root = 2; inline void Delta::clear_merkle_root() { - merkle_root_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + merkle_root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& Delta::merkle_root() const { +inline const ::std::string& Delta::merkle_root() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.merkle_root) - return _internal_merkle_root(); -} -inline void Delta::set_merkle_root(const std::string& value) { - _internal_set_merkle_root(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.merkle_root) -} -inline std::string* Delta::mutable_merkle_root() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.merkle_root) - return _internal_mutable_merkle_root(); -} -inline const std::string& Delta::_internal_merkle_root() const { return merkle_root_.GetNoArena(); } -inline void Delta::_internal_set_merkle_root(const std::string& value) { +inline void Delta::set_merkle_root(const ::std::string& value) { - merkle_root_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + merkle_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.merkle_root) } -inline void Delta::set_merkle_root(std::string&& value) { +#if LANG_CXX11 +inline void Delta::set_merkle_root(::std::string&& value) { merkle_root_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Deltas.Delta.merkle_root) } +#endif inline void Delta::set_merkle_root(const char* value) { - GOOGLE_DCHECK(value != nullptr); - merkle_root_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + merkle_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Deltas.Delta.merkle_root) } inline void Delta::set_merkle_root(const void* value, size_t size) { - merkle_root_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + merkle_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Deltas.Delta.merkle_root) } -inline std::string* Delta::_internal_mutable_merkle_root() { +inline ::std::string* Delta::mutable_merkle_root() { - return merkle_root_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.merkle_root) + return merkle_root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Delta::release_merkle_root() { +inline ::std::string* Delta::release_merkle_root() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.Delta.merkle_root) - return merkle_root_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return merkle_root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Delta::set_allocated_merkle_root(std::string* merkle_root) { - if (merkle_root != nullptr) { +inline void Delta::set_allocated_merkle_root(::std::string* merkle_root) { + if (merkle_root != NULL) { } else { } - merkle_root_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), merkle_root); + merkle_root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), merkle_root); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Deltas.Delta.merkle_root) } // bytes merkle_poda = 3; inline void Delta::clear_merkle_poda() { - merkle_poda_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + merkle_poda_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& Delta::merkle_poda() const { +inline const ::std::string& Delta::merkle_poda() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.merkle_poda) - return _internal_merkle_poda(); -} -inline void Delta::set_merkle_poda(const std::string& value) { - _internal_set_merkle_poda(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.merkle_poda) -} -inline std::string* Delta::mutable_merkle_poda() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.merkle_poda) - return _internal_mutable_merkle_poda(); -} -inline const std::string& Delta::_internal_merkle_poda() const { return merkle_poda_.GetNoArena(); } -inline void Delta::_internal_set_merkle_poda(const std::string& value) { +inline void Delta::set_merkle_poda(const ::std::string& value) { - merkle_poda_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + merkle_poda_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.merkle_poda) } -inline void Delta::set_merkle_poda(std::string&& value) { +#if LANG_CXX11 +inline void Delta::set_merkle_poda(::std::string&& value) { merkle_poda_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Deltas.Delta.merkle_poda) } +#endif inline void Delta::set_merkle_poda(const char* value) { - GOOGLE_DCHECK(value != nullptr); - merkle_poda_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + merkle_poda_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Deltas.Delta.merkle_poda) } inline void Delta::set_merkle_poda(const void* value, size_t size) { - merkle_poda_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + merkle_poda_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Deltas.Delta.merkle_poda) } -inline std::string* Delta::_internal_mutable_merkle_poda() { +inline ::std::string* Delta::mutable_merkle_poda() { - return merkle_poda_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.merkle_poda) + return merkle_poda_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Delta::release_merkle_poda() { +inline ::std::string* Delta::release_merkle_poda() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.Delta.merkle_poda) - return merkle_poda_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return merkle_poda_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Delta::set_allocated_merkle_poda(std::string* merkle_poda) { - if (merkle_poda != nullptr) { +inline void Delta::set_allocated_merkle_poda(::std::string* merkle_poda) { + if (merkle_poda != NULL) { } else { } - merkle_poda_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), merkle_poda); + merkle_poda_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), merkle_poda); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Deltas.Delta.merkle_poda) } // .google.protobuf.Timestamp time_stamp = 4; -inline bool Delta::_internal_has_time_stamp() const { - return this != internal_default_instance() && time_stamp_ != nullptr; -} inline bool Delta::has_time_stamp() const { - return _internal_has_time_stamp(); + return this != internal_default_instance() && time_stamp_ != NULL; } -inline const PROTOBUF_NAMESPACE_ID::Timestamp& Delta::_internal_time_stamp() const { - const PROTOBUF_NAMESPACE_ID::Timestamp* p = time_stamp_; - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +inline void Delta::clear_time_stamp() { + if (GetArenaNoVirtual() == NULL && time_stamp_ != NULL) delete time_stamp_; + time_stamp_ = NULL; } -inline const PROTOBUF_NAMESPACE_ID::Timestamp& Delta::time_stamp() const { +inline const ::google::protobuf::Timestamp& Delta::time_stamp() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.time_stamp) - return _internal_time_stamp(); + return time_stamp_ != NULL ? *time_stamp_ + : *::google::protobuf::Timestamp::internal_default_instance(); } -inline PROTOBUF_NAMESPACE_ID::Timestamp* Delta::release_time_stamp() { - // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.Delta.time_stamp) +inline ::google::protobuf::Timestamp* Delta::mutable_time_stamp() { - PROTOBUF_NAMESPACE_ID::Timestamp* temp = time_stamp_; - time_stamp_ = nullptr; - return temp; -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* Delta::_internal_mutable_time_stamp() { - - if (time_stamp_ == nullptr) { - auto* p = CreateMaybeMessage(GetArenaNoVirtual()); - time_stamp_ = p; + if (time_stamp_ == NULL) { + time_stamp_ = new ::google::protobuf::Timestamp; } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.time_stamp) return time_stamp_; } -inline PROTOBUF_NAMESPACE_ID::Timestamp* Delta::mutable_time_stamp() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.time_stamp) - return _internal_mutable_time_stamp(); +inline ::google::protobuf::Timestamp* Delta::release_time_stamp() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.Delta.time_stamp) + + ::google::protobuf::Timestamp* temp = time_stamp_; + time_stamp_ = NULL; + return temp; } -inline void Delta::set_allocated_time_stamp(PROTOBUF_NAMESPACE_ID::Timestamp* time_stamp) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_stamp_); +inline void Delta::set_allocated_time_stamp(::google::protobuf::Timestamp* time_stamp) { + delete time_stamp_; + if (time_stamp != NULL && time_stamp->GetArena() != NULL) { + ::google::protobuf::Timestamp* new_time_stamp = new ::google::protobuf::Timestamp; + new_time_stamp->CopyFrom(*time_stamp); + time_stamp = new_time_stamp; } + time_stamp_ = time_stamp; if (time_stamp) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_stamp)->GetArena(); - if (message_arena != submessage_arena) { - time_stamp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, time_stamp, submessage_arena); - } } else { } - time_stamp_ = time_stamp; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Deltas.Delta.time_stamp) } // repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; -inline int Delta::_internal_public_entries_size() const { +inline int Delta::public_entries_size() const { return public_entries_.size(); } -inline int Delta::public_entries_size() const { - return _internal_public_entries_size(); +inline void Delta::clear_public_entries() { + public_entries_.Clear(); +} +inline const ::Catalyst::Protocol::Transaction::PublicEntry& Delta::public_entries(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.public_entries) + return public_entries_.Get(index); } inline ::Catalyst::Protocol::Transaction::PublicEntry* Delta::mutable_public_entries(int index) { // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.public_entries) return public_entries_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >* +inline ::Catalyst::Protocol::Transaction::PublicEntry* Delta::add_public_entries() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Deltas.Delta.public_entries) + return public_entries_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >* Delta::mutable_public_entries() { // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Deltas.Delta.public_entries) return &public_entries_; } -inline const ::Catalyst::Protocol::Transaction::PublicEntry& Delta::_internal_public_entries(int index) const { - return public_entries_.Get(index); -} -inline const ::Catalyst::Protocol::Transaction::PublicEntry& Delta::public_entries(int index) const { - // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.public_entries) - return _internal_public_entries(index); -} -inline ::Catalyst::Protocol::Transaction::PublicEntry* Delta::_internal_add_public_entries() { - return public_entries_.Add(); -} -inline ::Catalyst::Protocol::Transaction::PublicEntry* Delta::add_public_entries() { - // @@protoc_insertion_point(field_add:Catalyst.Protocol.Deltas.Delta.public_entries) - return _internal_add_public_entries(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >& +inline const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >& Delta::public_entries() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.Deltas.Delta.public_entries) return public_entries_; } // repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; -inline int Delta::_internal_confidential_entries_size() const { +inline int Delta::confidential_entries_size() const { return confidential_entries_.size(); } -inline int Delta::confidential_entries_size() const { - return _internal_confidential_entries_size(); +inline void Delta::clear_confidential_entries() { + confidential_entries_.Clear(); +} +inline const ::Catalyst::Protocol::Transaction::ConfidentialEntry& Delta::confidential_entries(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.confidential_entries) + return confidential_entries_.Get(index); } inline ::Catalyst::Protocol::Transaction::ConfidentialEntry* Delta::mutable_confidential_entries(int index) { // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.confidential_entries) return confidential_entries_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::ConfidentialEntry >* +inline ::Catalyst::Protocol::Transaction::ConfidentialEntry* Delta::add_confidential_entries() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Deltas.Delta.confidential_entries) + return confidential_entries_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::ConfidentialEntry >* Delta::mutable_confidential_entries() { // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Deltas.Delta.confidential_entries) return &confidential_entries_; } -inline const ::Catalyst::Protocol::Transaction::ConfidentialEntry& Delta::_internal_confidential_entries(int index) const { - return confidential_entries_.Get(index); -} -inline const ::Catalyst::Protocol::Transaction::ConfidentialEntry& Delta::confidential_entries(int index) const { - // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.confidential_entries) - return _internal_confidential_entries(index); -} -inline ::Catalyst::Protocol::Transaction::ConfidentialEntry* Delta::_internal_add_confidential_entries() { - return confidential_entries_.Add(); -} -inline ::Catalyst::Protocol::Transaction::ConfidentialEntry* Delta::add_confidential_entries() { - // @@protoc_insertion_point(field_add:Catalyst.Protocol.Deltas.Delta.confidential_entries) - return _internal_add_confidential_entries(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::ConfidentialEntry >& +inline const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::ConfidentialEntry >& Delta::confidential_entries() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.Deltas.Delta.confidential_entries) return confidential_entries_; } // repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; -inline int Delta::_internal_coinbase_entries_size() const { +inline int Delta::coinbase_entries_size() const { return coinbase_entries_.size(); } -inline int Delta::coinbase_entries_size() const { - return _internal_coinbase_entries_size(); +inline void Delta::clear_coinbase_entries() { + coinbase_entries_.Clear(); +} +inline const ::Catalyst::Protocol::Transaction::CoinbaseEntry& Delta::coinbase_entries(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.coinbase_entries) + return coinbase_entries_.Get(index); } inline ::Catalyst::Protocol::Transaction::CoinbaseEntry* Delta::mutable_coinbase_entries(int index) { // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.coinbase_entries) return coinbase_entries_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::CoinbaseEntry >* +inline ::Catalyst::Protocol::Transaction::CoinbaseEntry* Delta::add_coinbase_entries() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Deltas.Delta.coinbase_entries) + return coinbase_entries_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::CoinbaseEntry >* Delta::mutable_coinbase_entries() { // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Deltas.Delta.coinbase_entries) return &coinbase_entries_; } -inline const ::Catalyst::Protocol::Transaction::CoinbaseEntry& Delta::_internal_coinbase_entries(int index) const { - return coinbase_entries_.Get(index); -} -inline const ::Catalyst::Protocol::Transaction::CoinbaseEntry& Delta::coinbase_entries(int index) const { - // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.coinbase_entries) - return _internal_coinbase_entries(index); -} -inline ::Catalyst::Protocol::Transaction::CoinbaseEntry* Delta::_internal_add_coinbase_entries() { - return coinbase_entries_.Add(); -} -inline ::Catalyst::Protocol::Transaction::CoinbaseEntry* Delta::add_coinbase_entries() { - // @@protoc_insertion_point(field_add:Catalyst.Protocol.Deltas.Delta.coinbase_entries) - return _internal_add_coinbase_entries(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::CoinbaseEntry >& +inline const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::CoinbaseEntry >& Delta::coinbase_entries() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.Deltas.Delta.coinbase_entries) return coinbase_entries_; @@ -939,97 +747,95 @@ Delta::coinbase_entries() const { // bytes state_root = 8; inline void Delta::clear_state_root() { - state_root_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + state_root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& Delta::state_root() const { +inline const ::std::string& Delta::state_root() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.state_root) - return _internal_state_root(); -} -inline void Delta::set_state_root(const std::string& value) { - _internal_set_state_root(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.state_root) -} -inline std::string* Delta::mutable_state_root() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.state_root) - return _internal_mutable_state_root(); -} -inline const std::string& Delta::_internal_state_root() const { return state_root_.GetNoArena(); } -inline void Delta::_internal_set_state_root(const std::string& value) { +inline void Delta::set_state_root(const ::std::string& value) { - state_root_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + state_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.state_root) } -inline void Delta::set_state_root(std::string&& value) { +#if LANG_CXX11 +inline void Delta::set_state_root(::std::string&& value) { state_root_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Deltas.Delta.state_root) } +#endif inline void Delta::set_state_root(const char* value) { - GOOGLE_DCHECK(value != nullptr); - state_root_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + state_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Deltas.Delta.state_root) } inline void Delta::set_state_root(const void* value, size_t size) { - state_root_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + state_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Deltas.Delta.state_root) } -inline std::string* Delta::_internal_mutable_state_root() { +inline ::std::string* Delta::mutable_state_root() { - return state_root_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Deltas.Delta.state_root) + return state_root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* Delta::release_state_root() { +inline ::std::string* Delta::release_state_root() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Deltas.Delta.state_root) - return state_root_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return state_root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void Delta::set_allocated_state_root(std::string* state_root) { - if (state_root != nullptr) { +inline void Delta::set_allocated_state_root(::std::string* state_root) { + if (state_root != NULL) { } else { } - state_root_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), state_root); + state_root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), state_root); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Deltas.Delta.state_root) } // int64 delta_number = 9; inline void Delta::clear_delta_number() { - delta_number_ = PROTOBUF_LONGLONG(0); + delta_number_ = GOOGLE_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 Delta::_internal_delta_number() const { - return delta_number_; -} -inline ::PROTOBUF_NAMESPACE_ID::int64 Delta::delta_number() const { +inline ::google::protobuf::int64 Delta::delta_number() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.delta_number) - return _internal_delta_number(); + return delta_number_; } -inline void Delta::_internal_set_delta_number(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Delta::set_delta_number(::google::protobuf::int64 value) { delta_number_ = value; -} -inline void Delta::set_delta_number(::PROTOBUF_NAMESPACE_ID::int64 value) { - _internal_set_delta_number(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.delta_number) } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ +// int64 gas_used = 10; +inline void Delta::clear_gas_used() { + gas_used_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::int64 Delta::gas_used() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Deltas.Delta.gas_used) + return gas_used_; +} +inline void Delta::set_gas_used(::google::protobuf::int64 value) { + + gas_used_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Deltas.Delta.gas_used) +} + +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) + } // namespace Deltas } // namespace Protocol } // namespace Catalyst // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Deltas_2eproto +#endif // PROTOBUF_Deltas_2eproto__INCLUDED diff --git a/packages/sdk-cpp/src/DfsMarketplace.pb.cc b/packages/sdk-cpp/src/DfsMarketplace.pb.cc index c72f74f..8a55e4a 100644 --- a/packages/sdk-cpp/src/DfsMarketplace.pb.cc +++ b/packages/sdk-cpp/src/DfsMarketplace.pb.cc @@ -1,200 +1,209 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: DfsMarketplace.proto +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "DfsMarketplace.pb.h" #include +#include +#include +#include #include -#include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_DfsMarketplace_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BlockChallengeRequest_DfsMarketplace_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Peer_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeerId_Peer_2eproto; + namespace Catalyst { namespace Protocol { namespace DfsMarketplace { -class BlockChallengeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class BlockChallengeRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _BlockChallengeRequest_default_instance_; -class BlockChallengeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class BlockChallengeResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _BlockChallengeResponse_default_instance_; -class BlockChallengeBroadcastDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class BlockChallengeBroadcastDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _BlockChallengeBroadcast_default_instance_; -} // namespace DfsMarketplace -} // namespace Protocol -} // namespace Catalyst -static void InitDefaultsscc_info_BlockChallengeBroadcast_DfsMarketplace_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::DfsMarketplace::_BlockChallengeBroadcast_default_instance_; - new (ptr) ::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast::InitAsDefaultInstance(); -} -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_BlockChallengeBroadcast_DfsMarketplace_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_BlockChallengeBroadcast_DfsMarketplace_2eproto}, { - &scc_info_BlockChallengeRequest_DfsMarketplace_2eproto.base, - &scc_info_PeerId_Peer_2eproto.base,}}; +namespace protobuf_DfsMarketplace_2eproto { -static void InitDefaultsscc_info_BlockChallengeRequest_DfsMarketplace_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::DfsMarketplace::_BlockChallengeRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BlockChallengeRequest_DfsMarketplace_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_BlockChallengeRequest_DfsMarketplace_2eproto}, {}}; - -static void InitDefaultsscc_info_BlockChallengeResponse_DfsMarketplace_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - { - void* ptr = &::Catalyst::Protocol::DfsMarketplace::_BlockChallengeResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::DfsMarketplace::BlockChallengeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::DfsMarketplace::BlockChallengeResponse::InitAsDefaultInstance(); -} +namespace { -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BlockChallengeResponse_DfsMarketplace_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_BlockChallengeResponse_DfsMarketplace_2eproto}, {}}; +::google::protobuf::Metadata file_level_metadata[3]; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_DfsMarketplace_2eproto[3]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_DfsMarketplace_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_DfsMarketplace_2eproto = nullptr; +} // namespace -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_DfsMarketplace_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct::offsets[] = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlockChallengeRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest, challenge_salt_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest, main_file_cid_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest, block_idx_random_guid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlockChallengeRequest, challenge_salt_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlockChallengeRequest, main_file_cid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlockChallengeRequest, block_idx_random_guid_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::DfsMarketplace::BlockChallengeResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlockChallengeResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::DfsMarketplace::BlockChallengeResponse, answer_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::DfsMarketplace::BlockChallengeResponse, block_challenge_request_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlockChallengeResponse, answer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlockChallengeResponse, block_challenge_request_hash_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlockChallengeBroadcast, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast, original_challenge_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast, answer_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast, challenged_peer_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast, challenged_by_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest)}, - { 8, -1, sizeof(::Catalyst::Protocol::DfsMarketplace::BlockChallengeResponse)}, - { 15, -1, sizeof(::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast)}, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlockChallengeBroadcast, original_challenge_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlockChallengeBroadcast, answer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlockChallengeBroadcast, challenged_peer_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BlockChallengeBroadcast, challenged_by_), }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::Catalyst::Protocol::DfsMarketplace::_BlockChallengeRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::DfsMarketplace::_BlockChallengeResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::DfsMarketplace::_BlockChallengeBroadcast_default_instance_), +static const ::google::protobuf::internal::MigrationSchema schemas[] = { + { 0, -1, sizeof(BlockChallengeRequest)}, + { 7, -1, sizeof(BlockChallengeResponse)}, + { 13, -1, sizeof(BlockChallengeBroadcast)}, }; -const char descriptor_table_protodef_DfsMarketplace_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\024DfsMarketplace.proto\022 Catalyst.Protoco" - "l.DfsMarketplace\032\nPeer.proto\"e\n\025BlockCha" - "llengeRequest\022\026\n\016challenge_salt\030\001 \001(\t\022\025\n" - "\rmain_file_cid\030\002 \001(\t\022\035\n\025block_idx_random" - "_guid\030\003 \001(\014\"N\n\026BlockChallengeResponse\022\016\n" - "\006answer\030\001 \001(\t\022$\n\034block_challenge_request" - "_hash\030\002 \001(\t\"\356\001\n\027BlockChallengeBroadcast\022" - "S\n\022original_challenge\030\001 \001(\01327.Catalyst.P" - "rotocol.DfsMarketplace.BlockChallengeReq" - "uest\022\016\n\006answer\030\002 \001(\t\0227\n\017challenged_peer\030" - "\003 \001(\0132\036.Catalyst.Protocol.Peer.PeerId\0225\n" - "\rchallenged_by\030\004 \001(\0132\036.Catalyst.Protocol" - ".Peer.PeerIdB\002P\001b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_DfsMarketplace_2eproto_deps[1] = { - &::descriptor_table_Peer_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_DfsMarketplace_2eproto_sccs[3] = { - &scc_info_BlockChallengeBroadcast_DfsMarketplace_2eproto.base, - &scc_info_BlockChallengeRequest_DfsMarketplace_2eproto.base, - &scc_info_BlockChallengeResponse_DfsMarketplace_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_DfsMarketplace_2eproto_once; -static bool descriptor_table_DfsMarketplace_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_DfsMarketplace_2eproto = { - &descriptor_table_DfsMarketplace_2eproto_initialized, descriptor_table_protodef_DfsMarketplace_2eproto, "DfsMarketplace.proto", 504, - &descriptor_table_DfsMarketplace_2eproto_once, descriptor_table_DfsMarketplace_2eproto_sccs, descriptor_table_DfsMarketplace_2eproto_deps, 3, 1, - schemas, file_default_instances, TableStruct_DfsMarketplace_2eproto::offsets, - file_level_metadata_DfsMarketplace_2eproto, 3, file_level_enum_descriptors_DfsMarketplace_2eproto, file_level_service_descriptors_DfsMarketplace_2eproto, +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&_BlockChallengeRequest_default_instance_), + reinterpret_cast(&_BlockChallengeResponse_default_instance_), + reinterpret_cast(&_BlockChallengeBroadcast_default_instance_), }; -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_DfsMarketplace_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_DfsMarketplace_2eproto), true); -namespace Catalyst { -namespace Protocol { -namespace DfsMarketplace { +namespace { -// =================================================================== +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "DfsMarketplace.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} -void BlockChallengeRequest::InitAsDefaultInstance() { +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -class BlockChallengeRequest::_Internal { - public: -}; + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3); +} + +} // namespace + +void TableStruct::Shutdown() { + _BlockChallengeRequest_default_instance_.Shutdown(); + delete file_level_metadata[0].reflection; + _BlockChallengeResponse_default_instance_.Shutdown(); + delete file_level_metadata[1].reflection; + _BlockChallengeBroadcast_default_instance_.Shutdown(); + delete file_level_metadata[2].reflection; +} + +void TableStruct::InitDefaultsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::internal::InitProtobufDefaults(); + ::Catalyst::Protocol::Peer::protobuf_Peer_2eproto::InitDefaults(); + _BlockChallengeRequest_default_instance_.DefaultConstruct(); + _BlockChallengeResponse_default_instance_.DefaultConstruct(); + _BlockChallengeBroadcast_default_instance_.DefaultConstruct(); + _BlockChallengeBroadcast_default_instance_.get_mutable()->original_challenge_ = const_cast< ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest*>( + ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest::internal_default_instance()); + _BlockChallengeBroadcast_default_instance_.get_mutable()->challenged_peer_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( + ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); + _BlockChallengeBroadcast_default_instance_.get_mutable()->challenged_by_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( + ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); +} + +void InitDefaults() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); +} +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] = { + "\n\024DfsMarketplace.proto\022 Catalyst.Protoco" + "l.DfsMarketplace\032\nPeer.proto\"e\n\025BlockCha" + "llengeRequest\022\026\n\016challenge_salt\030\001 \001(\t\022\025\n" + "\rmain_file_cid\030\002 \001(\t\022\035\n\025block_idx_random" + "_guid\030\003 \001(\014\"N\n\026BlockChallengeResponse\022\016\n" + "\006answer\030\001 \001(\t\022$\n\034block_challenge_request" + "_hash\030\002 \001(\t\"\356\001\n\027BlockChallengeBroadcast\022" + "S\n\022original_challenge\030\001 \001(\01327.Catalyst.P" + "rotocol.DfsMarketplace.BlockChallengeReq" + "uest\022\016\n\006answer\030\002 \001(\t\0227\n\017challenged_peer\030" + "\003 \001(\0132\036.Catalyst.Protocol.Peer.PeerId\0225\n" + "\rchallenged_by\030\004 \001(\0132\036.Catalyst.Protocol" + ".Peer.PeerIdB\002P\001b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 504); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "DfsMarketplace.proto", &protobuf_RegisterTypes); + ::Catalyst::Protocol::Peer::protobuf_Peer_2eproto::AddDescriptors(); + ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; + +} // namespace protobuf_DfsMarketplace_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BlockChallengeRequest::kChallengeSaltFieldNumber; +const int BlockChallengeRequest::kMainFileCidFieldNumber; +const int BlockChallengeRequest::kBlockIdxRandomGuidFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 BlockChallengeRequest::BlockChallengeRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_DfsMarketplace_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) } BlockChallengeRequest::BlockChallengeRequest(const BlockChallengeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - challenge_salt_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_challenge_salt().empty()) { - challenge_salt_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.challenge_salt_); + challenge_salt_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.challenge_salt().size() > 0) { + challenge_salt_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.challenge_salt_); } - main_file_cid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_main_file_cid().empty()) { - main_file_cid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.main_file_cid_); + main_file_cid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.main_file_cid().size() > 0) { + main_file_cid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.main_file_cid_); } - block_idx_random_guid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_block_idx_random_guid().empty()) { - block_idx_random_guid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.block_idx_random_guid_); + block_idx_random_guid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.block_idx_random_guid().size() > 0) { + block_idx_random_guid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.block_idx_random_guid_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) } void BlockChallengeRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BlockChallengeRequest_DfsMarketplace_2eproto.base); - challenge_salt_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - main_file_cid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - block_idx_random_guid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + challenge_salt_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + main_file_cid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + block_idx_random_guid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } BlockChallengeRequest::~BlockChallengeRequest() { @@ -203,121 +212,178 @@ BlockChallengeRequest::~BlockChallengeRequest() { } void BlockChallengeRequest::SharedDtor() { - challenge_salt_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - main_file_cid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - block_idx_random_guid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + challenge_salt_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + main_file_cid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + block_idx_random_guid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void BlockChallengeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* BlockChallengeRequest::descriptor() { + protobuf_DfsMarketplace_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_DfsMarketplace_2eproto::file_level_metadata[0].descriptor; +} + const BlockChallengeRequest& BlockChallengeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BlockChallengeRequest_DfsMarketplace_2eproto.base); + protobuf_DfsMarketplace_2eproto::InitDefaults(); return *internal_default_instance(); } +BlockChallengeRequest* BlockChallengeRequest::New(::google::protobuf::Arena* arena) const { + BlockChallengeRequest* n = new BlockChallengeRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void BlockChallengeRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - challenge_salt_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - main_file_cid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - block_idx_random_guid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* BlockChallengeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + challenge_salt_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + main_file_cid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + block_idx_random_guid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool BlockChallengeRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string challenge_salt = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_challenge_salt(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_challenge_salt())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->challenge_salt().data(), this->challenge_salt().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt")); + } else { + goto handle_unusual; + } + break; + } + // string main_file_cid = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_main_file_cid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_main_file_cid())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->main_file_cid().data(), this->main_file_cid().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid")); + } else { + goto handle_unusual; + } + break; + } + // bytes block_idx_random_guid = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_block_idx_random_guid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_block_idx_random_guid())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* BlockChallengeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void BlockChallengeRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) // string challenge_salt = 1; if (this->challenge_salt().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_challenge_salt().data(), static_cast(this->_internal_challenge_salt().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->challenge_salt().data(), this->challenge_salt().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_challenge_salt(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->challenge_salt(), output); } // string main_file_cid = 2; if (this->main_file_cid().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_main_file_cid().data(), static_cast(this->_internal_main_file_cid().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->main_file_cid().data(), this->main_file_cid().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_main_file_cid(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->main_file_cid(), output); } // bytes block_idx_random_guid = 3; if (this->block_idx_random_guid().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_block_idx_random_guid(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->block_idx_random_guid(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) +} + +::google::protobuf::uint8* BlockChallengeRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) + // string challenge_salt = 1; + if (this->challenge_salt().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->challenge_salt().data(), this->challenge_salt().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->challenge_salt(), target); + } + + // string main_file_cid = 2; + if (this->main_file_cid().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->main_file_cid().data(), this->main_file_cid().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->main_file_cid(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // bytes block_idx_random_guid = 3; + if (this->block_idx_random_guid().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->block_idx_random_guid(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) return target; } @@ -326,49 +392,43 @@ size_t BlockChallengeRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string challenge_salt = 1; if (this->challenge_salt().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_challenge_salt()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->challenge_salt()); } // string main_file_cid = 2; if (this->main_file_cid().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_main_file_cid()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->main_file_cid()); } // bytes block_idx_random_guid = 3; if (this->block_idx_random_guid().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_block_idx_random_guid()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->block_idx_random_guid()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void BlockChallengeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void BlockChallengeRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) GOOGLE_DCHECK_NE(&from, this); const BlockChallengeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) MergeFrom(*source); @@ -379,24 +439,21 @@ void BlockChallengeRequest::MergeFrom(const BlockChallengeRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.challenge_salt().size() > 0) { - challenge_salt_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.challenge_salt_); + challenge_salt_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.challenge_salt_); } if (from.main_file_cid().size() > 0) { - main_file_cid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.main_file_cid_); + main_file_cid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.main_file_cid_); } if (from.block_idx_random_guid().size() > 0) { - block_idx_random_guid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.block_idx_random_guid_); + block_idx_random_guid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.block_idx_random_guid_); } } -void BlockChallengeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void BlockChallengeRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) if (&from == this) return; Clear(); @@ -414,54 +471,218 @@ bool BlockChallengeRequest::IsInitialized() const { return true; } -void BlockChallengeRequest::InternalSwap(BlockChallengeRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - challenge_salt_.Swap(&other->challenge_salt_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - main_file_cid_.Swap(&other->main_file_cid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - block_idx_random_guid_.Swap(&other->block_idx_random_guid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void BlockChallengeRequest::Swap(BlockChallengeRequest* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata BlockChallengeRequest::GetMetadata() const { - return GetMetadataStatic(); +void BlockChallengeRequest::InternalSwap(BlockChallengeRequest* other) { + challenge_salt_.Swap(&other->challenge_salt_); + main_file_cid_.Swap(&other->main_file_cid_); + block_idx_random_guid_.Swap(&other->block_idx_random_guid_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BlockChallengeRequest::GetMetadata() const { + protobuf_DfsMarketplace_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_DfsMarketplace_2eproto::file_level_metadata[0]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// BlockChallengeRequest + +// string challenge_salt = 1; +void BlockChallengeRequest::clear_challenge_salt() { + challenge_salt_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& BlockChallengeRequest::challenge_salt() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) + return challenge_salt_.GetNoArena(); +} +void BlockChallengeRequest::set_challenge_salt(const ::std::string& value) { + + challenge_salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) +} +#if LANG_CXX11 +void BlockChallengeRequest::set_challenge_salt(::std::string&& value) { + + challenge_salt_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) +} +#endif +void BlockChallengeRequest::set_challenge_salt(const char* value) { + + challenge_salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) +} +void BlockChallengeRequest::set_challenge_salt(const char* value, size_t size) { + + challenge_salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) +} +::std::string* BlockChallengeRequest::mutable_challenge_salt() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) + return challenge_salt_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* BlockChallengeRequest::release_challenge_salt() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) + + return challenge_salt_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void BlockChallengeRequest::set_allocated_challenge_salt(::std::string* challenge_salt) { + if (challenge_salt != NULL) { + + } else { + + } + challenge_salt_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), challenge_salt); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) +} + +// string main_file_cid = 2; +void BlockChallengeRequest::clear_main_file_cid() { + main_file_cid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& BlockChallengeRequest::main_file_cid() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) + return main_file_cid_.GetNoArena(); +} +void BlockChallengeRequest::set_main_file_cid(const ::std::string& value) { + + main_file_cid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) +} +#if LANG_CXX11 +void BlockChallengeRequest::set_main_file_cid(::std::string&& value) { + + main_file_cid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) +} +#endif +void BlockChallengeRequest::set_main_file_cid(const char* value) { + + main_file_cid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) +} +void BlockChallengeRequest::set_main_file_cid(const char* value, size_t size) { + + main_file_cid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) +} +::std::string* BlockChallengeRequest::mutable_main_file_cid() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) + return main_file_cid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* BlockChallengeRequest::release_main_file_cid() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) + + return main_file_cid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void BlockChallengeRequest::set_allocated_main_file_cid(::std::string* main_file_cid) { + if (main_file_cid != NULL) { + + } else { + + } + main_file_cid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), main_file_cid); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) +} + +// bytes block_idx_random_guid = 3; +void BlockChallengeRequest::clear_block_idx_random_guid() { + block_idx_random_guid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& BlockChallengeRequest::block_idx_random_guid() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) + return block_idx_random_guid_.GetNoArena(); +} +void BlockChallengeRequest::set_block_idx_random_guid(const ::std::string& value) { + + block_idx_random_guid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) +} +#if LANG_CXX11 +void BlockChallengeRequest::set_block_idx_random_guid(::std::string&& value) { + + block_idx_random_guid_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) +} +#endif +void BlockChallengeRequest::set_block_idx_random_guid(const char* value) { + + block_idx_random_guid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) +} +void BlockChallengeRequest::set_block_idx_random_guid(const void* value, size_t size) { + + block_idx_random_guid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) +} +::std::string* BlockChallengeRequest::mutable_block_idx_random_guid() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) + return block_idx_random_guid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* BlockChallengeRequest::release_block_idx_random_guid() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) + + return block_idx_random_guid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void BlockChallengeRequest::set_allocated_block_idx_random_guid(::std::string* block_idx_random_guid) { + if (block_idx_random_guid != NULL) { + + } else { + + } + block_idx_random_guid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), block_idx_random_guid); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void BlockChallengeResponse::InitAsDefaultInstance() { -} -class BlockChallengeResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BlockChallengeResponse::kAnswerFieldNumber; +const int BlockChallengeResponse::kBlockChallengeRequestHashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 BlockChallengeResponse::BlockChallengeResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_DfsMarketplace_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) } BlockChallengeResponse::BlockChallengeResponse(const BlockChallengeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - answer_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_answer().empty()) { - answer_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.answer_); + answer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.answer().size() > 0) { + answer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.answer_); } - block_challenge_request_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_block_challenge_request_hash().empty()) { - block_challenge_request_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.block_challenge_request_hash_); + block_challenge_request_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.block_challenge_request_hash().size() > 0) { + block_challenge_request_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.block_challenge_request_hash_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) } void BlockChallengeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BlockChallengeResponse_DfsMarketplace_2eproto.base); - answer_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - block_challenge_request_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + answer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + block_challenge_request_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } BlockChallengeResponse::~BlockChallengeResponse() { @@ -470,105 +691,152 @@ BlockChallengeResponse::~BlockChallengeResponse() { } void BlockChallengeResponse::SharedDtor() { - answer_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - block_challenge_request_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + answer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + block_challenge_request_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void BlockChallengeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BlockChallengeResponse::descriptor() { + protobuf_DfsMarketplace_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_DfsMarketplace_2eproto::file_level_metadata[1].descriptor; } + const BlockChallengeResponse& BlockChallengeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BlockChallengeResponse_DfsMarketplace_2eproto.base); + protobuf_DfsMarketplace_2eproto::InitDefaults(); return *internal_default_instance(); } +BlockChallengeResponse* BlockChallengeResponse::New(::google::protobuf::Arena* arena) const { + BlockChallengeResponse* n = new BlockChallengeResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void BlockChallengeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - answer_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - block_challenge_request_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* BlockChallengeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + answer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + block_challenge_request_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool BlockChallengeResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string answer = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_answer(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_answer())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->answer().data(), this->answer().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer")); + } else { + goto handle_unusual; + } + break; + } + // string block_challenge_request_hash = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_block_challenge_request_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_block_challenge_request_hash())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->block_challenge_request_hash().data(), this->block_challenge_request_hash().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* BlockChallengeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void BlockChallengeResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) // string answer = 1; if (this->answer().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_answer().data(), static_cast(this->_internal_answer().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->answer().data(), this->answer().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_answer(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->answer(), output); } // string block_challenge_request_hash = 2; if (this->block_challenge_request_hash().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_block_challenge_request_hash().data(), static_cast(this->_internal_block_challenge_request_hash().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->block_challenge_request_hash().data(), this->block_challenge_request_hash().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_block_challenge_request_hash(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->block_challenge_request_hash(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) +} + +::google::protobuf::uint8* BlockChallengeResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) + // string answer = 1; + if (this->answer().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->answer().data(), this->answer().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->answer(), target); } + + // string block_challenge_request_hash = 2; + if (this->block_challenge_request_hash().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->block_challenge_request_hash().data(), this->block_challenge_request_hash().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->block_challenge_request_hash(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) return target; } @@ -577,42 +845,36 @@ size_t BlockChallengeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string answer = 1; if (this->answer().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_answer()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->answer()); } // string block_challenge_request_hash = 2; if (this->block_challenge_request_hash().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_block_challenge_request_hash()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->block_challenge_request_hash()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void BlockChallengeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void BlockChallengeResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) GOOGLE_DCHECK_NE(&from, this); const BlockChallengeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) MergeFrom(*source); @@ -623,20 +885,17 @@ void BlockChallengeResponse::MergeFrom(const BlockChallengeResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.answer().size() > 0) { - answer_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.answer_); + answer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.answer_); } if (from.block_challenge_request_hash().size() > 0) { - block_challenge_request_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.block_challenge_request_hash_); + block_challenge_request_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.block_challenge_request_hash_); } } -void BlockChallengeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void BlockChallengeResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) if (&from == this) return; Clear(); @@ -654,98 +913,179 @@ bool BlockChallengeResponse::IsInitialized() const { return true; } -void BlockChallengeResponse::InternalSwap(BlockChallengeResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - answer_.Swap(&other->answer_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - block_challenge_request_hash_.Swap(&other->block_challenge_request_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void BlockChallengeResponse::Swap(BlockChallengeResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata BlockChallengeResponse::GetMetadata() const { - return GetMetadataStatic(); +void BlockChallengeResponse::InternalSwap(BlockChallengeResponse* other) { + answer_.Swap(&other->answer_); + block_challenge_request_hash_.Swap(&other->block_challenge_request_hash_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BlockChallengeResponse::GetMetadata() const { + protobuf_DfsMarketplace_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_DfsMarketplace_2eproto::file_level_metadata[1]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// BlockChallengeResponse + +// string answer = 1; +void BlockChallengeResponse::clear_answer() { + answer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& BlockChallengeResponse::answer() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) + return answer_.GetNoArena(); +} +void BlockChallengeResponse::set_answer(const ::std::string& value) { + + answer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) +} +#if LANG_CXX11 +void BlockChallengeResponse::set_answer(::std::string&& value) { + + answer_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) +} +#endif +void BlockChallengeResponse::set_answer(const char* value) { + + answer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) +} +void BlockChallengeResponse::set_answer(const char* value, size_t size) { + + answer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) +} +::std::string* BlockChallengeResponse::mutable_answer() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) + return answer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* BlockChallengeResponse::release_answer() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) + + return answer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void BlockChallengeResponse::set_allocated_answer(::std::string* answer) { + if (answer != NULL) { + + } else { + + } + answer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), answer); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) +} + +// string block_challenge_request_hash = 2; +void BlockChallengeResponse::clear_block_challenge_request_hash() { + block_challenge_request_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& BlockChallengeResponse::block_challenge_request_hash() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) + return block_challenge_request_hash_.GetNoArena(); +} +void BlockChallengeResponse::set_block_challenge_request_hash(const ::std::string& value) { + + block_challenge_request_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) +} +#if LANG_CXX11 +void BlockChallengeResponse::set_block_challenge_request_hash(::std::string&& value) { + + block_challenge_request_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) +} +#endif +void BlockChallengeResponse::set_block_challenge_request_hash(const char* value) { + + block_challenge_request_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) +} +void BlockChallengeResponse::set_block_challenge_request_hash(const char* value, size_t size) { + + block_challenge_request_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) +} +::std::string* BlockChallengeResponse::mutable_block_challenge_request_hash() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) + return block_challenge_request_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* BlockChallengeResponse::release_block_challenge_request_hash() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) + + return block_challenge_request_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void BlockChallengeResponse::set_allocated_block_challenge_request_hash(::std::string* block_challenge_request_hash) { + if (block_challenge_request_hash != NULL) { + + } else { + + } + block_challenge_request_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), block_challenge_request_hash); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void BlockChallengeBroadcast::InitAsDefaultInstance() { - ::Catalyst::Protocol::DfsMarketplace::_BlockChallengeBroadcast_default_instance_._instance.get_mutable()->original_challenge_ = const_cast< ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest*>( - ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest::internal_default_instance()); - ::Catalyst::Protocol::DfsMarketplace::_BlockChallengeBroadcast_default_instance_._instance.get_mutable()->challenged_peer_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( - ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); - ::Catalyst::Protocol::DfsMarketplace::_BlockChallengeBroadcast_default_instance_._instance.get_mutable()->challenged_by_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( - ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); -} -class BlockChallengeBroadcast::_Internal { - public: - static const ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest& original_challenge(const BlockChallengeBroadcast* msg); - static const ::Catalyst::Protocol::Peer::PeerId& challenged_peer(const BlockChallengeBroadcast* msg); - static const ::Catalyst::Protocol::Peer::PeerId& challenged_by(const BlockChallengeBroadcast* msg); -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BlockChallengeBroadcast::kOriginalChallengeFieldNumber; +const int BlockChallengeBroadcast::kAnswerFieldNumber; +const int BlockChallengeBroadcast::kChallengedPeerFieldNumber; +const int BlockChallengeBroadcast::kChallengedByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest& -BlockChallengeBroadcast::_Internal::original_challenge(const BlockChallengeBroadcast* msg) { - return *msg->original_challenge_; -} -const ::Catalyst::Protocol::Peer::PeerId& -BlockChallengeBroadcast::_Internal::challenged_peer(const BlockChallengeBroadcast* msg) { - return *msg->challenged_peer_; -} -const ::Catalyst::Protocol::Peer::PeerId& -BlockChallengeBroadcast::_Internal::challenged_by(const BlockChallengeBroadcast* msg) { - return *msg->challenged_by_; -} -void BlockChallengeBroadcast::clear_challenged_peer() { - if (GetArenaNoVirtual() == nullptr && challenged_peer_ != nullptr) { - delete challenged_peer_; - } - challenged_peer_ = nullptr; -} -void BlockChallengeBroadcast::clear_challenged_by() { - if (GetArenaNoVirtual() == nullptr && challenged_by_ != nullptr) { - delete challenged_by_; - } - challenged_by_ = nullptr; -} BlockChallengeBroadcast::BlockChallengeBroadcast() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_DfsMarketplace_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) } BlockChallengeBroadcast::BlockChallengeBroadcast(const BlockChallengeBroadcast& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - answer_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_answer().empty()) { - answer_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.answer_); + answer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.answer().size() > 0) { + answer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.answer_); } - if (from._internal_has_original_challenge()) { + if (from.has_original_challenge()) { original_challenge_ = new ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest(*from.original_challenge_); } else { - original_challenge_ = nullptr; + original_challenge_ = NULL; } - if (from._internal_has_challenged_peer()) { + if (from.has_challenged_peer()) { challenged_peer_ = new ::Catalyst::Protocol::Peer::PeerId(*from.challenged_peer_); } else { - challenged_peer_ = nullptr; + challenged_peer_ = NULL; } - if (from._internal_has_challenged_by()) { + if (from.has_challenged_by()) { challenged_by_ = new ::Catalyst::Protocol::Peer::PeerId(*from.challenged_by_); } else { - challenged_by_ = nullptr; + challenged_by_ = NULL; } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) } void BlockChallengeBroadcast::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BlockChallengeBroadcast_DfsMarketplace_2eproto.base); - answer_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&original_challenge_, 0, static_cast( - reinterpret_cast(&challenged_by_) - - reinterpret_cast(&original_challenge_)) + sizeof(challenged_by_)); + answer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&original_challenge_, 0, reinterpret_cast(&challenged_by_) - + reinterpret_cast(&original_challenge_) + sizeof(challenged_by_)); + _cached_size_ = 0; } BlockChallengeBroadcast::~BlockChallengeBroadcast() { @@ -754,144 +1094,207 @@ BlockChallengeBroadcast::~BlockChallengeBroadcast() { } void BlockChallengeBroadcast::SharedDtor() { - answer_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete original_challenge_; - if (this != internal_default_instance()) delete challenged_peer_; - if (this != internal_default_instance()) delete challenged_by_; + answer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) { + delete original_challenge_; + } + if (this != internal_default_instance()) { + delete challenged_peer_; + } + if (this != internal_default_instance()) { + delete challenged_by_; + } } void BlockChallengeBroadcast::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BlockChallengeBroadcast::descriptor() { + protobuf_DfsMarketplace_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_DfsMarketplace_2eproto::file_level_metadata[2].descriptor; } + const BlockChallengeBroadcast& BlockChallengeBroadcast::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BlockChallengeBroadcast_DfsMarketplace_2eproto.base); + protobuf_DfsMarketplace_2eproto::InitDefaults(); return *internal_default_instance(); } +BlockChallengeBroadcast* BlockChallengeBroadcast::New(::google::protobuf::Arena* arena) const { + BlockChallengeBroadcast* n = new BlockChallengeBroadcast; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void BlockChallengeBroadcast::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - answer_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && original_challenge_ != nullptr) { + answer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && original_challenge_ != NULL) { delete original_challenge_; } - original_challenge_ = nullptr; - if (GetArenaNoVirtual() == nullptr && challenged_peer_ != nullptr) { + original_challenge_ = NULL; + if (GetArenaNoVirtual() == NULL && challenged_peer_ != NULL) { delete challenged_peer_; } - challenged_peer_ = nullptr; - if (GetArenaNoVirtual() == nullptr && challenged_by_ != nullptr) { + challenged_peer_ = NULL; + if (GetArenaNoVirtual() == NULL && challenged_by_ != NULL) { delete challenged_by_; } - challenged_by_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* BlockChallengeBroadcast::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + challenged_by_ = NULL; +} + +bool BlockChallengeBroadcast::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_original_challenge(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_original_challenge())); + } else { + goto handle_unusual; + } + break; + } + // string answer = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_answer(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_answer())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->answer().data(), this->answer().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer")); + } else { + goto handle_unusual; + } + break; + } + // .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_challenged_peer(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_challenged_peer())); + } else { + goto handle_unusual; + } + break; + } + // .Catalyst.Protocol.Peer.PeerId challenged_by = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_challenged_by(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 4: { + if (tag == 34u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_challenged_by())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* BlockChallengeBroadcast::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void BlockChallengeBroadcast::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) // .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; if (this->has_original_challenge()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::original_challenge(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->original_challenge_, output); } // string answer = 2; if (this->answer().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_answer().data(), static_cast(this->_internal_answer().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->answer().data(), this->answer().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_answer(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->answer(), output); } // .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; if (this->has_challenged_peer()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::challenged_peer(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->challenged_peer_, output); } // .Catalyst.Protocol.Peer.PeerId challenged_by = 4; if (this->has_challenged_by()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::challenged_by(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->challenged_by_, output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) +} + +::google::protobuf::uint8* BlockChallengeBroadcast::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) + // .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; + if (this->has_original_challenge()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *this->original_challenge_, false, target); + } + + // string answer = 2; + if (this->answer().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->answer().data(), this->answer().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->answer(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; + if (this->has_challenged_peer()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 3, *this->challenged_peer_, false, target); } + + // .Catalyst.Protocol.Peer.PeerId challenged_by = 4; + if (this->has_challenged_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 4, *this->challenged_by_, false, target); + } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) return target; } @@ -900,56 +1303,50 @@ size_t BlockChallengeBroadcast::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string answer = 2; if (this->answer().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_answer()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->answer()); } // .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; if (this->has_original_challenge()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *original_challenge_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->original_challenge_); } // .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; if (this->has_challenged_peer()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *challenged_peer_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->challenged_peer_); } // .Catalyst.Protocol.Peer.PeerId challenged_by = 4; if (this->has_challenged_by()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *challenged_by_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->challenged_by_); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void BlockChallengeBroadcast::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void BlockChallengeBroadcast::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) GOOGLE_DCHECK_NE(&from, this); const BlockChallengeBroadcast* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) MergeFrom(*source); @@ -960,25 +1357,22 @@ void BlockChallengeBroadcast::MergeFrom(const BlockChallengeBroadcast& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.answer().size() > 0) { - answer_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.answer_); + answer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.answer_); } if (from.has_original_challenge()) { - _internal_mutable_original_challenge()->::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest::MergeFrom(from._internal_original_challenge()); + mutable_original_challenge()->::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest::MergeFrom(from.original_challenge()); } if (from.has_challenged_peer()) { - _internal_mutable_challenged_peer()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from._internal_challenged_peer()); + mutable_challenged_peer()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from.challenged_peer()); } if (from.has_challenged_by()) { - _internal_mutable_challenged_by()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from._internal_challenged_by()); + mutable_challenged_by()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from.challenged_by()); } } -void BlockChallengeBroadcast::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void BlockChallengeBroadcast::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) if (&from == this) return; Clear(); @@ -996,36 +1390,201 @@ bool BlockChallengeBroadcast::IsInitialized() const { return true; } +void BlockChallengeBroadcast::Swap(BlockChallengeBroadcast* other) { + if (other == this) return; + InternalSwap(other); +} void BlockChallengeBroadcast::InternalSwap(BlockChallengeBroadcast* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - answer_.Swap(&other->answer_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(original_challenge_, other->original_challenge_); - swap(challenged_peer_, other->challenged_peer_); - swap(challenged_by_, other->challenged_by_); + answer_.Swap(&other->answer_); + std::swap(original_challenge_, other->original_challenge_); + std::swap(challenged_peer_, other->challenged_peer_); + std::swap(challenged_by_, other->challenged_by_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata BlockChallengeBroadcast::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata BlockChallengeBroadcast::GetMetadata() const { + protobuf_DfsMarketplace_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_DfsMarketplace_2eproto::file_level_metadata[2]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// BlockChallengeBroadcast + +// .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; +bool BlockChallengeBroadcast::has_original_challenge() const { + return this != internal_default_instance() && original_challenge_ != NULL; +} +void BlockChallengeBroadcast::clear_original_challenge() { + if (GetArenaNoVirtual() == NULL && original_challenge_ != NULL) delete original_challenge_; + original_challenge_ = NULL; +} +const ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest& BlockChallengeBroadcast::original_challenge() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.original_challenge) + return original_challenge_ != NULL ? *original_challenge_ + : *::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest::internal_default_instance(); +} +::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* BlockChallengeBroadcast::mutable_original_challenge() { + + if (original_challenge_ == NULL) { + original_challenge_ = new ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.original_challenge) + return original_challenge_; +} +::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* BlockChallengeBroadcast::release_original_challenge() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.original_challenge) + + ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* temp = original_challenge_; + original_challenge_ = NULL; + return temp; +} +void BlockChallengeBroadcast::set_allocated_original_challenge(::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* original_challenge) { + delete original_challenge_; + original_challenge_ = original_challenge; + if (original_challenge) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.original_challenge) +} + +// string answer = 2; +void BlockChallengeBroadcast::clear_answer() { + answer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& BlockChallengeBroadcast::answer() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) + return answer_.GetNoArena(); +} +void BlockChallengeBroadcast::set_answer(const ::std::string& value) { + + answer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) +} +#if LANG_CXX11 +void BlockChallengeBroadcast::set_answer(::std::string&& value) { + + answer_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) +} +#endif +void BlockChallengeBroadcast::set_answer(const char* value) { + + answer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) +} +void BlockChallengeBroadcast::set_answer(const char* value, size_t size) { + + answer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) +} +::std::string* BlockChallengeBroadcast::mutable_answer() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) + return answer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* BlockChallengeBroadcast::release_answer() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) + + return answer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void BlockChallengeBroadcast::set_allocated_answer(::std::string* answer) { + if (answer != NULL) { + + } else { + + } + answer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), answer); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) +} + +// .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; +bool BlockChallengeBroadcast::has_challenged_peer() const { + return this != internal_default_instance() && challenged_peer_ != NULL; +} +void BlockChallengeBroadcast::clear_challenged_peer() { + if (GetArenaNoVirtual() == NULL && challenged_peer_ != NULL) delete challenged_peer_; + challenged_peer_ = NULL; +} +const ::Catalyst::Protocol::Peer::PeerId& BlockChallengeBroadcast::challenged_peer() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_peer) + return challenged_peer_ != NULL ? *challenged_peer_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +::Catalyst::Protocol::Peer::PeerId* BlockChallengeBroadcast::mutable_challenged_peer() { + + if (challenged_peer_ == NULL) { + challenged_peer_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_peer) + return challenged_peer_; +} +::Catalyst::Protocol::Peer::PeerId* BlockChallengeBroadcast::release_challenged_peer() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_peer) + + ::Catalyst::Protocol::Peer::PeerId* temp = challenged_peer_; + challenged_peer_ = NULL; + return temp; +} +void BlockChallengeBroadcast::set_allocated_challenged_peer(::Catalyst::Protocol::Peer::PeerId* challenged_peer) { + delete challenged_peer_; + challenged_peer_ = challenged_peer; + if (challenged_peer) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_peer) +} + +// .Catalyst.Protocol.Peer.PeerId challenged_by = 4; +bool BlockChallengeBroadcast::has_challenged_by() const { + return this != internal_default_instance() && challenged_by_ != NULL; +} +void BlockChallengeBroadcast::clear_challenged_by() { + if (GetArenaNoVirtual() == NULL && challenged_by_ != NULL) delete challenged_by_; + challenged_by_ = NULL; +} +const ::Catalyst::Protocol::Peer::PeerId& BlockChallengeBroadcast::challenged_by() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_by) + return challenged_by_ != NULL ? *challenged_by_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +::Catalyst::Protocol::Peer::PeerId* BlockChallengeBroadcast::mutable_challenged_by() { + + if (challenged_by_ == NULL) { + challenged_by_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_by) + return challenged_by_; +} +::Catalyst::Protocol::Peer::PeerId* BlockChallengeBroadcast::release_challenged_by() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_by) + + ::Catalyst::Protocol::Peer::PeerId* temp = challenged_by_; + challenged_by_ = NULL; + return temp; +} +void BlockChallengeBroadcast::set_allocated_challenged_by(::Catalyst::Protocol::Peer::PeerId* challenged_by) { + delete challenged_by_; + challenged_by_ = challenged_by; + if (challenged_by) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_by) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) + } // namespace DfsMarketplace } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::DfsMarketplace::BlockChallengeResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::DfsMarketplace::BlockChallengeResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::DfsMarketplace::BlockChallengeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast* Arena::CreateMaybeMessage< ::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast >(arena); -} -PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include diff --git a/packages/sdk-cpp/src/DfsMarketplace.pb.h b/packages/sdk-cpp/src/DfsMarketplace.pb.h index 7551e83..a13d802 100644 --- a/packages/sdk-cpp/src/DfsMarketplace.pb.h +++ b/packages/sdk-cpp/src/DfsMarketplace.pb.h @@ -1,60 +1,35 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: DfsMarketplace.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_DfsMarketplace_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_DfsMarketplace_2eproto +#ifndef PROTOBUF_DfsMarketplace_2eproto__INCLUDED +#define PROTOBUF_DfsMarketplace_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3011000 +#include + +#if GOOGLE_PROTOBUF_VERSION < 3002000 #error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update +#error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3002000 < GOOGLE_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 incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif -#include #include #include #include -#include #include -#include #include -#include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include "Peer.pb.h" // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_DfsMarketplace_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_DfsMarketplace_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_DfsMarketplace_2eproto; namespace Catalyst { namespace Protocol { namespace DfsMarketplace { @@ -68,715 +43,541 @@ class BlockChallengeResponse; class BlockChallengeResponseDefaultTypeInternal; extern BlockChallengeResponseDefaultTypeInternal _BlockChallengeResponse_default_instance_; } // namespace DfsMarketplace +namespace Peer { +class PeerId; +class PeerIdDefaultTypeInternal; +extern PeerIdDefaultTypeInternal _PeerId_default_instance_; +class PeerInfo; +class PeerInfoDefaultTypeInternal; +extern PeerInfoDefaultTypeInternal _PeerInfo_default_instance_; +} // namespace Peer } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> ::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast* Arena::CreateMaybeMessage<::Catalyst::Protocol::DfsMarketplace::BlockChallengeBroadcast>(Arena*); -template<> ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest>(Arena*); -template<> ::Catalyst::Protocol::DfsMarketplace::BlockChallengeResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::DfsMarketplace::BlockChallengeResponse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE + namespace Catalyst { namespace Protocol { namespace DfsMarketplace { +namespace protobuf_DfsMarketplace_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::uint32 offsets[]; + static void InitDefaultsImpl(); + static void Shutdown(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_DfsMarketplace_2eproto + // =================================================================== -class BlockChallengeRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) */ { +class BlockChallengeRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) */ { public: BlockChallengeRequest(); virtual ~BlockChallengeRequest(); BlockChallengeRequest(const BlockChallengeRequest& from); - BlockChallengeRequest(BlockChallengeRequest&& from) noexcept - : BlockChallengeRequest() { - *this = ::std::move(from); - } inline BlockChallengeRequest& operator=(const BlockChallengeRequest& from) { CopyFrom(from); return *this; } - inline BlockChallengeRequest& operator=(BlockChallengeRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const BlockChallengeRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const BlockChallengeRequest* internal_default_instance() { return reinterpret_cast( &_BlockChallengeRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(BlockChallengeRequest& a, BlockChallengeRequest& b) { - a.Swap(&b); - } - inline void Swap(BlockChallengeRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(BlockChallengeRequest* other); // implements Message ---------------------------------------------- - inline BlockChallengeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline BlockChallengeRequest* New() const PROTOBUF_FINAL { return New(NULL); } - BlockChallengeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + BlockChallengeRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BlockChallengeRequest& from); void MergeFrom(const BlockChallengeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BlockChallengeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_DfsMarketplace_2eproto); - return ::descriptor_table_DfsMarketplace_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kChallengeSaltFieldNumber = 1, - kMainFileCidFieldNumber = 2, - kBlockIdxRandomGuidFieldNumber = 3, - }; // string challenge_salt = 1; void clear_challenge_salt(); - const std::string& challenge_salt() const; - void set_challenge_salt(const std::string& value); - void set_challenge_salt(std::string&& value); + static const int kChallengeSaltFieldNumber = 1; + const ::std::string& challenge_salt() const; + void set_challenge_salt(const ::std::string& value); + #if LANG_CXX11 + void set_challenge_salt(::std::string&& value); + #endif void set_challenge_salt(const char* value); void set_challenge_salt(const char* value, size_t size); - std::string* mutable_challenge_salt(); - std::string* release_challenge_salt(); - void set_allocated_challenge_salt(std::string* challenge_salt); - private: - const std::string& _internal_challenge_salt() const; - void _internal_set_challenge_salt(const std::string& value); - std::string* _internal_mutable_challenge_salt(); - public: + ::std::string* mutable_challenge_salt(); + ::std::string* release_challenge_salt(); + void set_allocated_challenge_salt(::std::string* challenge_salt); // string main_file_cid = 2; void clear_main_file_cid(); - const std::string& main_file_cid() const; - void set_main_file_cid(const std::string& value); - void set_main_file_cid(std::string&& value); + static const int kMainFileCidFieldNumber = 2; + const ::std::string& main_file_cid() const; + void set_main_file_cid(const ::std::string& value); + #if LANG_CXX11 + void set_main_file_cid(::std::string&& value); + #endif void set_main_file_cid(const char* value); void set_main_file_cid(const char* value, size_t size); - std::string* mutable_main_file_cid(); - std::string* release_main_file_cid(); - void set_allocated_main_file_cid(std::string* main_file_cid); - private: - const std::string& _internal_main_file_cid() const; - void _internal_set_main_file_cid(const std::string& value); - std::string* _internal_mutable_main_file_cid(); - public: + ::std::string* mutable_main_file_cid(); + ::std::string* release_main_file_cid(); + void set_allocated_main_file_cid(::std::string* main_file_cid); // bytes block_idx_random_guid = 3; void clear_block_idx_random_guid(); - const std::string& block_idx_random_guid() const; - void set_block_idx_random_guid(const std::string& value); - void set_block_idx_random_guid(std::string&& value); + static const int kBlockIdxRandomGuidFieldNumber = 3; + const ::std::string& block_idx_random_guid() const; + void set_block_idx_random_guid(const ::std::string& value); + #if LANG_CXX11 + void set_block_idx_random_guid(::std::string&& value); + #endif void set_block_idx_random_guid(const char* value); void set_block_idx_random_guid(const void* value, size_t size); - std::string* mutable_block_idx_random_guid(); - std::string* release_block_idx_random_guid(); - void set_allocated_block_idx_random_guid(std::string* block_idx_random_guid); - private: - const std::string& _internal_block_idx_random_guid() const; - void _internal_set_block_idx_random_guid(const std::string& value); - std::string* _internal_mutable_block_idx_random_guid(); - public: + ::std::string* mutable_block_idx_random_guid(); + ::std::string* release_block_idx_random_guid(); + void set_allocated_block_idx_random_guid(::std::string* block_idx_random_guid); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr challenge_salt_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr main_file_cid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr block_idx_random_guid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_DfsMarketplace_2eproto; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr challenge_salt_; + ::google::protobuf::internal::ArenaStringPtr main_file_cid_; + ::google::protobuf::internal::ArenaStringPtr block_idx_random_guid_; + mutable int _cached_size_; + friend struct protobuf_DfsMarketplace_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class BlockChallengeResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) */ { +class BlockChallengeResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) */ { public: BlockChallengeResponse(); virtual ~BlockChallengeResponse(); BlockChallengeResponse(const BlockChallengeResponse& from); - BlockChallengeResponse(BlockChallengeResponse&& from) noexcept - : BlockChallengeResponse() { - *this = ::std::move(from); - } inline BlockChallengeResponse& operator=(const BlockChallengeResponse& from) { CopyFrom(from); return *this; } - inline BlockChallengeResponse& operator=(BlockChallengeResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const BlockChallengeResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const BlockChallengeResponse* internal_default_instance() { return reinterpret_cast( &_BlockChallengeResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 1; - friend void swap(BlockChallengeResponse& a, BlockChallengeResponse& b) { - a.Swap(&b); - } - inline void Swap(BlockChallengeResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(BlockChallengeResponse* other); // implements Message ---------------------------------------------- - inline BlockChallengeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline BlockChallengeResponse* New() const PROTOBUF_FINAL { return New(NULL); } - BlockChallengeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + BlockChallengeResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BlockChallengeResponse& from); void MergeFrom(const BlockChallengeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BlockChallengeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_DfsMarketplace_2eproto); - return ::descriptor_table_DfsMarketplace_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kAnswerFieldNumber = 1, - kBlockChallengeRequestHashFieldNumber = 2, - }; // string answer = 1; void clear_answer(); - const std::string& answer() const; - void set_answer(const std::string& value); - void set_answer(std::string&& value); + static const int kAnswerFieldNumber = 1; + const ::std::string& answer() const; + void set_answer(const ::std::string& value); + #if LANG_CXX11 + void set_answer(::std::string&& value); + #endif void set_answer(const char* value); void set_answer(const char* value, size_t size); - std::string* mutable_answer(); - std::string* release_answer(); - void set_allocated_answer(std::string* answer); - private: - const std::string& _internal_answer() const; - void _internal_set_answer(const std::string& value); - std::string* _internal_mutable_answer(); - public: + ::std::string* mutable_answer(); + ::std::string* release_answer(); + void set_allocated_answer(::std::string* answer); // string block_challenge_request_hash = 2; void clear_block_challenge_request_hash(); - const std::string& block_challenge_request_hash() const; - void set_block_challenge_request_hash(const std::string& value); - void set_block_challenge_request_hash(std::string&& value); + static const int kBlockChallengeRequestHashFieldNumber = 2; + const ::std::string& block_challenge_request_hash() const; + void set_block_challenge_request_hash(const ::std::string& value); + #if LANG_CXX11 + void set_block_challenge_request_hash(::std::string&& value); + #endif void set_block_challenge_request_hash(const char* value); void set_block_challenge_request_hash(const char* value, size_t size); - std::string* mutable_block_challenge_request_hash(); - std::string* release_block_challenge_request_hash(); - void set_allocated_block_challenge_request_hash(std::string* block_challenge_request_hash); - private: - const std::string& _internal_block_challenge_request_hash() const; - void _internal_set_block_challenge_request_hash(const std::string& value); - std::string* _internal_mutable_block_challenge_request_hash(); - public: + ::std::string* mutable_block_challenge_request_hash(); + ::std::string* release_block_challenge_request_hash(); + void set_allocated_block_challenge_request_hash(::std::string* block_challenge_request_hash); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr answer_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr block_challenge_request_hash_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_DfsMarketplace_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr answer_; + ::google::protobuf::internal::ArenaStringPtr block_challenge_request_hash_; + mutable int _cached_size_; + friend struct protobuf_DfsMarketplace_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class BlockChallengeBroadcast : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) */ { +class BlockChallengeBroadcast : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) */ { public: BlockChallengeBroadcast(); virtual ~BlockChallengeBroadcast(); BlockChallengeBroadcast(const BlockChallengeBroadcast& from); - BlockChallengeBroadcast(BlockChallengeBroadcast&& from) noexcept - : BlockChallengeBroadcast() { - *this = ::std::move(from); - } inline BlockChallengeBroadcast& operator=(const BlockChallengeBroadcast& from) { CopyFrom(from); return *this; } - inline BlockChallengeBroadcast& operator=(BlockChallengeBroadcast&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const BlockChallengeBroadcast& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const BlockChallengeBroadcast* internal_default_instance() { return reinterpret_cast( &_BlockChallengeBroadcast_default_instance_); } - static constexpr int kIndexInFileMessages = - 2; - friend void swap(BlockChallengeBroadcast& a, BlockChallengeBroadcast& b) { - a.Swap(&b); - } - inline void Swap(BlockChallengeBroadcast* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(BlockChallengeBroadcast* other); // implements Message ---------------------------------------------- - inline BlockChallengeBroadcast* New() const final { - return CreateMaybeMessage(nullptr); - } + inline BlockChallengeBroadcast* New() const PROTOBUF_FINAL { return New(NULL); } - BlockChallengeBroadcast* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + BlockChallengeBroadcast* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BlockChallengeBroadcast& from); void MergeFrom(const BlockChallengeBroadcast& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BlockChallengeBroadcast* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_DfsMarketplace_2eproto); - return ::descriptor_table_DfsMarketplace_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kAnswerFieldNumber = 2, - kOriginalChallengeFieldNumber = 1, - kChallengedPeerFieldNumber = 3, - kChallengedByFieldNumber = 4, - }; // string answer = 2; void clear_answer(); - const std::string& answer() const; - void set_answer(const std::string& value); - void set_answer(std::string&& value); + static const int kAnswerFieldNumber = 2; + const ::std::string& answer() const; + void set_answer(const ::std::string& value); + #if LANG_CXX11 + void set_answer(::std::string&& value); + #endif void set_answer(const char* value); void set_answer(const char* value, size_t size); - std::string* mutable_answer(); - std::string* release_answer(); - void set_allocated_answer(std::string* answer); - private: - const std::string& _internal_answer() const; - void _internal_set_answer(const std::string& value); - std::string* _internal_mutable_answer(); - public: + ::std::string* mutable_answer(); + ::std::string* release_answer(); + void set_allocated_answer(::std::string* answer); // .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; bool has_original_challenge() const; - private: - bool _internal_has_original_challenge() const; - public: void clear_original_challenge(); + static const int kOriginalChallengeFieldNumber = 1; const ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest& original_challenge() const; - ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* release_original_challenge(); ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* mutable_original_challenge(); + ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* release_original_challenge(); void set_allocated_original_challenge(::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* original_challenge); - private: - const ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest& _internal_original_challenge() const; - ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* _internal_mutable_original_challenge(); - public: // .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; bool has_challenged_peer() const; - private: - bool _internal_has_challenged_peer() const; - public: void clear_challenged_peer(); + static const int kChallengedPeerFieldNumber = 3; const ::Catalyst::Protocol::Peer::PeerId& challenged_peer() const; - ::Catalyst::Protocol::Peer::PeerId* release_challenged_peer(); ::Catalyst::Protocol::Peer::PeerId* mutable_challenged_peer(); + ::Catalyst::Protocol::Peer::PeerId* release_challenged_peer(); void set_allocated_challenged_peer(::Catalyst::Protocol::Peer::PeerId* challenged_peer); - private: - const ::Catalyst::Protocol::Peer::PeerId& _internal_challenged_peer() const; - ::Catalyst::Protocol::Peer::PeerId* _internal_mutable_challenged_peer(); - public: // .Catalyst.Protocol.Peer.PeerId challenged_by = 4; bool has_challenged_by() const; - private: - bool _internal_has_challenged_by() const; - public: void clear_challenged_by(); + static const int kChallengedByFieldNumber = 4; const ::Catalyst::Protocol::Peer::PeerId& challenged_by() const; - ::Catalyst::Protocol::Peer::PeerId* release_challenged_by(); ::Catalyst::Protocol::Peer::PeerId* mutable_challenged_by(); + ::Catalyst::Protocol::Peer::PeerId* release_challenged_by(); void set_allocated_challenged_by(::Catalyst::Protocol::Peer::PeerId* challenged_by); - private: - const ::Catalyst::Protocol::Peer::PeerId& _internal_challenged_by() const; - ::Catalyst::Protocol::Peer::PeerId* _internal_mutable_challenged_by(); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr answer_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr answer_; ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* original_challenge_; ::Catalyst::Protocol::Peer::PeerId* challenged_peer_; ::Catalyst::Protocol::Peer::PeerId* challenged_by_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_DfsMarketplace_2eproto; + mutable int _cached_size_; + friend struct protobuf_DfsMarketplace_2eproto::TableStruct; }; // =================================================================== // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +#if !PROTOBUF_INLINE_NOT_IN_HEADERS // BlockChallengeRequest // string challenge_salt = 1; inline void BlockChallengeRequest::clear_challenge_salt() { - challenge_salt_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + challenge_salt_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& BlockChallengeRequest::challenge_salt() const { +inline const ::std::string& BlockChallengeRequest::challenge_salt() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) - return _internal_challenge_salt(); -} -inline void BlockChallengeRequest::set_challenge_salt(const std::string& value) { - _internal_set_challenge_salt(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) -} -inline std::string* BlockChallengeRequest::mutable_challenge_salt() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) - return _internal_mutable_challenge_salt(); -} -inline const std::string& BlockChallengeRequest::_internal_challenge_salt() const { return challenge_salt_.GetNoArena(); } -inline void BlockChallengeRequest::_internal_set_challenge_salt(const std::string& value) { +inline void BlockChallengeRequest::set_challenge_salt(const ::std::string& value) { - challenge_salt_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + challenge_salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) } -inline void BlockChallengeRequest::set_challenge_salt(std::string&& value) { +#if LANG_CXX11 +inline void BlockChallengeRequest::set_challenge_salt(::std::string&& value) { challenge_salt_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) } +#endif inline void BlockChallengeRequest::set_challenge_salt(const char* value) { - GOOGLE_DCHECK(value != nullptr); - challenge_salt_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + challenge_salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) } inline void BlockChallengeRequest::set_challenge_salt(const char* value, size_t size) { - challenge_salt_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + challenge_salt_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) } -inline std::string* BlockChallengeRequest::_internal_mutable_challenge_salt() { +inline ::std::string* BlockChallengeRequest::mutable_challenge_salt() { - return challenge_salt_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) + return challenge_salt_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* BlockChallengeRequest::release_challenge_salt() { +inline ::std::string* BlockChallengeRequest::release_challenge_salt() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) - return challenge_salt_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return challenge_salt_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void BlockChallengeRequest::set_allocated_challenge_salt(std::string* challenge_salt) { - if (challenge_salt != nullptr) { +inline void BlockChallengeRequest::set_allocated_challenge_salt(::std::string* challenge_salt) { + if (challenge_salt != NULL) { } else { } - challenge_salt_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), challenge_salt); + challenge_salt_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), challenge_salt); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt) } // string main_file_cid = 2; inline void BlockChallengeRequest::clear_main_file_cid() { - main_file_cid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + main_file_cid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& BlockChallengeRequest::main_file_cid() const { +inline const ::std::string& BlockChallengeRequest::main_file_cid() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) - return _internal_main_file_cid(); -} -inline void BlockChallengeRequest::set_main_file_cid(const std::string& value) { - _internal_set_main_file_cid(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) -} -inline std::string* BlockChallengeRequest::mutable_main_file_cid() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) - return _internal_mutable_main_file_cid(); -} -inline const std::string& BlockChallengeRequest::_internal_main_file_cid() const { return main_file_cid_.GetNoArena(); } -inline void BlockChallengeRequest::_internal_set_main_file_cid(const std::string& value) { +inline void BlockChallengeRequest::set_main_file_cid(const ::std::string& value) { - main_file_cid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + main_file_cid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) } -inline void BlockChallengeRequest::set_main_file_cid(std::string&& value) { +#if LANG_CXX11 +inline void BlockChallengeRequest::set_main_file_cid(::std::string&& value) { main_file_cid_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) } +#endif inline void BlockChallengeRequest::set_main_file_cid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - main_file_cid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + main_file_cid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) } inline void BlockChallengeRequest::set_main_file_cid(const char* value, size_t size) { - main_file_cid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + main_file_cid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) } -inline std::string* BlockChallengeRequest::_internal_mutable_main_file_cid() { +inline ::std::string* BlockChallengeRequest::mutable_main_file_cid() { - return main_file_cid_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) + return main_file_cid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* BlockChallengeRequest::release_main_file_cid() { +inline ::std::string* BlockChallengeRequest::release_main_file_cid() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) - return main_file_cid_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return main_file_cid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void BlockChallengeRequest::set_allocated_main_file_cid(std::string* main_file_cid) { - if (main_file_cid != nullptr) { +inline void BlockChallengeRequest::set_allocated_main_file_cid(::std::string* main_file_cid) { + if (main_file_cid != NULL) { } else { } - main_file_cid_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), main_file_cid); + main_file_cid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), main_file_cid); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid) } // bytes block_idx_random_guid = 3; inline void BlockChallengeRequest::clear_block_idx_random_guid() { - block_idx_random_guid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + block_idx_random_guid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& BlockChallengeRequest::block_idx_random_guid() const { +inline const ::std::string& BlockChallengeRequest::block_idx_random_guid() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) - return _internal_block_idx_random_guid(); -} -inline void BlockChallengeRequest::set_block_idx_random_guid(const std::string& value) { - _internal_set_block_idx_random_guid(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) -} -inline std::string* BlockChallengeRequest::mutable_block_idx_random_guid() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) - return _internal_mutable_block_idx_random_guid(); -} -inline const std::string& BlockChallengeRequest::_internal_block_idx_random_guid() const { return block_idx_random_guid_.GetNoArena(); } -inline void BlockChallengeRequest::_internal_set_block_idx_random_guid(const std::string& value) { +inline void BlockChallengeRequest::set_block_idx_random_guid(const ::std::string& value) { - block_idx_random_guid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + block_idx_random_guid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) } -inline void BlockChallengeRequest::set_block_idx_random_guid(std::string&& value) { +#if LANG_CXX11 +inline void BlockChallengeRequest::set_block_idx_random_guid(::std::string&& value) { block_idx_random_guid_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) } +#endif inline void BlockChallengeRequest::set_block_idx_random_guid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - block_idx_random_guid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + block_idx_random_guid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) } inline void BlockChallengeRequest::set_block_idx_random_guid(const void* value, size_t size) { - block_idx_random_guid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + block_idx_random_guid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) } -inline std::string* BlockChallengeRequest::_internal_mutable_block_idx_random_guid() { +inline ::std::string* BlockChallengeRequest::mutable_block_idx_random_guid() { - return block_idx_random_guid_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) + return block_idx_random_guid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* BlockChallengeRequest::release_block_idx_random_guid() { +inline ::std::string* BlockChallengeRequest::release_block_idx_random_guid() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) - return block_idx_random_guid_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return block_idx_random_guid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void BlockChallengeRequest::set_allocated_block_idx_random_guid(std::string* block_idx_random_guid) { - if (block_idx_random_guid != nullptr) { +inline void BlockChallengeRequest::set_allocated_block_idx_random_guid(::std::string* block_idx_random_guid) { + if (block_idx_random_guid != NULL) { } else { } - block_idx_random_guid_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), block_idx_random_guid); + block_idx_random_guid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), block_idx_random_guid); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid) } @@ -786,121 +587,105 @@ inline void BlockChallengeRequest::set_allocated_block_idx_random_guid(std::stri // string answer = 1; inline void BlockChallengeResponse::clear_answer() { - answer_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + answer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& BlockChallengeResponse::answer() const { +inline const ::std::string& BlockChallengeResponse::answer() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) - return _internal_answer(); -} -inline void BlockChallengeResponse::set_answer(const std::string& value) { - _internal_set_answer(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) -} -inline std::string* BlockChallengeResponse::mutable_answer() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) - return _internal_mutable_answer(); -} -inline const std::string& BlockChallengeResponse::_internal_answer() const { return answer_.GetNoArena(); } -inline void BlockChallengeResponse::_internal_set_answer(const std::string& value) { +inline void BlockChallengeResponse::set_answer(const ::std::string& value) { - answer_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + answer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) } -inline void BlockChallengeResponse::set_answer(std::string&& value) { +#if LANG_CXX11 +inline void BlockChallengeResponse::set_answer(::std::string&& value) { answer_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) } +#endif inline void BlockChallengeResponse::set_answer(const char* value) { - GOOGLE_DCHECK(value != nullptr); - answer_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + answer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) } inline void BlockChallengeResponse::set_answer(const char* value, size_t size) { - answer_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + answer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) } -inline std::string* BlockChallengeResponse::_internal_mutable_answer() { +inline ::std::string* BlockChallengeResponse::mutable_answer() { - return answer_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) + return answer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* BlockChallengeResponse::release_answer() { +inline ::std::string* BlockChallengeResponse::release_answer() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) - return answer_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return answer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void BlockChallengeResponse::set_allocated_answer(std::string* answer) { - if (answer != nullptr) { +inline void BlockChallengeResponse::set_allocated_answer(::std::string* answer) { + if (answer != NULL) { } else { } - answer_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), answer); + answer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), answer); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer) } // string block_challenge_request_hash = 2; inline void BlockChallengeResponse::clear_block_challenge_request_hash() { - block_challenge_request_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + block_challenge_request_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& BlockChallengeResponse::block_challenge_request_hash() const { +inline const ::std::string& BlockChallengeResponse::block_challenge_request_hash() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) - return _internal_block_challenge_request_hash(); -} -inline void BlockChallengeResponse::set_block_challenge_request_hash(const std::string& value) { - _internal_set_block_challenge_request_hash(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) -} -inline std::string* BlockChallengeResponse::mutable_block_challenge_request_hash() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) - return _internal_mutable_block_challenge_request_hash(); -} -inline const std::string& BlockChallengeResponse::_internal_block_challenge_request_hash() const { return block_challenge_request_hash_.GetNoArena(); } -inline void BlockChallengeResponse::_internal_set_block_challenge_request_hash(const std::string& value) { +inline void BlockChallengeResponse::set_block_challenge_request_hash(const ::std::string& value) { - block_challenge_request_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + block_challenge_request_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) } -inline void BlockChallengeResponse::set_block_challenge_request_hash(std::string&& value) { +#if LANG_CXX11 +inline void BlockChallengeResponse::set_block_challenge_request_hash(::std::string&& value) { block_challenge_request_hash_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) } +#endif inline void BlockChallengeResponse::set_block_challenge_request_hash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - block_challenge_request_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + block_challenge_request_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) } inline void BlockChallengeResponse::set_block_challenge_request_hash(const char* value, size_t size) { - block_challenge_request_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + block_challenge_request_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) } -inline std::string* BlockChallengeResponse::_internal_mutable_block_challenge_request_hash() { +inline ::std::string* BlockChallengeResponse::mutable_block_challenge_request_hash() { - return block_challenge_request_hash_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) + return block_challenge_request_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* BlockChallengeResponse::release_block_challenge_request_hash() { +inline ::std::string* BlockChallengeResponse::release_block_challenge_request_hash() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) - return block_challenge_request_hash_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return block_challenge_request_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void BlockChallengeResponse::set_allocated_block_challenge_request_hash(std::string* block_challenge_request_hash) { - if (block_challenge_request_hash != nullptr) { +inline void BlockChallengeResponse::set_allocated_block_challenge_request_hash(::std::string* block_challenge_request_hash) { + if (block_challenge_request_hash != NULL) { } else { } - block_challenge_request_hash_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), block_challenge_request_hash); + block_challenge_request_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), block_challenge_request_hash); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash) } @@ -909,236 +694,175 @@ inline void BlockChallengeResponse::set_allocated_block_challenge_request_hash(s // BlockChallengeBroadcast // .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; -inline bool BlockChallengeBroadcast::_internal_has_original_challenge() const { - return this != internal_default_instance() && original_challenge_ != nullptr; -} inline bool BlockChallengeBroadcast::has_original_challenge() const { - return _internal_has_original_challenge(); + return this != internal_default_instance() && original_challenge_ != NULL; } inline void BlockChallengeBroadcast::clear_original_challenge() { - if (GetArenaNoVirtual() == nullptr && original_challenge_ != nullptr) { - delete original_challenge_; - } - original_challenge_ = nullptr; -} -inline const ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest& BlockChallengeBroadcast::_internal_original_challenge() const { - const ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* p = original_challenge_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::DfsMarketplace::_BlockChallengeRequest_default_instance_); + if (GetArenaNoVirtual() == NULL && original_challenge_ != NULL) delete original_challenge_; + original_challenge_ = NULL; } inline const ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest& BlockChallengeBroadcast::original_challenge() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.original_challenge) - return _internal_original_challenge(); + return original_challenge_ != NULL ? *original_challenge_ + : *::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest::internal_default_instance(); +} +inline ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* BlockChallengeBroadcast::mutable_original_challenge() { + + if (original_challenge_ == NULL) { + original_challenge_ = new ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.original_challenge) + return original_challenge_; } inline ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* BlockChallengeBroadcast::release_original_challenge() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.original_challenge) ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* temp = original_challenge_; - original_challenge_ = nullptr; + original_challenge_ = NULL; return temp; } -inline ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* BlockChallengeBroadcast::_internal_mutable_original_challenge() { - - if (original_challenge_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest>(GetArenaNoVirtual()); - original_challenge_ = p; - } - return original_challenge_; -} -inline ::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* BlockChallengeBroadcast::mutable_original_challenge() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.original_challenge) - return _internal_mutable_original_challenge(); -} inline void BlockChallengeBroadcast::set_allocated_original_challenge(::Catalyst::Protocol::DfsMarketplace::BlockChallengeRequest* original_challenge) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete original_challenge_; - } + delete original_challenge_; + original_challenge_ = original_challenge; if (original_challenge) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - original_challenge = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, original_challenge, submessage_arena); - } } else { } - original_challenge_ = original_challenge; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.original_challenge) } // string answer = 2; inline void BlockChallengeBroadcast::clear_answer() { - answer_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + answer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& BlockChallengeBroadcast::answer() const { +inline const ::std::string& BlockChallengeBroadcast::answer() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) - return _internal_answer(); -} -inline void BlockChallengeBroadcast::set_answer(const std::string& value) { - _internal_set_answer(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) -} -inline std::string* BlockChallengeBroadcast::mutable_answer() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) - return _internal_mutable_answer(); -} -inline const std::string& BlockChallengeBroadcast::_internal_answer() const { return answer_.GetNoArena(); } -inline void BlockChallengeBroadcast::_internal_set_answer(const std::string& value) { +inline void BlockChallengeBroadcast::set_answer(const ::std::string& value) { - answer_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + answer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) } -inline void BlockChallengeBroadcast::set_answer(std::string&& value) { +#if LANG_CXX11 +inline void BlockChallengeBroadcast::set_answer(::std::string&& value) { answer_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) } +#endif inline void BlockChallengeBroadcast::set_answer(const char* value) { - GOOGLE_DCHECK(value != nullptr); - answer_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + answer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) } inline void BlockChallengeBroadcast::set_answer(const char* value, size_t size) { - answer_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + answer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) } -inline std::string* BlockChallengeBroadcast::_internal_mutable_answer() { +inline ::std::string* BlockChallengeBroadcast::mutable_answer() { - return answer_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) + return answer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* BlockChallengeBroadcast::release_answer() { +inline ::std::string* BlockChallengeBroadcast::release_answer() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) - return answer_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return answer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void BlockChallengeBroadcast::set_allocated_answer(std::string* answer) { - if (answer != nullptr) { +inline void BlockChallengeBroadcast::set_allocated_answer(::std::string* answer) { + if (answer != NULL) { } else { } - answer_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), answer); + answer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), answer); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer) } // .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; -inline bool BlockChallengeBroadcast::_internal_has_challenged_peer() const { - return this != internal_default_instance() && challenged_peer_ != nullptr; -} inline bool BlockChallengeBroadcast::has_challenged_peer() const { - return _internal_has_challenged_peer(); + return this != internal_default_instance() && challenged_peer_ != NULL; } -inline const ::Catalyst::Protocol::Peer::PeerId& BlockChallengeBroadcast::_internal_challenged_peer() const { - const ::Catalyst::Protocol::Peer::PeerId* p = challenged_peer_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Peer::_PeerId_default_instance_); +inline void BlockChallengeBroadcast::clear_challenged_peer() { + if (GetArenaNoVirtual() == NULL && challenged_peer_ != NULL) delete challenged_peer_; + challenged_peer_ = NULL; } inline const ::Catalyst::Protocol::Peer::PeerId& BlockChallengeBroadcast::challenged_peer() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_peer) - return _internal_challenged_peer(); + return challenged_peer_ != NULL ? *challenged_peer_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +inline ::Catalyst::Protocol::Peer::PeerId* BlockChallengeBroadcast::mutable_challenged_peer() { + + if (challenged_peer_ == NULL) { + challenged_peer_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_peer) + return challenged_peer_; } inline ::Catalyst::Protocol::Peer::PeerId* BlockChallengeBroadcast::release_challenged_peer() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_peer) ::Catalyst::Protocol::Peer::PeerId* temp = challenged_peer_; - challenged_peer_ = nullptr; + challenged_peer_ = NULL; return temp; } -inline ::Catalyst::Protocol::Peer::PeerId* BlockChallengeBroadcast::_internal_mutable_challenged_peer() { - - if (challenged_peer_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Peer::PeerId>(GetArenaNoVirtual()); - challenged_peer_ = p; - } - return challenged_peer_; -} -inline ::Catalyst::Protocol::Peer::PeerId* BlockChallengeBroadcast::mutable_challenged_peer() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_peer) - return _internal_mutable_challenged_peer(); -} inline void BlockChallengeBroadcast::set_allocated_challenged_peer(::Catalyst::Protocol::Peer::PeerId* challenged_peer) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(challenged_peer_); - } + delete challenged_peer_; + challenged_peer_ = challenged_peer; if (challenged_peer) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - challenged_peer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, challenged_peer, submessage_arena); - } } else { } - challenged_peer_ = challenged_peer; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_peer) } // .Catalyst.Protocol.Peer.PeerId challenged_by = 4; -inline bool BlockChallengeBroadcast::_internal_has_challenged_by() const { - return this != internal_default_instance() && challenged_by_ != nullptr; -} inline bool BlockChallengeBroadcast::has_challenged_by() const { - return _internal_has_challenged_by(); + return this != internal_default_instance() && challenged_by_ != NULL; } -inline const ::Catalyst::Protocol::Peer::PeerId& BlockChallengeBroadcast::_internal_challenged_by() const { - const ::Catalyst::Protocol::Peer::PeerId* p = challenged_by_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Peer::_PeerId_default_instance_); +inline void BlockChallengeBroadcast::clear_challenged_by() { + if (GetArenaNoVirtual() == NULL && challenged_by_ != NULL) delete challenged_by_; + challenged_by_ = NULL; } inline const ::Catalyst::Protocol::Peer::PeerId& BlockChallengeBroadcast::challenged_by() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_by) - return _internal_challenged_by(); + return challenged_by_ != NULL ? *challenged_by_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +inline ::Catalyst::Protocol::Peer::PeerId* BlockChallengeBroadcast::mutable_challenged_by() { + + if (challenged_by_ == NULL) { + challenged_by_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_by) + return challenged_by_; } inline ::Catalyst::Protocol::Peer::PeerId* BlockChallengeBroadcast::release_challenged_by() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_by) ::Catalyst::Protocol::Peer::PeerId* temp = challenged_by_; - challenged_by_ = nullptr; + challenged_by_ = NULL; return temp; } -inline ::Catalyst::Protocol::Peer::PeerId* BlockChallengeBroadcast::_internal_mutable_challenged_by() { - - if (challenged_by_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Peer::PeerId>(GetArenaNoVirtual()); - challenged_by_ = p; - } - return challenged_by_; -} -inline ::Catalyst::Protocol::Peer::PeerId* BlockChallengeBroadcast::mutable_challenged_by() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_by) - return _internal_mutable_challenged_by(); -} inline void BlockChallengeBroadcast::set_allocated_challenged_by(::Catalyst::Protocol::Peer::PeerId* challenged_by) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(challenged_by_); - } + delete challenged_by_; + challenged_by_ = challenged_by; if (challenged_by) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - challenged_by = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, challenged_by, submessage_arena); - } } else { } - challenged_by_ = challenged_by; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_by) } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -1146,11 +870,11 @@ inline void BlockChallengeBroadcast::set_allocated_challenged_by(::Catalyst::Pro // @@protoc_insertion_point(namespace_scope) + } // namespace DfsMarketplace } // namespace Protocol } // namespace Catalyst // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_DfsMarketplace_2eproto +#endif // PROTOBUF_DfsMarketplace_2eproto__INCLUDED diff --git a/packages/sdk-cpp/src/IPPN.pb.cc b/packages/sdk-cpp/src/IPPN.pb.cc index 1fa520e..4e2ea3b 100644 --- a/packages/sdk-cpp/src/IPPN.pb.cc +++ b/packages/sdk-cpp/src/IPPN.pb.cc @@ -1,310 +1,240 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: IPPN.proto +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "IPPN.pb.h" #include +#include +#include +#include #include -#include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_Deltas_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeltaIndex_Deltas_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Peer_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeerId_Peer_2eproto; + namespace Catalyst { namespace Protocol { namespace IPPN { -class PeerNeighborsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class PeerNeighborsRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _PeerNeighborsRequest_default_instance_; -class PeerNeighborsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class PeerNeighborsResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _PeerNeighborsResponse_default_instance_; -class PingRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class PingRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _PingRequest_default_instance_; -class PingResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class PingResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _PingResponse_default_instance_; -class LatestDeltaHashRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class LatestDeltaHashRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _LatestDeltaHashRequest_default_instance_; -class LatestDeltaHashResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class LatestDeltaHashResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _LatestDeltaHashResponse_default_instance_; -class DeltaHistoryRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class DeltaHistoryRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _DeltaHistoryRequest_default_instance_; -class DeltaHistoryResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class DeltaHistoryResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _DeltaHistoryResponse_default_instance_; -} // namespace IPPN -} // namespace Protocol -} // namespace Catalyst -static void InitDefaultsscc_info_DeltaHistoryRequest_IPPN_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - { - void* ptr = &::Catalyst::Protocol::IPPN::_DeltaHistoryRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::IPPN::DeltaHistoryRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::IPPN::DeltaHistoryRequest::InitAsDefaultInstance(); -} +namespace protobuf_IPPN_2eproto { -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeltaHistoryRequest_IPPN_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DeltaHistoryRequest_IPPN_2eproto}, {}}; -static void InitDefaultsscc_info_DeltaHistoryResponse_IPPN_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +namespace { - { - void* ptr = &::Catalyst::Protocol::IPPN::_DeltaHistoryResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::IPPN::DeltaHistoryResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::IPPN::DeltaHistoryResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DeltaHistoryResponse_IPPN_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_DeltaHistoryResponse_IPPN_2eproto}, { - &scc_info_DeltaIndex_Deltas_2eproto.base,}}; - -static void InitDefaultsscc_info_LatestDeltaHashRequest_IPPN_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::IPPN::_LatestDeltaHashRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::IPPN::LatestDeltaHashRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::IPPN::LatestDeltaHashRequest::InitAsDefaultInstance(); -} +::google::protobuf::Metadata file_level_metadata[8]; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LatestDeltaHashRequest_IPPN_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_LatestDeltaHashRequest_IPPN_2eproto}, {}}; - -static void InitDefaultsscc_info_LatestDeltaHashResponse_IPPN_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +} // namespace - { - void* ptr = &::Catalyst::Protocol::IPPN::_LatestDeltaHashResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::IPPN::LatestDeltaHashResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::IPPN::LatestDeltaHashResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_LatestDeltaHashResponse_IPPN_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_LatestDeltaHashResponse_IPPN_2eproto}, { - &scc_info_DeltaIndex_Deltas_2eproto.base,}}; - -static void InitDefaultsscc_info_PeerNeighborsRequest_IPPN_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::IPPN::_PeerNeighborsRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::IPPN::PeerNeighborsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::IPPN::PeerNeighborsRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeerNeighborsRequest_IPPN_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PeerNeighborsRequest_IPPN_2eproto}, {}}; - -static void InitDefaultsscc_info_PeerNeighborsResponse_IPPN_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::IPPN::_PeerNeighborsResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::IPPN::PeerNeighborsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::IPPN::PeerNeighborsResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_PeerNeighborsResponse_IPPN_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_PeerNeighborsResponse_IPPN_2eproto}, { - &scc_info_PeerId_Peer_2eproto.base,}}; - -static void InitDefaultsscc_info_PingRequest_IPPN_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::IPPN::_PingRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::IPPN::PingRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::IPPN::PingRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PingRequest_IPPN_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PingRequest_IPPN_2eproto}, {}}; - -static void InitDefaultsscc_info_PingResponse_IPPN_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::IPPN::_PingResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::IPPN::PingResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::IPPN::PingResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PingResponse_IPPN_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PingResponse_IPPN_2eproto}, {}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_IPPN_2eproto[8]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_IPPN_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_IPPN_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_IPPN_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct::offsets[] = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::PeerNeighborsRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerNeighborsRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::PeerNeighborsResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerNeighborsResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::PeerNeighborsResponse, peers_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerNeighborsResponse, peers_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::PingRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::PingResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::LatestDeltaHashRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LatestDeltaHashRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::LatestDeltaHashResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LatestDeltaHashResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::LatestDeltaHashResponse, result_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LatestDeltaHashResponse, issync_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LatestDeltaHashResponse, deltaindex_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::DeltaHistoryRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeltaHistoryRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::DeltaHistoryRequest, range_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::DeltaHistoryRequest, height_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeltaHistoryRequest, range_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeltaHistoryRequest, height_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::DeltaHistoryResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeltaHistoryResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::IPPN::DeltaHistoryResponse, result_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::Catalyst::Protocol::IPPN::PeerNeighborsRequest)}, - { 5, -1, sizeof(::Catalyst::Protocol::IPPN::PeerNeighborsResponse)}, - { 11, -1, sizeof(::Catalyst::Protocol::IPPN::PingRequest)}, - { 16, -1, sizeof(::Catalyst::Protocol::IPPN::PingResponse)}, - { 21, -1, sizeof(::Catalyst::Protocol::IPPN::LatestDeltaHashRequest)}, - { 26, -1, sizeof(::Catalyst::Protocol::IPPN::LatestDeltaHashResponse)}, - { 32, -1, sizeof(::Catalyst::Protocol::IPPN::DeltaHistoryRequest)}, - { 39, -1, sizeof(::Catalyst::Protocol::IPPN::DeltaHistoryResponse)}, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeltaHistoryResponse, deltaindex_), }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::Catalyst::Protocol::IPPN::_PeerNeighborsRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::IPPN::_PeerNeighborsResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::IPPN::_PingRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::IPPN::_PingResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::IPPN::_LatestDeltaHashRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::IPPN::_LatestDeltaHashResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::IPPN::_DeltaHistoryRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::IPPN::_DeltaHistoryResponse_default_instance_), +static const ::google::protobuf::internal::MigrationSchema schemas[] = { + { 0, -1, sizeof(PeerNeighborsRequest)}, + { 4, -1, sizeof(PeerNeighborsResponse)}, + { 9, -1, sizeof(PingRequest)}, + { 13, -1, sizeof(PingResponse)}, + { 17, -1, sizeof(LatestDeltaHashRequest)}, + { 21, -1, sizeof(LatestDeltaHashResponse)}, + { 27, -1, sizeof(DeltaHistoryRequest)}, + { 33, -1, sizeof(DeltaHistoryResponse)}, }; -const char descriptor_table_protodef_IPPN_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\nIPPN.proto\022\026Catalyst.Protocol.IPPN\032\nPe" - "er.proto\032\014Deltas.proto\"\026\n\024PeerNeighborsR" - "equest\"F\n\025PeerNeighborsResponse\022-\n\005peers" - "\030\001 \003(\0132\036.Catalyst.Protocol.Peer.PeerId\"\r" - "\n\013PingRequest\"\016\n\014PingResponse\"\030\n\026LatestD" - "eltaHashRequest\"O\n\027LatestDeltaHashRespon" - "se\0224\n\006result\030\001 \001(\0132$.Catalyst.Protocol.D" - "eltas.DeltaIndex\"4\n\023DeltaHistoryRequest\022" - "\r\n\005range\030\001 \001(\r\022\016\n\006height\030\002 \001(\r\"L\n\024DeltaH" - "istoryResponse\0224\n\006result\030\001 \003(\0132$.Catalys" - "t.Protocol.Deltas.DeltaIndexB\002P\001b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_IPPN_2eproto_deps[2] = { - &::descriptor_table_Deltas_2eproto, - &::descriptor_table_Peer_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_IPPN_2eproto_sccs[8] = { - &scc_info_DeltaHistoryRequest_IPPN_2eproto.base, - &scc_info_DeltaHistoryResponse_IPPN_2eproto.base, - &scc_info_LatestDeltaHashRequest_IPPN_2eproto.base, - &scc_info_LatestDeltaHashResponse_IPPN_2eproto.base, - &scc_info_PeerNeighborsRequest_IPPN_2eproto.base, - &scc_info_PeerNeighborsResponse_IPPN_2eproto.base, - &scc_info_PingRequest_IPPN_2eproto.base, - &scc_info_PingResponse_IPPN_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_IPPN_2eproto_once; -static bool descriptor_table_IPPN_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_IPPN_2eproto = { - &descriptor_table_IPPN_2eproto_initialized, descriptor_table_protodef_IPPN_2eproto, "IPPN.proto", 440, - &descriptor_table_IPPN_2eproto_once, descriptor_table_IPPN_2eproto_sccs, descriptor_table_IPPN_2eproto_deps, 8, 2, - schemas, file_default_instances, TableStruct_IPPN_2eproto::offsets, - file_level_metadata_IPPN_2eproto, 8, file_level_enum_descriptors_IPPN_2eproto, file_level_service_descriptors_IPPN_2eproto, +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&_PeerNeighborsRequest_default_instance_), + reinterpret_cast(&_PeerNeighborsResponse_default_instance_), + reinterpret_cast(&_PingRequest_default_instance_), + reinterpret_cast(&_PingResponse_default_instance_), + reinterpret_cast(&_LatestDeltaHashRequest_default_instance_), + reinterpret_cast(&_LatestDeltaHashResponse_default_instance_), + reinterpret_cast(&_DeltaHistoryRequest_default_instance_), + reinterpret_cast(&_DeltaHistoryResponse_default_instance_), }; -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_IPPN_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_IPPN_2eproto), true); -namespace Catalyst { -namespace Protocol { -namespace IPPN { +namespace { -// =================================================================== +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "IPPN.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} -void PeerNeighborsRequest::InitAsDefaultInstance() { +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -class PeerNeighborsRequest::_Internal { - public: -}; + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 8); +} + +} // namespace + +void TableStruct::Shutdown() { + _PeerNeighborsRequest_default_instance_.Shutdown(); + delete file_level_metadata[0].reflection; + _PeerNeighborsResponse_default_instance_.Shutdown(); + delete file_level_metadata[1].reflection; + _PingRequest_default_instance_.Shutdown(); + delete file_level_metadata[2].reflection; + _PingResponse_default_instance_.Shutdown(); + delete file_level_metadata[3].reflection; + _LatestDeltaHashRequest_default_instance_.Shutdown(); + delete file_level_metadata[4].reflection; + _LatestDeltaHashResponse_default_instance_.Shutdown(); + delete file_level_metadata[5].reflection; + _DeltaHistoryRequest_default_instance_.Shutdown(); + delete file_level_metadata[6].reflection; + _DeltaHistoryResponse_default_instance_.Shutdown(); + delete file_level_metadata[7].reflection; +} + +void TableStruct::InitDefaultsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::internal::InitProtobufDefaults(); + ::Catalyst::Protocol::Peer::protobuf_Peer_2eproto::InitDefaults(); + ::Catalyst::Protocol::Deltas::protobuf_Deltas_2eproto::InitDefaults(); + _PeerNeighborsRequest_default_instance_.DefaultConstruct(); + _PeerNeighborsResponse_default_instance_.DefaultConstruct(); + _PingRequest_default_instance_.DefaultConstruct(); + _PingResponse_default_instance_.DefaultConstruct(); + _LatestDeltaHashRequest_default_instance_.DefaultConstruct(); + _LatestDeltaHashResponse_default_instance_.DefaultConstruct(); + _DeltaHistoryRequest_default_instance_.DefaultConstruct(); + _DeltaHistoryResponse_default_instance_.DefaultConstruct(); + _LatestDeltaHashResponse_default_instance_.get_mutable()->deltaindex_ = const_cast< ::Catalyst::Protocol::Deltas::DeltaIndex*>( + ::Catalyst::Protocol::Deltas::DeltaIndex::internal_default_instance()); +} + +void InitDefaults() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); +} +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] = { + "\n\nIPPN.proto\022\026Catalyst.Protocol.IPPN\032\nPe" + "er.proto\032\014Deltas.proto\"\026\n\024PeerNeighborsR" + "equest\"F\n\025PeerNeighborsResponse\022-\n\005peers" + "\030\001 \003(\0132\036.Catalyst.Protocol.Peer.PeerId\"\r" + "\n\013PingRequest\"\016\n\014PingResponse\"\030\n\026LatestD" + "eltaHashRequest\"c\n\027LatestDeltaHashRespon" + "se\022\016\n\006isSync\030\001 \001(\010\0228\n\ndeltaIndex\030\002 \001(\0132$" + ".Catalyst.Protocol.Deltas.DeltaIndex\"4\n\023" + "DeltaHistoryRequest\022\r\n\005range\030\001 \001(\r\022\016\n\006he" + "ight\030\002 \001(\r\"P\n\024DeltaHistoryResponse\0228\n\nde" + "ltaIndex\030\001 \003(\0132$.Catalyst.Protocol.Delta" + "s.DeltaIndexB\002P\001b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 464); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "IPPN.proto", &protobuf_RegisterTypes); + ::Catalyst::Protocol::Peer::protobuf_Peer_2eproto::AddDescriptors(); + ::Catalyst::Protocol::Deltas::protobuf_Deltas_2eproto::AddDescriptors(); + ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; + +} // namespace protobuf_IPPN_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 PeerNeighborsRequest::PeerNeighborsRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_IPPN_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.IPPN.PeerNeighborsRequest) } PeerNeighborsRequest::PeerNeighborsRequest(const PeerNeighborsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.IPPN.PeerNeighborsRequest) } void PeerNeighborsRequest::SharedCtor() { + _cached_size_ = 0; } PeerNeighborsRequest::~PeerNeighborsRequest() { @@ -316,55 +246,68 @@ void PeerNeighborsRequest::SharedDtor() { } void PeerNeighborsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PeerNeighborsRequest::descriptor() { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[0].descriptor; } + const PeerNeighborsRequest& PeerNeighborsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PeerNeighborsRequest_IPPN_2eproto.base); + protobuf_IPPN_2eproto::InitDefaults(); return *internal_default_instance(); } +PeerNeighborsRequest* PeerNeighborsRequest::New(::google::protobuf::Arena* arena) const { + PeerNeighborsRequest* n = new PeerNeighborsRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void PeerNeighborsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.IPPN.PeerNeighborsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); } -const char* PeerNeighborsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while +bool PeerNeighborsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.IPPN.PeerNeighborsRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.IPPN.PeerNeighborsRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.IPPN.PeerNeighborsRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* PeerNeighborsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.PeerNeighborsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +void PeerNeighborsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.IPPN.PeerNeighborsRequest) + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.IPPN.PeerNeighborsRequest) +} - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } +::google::protobuf::uint8* PeerNeighborsRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.PeerNeighborsRequest) // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.IPPN.PeerNeighborsRequest) return target; } @@ -373,28 +316,22 @@ size_t PeerNeighborsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.IPPN.PeerNeighborsRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void PeerNeighborsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PeerNeighborsRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.IPPN.PeerNeighborsRequest) GOOGLE_DCHECK_NE(&from, this); const PeerNeighborsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.IPPN.PeerNeighborsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.IPPN.PeerNeighborsRequest) MergeFrom(*source); @@ -405,12 +342,9 @@ void PeerNeighborsRequest::MergeFrom(const PeerNeighborsRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.IPPN.PeerNeighborsRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - } -void PeerNeighborsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PeerNeighborsRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.IPPN.PeerNeighborsRequest) if (&from == this) return; Clear(); @@ -428,42 +362,49 @@ bool PeerNeighborsRequest::IsInitialized() const { return true; } +void PeerNeighborsRequest::Swap(PeerNeighborsRequest* other) { + if (other == this) return; + InternalSwap(other); +} void PeerNeighborsRequest::InternalSwap(PeerNeighborsRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata PeerNeighborsRequest::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata PeerNeighborsRequest::GetMetadata() const { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[0]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// PeerNeighborsRequest + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void PeerNeighborsResponse::InitAsDefaultInstance() { -} -class PeerNeighborsResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PeerNeighborsResponse::kPeersFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -void PeerNeighborsResponse::clear_peers() { - peers_.Clear(); -} PeerNeighborsResponse::PeerNeighborsResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_IPPN_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.IPPN.PeerNeighborsResponse) } PeerNeighborsResponse::PeerNeighborsResponse(const PeerNeighborsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - peers_(from.peers_) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + peers_(from.peers_), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.IPPN.PeerNeighborsResponse) } void PeerNeighborsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PeerNeighborsResponse_IPPN_2eproto.base); + _cached_size_ = 0; } PeerNeighborsResponse::~PeerNeighborsResponse() { @@ -475,81 +416,100 @@ void PeerNeighborsResponse::SharedDtor() { } void PeerNeighborsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* PeerNeighborsResponse::descriptor() { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[1].descriptor; +} + const PeerNeighborsResponse& PeerNeighborsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PeerNeighborsResponse_IPPN_2eproto.base); + protobuf_IPPN_2eproto::InitDefaults(); return *internal_default_instance(); } +PeerNeighborsResponse* PeerNeighborsResponse::New(::google::protobuf::Arena* arena) const { + PeerNeighborsResponse* n = new PeerNeighborsResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void PeerNeighborsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.IPPN.PeerNeighborsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - peers_.Clear(); - _internal_metadata_.Clear(); } -const char* PeerNeighborsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool PeerNeighborsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.IPPN.PeerNeighborsResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .Catalyst.Protocol.Peer.PeerId peers = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_peers(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(input->IncrementRecursionDepth()); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + input, add_peers())); + } else { + goto handle_unusual; + } + input->UnsafeDecrementRecursionDepth(); + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.IPPN.PeerNeighborsResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.IPPN.PeerNeighborsResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* PeerNeighborsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.PeerNeighborsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void PeerNeighborsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.IPPN.PeerNeighborsResponse) // repeated .Catalyst.Protocol.Peer.PeerId peers = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_peers_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_peers(i), target, stream); + for (unsigned int i = 0, n = this->peers_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->peers(i), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.IPPN.PeerNeighborsResponse) +} + +::google::protobuf::uint8* PeerNeighborsResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.PeerNeighborsResponse) + // repeated .Catalyst.Protocol.Peer.PeerId peers = 1; + for (unsigned int i = 0, n = this->peers_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, this->peers(i), false, target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.IPPN.PeerNeighborsResponse) return target; } @@ -558,35 +518,33 @@ size_t PeerNeighborsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.IPPN.PeerNeighborsResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // repeated .Catalyst.Protocol.Peer.PeerId peers = 1; - total_size += 1UL * this->_internal_peers_size(); - for (const auto& msg : this->peers_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + { + unsigned int count = this->peers_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->peers(i)); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void PeerNeighborsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PeerNeighborsResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.IPPN.PeerNeighborsResponse) GOOGLE_DCHECK_NE(&from, this); const PeerNeighborsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.IPPN.PeerNeighborsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.IPPN.PeerNeighborsResponse) MergeFrom(*source); @@ -597,13 +555,10 @@ void PeerNeighborsResponse::MergeFrom(const PeerNeighborsResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.IPPN.PeerNeighborsResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - peers_.MergeFrom(from.peers_); } -void PeerNeighborsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PeerNeighborsResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.IPPN.PeerNeighborsResponse) if (&from == this) return; Clear(); @@ -621,38 +576,78 @@ bool PeerNeighborsResponse::IsInitialized() const { return true; } +void PeerNeighborsResponse::Swap(PeerNeighborsResponse* other) { + if (other == this) return; + InternalSwap(other); +} void PeerNeighborsResponse::InternalSwap(PeerNeighborsResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - peers_.InternalSwap(&other->peers_); + peers_.UnsafeArenaSwap(&other->peers_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata PeerNeighborsResponse::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata PeerNeighborsResponse::GetMetadata() const { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[1]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// PeerNeighborsResponse + +// repeated .Catalyst.Protocol.Peer.PeerId peers = 1; +int PeerNeighborsResponse::peers_size() const { + return peers_.size(); +} +void PeerNeighborsResponse::clear_peers() { + peers_.Clear(); +} +const ::Catalyst::Protocol::Peer::PeerId& PeerNeighborsResponse::peers(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.PeerNeighborsResponse.peers) + return peers_.Get(index); +} +::Catalyst::Protocol::Peer::PeerId* PeerNeighborsResponse::mutable_peers(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.IPPN.PeerNeighborsResponse.peers) + return peers_.Mutable(index); +} +::Catalyst::Protocol::Peer::PeerId* PeerNeighborsResponse::add_peers() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.IPPN.PeerNeighborsResponse.peers) + return peers_.Add(); +} +::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >* +PeerNeighborsResponse::mutable_peers() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.IPPN.PeerNeighborsResponse.peers) + return &peers_; +} +const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >& +PeerNeighborsResponse::peers() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.IPPN.PeerNeighborsResponse.peers) + return peers_; } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void PingRequest::InitAsDefaultInstance() { -} -class PingRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 PingRequest::PingRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_IPPN_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.IPPN.PingRequest) } PingRequest::PingRequest(const PingRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.IPPN.PingRequest) } void PingRequest::SharedCtor() { + _cached_size_ = 0; } PingRequest::~PingRequest() { @@ -664,55 +659,68 @@ void PingRequest::SharedDtor() { } void PingRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PingRequest::descriptor() { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[2].descriptor; } + const PingRequest& PingRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PingRequest_IPPN_2eproto.base); + protobuf_IPPN_2eproto::InitDefaults(); return *internal_default_instance(); } +PingRequest* PingRequest::New(::google::protobuf::Arena* arena) const { + PingRequest* n = new PingRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void PingRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.IPPN.PingRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); } -const char* PingRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while +bool PingRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.IPPN.PingRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.IPPN.PingRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.IPPN.PingRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* PingRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.PingRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +void PingRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.IPPN.PingRequest) + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.IPPN.PingRequest) +} - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } +::google::protobuf::uint8* PingRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.PingRequest) // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.IPPN.PingRequest) return target; } @@ -721,28 +729,22 @@ size_t PingRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.IPPN.PingRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void PingRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PingRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.IPPN.PingRequest) GOOGLE_DCHECK_NE(&from, this); const PingRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.IPPN.PingRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.IPPN.PingRequest) MergeFrom(*source); @@ -753,12 +755,9 @@ void PingRequest::MergeFrom(const PingRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.IPPN.PingRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - } -void PingRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PingRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.IPPN.PingRequest) if (&from == this) return; Clear(); @@ -776,37 +775,47 @@ bool PingRequest::IsInitialized() const { return true; } +void PingRequest::Swap(PingRequest* other) { + if (other == this) return; + InternalSwap(other); +} void PingRequest::InternalSwap(PingRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata PingRequest::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata PingRequest::GetMetadata() const { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[2]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// PingRequest + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void PingResponse::InitAsDefaultInstance() { -} -class PingResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 PingResponse::PingResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_IPPN_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.IPPN.PingResponse) } PingResponse::PingResponse(const PingResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.IPPN.PingResponse) } void PingResponse::SharedCtor() { + _cached_size_ = 0; } PingResponse::~PingResponse() { @@ -818,55 +827,68 @@ void PingResponse::SharedDtor() { } void PingResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PingResponse::descriptor() { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[3].descriptor; } + const PingResponse& PingResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PingResponse_IPPN_2eproto.base); + protobuf_IPPN_2eproto::InitDefaults(); return *internal_default_instance(); } +PingResponse* PingResponse::New(::google::protobuf::Arena* arena) const { + PingResponse* n = new PingResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void PingResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.IPPN.PingResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); } -const char* PingResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while +bool PingResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.IPPN.PingResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.IPPN.PingResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.IPPN.PingResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* PingResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.PingResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +void PingResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.IPPN.PingResponse) + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.IPPN.PingResponse) +} - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } +::google::protobuf::uint8* PingResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.PingResponse) // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.IPPN.PingResponse) return target; } @@ -875,28 +897,22 @@ size_t PingResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.IPPN.PingResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void PingResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PingResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.IPPN.PingResponse) GOOGLE_DCHECK_NE(&from, this); const PingResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.IPPN.PingResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.IPPN.PingResponse) MergeFrom(*source); @@ -907,12 +923,9 @@ void PingResponse::MergeFrom(const PingResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.IPPN.PingResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - } -void PingResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PingResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.IPPN.PingResponse) if (&from == this) return; Clear(); @@ -930,37 +943,47 @@ bool PingResponse::IsInitialized() const { return true; } +void PingResponse::Swap(PingResponse* other) { + if (other == this) return; + InternalSwap(other); +} void PingResponse::InternalSwap(PingResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata PingResponse::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata PingResponse::GetMetadata() const { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[3]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// PingResponse + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void LatestDeltaHashRequest::InitAsDefaultInstance() { -} -class LatestDeltaHashRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 LatestDeltaHashRequest::LatestDeltaHashRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_IPPN_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) } LatestDeltaHashRequest::LatestDeltaHashRequest(const LatestDeltaHashRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) } void LatestDeltaHashRequest::SharedCtor() { + _cached_size_ = 0; } LatestDeltaHashRequest::~LatestDeltaHashRequest() { @@ -972,55 +995,68 @@ void LatestDeltaHashRequest::SharedDtor() { } void LatestDeltaHashRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* LatestDeltaHashRequest::descriptor() { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[4].descriptor; +} + const LatestDeltaHashRequest& LatestDeltaHashRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LatestDeltaHashRequest_IPPN_2eproto.base); + protobuf_IPPN_2eproto::InitDefaults(); return *internal_default_instance(); } +LatestDeltaHashRequest* LatestDeltaHashRequest::New(::google::protobuf::Arena* arena) const { + LatestDeltaHashRequest* n = new LatestDeltaHashRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void LatestDeltaHashRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); } -const char* LatestDeltaHashRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while +bool LatestDeltaHashRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* LatestDeltaHashRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +void LatestDeltaHashRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) +} - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } +::google::protobuf::uint8* LatestDeltaHashRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) return target; } @@ -1029,28 +1065,22 @@ size_t LatestDeltaHashRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void LatestDeltaHashRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void LatestDeltaHashRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) GOOGLE_DCHECK_NE(&from, this); const LatestDeltaHashRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) MergeFrom(*source); @@ -1061,12 +1091,9 @@ void LatestDeltaHashRequest::MergeFrom(const LatestDeltaHashRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - } -void LatestDeltaHashRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void LatestDeltaHashRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) if (&from == this) return; Clear(); @@ -1084,57 +1111,57 @@ bool LatestDeltaHashRequest::IsInitialized() const { return true; } +void LatestDeltaHashRequest::Swap(LatestDeltaHashRequest* other) { + if (other == this) return; + InternalSwap(other); +} void LatestDeltaHashRequest::InternalSwap(LatestDeltaHashRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata LatestDeltaHashRequest::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata LatestDeltaHashRequest::GetMetadata() const { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[4]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// LatestDeltaHashRequest + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void LatestDeltaHashResponse::InitAsDefaultInstance() { - ::Catalyst::Protocol::IPPN::_LatestDeltaHashResponse_default_instance_._instance.get_mutable()->result_ = const_cast< ::Catalyst::Protocol::Deltas::DeltaIndex*>( - ::Catalyst::Protocol::Deltas::DeltaIndex::internal_default_instance()); -} -class LatestDeltaHashResponse::_Internal { - public: - static const ::Catalyst::Protocol::Deltas::DeltaIndex& result(const LatestDeltaHashResponse* msg); -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LatestDeltaHashResponse::kIsSyncFieldNumber; +const int LatestDeltaHashResponse::kDeltaIndexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::Catalyst::Protocol::Deltas::DeltaIndex& -LatestDeltaHashResponse::_Internal::result(const LatestDeltaHashResponse* msg) { - return *msg->result_; -} -void LatestDeltaHashResponse::clear_result() { - if (GetArenaNoVirtual() == nullptr && result_ != nullptr) { - delete result_; - } - result_ = nullptr; -} LatestDeltaHashResponse::LatestDeltaHashResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_IPPN_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) } LatestDeltaHashResponse::LatestDeltaHashResponse(const LatestDeltaHashResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_result()) { - result_ = new ::Catalyst::Protocol::Deltas::DeltaIndex(*from.result_); + if (from.has_deltaindex()) { + deltaindex_ = new ::Catalyst::Protocol::Deltas::DeltaIndex(*from.deltaindex_); } else { - result_ = nullptr; + deltaindex_ = NULL; } + issync_ = from.issync_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) } void LatestDeltaHashResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_LatestDeltaHashResponse_IPPN_2eproto.base); - result_ = nullptr; + ::memset(&deltaindex_, 0, reinterpret_cast(&issync_) - + reinterpret_cast(&deltaindex_) + sizeof(issync_)); + _cached_size_ = 0; } LatestDeltaHashResponse::~LatestDeltaHashResponse() { @@ -1143,83 +1170,131 @@ LatestDeltaHashResponse::~LatestDeltaHashResponse() { } void LatestDeltaHashResponse::SharedDtor() { - if (this != internal_default_instance()) delete result_; + if (this != internal_default_instance()) { + delete deltaindex_; + } } void LatestDeltaHashResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LatestDeltaHashResponse::descriptor() { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[5].descriptor; } + const LatestDeltaHashResponse& LatestDeltaHashResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_LatestDeltaHashResponse_IPPN_2eproto.base); + protobuf_IPPN_2eproto::InitDefaults(); return *internal_default_instance(); } +LatestDeltaHashResponse* LatestDeltaHashResponse::New(::google::protobuf::Arena* arena) const { + LatestDeltaHashResponse* n = new LatestDeltaHashResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void LatestDeltaHashResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && result_ != nullptr) { - delete result_; + if (GetArenaNoVirtual() == NULL && deltaindex_ != NULL) { + delete deltaindex_; } - result_ = nullptr; - _internal_metadata_.Clear(); -} - -const char* LatestDeltaHashResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_result(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + deltaindex_ = NULL; + issync_ = false; +} + +bool LatestDeltaHashResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // bool isSync = 1; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &issync_))); + } else { + goto handle_unusual; + } + break; + } + + // .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_deltaindex())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) + return false; +#undef DO_ +} + +void LatestDeltaHashResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) + // bool isSync = 1; + if (this->issync() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->issync(), output); + } + + // .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; + if (this->has_deltaindex()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->deltaindex_, output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) } -::PROTOBUF_NAMESPACE_ID::uint8* LatestDeltaHashResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::google::protobuf::uint8* LatestDeltaHashResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - if (this->has_result()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::result(this), target, stream); + // bool isSync = 1; + if (this->issync() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->issync(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; + if (this->has_deltaindex()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 2, *this->deltaindex_, false, target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) return target; } @@ -1228,35 +1303,34 @@ size_t LatestDeltaHashResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - if (this->has_result()) { + // .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; + if (this->has_deltaindex()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *result_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->deltaindex_); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); + // bool isSync = 1; + if (this->issync() != 0) { + total_size += 1 + 1; } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void LatestDeltaHashResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void LatestDeltaHashResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) GOOGLE_DCHECK_NE(&from, this); const LatestDeltaHashResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) MergeFrom(*source); @@ -1267,15 +1341,15 @@ void LatestDeltaHashResponse::MergeFrom(const LatestDeltaHashResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.has_result()) { - _internal_mutable_result()->::Catalyst::Protocol::Deltas::DeltaIndex::MergeFrom(from._internal_result()); + if (from.has_deltaindex()) { + mutable_deltaindex()->::Catalyst::Protocol::Deltas::DeltaIndex::MergeFrom(from.deltaindex()); + } + if (from.issync() != 0) { + set_issync(from.issync()); } } -void LatestDeltaHashResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void LatestDeltaHashResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) if (&from == this) return; Clear(); @@ -1293,44 +1367,109 @@ bool LatestDeltaHashResponse::IsInitialized() const { return true; } +void LatestDeltaHashResponse::Swap(LatestDeltaHashResponse* other) { + if (other == this) return; + InternalSwap(other); +} void LatestDeltaHashResponse::InternalSwap(LatestDeltaHashResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(result_, other->result_); + std::swap(deltaindex_, other->deltaindex_); + std::swap(issync_, other->issync_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata LatestDeltaHashResponse::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata LatestDeltaHashResponse::GetMetadata() const { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[5]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// LatestDeltaHashResponse -// =================================================================== +// bool isSync = 1; +void LatestDeltaHashResponse::clear_issync() { + issync_ = false; +} +bool LatestDeltaHashResponse::issync() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.isSync) + return issync_; +} +void LatestDeltaHashResponse::set_issync(bool value) { + + issync_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.isSync) +} -void DeltaHistoryRequest::InitAsDefaultInstance() { +// .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; +bool LatestDeltaHashResponse::has_deltaindex() const { + return this != internal_default_instance() && deltaindex_ != NULL; +} +void LatestDeltaHashResponse::clear_deltaindex() { + if (GetArenaNoVirtual() == NULL && deltaindex_ != NULL) delete deltaindex_; + deltaindex_ = NULL; +} +const ::Catalyst::Protocol::Deltas::DeltaIndex& LatestDeltaHashResponse::deltaindex() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.deltaIndex) + return deltaindex_ != NULL ? *deltaindex_ + : *::Catalyst::Protocol::Deltas::DeltaIndex::internal_default_instance(); +} +::Catalyst::Protocol::Deltas::DeltaIndex* LatestDeltaHashResponse::mutable_deltaindex() { + + if (deltaindex_ == NULL) { + deltaindex_ = new ::Catalyst::Protocol::Deltas::DeltaIndex; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.deltaIndex) + return deltaindex_; +} +::Catalyst::Protocol::Deltas::DeltaIndex* LatestDeltaHashResponse::release_deltaindex() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.deltaIndex) + + ::Catalyst::Protocol::Deltas::DeltaIndex* temp = deltaindex_; + deltaindex_ = NULL; + return temp; +} +void LatestDeltaHashResponse::set_allocated_deltaindex(::Catalyst::Protocol::Deltas::DeltaIndex* deltaindex) { + delete deltaindex_; + deltaindex_ = deltaindex; + if (deltaindex) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.deltaIndex) } -class DeltaHistoryRequest::_Internal { - public: -}; + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DeltaHistoryRequest::kRangeFieldNumber; +const int DeltaHistoryRequest::kHeightFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 DeltaHistoryRequest::DeltaHistoryRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_IPPN_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.IPPN.DeltaHistoryRequest) } DeltaHistoryRequest::DeltaHistoryRequest(const DeltaHistoryRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&range_, &from.range_, - static_cast(reinterpret_cast(&height_) - - reinterpret_cast(&range_)) + sizeof(height_)); + reinterpret_cast(&height_) - + reinterpret_cast(&range_) + sizeof(height_)); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.IPPN.DeltaHistoryRequest) } void DeltaHistoryRequest::SharedCtor() { - ::memset(&range_, 0, static_cast( - reinterpret_cast(&height_) - - reinterpret_cast(&range_)) + sizeof(height_)); + ::memset(&range_, 0, reinterpret_cast(&height_) - + reinterpret_cast(&range_) + sizeof(height_)); + _cached_size_ = 0; } DeltaHistoryRequest::~DeltaHistoryRequest() { @@ -1342,89 +1481,121 @@ void DeltaHistoryRequest::SharedDtor() { } void DeltaHistoryRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* DeltaHistoryRequest::descriptor() { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[6].descriptor; +} + const DeltaHistoryRequest& DeltaHistoryRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeltaHistoryRequest_IPPN_2eproto.base); + protobuf_IPPN_2eproto::InitDefaults(); return *internal_default_instance(); } +DeltaHistoryRequest* DeltaHistoryRequest::New(::google::protobuf::Arena* arena) const { + DeltaHistoryRequest* n = new DeltaHistoryRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void DeltaHistoryRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.IPPN.DeltaHistoryRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&range_, 0, static_cast( - reinterpret_cast(&height_) - - reinterpret_cast(&range_)) + sizeof(height_)); - _internal_metadata_.Clear(); -} - -const char* DeltaHistoryRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + ::memset(&range_, 0, reinterpret_cast(&height_) - + reinterpret_cast(&range_) + sizeof(height_)); +} + +bool DeltaHistoryRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.IPPN.DeltaHistoryRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // uint32 range = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - range_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &range_))); + } else { + goto handle_unusual; + } + break; + } + // uint32 height = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 16u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &height_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.IPPN.DeltaHistoryRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.IPPN.DeltaHistoryRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* DeltaHistoryRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.DeltaHistoryRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void DeltaHistoryRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.IPPN.DeltaHistoryRequest) // uint32 range = 1; if (this->range() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_range(), target); + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->range(), output); } // uint32 height = 2; if (this->height() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_height(), target); + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->height(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.IPPN.DeltaHistoryRequest) +} + +::google::protobuf::uint8* DeltaHistoryRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.DeltaHistoryRequest) + // uint32 range = 1; + if (this->range() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->range(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // uint32 height = 2; + if (this->height() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->height(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.IPPN.DeltaHistoryRequest) return target; } @@ -1433,42 +1604,36 @@ size_t DeltaHistoryRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.IPPN.DeltaHistoryRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // uint32 range = 1; if (this->range() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_range()); + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->range()); } // uint32 height = 2; if (this->height() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_height()); + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->height()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void DeltaHistoryRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DeltaHistoryRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.IPPN.DeltaHistoryRequest) GOOGLE_DCHECK_NE(&from, this); const DeltaHistoryRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.IPPN.DeltaHistoryRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.IPPN.DeltaHistoryRequest) MergeFrom(*source); @@ -1479,18 +1644,15 @@ void DeltaHistoryRequest::MergeFrom(const DeltaHistoryRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.IPPN.DeltaHistoryRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.range() != 0) { - _internal_set_range(from._internal_range()); + set_range(from.range()); } if (from.height() != 0) { - _internal_set_height(from._internal_height()); + set_height(from.height()); } } -void DeltaHistoryRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DeltaHistoryRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.IPPN.DeltaHistoryRequest) if (&from == this) return; Clear(); @@ -1508,44 +1670,79 @@ bool DeltaHistoryRequest::IsInitialized() const { return true; } +void DeltaHistoryRequest::Swap(DeltaHistoryRequest* other) { + if (other == this) return; + InternalSwap(other); +} void DeltaHistoryRequest::InternalSwap(DeltaHistoryRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(range_, other->range_); - swap(height_, other->height_); + std::swap(range_, other->range_); + std::swap(height_, other->height_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata DeltaHistoryRequest::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata DeltaHistoryRequest::GetMetadata() const { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[6]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// DeltaHistoryRequest -// =================================================================== - -void DeltaHistoryResponse::InitAsDefaultInstance() { +// uint32 range = 1; +void DeltaHistoryRequest::clear_range() { + range_ = 0u; +} +::google::protobuf::uint32 DeltaHistoryRequest::range() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.DeltaHistoryRequest.range) + return range_; +} +void DeltaHistoryRequest::set_range(::google::protobuf::uint32 value) { + + range_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.IPPN.DeltaHistoryRequest.range) } -class DeltaHistoryResponse::_Internal { - public: -}; -void DeltaHistoryResponse::clear_result() { - result_.Clear(); +// uint32 height = 2; +void DeltaHistoryRequest::clear_height() { + height_ = 0u; +} +::google::protobuf::uint32 DeltaHistoryRequest::height() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.DeltaHistoryRequest.height) + return height_; +} +void DeltaHistoryRequest::set_height(::google::protobuf::uint32 value) { + + height_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.IPPN.DeltaHistoryRequest.height) } + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DeltaHistoryResponse::kDeltaIndexFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + DeltaHistoryResponse::DeltaHistoryResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_IPPN_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.IPPN.DeltaHistoryResponse) } DeltaHistoryResponse::DeltaHistoryResponse(const DeltaHistoryResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - result_(from.result_) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + deltaindex_(from.deltaindex_), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.IPPN.DeltaHistoryResponse) } void DeltaHistoryResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DeltaHistoryResponse_IPPN_2eproto.base); + _cached_size_ = 0; } DeltaHistoryResponse::~DeltaHistoryResponse() { @@ -1557,81 +1754,100 @@ void DeltaHistoryResponse::SharedDtor() { } void DeltaHistoryResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeltaHistoryResponse::descriptor() { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[7].descriptor; } + const DeltaHistoryResponse& DeltaHistoryResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeltaHistoryResponse_IPPN_2eproto.base); + protobuf_IPPN_2eproto::InitDefaults(); return *internal_default_instance(); } +DeltaHistoryResponse* DeltaHistoryResponse::New(::google::protobuf::Arena* arena) const { + DeltaHistoryResponse* n = new DeltaHistoryResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void DeltaHistoryResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.IPPN.DeltaHistoryResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - result_.Clear(); - _internal_metadata_.Clear(); -} - -const char* DeltaHistoryResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_result(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; + deltaindex_.Clear(); +} + +bool DeltaHistoryResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.IPPN.DeltaHistoryResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; + case 1: { + if (tag == 10u) { + DO_(input->IncrementRecursionDepth()); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + input, add_deltaindex())); + } else { + goto handle_unusual; + } + input->UnsafeDecrementRecursionDepth(); + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.IPPN.DeltaHistoryResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.IPPN.DeltaHistoryResponse) + return false; +#undef DO_ +} + +void DeltaHistoryResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.IPPN.DeltaHistoryResponse) + // repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; + for (unsigned int i = 0, n = this->deltaindex_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->deltaindex(i), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.IPPN.DeltaHistoryResponse) } -::PROTOBUF_NAMESPACE_ID::uint8* DeltaHistoryResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::google::protobuf::uint8* DeltaHistoryResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.IPPN.DeltaHistoryResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_result_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_result(i), target, stream); + // repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; + for (unsigned int i = 0, n = this->deltaindex_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, this->deltaindex(i), false, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.IPPN.DeltaHistoryResponse) return target; } @@ -1640,35 +1856,33 @@ size_t DeltaHistoryResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.IPPN.DeltaHistoryResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - total_size += 1UL * this->_internal_result_size(); - for (const auto& msg : this->result_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + // repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; + { + unsigned int count = this->deltaindex_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->deltaindex(i)); + } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void DeltaHistoryResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DeltaHistoryResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.IPPN.DeltaHistoryResponse) GOOGLE_DCHECK_NE(&from, this); const DeltaHistoryResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.IPPN.DeltaHistoryResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.IPPN.DeltaHistoryResponse) MergeFrom(*source); @@ -1679,13 +1893,10 @@ void DeltaHistoryResponse::MergeFrom(const DeltaHistoryResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.IPPN.DeltaHistoryResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - result_.MergeFrom(from.result_); + deltaindex_.MergeFrom(from.deltaindex_); } -void DeltaHistoryResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DeltaHistoryResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.IPPN.DeltaHistoryResponse) if (&from == this) return; Clear(); @@ -1703,47 +1914,59 @@ bool DeltaHistoryResponse::IsInitialized() const { return true; } +void DeltaHistoryResponse::Swap(DeltaHistoryResponse* other) { + if (other == this) return; + InternalSwap(other); +} void DeltaHistoryResponse::InternalSwap(DeltaHistoryResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - result_.InternalSwap(&other->result_); + deltaindex_.UnsafeArenaSwap(&other->deltaindex_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata DeltaHistoryResponse::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata DeltaHistoryResponse::GetMetadata() const { + protobuf_IPPN_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_IPPN_2eproto::file_level_metadata[7]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// DeltaHistoryResponse -// @@protoc_insertion_point(namespace_scope) -} // namespace IPPN -} // namespace Protocol -} // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::IPPN::PeerNeighborsRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::IPPN::PeerNeighborsRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::IPPN::PeerNeighborsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::IPPN::PeerNeighborsResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::IPPN::PeerNeighborsResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::IPPN::PeerNeighborsResponse >(arena); +// repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; +int DeltaHistoryResponse::deltaindex_size() const { + return deltaindex_.size(); } -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::IPPN::PingRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::IPPN::PingRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::IPPN::PingRequest >(arena); +void DeltaHistoryResponse::clear_deltaindex() { + deltaindex_.Clear(); } -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::IPPN::PingResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::IPPN::PingResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::IPPN::PingResponse >(arena); +const ::Catalyst::Protocol::Deltas::DeltaIndex& DeltaHistoryResponse::deltaindex(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.DeltaHistoryResponse.deltaIndex) + return deltaindex_.Get(index); } -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::IPPN::LatestDeltaHashRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::IPPN::LatestDeltaHashRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::IPPN::LatestDeltaHashRequest >(arena); +::Catalyst::Protocol::Deltas::DeltaIndex* DeltaHistoryResponse::mutable_deltaindex(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.IPPN.DeltaHistoryResponse.deltaIndex) + return deltaindex_.Mutable(index); } -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::IPPN::LatestDeltaHashResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::IPPN::LatestDeltaHashResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::IPPN::LatestDeltaHashResponse >(arena); +::Catalyst::Protocol::Deltas::DeltaIndex* DeltaHistoryResponse::add_deltaindex() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.IPPN.DeltaHistoryResponse.deltaIndex) + return deltaindex_.Add(); } -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::IPPN::DeltaHistoryRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::IPPN::DeltaHistoryRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::IPPN::DeltaHistoryRequest >(arena); +::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Deltas::DeltaIndex >* +DeltaHistoryResponse::mutable_deltaindex() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.IPPN.DeltaHistoryResponse.deltaIndex) + return &deltaindex_; } -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::IPPN::DeltaHistoryResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::IPPN::DeltaHistoryResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::IPPN::DeltaHistoryResponse >(arena); +const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Deltas::DeltaIndex >& +DeltaHistoryResponse::deltaindex() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.IPPN.DeltaHistoryResponse.deltaIndex) + return deltaindex_; } -PROTOBUF_NAMESPACE_CLOSE + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// @@protoc_insertion_point(namespace_scope) + +} // namespace IPPN +} // namespace Protocol +} // namespace Catalyst // @@protoc_insertion_point(global_scope) -#include diff --git a/packages/sdk-cpp/src/IPPN.pb.h b/packages/sdk-cpp/src/IPPN.pb.h index c08effa..948e4a0 100644 --- a/packages/sdk-cpp/src/IPPN.pb.h +++ b/packages/sdk-cpp/src/IPPN.pb.h @@ -1,33 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: IPPN.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_IPPN_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_IPPN_2eproto +#ifndef PROTOBUF_IPPN_2eproto__INCLUDED +#define PROTOBUF_IPPN_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3011000 +#include + +#if GOOGLE_PROTOBUF_VERSION < 3002000 #error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update +#error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3002000 < GOOGLE_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 incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif -#include #include #include #include -#include #include -#include #include -#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -35,29 +31,16 @@ #include "Peer.pb.h" #include "Deltas.pb.h" // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_IPPN_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_IPPN_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[8] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_IPPN_2eproto; namespace Catalyst { namespace Protocol { +namespace Deltas { +class Delta; +class DeltaDefaultTypeInternal; +extern DeltaDefaultTypeInternal _Delta_default_instance_; +class DeltaIndex; +class DeltaIndexDefaultTypeInternal; +extern DeltaIndexDefaultTypeInternal _DeltaIndex_default_instance_; +} // namespace Deltas namespace IPPN { class DeltaHistoryRequest; class DeltaHistoryRequestDefaultTypeInternal; @@ -84,124 +67,96 @@ class PingResponse; class PingResponseDefaultTypeInternal; extern PingResponseDefaultTypeInternal _PingResponse_default_instance_; } // namespace IPPN +namespace Peer { +class PeerId; +class PeerIdDefaultTypeInternal; +extern PeerIdDefaultTypeInternal _PeerId_default_instance_; +class PeerInfo; +class PeerInfoDefaultTypeInternal; +extern PeerInfoDefaultTypeInternal _PeerInfo_default_instance_; +} // namespace Peer } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> ::Catalyst::Protocol::IPPN::DeltaHistoryRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::IPPN::DeltaHistoryRequest>(Arena*); -template<> ::Catalyst::Protocol::IPPN::DeltaHistoryResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::IPPN::DeltaHistoryResponse>(Arena*); -template<> ::Catalyst::Protocol::IPPN::LatestDeltaHashRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::IPPN::LatestDeltaHashRequest>(Arena*); -template<> ::Catalyst::Protocol::IPPN::LatestDeltaHashResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::IPPN::LatestDeltaHashResponse>(Arena*); -template<> ::Catalyst::Protocol::IPPN::PeerNeighborsRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::IPPN::PeerNeighborsRequest>(Arena*); -template<> ::Catalyst::Protocol::IPPN::PeerNeighborsResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::IPPN::PeerNeighborsResponse>(Arena*); -template<> ::Catalyst::Protocol::IPPN::PingRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::IPPN::PingRequest>(Arena*); -template<> ::Catalyst::Protocol::IPPN::PingResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::IPPN::PingResponse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE + namespace Catalyst { namespace Protocol { namespace IPPN { +namespace protobuf_IPPN_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::uint32 offsets[]; + static void InitDefaultsImpl(); + static void Shutdown(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_IPPN_2eproto + // =================================================================== -class PeerNeighborsRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.PeerNeighborsRequest) */ { +class PeerNeighborsRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.PeerNeighborsRequest) */ { public: PeerNeighborsRequest(); virtual ~PeerNeighborsRequest(); PeerNeighborsRequest(const PeerNeighborsRequest& from); - PeerNeighborsRequest(PeerNeighborsRequest&& from) noexcept - : PeerNeighborsRequest() { - *this = ::std::move(from); - } inline PeerNeighborsRequest& operator=(const PeerNeighborsRequest& from) { CopyFrom(from); return *this; } - inline PeerNeighborsRequest& operator=(PeerNeighborsRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const PeerNeighborsRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PeerNeighborsRequest* internal_default_instance() { return reinterpret_cast( &_PeerNeighborsRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(PeerNeighborsRequest& a, PeerNeighborsRequest& b) { - a.Swap(&b); - } - inline void Swap(PeerNeighborsRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(PeerNeighborsRequest* other); // implements Message ---------------------------------------------- - inline PeerNeighborsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline PeerNeighborsRequest* New() const PROTOBUF_FINAL { return New(NULL); } - PeerNeighborsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + PeerNeighborsRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PeerNeighborsRequest& from); void MergeFrom(const PeerNeighborsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PeerNeighborsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.IPPN.PeerNeighborsRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_IPPN_2eproto); - return ::descriptor_table_IPPN_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -209,251 +164,164 @@ class PeerNeighborsRequest : // @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.PeerNeighborsRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_IPPN_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct protobuf_IPPN_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class PeerNeighborsResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.PeerNeighborsResponse) */ { +class PeerNeighborsResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.PeerNeighborsResponse) */ { public: PeerNeighborsResponse(); virtual ~PeerNeighborsResponse(); PeerNeighborsResponse(const PeerNeighborsResponse& from); - PeerNeighborsResponse(PeerNeighborsResponse&& from) noexcept - : PeerNeighborsResponse() { - *this = ::std::move(from); - } inline PeerNeighborsResponse& operator=(const PeerNeighborsResponse& from) { CopyFrom(from); return *this; } - inline PeerNeighborsResponse& operator=(PeerNeighborsResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const PeerNeighborsResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PeerNeighborsResponse* internal_default_instance() { return reinterpret_cast( &_PeerNeighborsResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 1; - friend void swap(PeerNeighborsResponse& a, PeerNeighborsResponse& b) { - a.Swap(&b); - } - inline void Swap(PeerNeighborsResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(PeerNeighborsResponse* other); // implements Message ---------------------------------------------- - inline PeerNeighborsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline PeerNeighborsResponse* New() const PROTOBUF_FINAL { return New(NULL); } - PeerNeighborsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + PeerNeighborsResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PeerNeighborsResponse& from); void MergeFrom(const PeerNeighborsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PeerNeighborsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.IPPN.PeerNeighborsResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_IPPN_2eproto); - return ::descriptor_table_IPPN_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPeersFieldNumber = 1, - }; // repeated .Catalyst.Protocol.Peer.PeerId peers = 1; int peers_size() const; - private: - int _internal_peers_size() const; - public: void clear_peers(); - ::Catalyst::Protocol::Peer::PeerId* mutable_peers(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >* - mutable_peers(); - private: - const ::Catalyst::Protocol::Peer::PeerId& _internal_peers(int index) const; - ::Catalyst::Protocol::Peer::PeerId* _internal_add_peers(); - public: + static const int kPeersFieldNumber = 1; const ::Catalyst::Protocol::Peer::PeerId& peers(int index) const; + ::Catalyst::Protocol::Peer::PeerId* mutable_peers(int index); ::Catalyst::Protocol::Peer::PeerId* add_peers(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >& + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >* + mutable_peers(); + const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >& peers() const; // @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.PeerNeighborsResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId > peers_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_IPPN_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId > peers_; + mutable int _cached_size_; + friend struct protobuf_IPPN_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class PingRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.PingRequest) */ { +class PingRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.PingRequest) */ { public: PingRequest(); virtual ~PingRequest(); PingRequest(const PingRequest& from); - PingRequest(PingRequest&& from) noexcept - : PingRequest() { - *this = ::std::move(from); - } inline PingRequest& operator=(const PingRequest& from) { CopyFrom(from); return *this; } - inline PingRequest& operator=(PingRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const PingRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PingRequest* internal_default_instance() { return reinterpret_cast( &_PingRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 2; - friend void swap(PingRequest& a, PingRequest& b) { - a.Swap(&b); - } - inline void Swap(PingRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(PingRequest* other); // implements Message ---------------------------------------------- - inline PingRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline PingRequest* New() const PROTOBUF_FINAL { return New(NULL); } - PingRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + PingRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PingRequest& from); void MergeFrom(const PingRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PingRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.IPPN.PingRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_IPPN_2eproto); - return ::descriptor_table_IPPN_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -461,114 +329,75 @@ class PingRequest : // @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.PingRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_IPPN_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct protobuf_IPPN_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class PingResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.PingResponse) */ { +class PingResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.PingResponse) */ { public: PingResponse(); virtual ~PingResponse(); PingResponse(const PingResponse& from); - PingResponse(PingResponse&& from) noexcept - : PingResponse() { - *this = ::std::move(from); - } inline PingResponse& operator=(const PingResponse& from) { CopyFrom(from); return *this; } - inline PingResponse& operator=(PingResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const PingResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PingResponse* internal_default_instance() { return reinterpret_cast( &_PingResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 3; - friend void swap(PingResponse& a, PingResponse& b) { - a.Swap(&b); - } - inline void Swap(PingResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(PingResponse* other); // implements Message ---------------------------------------------- - inline PingResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline PingResponse* New() const PROTOBUF_FINAL { return New(NULL); } - PingResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + PingResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PingResponse& from); void MergeFrom(const PingResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PingResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.IPPN.PingResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_IPPN_2eproto); - return ::descriptor_table_IPPN_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -576,114 +405,75 @@ class PingResponse : // @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.PingResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_IPPN_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct protobuf_IPPN_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class LatestDeltaHashRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) */ { +class LatestDeltaHashRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) */ { public: LatestDeltaHashRequest(); virtual ~LatestDeltaHashRequest(); LatestDeltaHashRequest(const LatestDeltaHashRequest& from); - LatestDeltaHashRequest(LatestDeltaHashRequest&& from) noexcept - : LatestDeltaHashRequest() { - *this = ::std::move(from); - } inline LatestDeltaHashRequest& operator=(const LatestDeltaHashRequest& from) { CopyFrom(from); return *this; } - inline LatestDeltaHashRequest& operator=(LatestDeltaHashRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const LatestDeltaHashRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const LatestDeltaHashRequest* internal_default_instance() { return reinterpret_cast( &_LatestDeltaHashRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 4; - friend void swap(LatestDeltaHashRequest& a, LatestDeltaHashRequest& b) { - a.Swap(&b); - } - inline void Swap(LatestDeltaHashRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(LatestDeltaHashRequest* other); // implements Message ---------------------------------------------- - inline LatestDeltaHashRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline LatestDeltaHashRequest* New() const PROTOBUF_FINAL { return New(NULL); } - LatestDeltaHashRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + LatestDeltaHashRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const LatestDeltaHashRequest& from); void MergeFrom(const LatestDeltaHashRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(LatestDeltaHashRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.IPPN.LatestDeltaHashRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_IPPN_2eproto); - return ::descriptor_table_IPPN_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -691,431 +481,289 @@ class LatestDeltaHashRequest : // @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_IPPN_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct protobuf_IPPN_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class LatestDeltaHashResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) */ { +class LatestDeltaHashResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) */ { public: LatestDeltaHashResponse(); virtual ~LatestDeltaHashResponse(); LatestDeltaHashResponse(const LatestDeltaHashResponse& from); - LatestDeltaHashResponse(LatestDeltaHashResponse&& from) noexcept - : LatestDeltaHashResponse() { - *this = ::std::move(from); - } inline LatestDeltaHashResponse& operator=(const LatestDeltaHashResponse& from) { CopyFrom(from); return *this; } - inline LatestDeltaHashResponse& operator=(LatestDeltaHashResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const LatestDeltaHashResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const LatestDeltaHashResponse* internal_default_instance() { return reinterpret_cast( &_LatestDeltaHashResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 5; - friend void swap(LatestDeltaHashResponse& a, LatestDeltaHashResponse& b) { - a.Swap(&b); - } - inline void Swap(LatestDeltaHashResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(LatestDeltaHashResponse* other); // implements Message ---------------------------------------------- - inline LatestDeltaHashResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline LatestDeltaHashResponse* New() const PROTOBUF_FINAL { return New(NULL); } - LatestDeltaHashResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + LatestDeltaHashResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const LatestDeltaHashResponse& from); void MergeFrom(const LatestDeltaHashResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(LatestDeltaHashResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.IPPN.LatestDeltaHashResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_IPPN_2eproto); - return ::descriptor_table_IPPN_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kResultFieldNumber = 1, - }; - // .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - bool has_result() const; - private: - bool _internal_has_result() const; - public: - void clear_result(); - const ::Catalyst::Protocol::Deltas::DeltaIndex& result() const; - ::Catalyst::Protocol::Deltas::DeltaIndex* release_result(); - ::Catalyst::Protocol::Deltas::DeltaIndex* mutable_result(); - void set_allocated_result(::Catalyst::Protocol::Deltas::DeltaIndex* result); - private: - const ::Catalyst::Protocol::Deltas::DeltaIndex& _internal_result() const; - ::Catalyst::Protocol::Deltas::DeltaIndex* _internal_mutable_result(); - public: + // .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; + bool has_deltaindex() const; + void clear_deltaindex(); + static const int kDeltaIndexFieldNumber = 2; + const ::Catalyst::Protocol::Deltas::DeltaIndex& deltaindex() const; + ::Catalyst::Protocol::Deltas::DeltaIndex* mutable_deltaindex(); + ::Catalyst::Protocol::Deltas::DeltaIndex* release_deltaindex(); + void set_allocated_deltaindex(::Catalyst::Protocol::Deltas::DeltaIndex* deltaindex); + + // bool isSync = 1; + void clear_issync(); + static const int kIsSyncFieldNumber = 1; + bool issync() const; + void set_issync(bool value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::Catalyst::Protocol::Deltas::DeltaIndex* result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_IPPN_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::Catalyst::Protocol::Deltas::DeltaIndex* deltaindex_; + bool issync_; + mutable int _cached_size_; + friend struct protobuf_IPPN_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class DeltaHistoryRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.DeltaHistoryRequest) */ { +class DeltaHistoryRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.DeltaHistoryRequest) */ { public: DeltaHistoryRequest(); virtual ~DeltaHistoryRequest(); DeltaHistoryRequest(const DeltaHistoryRequest& from); - DeltaHistoryRequest(DeltaHistoryRequest&& from) noexcept - : DeltaHistoryRequest() { - *this = ::std::move(from); - } inline DeltaHistoryRequest& operator=(const DeltaHistoryRequest& from) { CopyFrom(from); return *this; } - inline DeltaHistoryRequest& operator=(DeltaHistoryRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const DeltaHistoryRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DeltaHistoryRequest* internal_default_instance() { return reinterpret_cast( &_DeltaHistoryRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 6; - friend void swap(DeltaHistoryRequest& a, DeltaHistoryRequest& b) { - a.Swap(&b); - } - inline void Swap(DeltaHistoryRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(DeltaHistoryRequest* other); // implements Message ---------------------------------------------- - inline DeltaHistoryRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline DeltaHistoryRequest* New() const PROTOBUF_FINAL { return New(NULL); } - DeltaHistoryRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + DeltaHistoryRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const DeltaHistoryRequest& from); void MergeFrom(const DeltaHistoryRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(DeltaHistoryRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.IPPN.DeltaHistoryRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_IPPN_2eproto); - return ::descriptor_table_IPPN_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kRangeFieldNumber = 1, - kHeightFieldNumber = 2, - }; // uint32 range = 1; void clear_range(); - ::PROTOBUF_NAMESPACE_ID::uint32 range() const; - void set_range(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_range() const; - void _internal_set_range(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: + static const int kRangeFieldNumber = 1; + ::google::protobuf::uint32 range() const; + void set_range(::google::protobuf::uint32 value); // uint32 height = 2; void clear_height(); - ::PROTOBUF_NAMESPACE_ID::uint32 height() const; - void set_height(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_height() const; - void _internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: + static const int kHeightFieldNumber = 2; + ::google::protobuf::uint32 height() const; + void set_height(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.DeltaHistoryRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::uint32 range_; - ::PROTOBUF_NAMESPACE_ID::uint32 height_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_IPPN_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 range_; + ::google::protobuf::uint32 height_; + mutable int _cached_size_; + friend struct protobuf_IPPN_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class DeltaHistoryResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.DeltaHistoryResponse) */ { +class DeltaHistoryResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.IPPN.DeltaHistoryResponse) */ { public: DeltaHistoryResponse(); virtual ~DeltaHistoryResponse(); DeltaHistoryResponse(const DeltaHistoryResponse& from); - DeltaHistoryResponse(DeltaHistoryResponse&& from) noexcept - : DeltaHistoryResponse() { - *this = ::std::move(from); - } inline DeltaHistoryResponse& operator=(const DeltaHistoryResponse& from) { CopyFrom(from); return *this; } - inline DeltaHistoryResponse& operator=(DeltaHistoryResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const DeltaHistoryResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DeltaHistoryResponse* internal_default_instance() { return reinterpret_cast( &_DeltaHistoryResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 7; - friend void swap(DeltaHistoryResponse& a, DeltaHistoryResponse& b) { - a.Swap(&b); - } - inline void Swap(DeltaHistoryResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(DeltaHistoryResponse* other); // implements Message ---------------------------------------------- - inline DeltaHistoryResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline DeltaHistoryResponse* New() const PROTOBUF_FINAL { return New(NULL); } - DeltaHistoryResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + DeltaHistoryResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const DeltaHistoryResponse& from); void MergeFrom(const DeltaHistoryResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(DeltaHistoryResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.IPPN.DeltaHistoryResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_IPPN_2eproto); - return ::descriptor_table_IPPN_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kResultFieldNumber = 1, - }; - // repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - int result_size() const; - private: - int _internal_result_size() const; - public: - void clear_result(); - ::Catalyst::Protocol::Deltas::DeltaIndex* mutable_result(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Deltas::DeltaIndex >* - mutable_result(); - private: - const ::Catalyst::Protocol::Deltas::DeltaIndex& _internal_result(int index) const; - ::Catalyst::Protocol::Deltas::DeltaIndex* _internal_add_result(); - public: - const ::Catalyst::Protocol::Deltas::DeltaIndex& result(int index) const; - ::Catalyst::Protocol::Deltas::DeltaIndex* add_result(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Deltas::DeltaIndex >& - result() const; + // repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; + int deltaindex_size() const; + void clear_deltaindex(); + static const int kDeltaIndexFieldNumber = 1; + const ::Catalyst::Protocol::Deltas::DeltaIndex& deltaindex(int index) const; + ::Catalyst::Protocol::Deltas::DeltaIndex* mutable_deltaindex(int index); + ::Catalyst::Protocol::Deltas::DeltaIndex* add_deltaindex(); + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Deltas::DeltaIndex >* + mutable_deltaindex(); + const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Deltas::DeltaIndex >& + deltaindex() const; // @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.DeltaHistoryResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Deltas::DeltaIndex > result_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_IPPN_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Deltas::DeltaIndex > deltaindex_; + mutable int _cached_size_; + friend struct protobuf_IPPN_2eproto::TableStruct; }; // =================================================================== // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +#if !PROTOBUF_INLINE_NOT_IN_HEADERS // PeerNeighborsRequest // ------------------------------------------------------------------- @@ -1123,36 +771,30 @@ class DeltaHistoryResponse : // PeerNeighborsResponse // repeated .Catalyst.Protocol.Peer.PeerId peers = 1; -inline int PeerNeighborsResponse::_internal_peers_size() const { +inline int PeerNeighborsResponse::peers_size() const { return peers_.size(); } -inline int PeerNeighborsResponse::peers_size() const { - return _internal_peers_size(); +inline void PeerNeighborsResponse::clear_peers() { + peers_.Clear(); +} +inline const ::Catalyst::Protocol::Peer::PeerId& PeerNeighborsResponse::peers(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.PeerNeighborsResponse.peers) + return peers_.Get(index); } inline ::Catalyst::Protocol::Peer::PeerId* PeerNeighborsResponse::mutable_peers(int index) { // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.IPPN.PeerNeighborsResponse.peers) return peers_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >* +inline ::Catalyst::Protocol::Peer::PeerId* PeerNeighborsResponse::add_peers() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.IPPN.PeerNeighborsResponse.peers) + return peers_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >* PeerNeighborsResponse::mutable_peers() { // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.IPPN.PeerNeighborsResponse.peers) return &peers_; } -inline const ::Catalyst::Protocol::Peer::PeerId& PeerNeighborsResponse::_internal_peers(int index) const { - return peers_.Get(index); -} -inline const ::Catalyst::Protocol::Peer::PeerId& PeerNeighborsResponse::peers(int index) const { - // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.PeerNeighborsResponse.peers) - return _internal_peers(index); -} -inline ::Catalyst::Protocol::Peer::PeerId* PeerNeighborsResponse::_internal_add_peers() { - return peers_.Add(); -} -inline ::Catalyst::Protocol::Peer::PeerId* PeerNeighborsResponse::add_peers() { - // @@protoc_insertion_point(field_add:Catalyst.Protocol.IPPN.PeerNeighborsResponse.peers) - return _internal_add_peers(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >& +inline const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >& PeerNeighborsResponse::peers() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.IPPN.PeerNeighborsResponse.peers) return peers_; @@ -1174,58 +816,57 @@ PeerNeighborsResponse::peers() const { // LatestDeltaHashResponse -// .Catalyst.Protocol.Deltas.DeltaIndex result = 1; -inline bool LatestDeltaHashResponse::_internal_has_result() const { - return this != internal_default_instance() && result_ != nullptr; +// bool isSync = 1; +inline void LatestDeltaHashResponse::clear_issync() { + issync_ = false; } -inline bool LatestDeltaHashResponse::has_result() const { - return _internal_has_result(); +inline bool LatestDeltaHashResponse::issync() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.isSync) + return issync_; } -inline const ::Catalyst::Protocol::Deltas::DeltaIndex& LatestDeltaHashResponse::_internal_result() const { - const ::Catalyst::Protocol::Deltas::DeltaIndex* p = result_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Deltas::_DeltaIndex_default_instance_); +inline void LatestDeltaHashResponse::set_issync(bool value) { + + issync_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.isSync) } -inline const ::Catalyst::Protocol::Deltas::DeltaIndex& LatestDeltaHashResponse::result() const { - // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.result) - return _internal_result(); + +// .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; +inline bool LatestDeltaHashResponse::has_deltaindex() const { + return this != internal_default_instance() && deltaindex_ != NULL; } -inline ::Catalyst::Protocol::Deltas::DeltaIndex* LatestDeltaHashResponse::release_result() { - // @@protoc_insertion_point(field_release:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.result) - - ::Catalyst::Protocol::Deltas::DeltaIndex* temp = result_; - result_ = nullptr; - return temp; +inline void LatestDeltaHashResponse::clear_deltaindex() { + if (GetArenaNoVirtual() == NULL && deltaindex_ != NULL) delete deltaindex_; + deltaindex_ = NULL; +} +inline const ::Catalyst::Protocol::Deltas::DeltaIndex& LatestDeltaHashResponse::deltaindex() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.deltaIndex) + return deltaindex_ != NULL ? *deltaindex_ + : *::Catalyst::Protocol::Deltas::DeltaIndex::internal_default_instance(); } -inline ::Catalyst::Protocol::Deltas::DeltaIndex* LatestDeltaHashResponse::_internal_mutable_result() { +inline ::Catalyst::Protocol::Deltas::DeltaIndex* LatestDeltaHashResponse::mutable_deltaindex() { - if (result_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Deltas::DeltaIndex>(GetArenaNoVirtual()); - result_ = p; + if (deltaindex_ == NULL) { + deltaindex_ = new ::Catalyst::Protocol::Deltas::DeltaIndex; } - return result_; + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.deltaIndex) + return deltaindex_; } -inline ::Catalyst::Protocol::Deltas::DeltaIndex* LatestDeltaHashResponse::mutable_result() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.result) - return _internal_mutable_result(); +inline ::Catalyst::Protocol::Deltas::DeltaIndex* LatestDeltaHashResponse::release_deltaindex() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.deltaIndex) + + ::Catalyst::Protocol::Deltas::DeltaIndex* temp = deltaindex_; + deltaindex_ = NULL; + return temp; } -inline void LatestDeltaHashResponse::set_allocated_result(::Catalyst::Protocol::Deltas::DeltaIndex* result) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(result_); - } - if (result) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, result, submessage_arena); - } +inline void LatestDeltaHashResponse::set_allocated_deltaindex(::Catalyst::Protocol::Deltas::DeltaIndex* deltaindex) { + delete deltaindex_; + deltaindex_ = deltaindex; + if (deltaindex) { } else { } - result_ = result; - // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.result) + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.IPPN.LatestDeltaHashResponse.deltaIndex) } // ------------------------------------------------------------------- @@ -1236,19 +877,13 @@ inline void LatestDeltaHashResponse::set_allocated_result(::Catalyst::Protocol:: inline void DeltaHistoryRequest::clear_range() { range_ = 0u; } -inline ::PROTOBUF_NAMESPACE_ID::uint32 DeltaHistoryRequest::_internal_range() const { - return range_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 DeltaHistoryRequest::range() const { +inline ::google::protobuf::uint32 DeltaHistoryRequest::range() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.DeltaHistoryRequest.range) - return _internal_range(); + return range_; } -inline void DeltaHistoryRequest::_internal_set_range(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void DeltaHistoryRequest::set_range(::google::protobuf::uint32 value) { range_ = value; -} -inline void DeltaHistoryRequest::set_range(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_range(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.IPPN.DeltaHistoryRequest.range) } @@ -1256,19 +891,13 @@ inline void DeltaHistoryRequest::set_range(::PROTOBUF_NAMESPACE_ID::uint32 value inline void DeltaHistoryRequest::clear_height() { height_ = 0u; } -inline ::PROTOBUF_NAMESPACE_ID::uint32 DeltaHistoryRequest::_internal_height() const { - return height_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 DeltaHistoryRequest::height() const { +inline ::google::protobuf::uint32 DeltaHistoryRequest::height() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.DeltaHistoryRequest.height) - return _internal_height(); + return height_; } -inline void DeltaHistoryRequest::_internal_set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void DeltaHistoryRequest::set_height(::google::protobuf::uint32 value) { height_ = value; -} -inline void DeltaHistoryRequest::set_height(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_height(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.IPPN.DeltaHistoryRequest.height) } @@ -1276,45 +905,37 @@ inline void DeltaHistoryRequest::set_height(::PROTOBUF_NAMESPACE_ID::uint32 valu // DeltaHistoryResponse -// repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; -inline int DeltaHistoryResponse::_internal_result_size() const { - return result_.size(); +// repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; +inline int DeltaHistoryResponse::deltaindex_size() const { + return deltaindex_.size(); } -inline int DeltaHistoryResponse::result_size() const { - return _internal_result_size(); +inline void DeltaHistoryResponse::clear_deltaindex() { + deltaindex_.Clear(); } -inline ::Catalyst::Protocol::Deltas::DeltaIndex* DeltaHistoryResponse::mutable_result(int index) { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.IPPN.DeltaHistoryResponse.result) - return result_.Mutable(index); +inline const ::Catalyst::Protocol::Deltas::DeltaIndex& DeltaHistoryResponse::deltaindex(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.DeltaHistoryResponse.deltaIndex) + return deltaindex_.Get(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Deltas::DeltaIndex >* -DeltaHistoryResponse::mutable_result() { - // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.IPPN.DeltaHistoryResponse.result) - return &result_; +inline ::Catalyst::Protocol::Deltas::DeltaIndex* DeltaHistoryResponse::mutable_deltaindex(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.IPPN.DeltaHistoryResponse.deltaIndex) + return deltaindex_.Mutable(index); } -inline const ::Catalyst::Protocol::Deltas::DeltaIndex& DeltaHistoryResponse::_internal_result(int index) const { - return result_.Get(index); +inline ::Catalyst::Protocol::Deltas::DeltaIndex* DeltaHistoryResponse::add_deltaindex() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.IPPN.DeltaHistoryResponse.deltaIndex) + return deltaindex_.Add(); } -inline const ::Catalyst::Protocol::Deltas::DeltaIndex& DeltaHistoryResponse::result(int index) const { - // @@protoc_insertion_point(field_get:Catalyst.Protocol.IPPN.DeltaHistoryResponse.result) - return _internal_result(index); +inline ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Deltas::DeltaIndex >* +DeltaHistoryResponse::mutable_deltaindex() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.IPPN.DeltaHistoryResponse.deltaIndex) + return &deltaindex_; } -inline ::Catalyst::Protocol::Deltas::DeltaIndex* DeltaHistoryResponse::_internal_add_result() { - return result_.Add(); -} -inline ::Catalyst::Protocol::Deltas::DeltaIndex* DeltaHistoryResponse::add_result() { - // @@protoc_insertion_point(field_add:Catalyst.Protocol.IPPN.DeltaHistoryResponse.result) - return _internal_add_result(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Deltas::DeltaIndex >& -DeltaHistoryResponse::result() const { - // @@protoc_insertion_point(field_list:Catalyst.Protocol.IPPN.DeltaHistoryResponse.result) - return result_; +inline const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Deltas::DeltaIndex >& +DeltaHistoryResponse::deltaindex() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.IPPN.DeltaHistoryResponse.deltaIndex) + return deltaindex_; } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -1332,11 +953,11 @@ DeltaHistoryResponse::result() const { // @@protoc_insertion_point(namespace_scope) + } // namespace IPPN } // namespace Protocol } // namespace Catalyst // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_IPPN_2eproto +#endif // PROTOBUF_IPPN_2eproto__INCLUDED diff --git a/packages/sdk-cpp/src/Network.pb.cc b/packages/sdk-cpp/src/Network.pb.cc index 59cf563..5ed0d32 100644 --- a/packages/sdk-cpp/src/Network.pb.cc +++ b/packages/sdk-cpp/src/Network.pb.cc @@ -1,59 +1,104 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Network.proto +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "Network.pb.h" #include +#include +#include +#include #include -#include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) -#include -namespace Catalyst { -namespace Protocol { -namespace Network { -} // namespace Network -} // namespace Protocol -} // namespace Catalyst -static constexpr ::PROTOBUF_NAMESPACE_ID::Metadata* file_level_metadata_Network_2eproto = nullptr; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_Network_2eproto[1]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Network_2eproto = nullptr; -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Network_2eproto::offsets[1] = {}; -static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema* schemas = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::Message* const* file_default_instances = nullptr; - -const char descriptor_table_protodef_Network_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\rNetwork.proto\022\031Catalyst.Protocol.Netwo" - "rk*M\n\013NetworkType\022\030\n\024NETWORK_TYPE_UNKNOW" - "N\020\000\022\013\n\007MAINNET\020\001\022\n\n\006DEVNET\020\002\022\013\n\007TESTNET\020" - "\003B\002P\001b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Network_2eproto_deps[1] = { -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Network_2eproto_sccs[1] = { -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Network_2eproto_once; -static bool descriptor_table_Network_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Network_2eproto = { - &descriptor_table_Network_2eproto_initialized, descriptor_table_protodef_Network_2eproto, "Network.proto", 133, - &descriptor_table_Network_2eproto_once, descriptor_table_Network_2eproto_sccs, descriptor_table_Network_2eproto_deps, 0, 0, - schemas, file_default_instances, TableStruct_Network_2eproto::offsets, - file_level_metadata_Network_2eproto, 0, file_level_enum_descriptors_Network_2eproto, file_level_service_descriptors_Network_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_Network_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Network_2eproto), true); + namespace Catalyst { namespace Protocol { namespace Network { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NetworkType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_Network_2eproto); - return file_level_enum_descriptors_Network_2eproto[0]; + +namespace protobuf_Network_2eproto { + + +namespace { + +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +} // namespace + +const ::google::protobuf::uint32 TableStruct::offsets[] = { ~0u }; +static const ::google::protobuf::internal::MigrationSchema* schemas = NULL; +static const ::google::protobuf::Message* const* file_default_instances = NULL; +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "Network.proto", schemas, file_default_instances, TableStruct::offsets, factory, + NULL, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); +} + +} // namespace + +void TableStruct::Shutdown() { +} + +void TableStruct::InitDefaultsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::internal::InitProtobufDefaults(); +} + +void InitDefaults() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); +} +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] = { + "\n\rNetwork.proto\022\031Catalyst.Protocol.Netwo" + "rk*M\n\013NetworkType\022\030\n\024NETWORK_TYPE_UNKNOW" + "N\020\000\022\013\n\007MAINNET\020\001\022\n\n\006DEVNET\020\002\022\013\n\007TESTNET\020" + "\003B\002P\001b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 133); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Network.proto", &protobuf_RegisterTypes); + ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; + +} // namespace protobuf_Network_2eproto + +const ::google::protobuf::EnumDescriptor* NetworkType_descriptor() { + protobuf_Network_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Network_2eproto::file_level_enum_descriptors[0]; } bool NetworkType_IsValid(int value) { switch (value) { @@ -69,11 +114,9 @@ bool NetworkType_IsValid(int value) { // @@protoc_insertion_point(namespace_scope) + } // namespace Network } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include diff --git a/packages/sdk-cpp/src/Network.pb.h b/packages/sdk-cpp/src/Network.pb.h index 3ae56d1..087384c 100644 --- a/packages/sdk-cpp/src/Network.pb.h +++ b/packages/sdk-cpp/src/Network.pb.h @@ -1,89 +1,76 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Network.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_Network_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_Network_2eproto +#ifndef PROTOBUF_Network_2eproto__INCLUDED +#define PROTOBUF_Network_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3011000 +#include + +#if GOOGLE_PROTOBUF_VERSION < 3002000 #error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update +#error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3002000 < GOOGLE_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 incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif -#include #include #include #include -#include #include -#include #include -#include #include // IWYU pragma: export #include // IWYU pragma: export #include // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_Network_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_Network_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Network_2eproto; -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE +namespace Catalyst { +namespace Protocol { +namespace Network { +} // namespace Network +} // namespace Protocol +} // namespace Catalyst + namespace Catalyst { namespace Protocol { namespace Network { -enum NetworkType : int { +namespace protobuf_Network_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::uint32 offsets[]; + static void InitDefaultsImpl(); + static void Shutdown(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_Network_2eproto + +enum NetworkType { NETWORK_TYPE_UNKNOWN = 0, MAINNET = 1, DEVNET = 2, TESTNET = 3, - NetworkType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - NetworkType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + NetworkType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + NetworkType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max }; bool NetworkType_IsValid(int value); -constexpr NetworkType NetworkType_MIN = NETWORK_TYPE_UNKNOWN; -constexpr NetworkType NetworkType_MAX = TESTNET; -constexpr int NetworkType_ARRAYSIZE = NetworkType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NetworkType_descriptor(); -template -inline const std::string& NetworkType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function NetworkType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - NetworkType_descriptor(), enum_t_value); +const NetworkType NetworkType_MIN = NETWORK_TYPE_UNKNOWN; +const NetworkType NetworkType_MAX = TESTNET; +const int NetworkType_ARRAYSIZE = NetworkType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NetworkType_descriptor(); +inline const ::std::string& NetworkType_Name(NetworkType value) { + return ::google::protobuf::internal::NameOfEnum( + NetworkType_descriptor(), value); } inline bool NetworkType_Parse( - const std::string& name, NetworkType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + const ::std::string& name, NetworkType* value) { + return ::google::protobuf::internal::ParseNamedEnum( NetworkType_descriptor(), name, value); } // =================================================================== @@ -94,31 +81,30 @@ inline bool NetworkType_Parse( // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ +#if !PROTOBUF_INLINE_NOT_IN_HEADERS +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) + } // namespace Network } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN +#ifndef SWIG +namespace google { +namespace protobuf { -template <> struct is_proto_enum< ::Catalyst::Protocol::Network::NetworkType> : ::std::true_type {}; +template <> struct is_proto_enum< ::Catalyst::Protocol::Network::NetworkType> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::Catalyst::Protocol::Network::NetworkType>() { return ::Catalyst::Protocol::Network::NetworkType_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google +#endif // SWIG // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Network_2eproto +#endif // PROTOBUF_Network_2eproto__INCLUDED diff --git a/packages/sdk-cpp/src/Peer.pb.cc b/packages/sdk-cpp/src/Peer.pb.cc index 4ba2cf8..3cde968 100644 --- a/packages/sdk-cpp/src/Peer.pb.cc +++ b/packages/sdk-cpp/src/Peer.pb.cc @@ -1,176 +1,203 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Peer.proto +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "Peer.pb.h" #include +#include +#include +#include #include -#include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_Peer_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeerId_Peer_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; + namespace Catalyst { namespace Protocol { namespace Peer { -class PeerIdDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class PeerIdDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _PeerId_default_instance_; -class PeerInfoDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class PeerInfoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _PeerInfo_default_instance_; -} // namespace Peer -} // namespace Protocol -} // namespace Catalyst -static void InitDefaultsscc_info_PeerId_Peer_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - { - void* ptr = &::Catalyst::Protocol::Peer::_PeerId_default_instance_; - new (ptr) ::Catalyst::Protocol::Peer::PeerId(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Peer::PeerId::InitAsDefaultInstance(); -} +namespace protobuf_Peer_2eproto { -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeerId_Peer_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_PeerId_Peer_2eproto}, {}}; - -static void InitDefaultsscc_info_PeerInfo_Peer_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - { - void* ptr = &::Catalyst::Protocol::Peer::_PeerInfo_default_instance_; - new (ptr) ::Catalyst::Protocol::Peer::PeerInfo(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Peer::PeerInfo::InitAsDefaultInstance(); -} +namespace { -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_PeerInfo_Peer_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_PeerInfo_Peer_2eproto}, { - &scc_info_PeerId_Peer_2eproto.base, - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; +::google::protobuf::Metadata file_level_metadata[2]; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Peer_2eproto[2]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Peer_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Peer_2eproto = nullptr; +} // namespace -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Peer_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct::offsets[] = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerId, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerId, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerId, ip_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerId, port_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerId, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerId, ip_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerId, port_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerId, public_key_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerInfo, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerInfo, peer_id_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerInfo, reputation_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerInfo, is_blacklisted_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerInfo, is_unreachable_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerInfo, inactive_for_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerInfo, last_seen_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerInfo, modified_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Peer::PeerInfo, created_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::Catalyst::Protocol::Peer::PeerId)}, - { 8, -1, sizeof(::Catalyst::Protocol::Peer::PeerInfo)}, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerInfo, peer_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerInfo, reputation_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerInfo, is_blacklisted_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerInfo, is_unreachable_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerInfo, inactive_for_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerInfo, last_seen_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerInfo, modified_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PeerInfo, created_), }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::Catalyst::Protocol::Peer::_PeerId_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Peer::_PeerInfo_default_instance_), +static const ::google::protobuf::internal::MigrationSchema schemas[] = { + { 0, -1, sizeof(PeerId)}, + { 7, -1, sizeof(PeerInfo)}, }; -const char descriptor_table_protodef_Peer_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\nPeer.proto\022\026Catalyst.Protocol.Peer\032\037go" - "ogle/protobuf/timestamp.proto\032\036google/pr" - "otobuf/duration.proto\"6\n\006PeerId\022\n\n\002ip\030\001 " - "\001(\014\022\014\n\004port\030\002 \001(\r\022\022\n\npublic_key\030\003 \001(\014\"\272\002" - "\n\010PeerInfo\022/\n\007peer_id\030\001 \001(\0132\036.Catalyst.P" - "rotocol.Peer.PeerId\022\022\n\nreputation\030\002 \001(\021\022" - "\026\n\016is_blacklisted\030\003 \001(\010\022\026\n\016is_unreachabl" - "e\030\004 \001(\010\022/\n\014inactive_for\030\005 \001(\0132\031.google.p" - "rotobuf.Duration\022-\n\tlast_seen\030\006 \001(\0132\032.go" - "ogle.protobuf.Timestamp\022,\n\010modified\030\007 \001(" - "\0132\032.google.protobuf.Timestamp\022+\n\007created" - "\030\010 \001(\0132\032.google.protobuf.TimestampB\002P\001b\006" - "proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Peer_2eproto_deps[2] = { - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Peer_2eproto_sccs[2] = { - &scc_info_PeerId_Peer_2eproto.base, - &scc_info_PeerInfo_Peer_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Peer_2eproto_once; -static bool descriptor_table_Peer_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Peer_2eproto = { - &descriptor_table_Peer_2eproto_initialized, descriptor_table_protodef_Peer_2eproto, "Peer.proto", 486, - &descriptor_table_Peer_2eproto_once, descriptor_table_Peer_2eproto_sccs, descriptor_table_Peer_2eproto_deps, 2, 2, - schemas, file_default_instances, TableStruct_Peer_2eproto::offsets, - file_level_metadata_Peer_2eproto, 2, file_level_enum_descriptors_Peer_2eproto, file_level_service_descriptors_Peer_2eproto, +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&_PeerId_default_instance_), + reinterpret_cast(&_PeerInfo_default_instance_), }; -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_Peer_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Peer_2eproto), true); -namespace Catalyst { -namespace Protocol { -namespace Peer { +namespace { -// =================================================================== +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "Peer.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} -void PeerId::InitAsDefaultInstance() { +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -class PeerId::_Internal { - public: -}; + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); +} + +} // namespace + +void TableStruct::Shutdown() { + _PeerId_default_instance_.Shutdown(); + delete file_level_metadata[0].reflection; + _PeerInfo_default_instance_.Shutdown(); + delete file_level_metadata[1].reflection; +} + +void TableStruct::InitDefaultsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::internal::InitProtobufDefaults(); + ::google::protobuf::protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaults(); + ::google::protobuf::protobuf_google_2fprotobuf_2fduration_2eproto::InitDefaults(); + _PeerId_default_instance_.DefaultConstruct(); + _PeerInfo_default_instance_.DefaultConstruct(); + _PeerInfo_default_instance_.get_mutable()->peer_id_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( + ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); + _PeerInfo_default_instance_.get_mutable()->inactive_for_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + _PeerInfo_default_instance_.get_mutable()->last_seen_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + _PeerInfo_default_instance_.get_mutable()->modified_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + _PeerInfo_default_instance_.get_mutable()->created_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} + +void InitDefaults() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); +} +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] = { + "\n\nPeer.proto\022\026Catalyst.Protocol.Peer\032\037go" + "ogle/protobuf/timestamp.proto\032\036google/pr" + "otobuf/duration.proto\"6\n\006PeerId\022\n\n\002ip\030\001 " + "\001(\014\022\014\n\004port\030\002 \001(\r\022\022\n\npublic_key\030\003 \001(\014\"\272\002" + "\n\010PeerInfo\022/\n\007peer_id\030\001 \001(\0132\036.Catalyst.P" + "rotocol.Peer.PeerId\022\022\n\nreputation\030\002 \001(\021\022" + "\026\n\016is_blacklisted\030\003 \001(\010\022\026\n\016is_unreachabl" + "e\030\004 \001(\010\022/\n\014inactive_for\030\005 \001(\0132\031.google.p" + "rotobuf.Duration\022-\n\tlast_seen\030\006 \001(\0132\032.go" + "ogle.protobuf.Timestamp\022,\n\010modified\030\007 \001(" + "\0132\032.google.protobuf.Timestamp\022+\n\007created" + "\030\010 \001(\0132\032.google.protobuf.TimestampB\002P\001b\006" + "proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 486); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Peer.proto", &protobuf_RegisterTypes); + ::google::protobuf::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors(); + ::google::protobuf::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors(); + ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; + +} // namespace protobuf_Peer_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PeerId::kIpFieldNumber; +const int PeerId::kPortFieldNumber; +const int PeerId::kPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 PeerId::PeerId() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Peer_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Peer.PeerId) } PeerId::PeerId(const PeerId& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_ip().empty()) { - ip_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.ip_); + ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.ip().size() > 0) { + ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_); } - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_public_key().empty()) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.public_key().size() > 0) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } port_ = from.port_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Peer.PeerId) } void PeerId::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PeerId_Peer_2eproto.base); - ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); port_ = 0u; + _cached_size_ = 0; } PeerId::~PeerId() { @@ -179,109 +206,152 @@ PeerId::~PeerId() { } void PeerId::SharedDtor() { - ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void PeerId::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* PeerId::descriptor() { + protobuf_Peer_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Peer_2eproto::file_level_metadata[0].descriptor; +} + const PeerId& PeerId::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PeerId_Peer_2eproto.base); + protobuf_Peer_2eproto::InitDefaults(); return *internal_default_instance(); } +PeerId* PeerId::New(::google::protobuf::Arena* arena) const { + PeerId* n = new PeerId; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void PeerId::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Peer.PeerId) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); port_ = 0u; - _internal_metadata_.Clear(); } -const char* PeerId::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool PeerId::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Peer.PeerId) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes ip = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_ip(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_ip())); + } else { + goto handle_unusual; + } + break; + } + // uint32 port = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 16u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &port_))); + } else { + goto handle_unusual; + } + break; + } + // bytes public_key = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Peer.PeerId) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Peer.PeerId) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* PeerId::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Peer.PeerId) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void PeerId::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Peer.PeerId) // bytes ip = 1; if (this->ip().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_ip(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->ip(), output); } // uint32 port = 2; if (this->port() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_port(), target); + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->port(), output); } // bytes public_key = 3; if (this->public_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_public_key(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->public_key(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Peer.PeerId) +} + +::google::protobuf::uint8* PeerId::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Peer.PeerId) + // bytes ip = 1; + if (this->ip().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->ip(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // uint32 port = 2; + if (this->port() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->port(), target); } + + // bytes public_key = 3; + if (this->public_key().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->public_key(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Peer.PeerId) return target; } @@ -290,49 +360,43 @@ size_t PeerId::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Peer.PeerId) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes ip = 1; if (this->ip().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_ip()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->ip()); } // bytes public_key = 3; if (this->public_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); } // uint32 port = 2; if (this->port() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_port()); + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->port()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void PeerId::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PeerId::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Peer.PeerId) GOOGLE_DCHECK_NE(&from, this); const PeerId* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Peer.PeerId) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Peer.PeerId) MergeFrom(*source); @@ -343,23 +407,20 @@ void PeerId::MergeFrom(const PeerId& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Peer.PeerId) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.ip().size() > 0) { - ip_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.ip_); + ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_); } if (from.public_key().size() > 0) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } if (from.port() != 0) { - _internal_set_port(from._internal_port()); + set_port(from.port()); } } -void PeerId::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PeerId::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Peer.PeerId) if (&from == this) return; Clear(); @@ -377,133 +438,206 @@ bool PeerId::IsInitialized() const { return true; } +void PeerId::Swap(PeerId* other) { + if (other == this) return; + InternalSwap(other); +} void PeerId::InternalSwap(PeerId* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - ip_.Swap(&other->ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - public_key_.Swap(&other->public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(port_, other->port_); + ip_.Swap(&other->ip_); + public_key_.Swap(&other->public_key_); + std::swap(port_, other->port_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata PeerId::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata PeerId::GetMetadata() const { + protobuf_Peer_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Peer_2eproto::file_level_metadata[0]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// PeerId -// =================================================================== +// bytes ip = 1; +void PeerId::clear_ip() { + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& PeerId::ip() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerId.ip) + return ip_.GetNoArena(); +} +void PeerId::set_ip(const ::std::string& value) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerId.ip) +} +#if LANG_CXX11 +void PeerId::set_ip(::std::string&& value) { + + ip_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Peer.PeerId.ip) +} +#endif +void PeerId::set_ip(const char* value) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Peer.PeerId.ip) +} +void PeerId::set_ip(const void* value, size_t size) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Peer.PeerId.ip) +} +::std::string* PeerId::mutable_ip() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerId.ip) + return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* PeerId::release_ip() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerId.ip) + + return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void PeerId::set_allocated_ip(::std::string* ip) { + if (ip != NULL) { + + } else { + + } + ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerId.ip) +} -void PeerInfo::InitAsDefaultInstance() { - ::Catalyst::Protocol::Peer::_PeerInfo_default_instance_._instance.get_mutable()->peer_id_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( - ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); - ::Catalyst::Protocol::Peer::_PeerInfo_default_instance_._instance.get_mutable()->inactive_for_ = const_cast< PROTOBUF_NAMESPACE_ID::Duration*>( - PROTOBUF_NAMESPACE_ID::Duration::internal_default_instance()); - ::Catalyst::Protocol::Peer::_PeerInfo_default_instance_._instance.get_mutable()->last_seen_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>( - PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance()); - ::Catalyst::Protocol::Peer::_PeerInfo_default_instance_._instance.get_mutable()->modified_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>( - PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance()); - ::Catalyst::Protocol::Peer::_PeerInfo_default_instance_._instance.get_mutable()->created_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>( - PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance()); -} -class PeerInfo::_Internal { - public: - static const ::Catalyst::Protocol::Peer::PeerId& peer_id(const PeerInfo* msg); - static const PROTOBUF_NAMESPACE_ID::Duration& inactive_for(const PeerInfo* msg); - static const PROTOBUF_NAMESPACE_ID::Timestamp& last_seen(const PeerInfo* msg); - static const PROTOBUF_NAMESPACE_ID::Timestamp& modified(const PeerInfo* msg); - static const PROTOBUF_NAMESPACE_ID::Timestamp& created(const PeerInfo* msg); -}; +// uint32 port = 2; +void PeerId::clear_port() { + port_ = 0u; +} +::google::protobuf::uint32 PeerId::port() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerId.port) + return port_; +} +void PeerId::set_port(::google::protobuf::uint32 value) { + + port_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerId.port) +} -const ::Catalyst::Protocol::Peer::PeerId& -PeerInfo::_Internal::peer_id(const PeerInfo* msg) { - return *msg->peer_id_; +// bytes public_key = 3; +void PeerId::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -const PROTOBUF_NAMESPACE_ID::Duration& -PeerInfo::_Internal::inactive_for(const PeerInfo* msg) { - return *msg->inactive_for_; +const ::std::string& PeerId::public_key() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerId.public_key) + return public_key_.GetNoArena(); } -const PROTOBUF_NAMESPACE_ID::Timestamp& -PeerInfo::_Internal::last_seen(const PeerInfo* msg) { - return *msg->last_seen_; +void PeerId::set_public_key(const ::std::string& value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerId.public_key) } -const PROTOBUF_NAMESPACE_ID::Timestamp& -PeerInfo::_Internal::modified(const PeerInfo* msg) { - return *msg->modified_; +#if LANG_CXX11 +void PeerId::set_public_key(::std::string&& value) { + + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Peer.PeerId.public_key) } -const PROTOBUF_NAMESPACE_ID::Timestamp& -PeerInfo::_Internal::created(const PeerInfo* msg) { - return *msg->created_; +#endif +void PeerId::set_public_key(const char* value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Peer.PeerId.public_key) } -void PeerInfo::clear_inactive_for() { - if (GetArenaNoVirtual() == nullptr && inactive_for_ != nullptr) { - delete inactive_for_; - } - inactive_for_ = nullptr; +void PeerId::set_public_key(const void* value, size_t size) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Peer.PeerId.public_key) } -void PeerInfo::clear_last_seen() { - if (GetArenaNoVirtual() == nullptr && last_seen_ != nullptr) { - delete last_seen_; - } - last_seen_ = nullptr; +::std::string* PeerId::mutable_public_key() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerId.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void PeerInfo::clear_modified() { - if (GetArenaNoVirtual() == nullptr && modified_ != nullptr) { - delete modified_; - } - modified_ = nullptr; +::std::string* PeerId::release_public_key() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerId.public_key) + + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -void PeerInfo::clear_created() { - if (GetArenaNoVirtual() == nullptr && created_ != nullptr) { - delete created_; +void PeerId::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + + } else { + } - created_ = nullptr; + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerId.public_key) } + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PeerInfo::kPeerIdFieldNumber; +const int PeerInfo::kReputationFieldNumber; +const int PeerInfo::kIsBlacklistedFieldNumber; +const int PeerInfo::kIsUnreachableFieldNumber; +const int PeerInfo::kInactiveForFieldNumber; +const int PeerInfo::kLastSeenFieldNumber; +const int PeerInfo::kModifiedFieldNumber; +const int PeerInfo::kCreatedFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + PeerInfo::PeerInfo() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Peer_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Peer.PeerInfo) } PeerInfo::PeerInfo(const PeerInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_peer_id()) { + if (from.has_peer_id()) { peer_id_ = new ::Catalyst::Protocol::Peer::PeerId(*from.peer_id_); } else { - peer_id_ = nullptr; + peer_id_ = NULL; } - if (from._internal_has_inactive_for()) { - inactive_for_ = new PROTOBUF_NAMESPACE_ID::Duration(*from.inactive_for_); + if (from.has_inactive_for()) { + inactive_for_ = new ::google::protobuf::Duration(*from.inactive_for_); } else { - inactive_for_ = nullptr; + inactive_for_ = NULL; } - if (from._internal_has_last_seen()) { - last_seen_ = new PROTOBUF_NAMESPACE_ID::Timestamp(*from.last_seen_); + if (from.has_last_seen()) { + last_seen_ = new ::google::protobuf::Timestamp(*from.last_seen_); } else { - last_seen_ = nullptr; + last_seen_ = NULL; } - if (from._internal_has_modified()) { - modified_ = new PROTOBUF_NAMESPACE_ID::Timestamp(*from.modified_); + if (from.has_modified()) { + modified_ = new ::google::protobuf::Timestamp(*from.modified_); } else { - modified_ = nullptr; + modified_ = NULL; } - if (from._internal_has_created()) { - created_ = new PROTOBUF_NAMESPACE_ID::Timestamp(*from.created_); + if (from.has_created()) { + created_ = new ::google::protobuf::Timestamp(*from.created_); } else { - created_ = nullptr; + created_ = NULL; } ::memcpy(&reputation_, &from.reputation_, - static_cast(reinterpret_cast(&is_unreachable_) - - reinterpret_cast(&reputation_)) + sizeof(is_unreachable_)); + reinterpret_cast(&is_unreachable_) - + reinterpret_cast(&reputation_) + sizeof(is_unreachable_)); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Peer.PeerInfo) } void PeerInfo::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PeerInfo_Peer_2eproto.base); - ::memset(&peer_id_, 0, static_cast( - reinterpret_cast(&is_unreachable_) - - reinterpret_cast(&peer_id_)) + sizeof(is_unreachable_)); + ::memset(&peer_id_, 0, reinterpret_cast(&is_unreachable_) - + reinterpret_cast(&peer_id_) + sizeof(is_unreachable_)); + _cached_size_ = 0; } PeerInfo::~PeerInfo() { @@ -512,205 +646,302 @@ PeerInfo::~PeerInfo() { } void PeerInfo::SharedDtor() { - if (this != internal_default_instance()) delete peer_id_; - if (this != internal_default_instance()) delete inactive_for_; - if (this != internal_default_instance()) delete last_seen_; - if (this != internal_default_instance()) delete modified_; - if (this != internal_default_instance()) delete created_; + if (this != internal_default_instance()) { + delete peer_id_; + } + if (this != internal_default_instance()) { + delete inactive_for_; + } + if (this != internal_default_instance()) { + delete last_seen_; + } + if (this != internal_default_instance()) { + delete modified_; + } + if (this != internal_default_instance()) { + delete created_; + } } void PeerInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PeerInfo::descriptor() { + protobuf_Peer_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Peer_2eproto::file_level_metadata[1].descriptor; } + const PeerInfo& PeerInfo::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PeerInfo_Peer_2eproto.base); + protobuf_Peer_2eproto::InitDefaults(); return *internal_default_instance(); } +PeerInfo* PeerInfo::New(::google::protobuf::Arena* arena) const { + PeerInfo* n = new PeerInfo; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void PeerInfo::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Peer.PeerInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && peer_id_ != nullptr) { + if (GetArenaNoVirtual() == NULL && peer_id_ != NULL) { delete peer_id_; } - peer_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && inactive_for_ != nullptr) { + peer_id_ = NULL; + if (GetArenaNoVirtual() == NULL && inactive_for_ != NULL) { delete inactive_for_; } - inactive_for_ = nullptr; - if (GetArenaNoVirtual() == nullptr && last_seen_ != nullptr) { + inactive_for_ = NULL; + if (GetArenaNoVirtual() == NULL && last_seen_ != NULL) { delete last_seen_; } - last_seen_ = nullptr; - if (GetArenaNoVirtual() == nullptr && modified_ != nullptr) { + last_seen_ = NULL; + if (GetArenaNoVirtual() == NULL && modified_ != NULL) { delete modified_; } - modified_ = nullptr; - if (GetArenaNoVirtual() == nullptr && created_ != nullptr) { + modified_ = NULL; + if (GetArenaNoVirtual() == NULL && created_ != NULL) { delete created_; } - created_ = nullptr; - ::memset(&reputation_, 0, static_cast( - reinterpret_cast(&is_unreachable_) - - reinterpret_cast(&reputation_)) + sizeof(is_unreachable_)); - _internal_metadata_.Clear(); + created_ = NULL; + ::memset(&reputation_, 0, reinterpret_cast(&is_unreachable_) - + reinterpret_cast(&reputation_) + sizeof(is_unreachable_)); } -const char* PeerInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool PeerInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Peer.PeerInfo) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .Catalyst.Protocol.Peer.PeerId peer_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_peer_id(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_peer_id())); + } else { + goto handle_unusual; + } + break; + } + // sint32 reputation = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - reputation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarintZigZag32(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 16u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>( + input, &reputation_))); + } else { + goto handle_unusual; + } + break; + } + // bool is_blacklisted = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - is_blacklisted_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 24u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_blacklisted_))); + } else { + goto handle_unusual; + } + break; + } + // bool is_unreachable = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - is_unreachable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 4: { + if (tag == 32u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_unreachable_))); + } else { + goto handle_unusual; + } + break; + } + // .google.protobuf.Duration inactive_for = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_inactive_for(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 5: { + if (tag == 42u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_inactive_for())); + } else { + goto handle_unusual; + } + break; + } + // .google.protobuf.Timestamp last_seen = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_last_seen(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 6: { + if (tag == 50u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_last_seen())); + } else { + goto handle_unusual; + } + break; + } + // .google.protobuf.Timestamp modified = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_modified(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 7: { + if (tag == 58u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_modified())); + } else { + goto handle_unusual; + } + break; + } + // .google.protobuf.Timestamp created = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_created(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 8: { + if (tag == 66u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_created())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Peer.PeerInfo) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Peer.PeerInfo) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* PeerInfo::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Peer.PeerInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void PeerInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Peer.PeerInfo) // .Catalyst.Protocol.Peer.PeerId peer_id = 1; if (this->has_peer_id()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::peer_id(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->peer_id_, output); } // sint32 reputation = 2; if (this->reputation() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSInt32ToArray(2, this->_internal_reputation(), target); + ::google::protobuf::internal::WireFormatLite::WriteSInt32(2, this->reputation(), output); } // bool is_blacklisted = 3; if (this->is_blacklisted() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_is_blacklisted(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->is_blacklisted(), output); } // bool is_unreachable = 4; if (this->is_unreachable() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_is_unreachable(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_unreachable(), output); } // .google.protobuf.Duration inactive_for = 5; if (this->has_inactive_for()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::inactive_for(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->inactive_for_, output); } // .google.protobuf.Timestamp last_seen = 6; if (this->has_last_seen()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::last_seen(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *this->last_seen_, output); } // .google.protobuf.Timestamp modified = 7; if (this->has_modified()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::modified(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *this->modified_, output); } // .google.protobuf.Timestamp created = 8; if (this->has_created()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::created(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, *this->created_, output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Peer.PeerInfo) +} + +::google::protobuf::uint8* PeerInfo::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Peer.PeerInfo) + // .Catalyst.Protocol.Peer.PeerId peer_id = 1; + if (this->has_peer_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *this->peer_id_, false, target); + } + + // sint32 reputation = 2; + if (this->reputation() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(2, this->reputation(), target); } + + // bool is_blacklisted = 3; + if (this->is_blacklisted() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->is_blacklisted(), target); + } + + // bool is_unreachable = 4; + if (this->is_unreachable() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_unreachable(), target); + } + + // .google.protobuf.Duration inactive_for = 5; + if (this->has_inactive_for()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 5, *this->inactive_for_, false, target); + } + + // .google.protobuf.Timestamp last_seen = 6; + if (this->has_last_seen()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 6, *this->last_seen_, false, target); + } + + // .google.protobuf.Timestamp modified = 7; + if (this->has_modified()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 7, *this->modified_, false, target); + } + + // .google.protobuf.Timestamp created = 8; + if (this->has_created()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 8, *this->created_, false, target); + } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Peer.PeerInfo) return target; } @@ -719,50 +950,46 @@ size_t PeerInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Peer.PeerInfo) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // .Catalyst.Protocol.Peer.PeerId peer_id = 1; if (this->has_peer_id()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *peer_id_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->peer_id_); } // .google.protobuf.Duration inactive_for = 5; if (this->has_inactive_for()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *inactive_for_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->inactive_for_); } // .google.protobuf.Timestamp last_seen = 6; if (this->has_last_seen()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *last_seen_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->last_seen_); } // .google.protobuf.Timestamp modified = 7; if (this->has_modified()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *modified_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->modified_); } // .google.protobuf.Timestamp created = 8; if (this->has_created()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *created_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->created_); } // sint32 reputation = 2; if (this->reputation() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SInt32Size( - this->_internal_reputation()); + ::google::protobuf::internal::WireFormatLite::SInt32Size( + this->reputation()); } // bool is_blacklisted = 3; @@ -775,24 +1002,22 @@ size_t PeerInfo::ByteSizeLong() const { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void PeerInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PeerInfo::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Peer.PeerInfo) GOOGLE_DCHECK_NE(&from, this); const PeerInfo* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Peer.PeerInfo) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Peer.PeerInfo) MergeFrom(*source); @@ -803,36 +1028,33 @@ void PeerInfo::MergeFrom(const PeerInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Peer.PeerInfo) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.has_peer_id()) { - _internal_mutable_peer_id()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from._internal_peer_id()); + mutable_peer_id()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from.peer_id()); } if (from.has_inactive_for()) { - _internal_mutable_inactive_for()->PROTOBUF_NAMESPACE_ID::Duration::MergeFrom(from._internal_inactive_for()); + mutable_inactive_for()->::google::protobuf::Duration::MergeFrom(from.inactive_for()); } if (from.has_last_seen()) { - _internal_mutable_last_seen()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_last_seen()); + mutable_last_seen()->::google::protobuf::Timestamp::MergeFrom(from.last_seen()); } if (from.has_modified()) { - _internal_mutable_modified()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_modified()); + mutable_modified()->::google::protobuf::Timestamp::MergeFrom(from.modified()); } if (from.has_created()) { - _internal_mutable_created()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_created()); + mutable_created()->::google::protobuf::Timestamp::MergeFrom(from.created()); } if (from.reputation() != 0) { - _internal_set_reputation(from._internal_reputation()); + set_reputation(from.reputation()); } if (from.is_blacklisted() != 0) { - _internal_set_is_blacklisted(from._internal_is_blacklisted()); + set_is_blacklisted(from.is_blacklisted()); } if (from.is_unreachable() != 0) { - _internal_set_is_unreachable(from._internal_is_unreachable()); + set_is_unreachable(from.is_unreachable()); } } -void PeerInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PeerInfo::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Peer.PeerInfo) if (&from == this) return; Clear(); @@ -850,36 +1072,293 @@ bool PeerInfo::IsInitialized() const { return true; } +void PeerInfo::Swap(PeerInfo* other) { + if (other == this) return; + InternalSwap(other); +} void PeerInfo::InternalSwap(PeerInfo* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(peer_id_, other->peer_id_); - swap(inactive_for_, other->inactive_for_); - swap(last_seen_, other->last_seen_); - swap(modified_, other->modified_); - swap(created_, other->created_); - swap(reputation_, other->reputation_); - swap(is_blacklisted_, other->is_blacklisted_); - swap(is_unreachable_, other->is_unreachable_); + std::swap(peer_id_, other->peer_id_); + std::swap(inactive_for_, other->inactive_for_); + std::swap(last_seen_, other->last_seen_); + std::swap(modified_, other->modified_); + std::swap(created_, other->created_); + std::swap(reputation_, other->reputation_); + std::swap(is_blacklisted_, other->is_blacklisted_); + std::swap(is_unreachable_, other->is_unreachable_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata PeerInfo::GetMetadata() const { + protobuf_Peer_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Peer_2eproto::file_level_metadata[1]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// PeerInfo + +// .Catalyst.Protocol.Peer.PeerId peer_id = 1; +bool PeerInfo::has_peer_id() const { + return this != internal_default_instance() && peer_id_ != NULL; +} +void PeerInfo::clear_peer_id() { + if (GetArenaNoVirtual() == NULL && peer_id_ != NULL) delete peer_id_; + peer_id_ = NULL; +} +const ::Catalyst::Protocol::Peer::PeerId& PeerInfo::peer_id() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.peer_id) + return peer_id_ != NULL ? *peer_id_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +::Catalyst::Protocol::Peer::PeerId* PeerInfo::mutable_peer_id() { + + if (peer_id_ == NULL) { + peer_id_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.peer_id) + return peer_id_; +} +::Catalyst::Protocol::Peer::PeerId* PeerInfo::release_peer_id() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.peer_id) + + ::Catalyst::Protocol::Peer::PeerId* temp = peer_id_; + peer_id_ = NULL; + return temp; +} +void PeerInfo::set_allocated_peer_id(::Catalyst::Protocol::Peer::PeerId* peer_id) { + delete peer_id_; + peer_id_ = peer_id; + if (peer_id) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerInfo.peer_id) +} + +// sint32 reputation = 2; +void PeerInfo::clear_reputation() { + reputation_ = 0; +} +::google::protobuf::int32 PeerInfo::reputation() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.reputation) + return reputation_; +} +void PeerInfo::set_reputation(::google::protobuf::int32 value) { + + reputation_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerInfo.reputation) } -::PROTOBUF_NAMESPACE_ID::Metadata PeerInfo::GetMetadata() const { - return GetMetadataStatic(); +// bool is_blacklisted = 3; +void PeerInfo::clear_is_blacklisted() { + is_blacklisted_ = false; +} +bool PeerInfo::is_blacklisted() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.is_blacklisted) + return is_blacklisted_; +} +void PeerInfo::set_is_blacklisted(bool value) { + + is_blacklisted_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerInfo.is_blacklisted) } +// bool is_unreachable = 4; +void PeerInfo::clear_is_unreachable() { + is_unreachable_ = false; +} +bool PeerInfo::is_unreachable() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.is_unreachable) + return is_unreachable_; +} +void PeerInfo::set_is_unreachable(bool value) { + + is_unreachable_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerInfo.is_unreachable) +} + +// .google.protobuf.Duration inactive_for = 5; +bool PeerInfo::has_inactive_for() const { + return this != internal_default_instance() && inactive_for_ != NULL; +} +void PeerInfo::clear_inactive_for() { + if (GetArenaNoVirtual() == NULL && inactive_for_ != NULL) delete inactive_for_; + inactive_for_ = NULL; +} +const ::google::protobuf::Duration& PeerInfo::inactive_for() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.inactive_for) + return inactive_for_ != NULL ? *inactive_for_ + : *::google::protobuf::Duration::internal_default_instance(); +} +::google::protobuf::Duration* PeerInfo::mutable_inactive_for() { + + if (inactive_for_ == NULL) { + inactive_for_ = new ::google::protobuf::Duration; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.inactive_for) + return inactive_for_; +} +::google::protobuf::Duration* PeerInfo::release_inactive_for() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.inactive_for) + + ::google::protobuf::Duration* temp = inactive_for_; + inactive_for_ = NULL; + return temp; +} +void PeerInfo::set_allocated_inactive_for(::google::protobuf::Duration* inactive_for) { + delete inactive_for_; + if (inactive_for != NULL && inactive_for->GetArena() != NULL) { + ::google::protobuf::Duration* new_inactive_for = new ::google::protobuf::Duration; + new_inactive_for->CopyFrom(*inactive_for); + inactive_for = new_inactive_for; + } + inactive_for_ = inactive_for; + if (inactive_for) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerInfo.inactive_for) +} + +// .google.protobuf.Timestamp last_seen = 6; +bool PeerInfo::has_last_seen() const { + return this != internal_default_instance() && last_seen_ != NULL; +} +void PeerInfo::clear_last_seen() { + if (GetArenaNoVirtual() == NULL && last_seen_ != NULL) delete last_seen_; + last_seen_ = NULL; +} +const ::google::protobuf::Timestamp& PeerInfo::last_seen() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.last_seen) + return last_seen_ != NULL ? *last_seen_ + : *::google::protobuf::Timestamp::internal_default_instance(); +} +::google::protobuf::Timestamp* PeerInfo::mutable_last_seen() { + + if (last_seen_ == NULL) { + last_seen_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.last_seen) + return last_seen_; +} +::google::protobuf::Timestamp* PeerInfo::release_last_seen() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.last_seen) + + ::google::protobuf::Timestamp* temp = last_seen_; + last_seen_ = NULL; + return temp; +} +void PeerInfo::set_allocated_last_seen(::google::protobuf::Timestamp* last_seen) { + delete last_seen_; + if (last_seen != NULL && last_seen->GetArena() != NULL) { + ::google::protobuf::Timestamp* new_last_seen = new ::google::protobuf::Timestamp; + new_last_seen->CopyFrom(*last_seen); + last_seen = new_last_seen; + } + last_seen_ = last_seen; + if (last_seen) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerInfo.last_seen) +} + +// .google.protobuf.Timestamp modified = 7; +bool PeerInfo::has_modified() const { + return this != internal_default_instance() && modified_ != NULL; +} +void PeerInfo::clear_modified() { + if (GetArenaNoVirtual() == NULL && modified_ != NULL) delete modified_; + modified_ = NULL; +} +const ::google::protobuf::Timestamp& PeerInfo::modified() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.modified) + return modified_ != NULL ? *modified_ + : *::google::protobuf::Timestamp::internal_default_instance(); +} +::google::protobuf::Timestamp* PeerInfo::mutable_modified() { + + if (modified_ == NULL) { + modified_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.modified) + return modified_; +} +::google::protobuf::Timestamp* PeerInfo::release_modified() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.modified) + + ::google::protobuf::Timestamp* temp = modified_; + modified_ = NULL; + return temp; +} +void PeerInfo::set_allocated_modified(::google::protobuf::Timestamp* modified) { + delete modified_; + if (modified != NULL && modified->GetArena() != NULL) { + ::google::protobuf::Timestamp* new_modified = new ::google::protobuf::Timestamp; + new_modified->CopyFrom(*modified); + modified = new_modified; + } + modified_ = modified; + if (modified) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerInfo.modified) +} + +// .google.protobuf.Timestamp created = 8; +bool PeerInfo::has_created() const { + return this != internal_default_instance() && created_ != NULL; +} +void PeerInfo::clear_created() { + if (GetArenaNoVirtual() == NULL && created_ != NULL) delete created_; + created_ = NULL; +} +const ::google::protobuf::Timestamp& PeerInfo::created() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.created) + return created_ != NULL ? *created_ + : *::google::protobuf::Timestamp::internal_default_instance(); +} +::google::protobuf::Timestamp* PeerInfo::mutable_created() { + + if (created_ == NULL) { + created_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.created) + return created_; +} +::google::protobuf::Timestamp* PeerInfo::release_created() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.created) + + ::google::protobuf::Timestamp* temp = created_; + created_ = NULL; + return temp; +} +void PeerInfo::set_allocated_created(::google::protobuf::Timestamp* created) { + delete created_; + if (created != NULL && created->GetArena() != NULL) { + ::google::protobuf::Timestamp* new_created = new ::google::protobuf::Timestamp; + new_created->CopyFrom(*created); + created = new_created; + } + created_ = created; + if (created) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerInfo.created) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) + } // namespace Peer } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Peer::PeerId* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Peer::PeerId >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Peer::PeerId >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Peer::PeerInfo* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Peer::PeerInfo >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Peer::PeerInfo >(arena); -} -PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include diff --git a/packages/sdk-cpp/src/Peer.pb.h b/packages/sdk-cpp/src/Peer.pb.h index 12d2166..bdd8f11 100644 --- a/packages/sdk-cpp/src/Peer.pb.h +++ b/packages/sdk-cpp/src/Peer.pb.h @@ -1,33 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Peer.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_Peer_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_Peer_2eproto +#ifndef PROTOBUF_Peer_2eproto__INCLUDED +#define PROTOBUF_Peer_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3011000 +#include + +#if GOOGLE_PROTOBUF_VERSION < 3002000 #error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update +#error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3002000 < GOOGLE_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 incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif -#include #include #include #include -#include #include -#include #include -#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -35,27 +31,6 @@ #include #include // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_Peer_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_Peer_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Peer_2eproto; namespace Catalyst { namespace Protocol { namespace Peer { @@ -68,481 +43,349 @@ extern PeerInfoDefaultTypeInternal _PeerInfo_default_instance_; } // namespace Peer } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> ::Catalyst::Protocol::Peer::PeerId* Arena::CreateMaybeMessage<::Catalyst::Protocol::Peer::PeerId>(Arena*); -template<> ::Catalyst::Protocol::Peer::PeerInfo* Arena::CreateMaybeMessage<::Catalyst::Protocol::Peer::PeerInfo>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +class Duration; +class DurationDefaultTypeInternal; +extern DurationDefaultTypeInternal _Duration_default_instance_; +class Timestamp; +class TimestampDefaultTypeInternal; +extern TimestampDefaultTypeInternal _Timestamp_default_instance_; +} // namespace protobuf +} // namespace google + namespace Catalyst { namespace Protocol { namespace Peer { +namespace protobuf_Peer_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::uint32 offsets[]; + static void InitDefaultsImpl(); + static void Shutdown(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_Peer_2eproto + // =================================================================== -class PeerId : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Peer.PeerId) */ { +class PeerId : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Peer.PeerId) */ { public: PeerId(); virtual ~PeerId(); PeerId(const PeerId& from); - PeerId(PeerId&& from) noexcept - : PeerId() { - *this = ::std::move(from); - } inline PeerId& operator=(const PeerId& from) { CopyFrom(from); return *this; } - inline PeerId& operator=(PeerId&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const PeerId& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PeerId* internal_default_instance() { return reinterpret_cast( &_PeerId_default_instance_); } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(PeerId& a, PeerId& b) { - a.Swap(&b); - } - inline void Swap(PeerId* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(PeerId* other); // implements Message ---------------------------------------------- - inline PeerId* New() const final { - return CreateMaybeMessage(nullptr); - } + inline PeerId* New() const PROTOBUF_FINAL { return New(NULL); } - PeerId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + PeerId* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PeerId& from); void MergeFrom(const PeerId& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PeerId* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Peer.PeerId"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Peer_2eproto); - return ::descriptor_table_Peer_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kIpFieldNumber = 1, - kPublicKeyFieldNumber = 3, - kPortFieldNumber = 2, - }; // bytes ip = 1; void clear_ip(); - const std::string& ip() const; - void set_ip(const std::string& value); - void set_ip(std::string&& value); + static const int kIpFieldNumber = 1; + const ::std::string& ip() const; + void set_ip(const ::std::string& value); + #if LANG_CXX11 + void set_ip(::std::string&& value); + #endif void set_ip(const char* value); void set_ip(const void* value, size_t size); - std::string* mutable_ip(); - std::string* release_ip(); - void set_allocated_ip(std::string* ip); - private: - const std::string& _internal_ip() const; - void _internal_set_ip(const std::string& value); - std::string* _internal_mutable_ip(); - public: + ::std::string* mutable_ip(); + ::std::string* release_ip(); + void set_allocated_ip(::std::string* ip); // bytes public_key = 3; void clear_public_key(); - const std::string& public_key() const; - void set_public_key(const std::string& value); - void set_public_key(std::string&& value); + static const int kPublicKeyFieldNumber = 3; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif void set_public_key(const char* value); void set_public_key(const void* value, size_t size); - std::string* mutable_public_key(); - std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); // uint32 port = 2; void clear_port(); - ::PROTOBUF_NAMESPACE_ID::uint32 port() const; - void set_port(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_port() const; - void _internal_set_port(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: + static const int kPortFieldNumber = 2; + ::google::protobuf::uint32 port() const; + void set_port(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Peer.PeerId) private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - ::PROTOBUF_NAMESPACE_ID::uint32 port_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Peer_2eproto; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr ip_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::uint32 port_; + mutable int _cached_size_; + friend struct protobuf_Peer_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class PeerInfo : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Peer.PeerInfo) */ { +class PeerInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Peer.PeerInfo) */ { public: PeerInfo(); virtual ~PeerInfo(); PeerInfo(const PeerInfo& from); - PeerInfo(PeerInfo&& from) noexcept - : PeerInfo() { - *this = ::std::move(from); - } inline PeerInfo& operator=(const PeerInfo& from) { CopyFrom(from); return *this; } - inline PeerInfo& operator=(PeerInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const PeerInfo& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PeerInfo* internal_default_instance() { return reinterpret_cast( &_PeerInfo_default_instance_); } - static constexpr int kIndexInFileMessages = - 1; - friend void swap(PeerInfo& a, PeerInfo& b) { - a.Swap(&b); - } - inline void Swap(PeerInfo* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(PeerInfo* other); // implements Message ---------------------------------------------- - inline PeerInfo* New() const final { - return CreateMaybeMessage(nullptr); - } + inline PeerInfo* New() const PROTOBUF_FINAL { return New(NULL); } - PeerInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + PeerInfo* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PeerInfo& from); void MergeFrom(const PeerInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PeerInfo* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Peer.PeerInfo"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Peer_2eproto); - return ::descriptor_table_Peer_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPeerIdFieldNumber = 1, - kInactiveForFieldNumber = 5, - kLastSeenFieldNumber = 6, - kModifiedFieldNumber = 7, - kCreatedFieldNumber = 8, - kReputationFieldNumber = 2, - kIsBlacklistedFieldNumber = 3, - kIsUnreachableFieldNumber = 4, - }; // .Catalyst.Protocol.Peer.PeerId peer_id = 1; bool has_peer_id() const; - private: - bool _internal_has_peer_id() const; - public: void clear_peer_id(); + static const int kPeerIdFieldNumber = 1; const ::Catalyst::Protocol::Peer::PeerId& peer_id() const; - ::Catalyst::Protocol::Peer::PeerId* release_peer_id(); ::Catalyst::Protocol::Peer::PeerId* mutable_peer_id(); + ::Catalyst::Protocol::Peer::PeerId* release_peer_id(); void set_allocated_peer_id(::Catalyst::Protocol::Peer::PeerId* peer_id); - private: - const ::Catalyst::Protocol::Peer::PeerId& _internal_peer_id() const; - ::Catalyst::Protocol::Peer::PeerId* _internal_mutable_peer_id(); - public: // .google.protobuf.Duration inactive_for = 5; bool has_inactive_for() const; - private: - bool _internal_has_inactive_for() const; - public: void clear_inactive_for(); - const PROTOBUF_NAMESPACE_ID::Duration& inactive_for() const; - PROTOBUF_NAMESPACE_ID::Duration* release_inactive_for(); - PROTOBUF_NAMESPACE_ID::Duration* mutable_inactive_for(); - void set_allocated_inactive_for(PROTOBUF_NAMESPACE_ID::Duration* inactive_for); - private: - const PROTOBUF_NAMESPACE_ID::Duration& _internal_inactive_for() const; - PROTOBUF_NAMESPACE_ID::Duration* _internal_mutable_inactive_for(); - public: + static const int kInactiveForFieldNumber = 5; + const ::google::protobuf::Duration& inactive_for() const; + ::google::protobuf::Duration* mutable_inactive_for(); + ::google::protobuf::Duration* release_inactive_for(); + void set_allocated_inactive_for(::google::protobuf::Duration* inactive_for); // .google.protobuf.Timestamp last_seen = 6; bool has_last_seen() const; - private: - bool _internal_has_last_seen() const; - public: void clear_last_seen(); - const PROTOBUF_NAMESPACE_ID::Timestamp& last_seen() const; - PROTOBUF_NAMESPACE_ID::Timestamp* release_last_seen(); - PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_seen(); - void set_allocated_last_seen(PROTOBUF_NAMESPACE_ID::Timestamp* last_seen); - private: - const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_seen() const; - PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_seen(); - public: + static const int kLastSeenFieldNumber = 6; + const ::google::protobuf::Timestamp& last_seen() const; + ::google::protobuf::Timestamp* mutable_last_seen(); + ::google::protobuf::Timestamp* release_last_seen(); + void set_allocated_last_seen(::google::protobuf::Timestamp* last_seen); // .google.protobuf.Timestamp modified = 7; bool has_modified() const; - private: - bool _internal_has_modified() const; - public: void clear_modified(); - const PROTOBUF_NAMESPACE_ID::Timestamp& modified() const; - PROTOBUF_NAMESPACE_ID::Timestamp* release_modified(); - PROTOBUF_NAMESPACE_ID::Timestamp* mutable_modified(); - void set_allocated_modified(PROTOBUF_NAMESPACE_ID::Timestamp* modified); - private: - const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_modified() const; - PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_modified(); - public: + static const int kModifiedFieldNumber = 7; + const ::google::protobuf::Timestamp& modified() const; + ::google::protobuf::Timestamp* mutable_modified(); + ::google::protobuf::Timestamp* release_modified(); + void set_allocated_modified(::google::protobuf::Timestamp* modified); // .google.protobuf.Timestamp created = 8; bool has_created() const; - private: - bool _internal_has_created() const; - public: void clear_created(); - const PROTOBUF_NAMESPACE_ID::Timestamp& created() const; - PROTOBUF_NAMESPACE_ID::Timestamp* release_created(); - PROTOBUF_NAMESPACE_ID::Timestamp* mutable_created(); - void set_allocated_created(PROTOBUF_NAMESPACE_ID::Timestamp* created); - private: - const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_created() const; - PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_created(); - public: + static const int kCreatedFieldNumber = 8; + const ::google::protobuf::Timestamp& created() const; + ::google::protobuf::Timestamp* mutable_created(); + ::google::protobuf::Timestamp* release_created(); + void set_allocated_created(::google::protobuf::Timestamp* created); // sint32 reputation = 2; void clear_reputation(); - ::PROTOBUF_NAMESPACE_ID::int32 reputation() const; - void set_reputation(::PROTOBUF_NAMESPACE_ID::int32 value); - private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_reputation() const; - void _internal_set_reputation(::PROTOBUF_NAMESPACE_ID::int32 value); - public: + static const int kReputationFieldNumber = 2; + ::google::protobuf::int32 reputation() const; + void set_reputation(::google::protobuf::int32 value); // bool is_blacklisted = 3; void clear_is_blacklisted(); + static const int kIsBlacklistedFieldNumber = 3; bool is_blacklisted() const; void set_is_blacklisted(bool value); - private: - bool _internal_is_blacklisted() const; - void _internal_set_is_blacklisted(bool value); - public: // bool is_unreachable = 4; void clear_is_unreachable(); + static const int kIsUnreachableFieldNumber = 4; bool is_unreachable() const; void set_is_unreachable(bool value); - private: - bool _internal_is_unreachable() const; - void _internal_set_is_unreachable(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Peer.PeerInfo) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::Catalyst::Protocol::Peer::PeerId* peer_id_; - PROTOBUF_NAMESPACE_ID::Duration* inactive_for_; - PROTOBUF_NAMESPACE_ID::Timestamp* last_seen_; - PROTOBUF_NAMESPACE_ID::Timestamp* modified_; - PROTOBUF_NAMESPACE_ID::Timestamp* created_; - ::PROTOBUF_NAMESPACE_ID::int32 reputation_; + ::google::protobuf::Duration* inactive_for_; + ::google::protobuf::Timestamp* last_seen_; + ::google::protobuf::Timestamp* modified_; + ::google::protobuf::Timestamp* created_; + ::google::protobuf::int32 reputation_; bool is_blacklisted_; bool is_unreachable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Peer_2eproto; + mutable int _cached_size_; + friend struct protobuf_Peer_2eproto::TableStruct; }; // =================================================================== // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +#if !PROTOBUF_INLINE_NOT_IN_HEADERS // PeerId // bytes ip = 1; inline void PeerId::clear_ip() { - ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& PeerId::ip() const { +inline const ::std::string& PeerId::ip() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerId.ip) - return _internal_ip(); -} -inline void PeerId::set_ip(const std::string& value) { - _internal_set_ip(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerId.ip) -} -inline std::string* PeerId::mutable_ip() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerId.ip) - return _internal_mutable_ip(); -} -inline const std::string& PeerId::_internal_ip() const { return ip_.GetNoArena(); } -inline void PeerId::_internal_set_ip(const std::string& value) { +inline void PeerId::set_ip(const ::std::string& value) { - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerId.ip) } -inline void PeerId::set_ip(std::string&& value) { +#if LANG_CXX11 +inline void PeerId::set_ip(::std::string&& value) { ip_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Peer.PeerId.ip) } +#endif inline void PeerId::set_ip(const char* value) { - GOOGLE_DCHECK(value != nullptr); - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Peer.PeerId.ip) } inline void PeerId::set_ip(const void* value, size_t size) { - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Peer.PeerId.ip) } -inline std::string* PeerId::_internal_mutable_ip() { +inline ::std::string* PeerId::mutable_ip() { - return ip_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerId.ip) + return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* PeerId::release_ip() { +inline ::std::string* PeerId::release_ip() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerId.ip) - return ip_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PeerId::set_allocated_ip(std::string* ip) { - if (ip != nullptr) { +inline void PeerId::set_allocated_ip(::std::string* ip) { + if (ip != NULL) { } else { } - ip_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip); + ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerId.ip) } @@ -550,79 +393,65 @@ inline void PeerId::set_allocated_ip(std::string* ip) { inline void PeerId::clear_port() { port_ = 0u; } -inline ::PROTOBUF_NAMESPACE_ID::uint32 PeerId::_internal_port() const { - return port_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 PeerId::port() const { +inline ::google::protobuf::uint32 PeerId::port() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerId.port) - return _internal_port(); + return port_; } -inline void PeerId::_internal_set_port(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void PeerId::set_port(::google::protobuf::uint32 value) { port_ = value; -} -inline void PeerId::set_port(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_port(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerId.port) } // bytes public_key = 3; inline void PeerId::clear_public_key() { - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& PeerId::public_key() const { +inline const ::std::string& PeerId::public_key() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerId.public_key) - return _internal_public_key(); -} -inline void PeerId::set_public_key(const std::string& value) { - _internal_set_public_key(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerId.public_key) -} -inline std::string* PeerId::mutable_public_key() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerId.public_key) - return _internal_mutable_public_key(); -} -inline const std::string& PeerId::_internal_public_key() const { return public_key_.GetNoArena(); } -inline void PeerId::_internal_set_public_key(const std::string& value) { +inline void PeerId::set_public_key(const ::std::string& value) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerId.public_key) } -inline void PeerId::set_public_key(std::string&& value) { +#if LANG_CXX11 +inline void PeerId::set_public_key(::std::string&& value) { public_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Peer.PeerId.public_key) } +#endif inline void PeerId::set_public_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Peer.PeerId.public_key) } inline void PeerId::set_public_key(const void* value, size_t size) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Peer.PeerId.public_key) } -inline std::string* PeerId::_internal_mutable_public_key() { +inline ::std::string* PeerId::mutable_public_key() { - return public_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerId.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* PeerId::release_public_key() { +inline ::std::string* PeerId::release_public_key() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerId.public_key) - return public_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PeerId::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { +inline void PeerId::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { } else { } - public_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key); + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerId.public_key) } @@ -631,62 +460,41 @@ inline void PeerId::set_allocated_public_key(std::string* public_key) { // PeerInfo // .Catalyst.Protocol.Peer.PeerId peer_id = 1; -inline bool PeerInfo::_internal_has_peer_id() const { - return this != internal_default_instance() && peer_id_ != nullptr; -} inline bool PeerInfo::has_peer_id() const { - return _internal_has_peer_id(); + return this != internal_default_instance() && peer_id_ != NULL; } inline void PeerInfo::clear_peer_id() { - if (GetArenaNoVirtual() == nullptr && peer_id_ != nullptr) { - delete peer_id_; - } - peer_id_ = nullptr; -} -inline const ::Catalyst::Protocol::Peer::PeerId& PeerInfo::_internal_peer_id() const { - const ::Catalyst::Protocol::Peer::PeerId* p = peer_id_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Peer::_PeerId_default_instance_); + if (GetArenaNoVirtual() == NULL && peer_id_ != NULL) delete peer_id_; + peer_id_ = NULL; } inline const ::Catalyst::Protocol::Peer::PeerId& PeerInfo::peer_id() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.peer_id) - return _internal_peer_id(); + return peer_id_ != NULL ? *peer_id_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +inline ::Catalyst::Protocol::Peer::PeerId* PeerInfo::mutable_peer_id() { + + if (peer_id_ == NULL) { + peer_id_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.peer_id) + return peer_id_; } inline ::Catalyst::Protocol::Peer::PeerId* PeerInfo::release_peer_id() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.peer_id) ::Catalyst::Protocol::Peer::PeerId* temp = peer_id_; - peer_id_ = nullptr; + peer_id_ = NULL; return temp; } -inline ::Catalyst::Protocol::Peer::PeerId* PeerInfo::_internal_mutable_peer_id() { - - if (peer_id_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Peer::PeerId>(GetArenaNoVirtual()); - peer_id_ = p; - } - return peer_id_; -} -inline ::Catalyst::Protocol::Peer::PeerId* PeerInfo::mutable_peer_id() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.peer_id) - return _internal_mutable_peer_id(); -} inline void PeerInfo::set_allocated_peer_id(::Catalyst::Protocol::Peer::PeerId* peer_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete peer_id_; - } + delete peer_id_; + peer_id_ = peer_id; if (peer_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - peer_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, peer_id, submessage_arena); - } } else { } - peer_id_ = peer_id; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerInfo.peer_id) } @@ -694,19 +502,13 @@ inline void PeerInfo::set_allocated_peer_id(::Catalyst::Protocol::Peer::PeerId* inline void PeerInfo::clear_reputation() { reputation_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::int32 PeerInfo::_internal_reputation() const { - return reputation_; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 PeerInfo::reputation() const { +inline ::google::protobuf::int32 PeerInfo::reputation() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.reputation) - return _internal_reputation(); + return reputation_; } -inline void PeerInfo::_internal_set_reputation(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void PeerInfo::set_reputation(::google::protobuf::int32 value) { reputation_ = value; -} -inline void PeerInfo::set_reputation(::PROTOBUF_NAMESPACE_ID::int32 value) { - _internal_set_reputation(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerInfo.reputation) } @@ -714,19 +516,13 @@ inline void PeerInfo::set_reputation(::PROTOBUF_NAMESPACE_ID::int32 value) { inline void PeerInfo::clear_is_blacklisted() { is_blacklisted_ = false; } -inline bool PeerInfo::_internal_is_blacklisted() const { - return is_blacklisted_; -} inline bool PeerInfo::is_blacklisted() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.is_blacklisted) - return _internal_is_blacklisted(); + return is_blacklisted_; } -inline void PeerInfo::_internal_set_is_blacklisted(bool value) { +inline void PeerInfo::set_is_blacklisted(bool value) { is_blacklisted_ = value; -} -inline void PeerInfo::set_is_blacklisted(bool value) { - _internal_set_is_blacklisted(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerInfo.is_blacklisted) } @@ -734,255 +530,203 @@ inline void PeerInfo::set_is_blacklisted(bool value) { inline void PeerInfo::clear_is_unreachable() { is_unreachable_ = false; } -inline bool PeerInfo::_internal_is_unreachable() const { - return is_unreachable_; -} inline bool PeerInfo::is_unreachable() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.is_unreachable) - return _internal_is_unreachable(); + return is_unreachable_; } -inline void PeerInfo::_internal_set_is_unreachable(bool value) { +inline void PeerInfo::set_is_unreachable(bool value) { is_unreachable_ = value; -} -inline void PeerInfo::set_is_unreachable(bool value) { - _internal_set_is_unreachable(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Peer.PeerInfo.is_unreachable) } // .google.protobuf.Duration inactive_for = 5; -inline bool PeerInfo::_internal_has_inactive_for() const { - return this != internal_default_instance() && inactive_for_ != nullptr; -} inline bool PeerInfo::has_inactive_for() const { - return _internal_has_inactive_for(); + return this != internal_default_instance() && inactive_for_ != NULL; } -inline const PROTOBUF_NAMESPACE_ID::Duration& PeerInfo::_internal_inactive_for() const { - const PROTOBUF_NAMESPACE_ID::Duration* p = inactive_for_; - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Duration_default_instance_); +inline void PeerInfo::clear_inactive_for() { + if (GetArenaNoVirtual() == NULL && inactive_for_ != NULL) delete inactive_for_; + inactive_for_ = NULL; } -inline const PROTOBUF_NAMESPACE_ID::Duration& PeerInfo::inactive_for() const { +inline const ::google::protobuf::Duration& PeerInfo::inactive_for() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.inactive_for) - return _internal_inactive_for(); -} -inline PROTOBUF_NAMESPACE_ID::Duration* PeerInfo::release_inactive_for() { - // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.inactive_for) - - PROTOBUF_NAMESPACE_ID::Duration* temp = inactive_for_; - inactive_for_ = nullptr; - return temp; + return inactive_for_ != NULL ? *inactive_for_ + : *::google::protobuf::Duration::internal_default_instance(); } -inline PROTOBUF_NAMESPACE_ID::Duration* PeerInfo::_internal_mutable_inactive_for() { +inline ::google::protobuf::Duration* PeerInfo::mutable_inactive_for() { - if (inactive_for_ == nullptr) { - auto* p = CreateMaybeMessage(GetArenaNoVirtual()); - inactive_for_ = p; + if (inactive_for_ == NULL) { + inactive_for_ = new ::google::protobuf::Duration; } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.inactive_for) return inactive_for_; } -inline PROTOBUF_NAMESPACE_ID::Duration* PeerInfo::mutable_inactive_for() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.inactive_for) - return _internal_mutable_inactive_for(); +inline ::google::protobuf::Duration* PeerInfo::release_inactive_for() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.inactive_for) + + ::google::protobuf::Duration* temp = inactive_for_; + inactive_for_ = NULL; + return temp; } -inline void PeerInfo::set_allocated_inactive_for(PROTOBUF_NAMESPACE_ID::Duration* inactive_for) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(inactive_for_); +inline void PeerInfo::set_allocated_inactive_for(::google::protobuf::Duration* inactive_for) { + delete inactive_for_; + if (inactive_for != NULL && inactive_for->GetArena() != NULL) { + ::google::protobuf::Duration* new_inactive_for = new ::google::protobuf::Duration; + new_inactive_for->CopyFrom(*inactive_for); + inactive_for = new_inactive_for; } + inactive_for_ = inactive_for; if (inactive_for) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(inactive_for)->GetArena(); - if (message_arena != submessage_arena) { - inactive_for = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, inactive_for, submessage_arena); - } } else { } - inactive_for_ = inactive_for; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerInfo.inactive_for) } // .google.protobuf.Timestamp last_seen = 6; -inline bool PeerInfo::_internal_has_last_seen() const { - return this != internal_default_instance() && last_seen_ != nullptr; -} inline bool PeerInfo::has_last_seen() const { - return _internal_has_last_seen(); + return this != internal_default_instance() && last_seen_ != NULL; } -inline const PROTOBUF_NAMESPACE_ID::Timestamp& PeerInfo::_internal_last_seen() const { - const PROTOBUF_NAMESPACE_ID::Timestamp* p = last_seen_; - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +inline void PeerInfo::clear_last_seen() { + if (GetArenaNoVirtual() == NULL && last_seen_ != NULL) delete last_seen_; + last_seen_ = NULL; } -inline const PROTOBUF_NAMESPACE_ID::Timestamp& PeerInfo::last_seen() const { +inline const ::google::protobuf::Timestamp& PeerInfo::last_seen() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.last_seen) - return _internal_last_seen(); -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* PeerInfo::release_last_seen() { - // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.last_seen) - - PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_seen_; - last_seen_ = nullptr; - return temp; + return last_seen_ != NULL ? *last_seen_ + : *::google::protobuf::Timestamp::internal_default_instance(); } -inline PROTOBUF_NAMESPACE_ID::Timestamp* PeerInfo::_internal_mutable_last_seen() { +inline ::google::protobuf::Timestamp* PeerInfo::mutable_last_seen() { - if (last_seen_ == nullptr) { - auto* p = CreateMaybeMessage(GetArenaNoVirtual()); - last_seen_ = p; + if (last_seen_ == NULL) { + last_seen_ = new ::google::protobuf::Timestamp; } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.last_seen) return last_seen_; } -inline PROTOBUF_NAMESPACE_ID::Timestamp* PeerInfo::mutable_last_seen() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.last_seen) - return _internal_mutable_last_seen(); +inline ::google::protobuf::Timestamp* PeerInfo::release_last_seen() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.last_seen) + + ::google::protobuf::Timestamp* temp = last_seen_; + last_seen_ = NULL; + return temp; } -inline void PeerInfo::set_allocated_last_seen(PROTOBUF_NAMESPACE_ID::Timestamp* last_seen) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_seen_); +inline void PeerInfo::set_allocated_last_seen(::google::protobuf::Timestamp* last_seen) { + delete last_seen_; + if (last_seen != NULL && last_seen->GetArena() != NULL) { + ::google::protobuf::Timestamp* new_last_seen = new ::google::protobuf::Timestamp; + new_last_seen->CopyFrom(*last_seen); + last_seen = new_last_seen; } + last_seen_ = last_seen; if (last_seen) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_seen)->GetArena(); - if (message_arena != submessage_arena) { - last_seen = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, last_seen, submessage_arena); - } } else { } - last_seen_ = last_seen; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerInfo.last_seen) } // .google.protobuf.Timestamp modified = 7; -inline bool PeerInfo::_internal_has_modified() const { - return this != internal_default_instance() && modified_ != nullptr; -} inline bool PeerInfo::has_modified() const { - return _internal_has_modified(); + return this != internal_default_instance() && modified_ != NULL; } -inline const PROTOBUF_NAMESPACE_ID::Timestamp& PeerInfo::_internal_modified() const { - const PROTOBUF_NAMESPACE_ID::Timestamp* p = modified_; - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +inline void PeerInfo::clear_modified() { + if (GetArenaNoVirtual() == NULL && modified_ != NULL) delete modified_; + modified_ = NULL; } -inline const PROTOBUF_NAMESPACE_ID::Timestamp& PeerInfo::modified() const { +inline const ::google::protobuf::Timestamp& PeerInfo::modified() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.modified) - return _internal_modified(); -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* PeerInfo::release_modified() { - // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.modified) - - PROTOBUF_NAMESPACE_ID::Timestamp* temp = modified_; - modified_ = nullptr; - return temp; + return modified_ != NULL ? *modified_ + : *::google::protobuf::Timestamp::internal_default_instance(); } -inline PROTOBUF_NAMESPACE_ID::Timestamp* PeerInfo::_internal_mutable_modified() { +inline ::google::protobuf::Timestamp* PeerInfo::mutable_modified() { - if (modified_ == nullptr) { - auto* p = CreateMaybeMessage(GetArenaNoVirtual()); - modified_ = p; + if (modified_ == NULL) { + modified_ = new ::google::protobuf::Timestamp; } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.modified) return modified_; } -inline PROTOBUF_NAMESPACE_ID::Timestamp* PeerInfo::mutable_modified() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.modified) - return _internal_mutable_modified(); +inline ::google::protobuf::Timestamp* PeerInfo::release_modified() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.modified) + + ::google::protobuf::Timestamp* temp = modified_; + modified_ = NULL; + return temp; } -inline void PeerInfo::set_allocated_modified(PROTOBUF_NAMESPACE_ID::Timestamp* modified) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(modified_); +inline void PeerInfo::set_allocated_modified(::google::protobuf::Timestamp* modified) { + delete modified_; + if (modified != NULL && modified->GetArena() != NULL) { + ::google::protobuf::Timestamp* new_modified = new ::google::protobuf::Timestamp; + new_modified->CopyFrom(*modified); + modified = new_modified; } + modified_ = modified; if (modified) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(modified)->GetArena(); - if (message_arena != submessage_arena) { - modified = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, modified, submessage_arena); - } } else { } - modified_ = modified; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerInfo.modified) } // .google.protobuf.Timestamp created = 8; -inline bool PeerInfo::_internal_has_created() const { - return this != internal_default_instance() && created_ != nullptr; -} inline bool PeerInfo::has_created() const { - return _internal_has_created(); + return this != internal_default_instance() && created_ != NULL; } -inline const PROTOBUF_NAMESPACE_ID::Timestamp& PeerInfo::_internal_created() const { - const PROTOBUF_NAMESPACE_ID::Timestamp* p = created_; - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); +inline void PeerInfo::clear_created() { + if (GetArenaNoVirtual() == NULL && created_ != NULL) delete created_; + created_ = NULL; } -inline const PROTOBUF_NAMESPACE_ID::Timestamp& PeerInfo::created() const { +inline const ::google::protobuf::Timestamp& PeerInfo::created() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Peer.PeerInfo.created) - return _internal_created(); -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* PeerInfo::release_created() { - // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.created) - - PROTOBUF_NAMESPACE_ID::Timestamp* temp = created_; - created_ = nullptr; - return temp; + return created_ != NULL ? *created_ + : *::google::protobuf::Timestamp::internal_default_instance(); } -inline PROTOBUF_NAMESPACE_ID::Timestamp* PeerInfo::_internal_mutable_created() { +inline ::google::protobuf::Timestamp* PeerInfo::mutable_created() { - if (created_ == nullptr) { - auto* p = CreateMaybeMessage(GetArenaNoVirtual()); - created_ = p; + if (created_ == NULL) { + created_ = new ::google::protobuf::Timestamp; } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.created) return created_; } -inline PROTOBUF_NAMESPACE_ID::Timestamp* PeerInfo::mutable_created() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Peer.PeerInfo.created) - return _internal_mutable_created(); +inline ::google::protobuf::Timestamp* PeerInfo::release_created() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Peer.PeerInfo.created) + + ::google::protobuf::Timestamp* temp = created_; + created_ = NULL; + return temp; } -inline void PeerInfo::set_allocated_created(PROTOBUF_NAMESPACE_ID::Timestamp* created) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(created_); +inline void PeerInfo::set_allocated_created(::google::protobuf::Timestamp* created) { + delete created_; + if (created != NULL && created->GetArena() != NULL) { + ::google::protobuf::Timestamp* new_created = new ::google::protobuf::Timestamp; + new_created->CopyFrom(*created); + created = new_created; } + created_ = created; if (created) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(created)->GetArena(); - if (message_arena != submessage_arena) { - created = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, created, submessage_arena); - } } else { } - created_ = created; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Peer.PeerInfo.created) } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) + } // namespace Peer } // namespace Protocol } // namespace Catalyst // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Peer_2eproto +#endif // PROTOBUF_Peer_2eproto__INCLUDED diff --git a/packages/sdk-cpp/src/Rpc.pb.cc b/packages/sdk-cpp/src/Rpc.pb.cc index 27bfc68..cc7ab46 100644 --- a/packages/sdk-cpp/src/Rpc.pb.cc +++ b/packages/sdk-cpp/src/Rpc.pb.cc @@ -1,2028 +1,1054 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Rpc.proto +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "Rpc.pb.h" #include +#include +#include +#include #include -#include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_Cryptography_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SigningContext_Cryptography_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Deltas_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_Delta_Deltas_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Peer_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeerId_Peer_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Peer_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_PeerInfo_Peer_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Transaction_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_PublicEntry_Transaction_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Wire_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TransactionBroadcast_Wire_2eproto; -namespace Catalyst { -namespace Protocol { -namespace Rpc { -namespace Node { -class VersionRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VersionRequest_default_instance_; -class VersionResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VersionResponse_default_instance_; -class GetInfoRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetInfoRequest_default_instance_; -class GetInfoResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetInfoResponse_default_instance_; -class CreateWalletRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CreateWalletRequest_default_instance_; -class CreateWalletResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CreateWalletResponse_default_instance_; -class ListWalletRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ListWalletRequest_default_instance_; -class ListWalletResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ListWalletResponse_default_instance_; -class CreateAddressRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CreateAddressRequest_default_instance_; -class CreateAddressResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CreateAddressResponse_default_instance_; -class GetAddressRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetAddressRequest_default_instance_; -class GetAddressResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetAddressResponse_default_instance_; -class ListAddressRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ListAddressRequest_default_instance_; -class ListAddressResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ListAddressResponse_default_instance_; -class ValidateAddressRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ValidateAddressRequest_default_instance_; -class ValidateAddressResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ValidateAddressResponse_default_instance_; -class GetBalanceRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetBalanceRequest_default_instance_; -class GetBalanceResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetBalanceResponse_default_instance_; -class CreateRawTransactionRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CreateRawTransactionRequest_default_instance_; -class CreateRawTransactionResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CreateRawTransactionResponse_default_instance_; -class SignRawTransactionRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SignRawTransactionRequest_default_instance_; -class SignRawTransactionResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SignRawTransactionResponse_default_instance_; -class DecodeRawTransactionRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _DecodeRawTransactionRequest_default_instance_; -class DecodeRawTransactionResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _DecodeRawTransactionResponse_default_instance_; -class BroadcastRawTransactionRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _BroadcastRawTransactionRequest_default_instance_; -class BroadcastRawTransactionResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _BroadcastRawTransactionResponse_default_instance_; -class SendToRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SendToRequest_default_instance_; -class SendToResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SendToResponse_default_instance_; -class SendToFromRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SendToFromRequest_default_instance_; -class SendToFromResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SendToFromResponse_default_instance_; -class SendManyRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SendManyRequest_default_instance_; -class SendManyResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SendManyResponse_default_instance_; -class SendFromManyRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SendFromManyRequest_default_instance_; -class SendFromManyResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SendFromManyResponse_default_instance_; -class AddNodeRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _AddNodeRequest_default_instance_; -class AddNodeResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _AddNodeResponse_default_instance_; -class GetPeerListRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetPeerListRequest_default_instance_; -class GetPeerListResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetPeerListResponse_default_instance_; -class GetPeerReputationRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetPeerReputationRequest_default_instance_; -class GetPeerReputationResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetPeerReputationResponse_default_instance_; -class SetPeerBlackListRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SetPeerBlackListRequest_default_instance_; -class SetPeerBlackListResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SetPeerBlackListResponse_default_instance_; -class GetPeerInfoRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetPeerInfoRequest_default_instance_; -class GetPeerInfoResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetPeerInfoResponse_default_instance_; -class GetConnectionCountRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetConnectionCountRequest_default_instance_; -class GetConnectionCountResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetConnectionCountResponse_default_instance_; -class GetDeltaRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetDeltaRequest_default_instance_; -class GetDeltaResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetDeltaResponse_default_instance_; -class GetMempoolRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetMempoolRequest_default_instance_; -class GetMempoolResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetMempoolResponse_default_instance_; -class SignMessageRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SignMessageRequest_default_instance_; -class SignMessageResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SignMessageResponse_default_instance_; -class VerifyMessageRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VerifyMessageRequest_default_instance_; -class VerifyMessageResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _VerifyMessageResponse_default_instance_; -class ServiceStatusRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ServiceStatusRequest_default_instance_; -class ServiceStatusResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ServiceStatusResponse_default_instance_; -class AddFileToDfsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _AddFileToDfsRequest_default_instance_; -class AddFileToDfsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _AddFileToDfsResponse_default_instance_; -class TransferFileBytesRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TransferFileBytesRequest_default_instance_; -class TransferFileBytesResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TransferFileBytesResponse_default_instance_; -class RemovePeerRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _RemovePeerRequest_default_instance_; -class RemovePeerResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _RemovePeerResponse_default_instance_; -class GetPeerCountRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetPeerCountRequest_default_instance_; -class GetPeerCountResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetPeerCountResponse_default_instance_; -class GetFileFromDfsRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetFileFromDfsRequest_default_instance_; -class GetFileFromDfsResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _GetFileFromDfsResponse_default_instance_; -class SetPeerDataFolderRequestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SetPeerDataFolderRequest_default_instance_; -class SetPeerDataFolderResponseDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SetPeerDataFolderResponse_default_instance_; -} // namespace Node -} // namespace Rpc -} // namespace Protocol -} // namespace Catalyst -static void InitDefaultsscc_info_AddFileToDfsRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_AddFileToDfsRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::AddFileToDfsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::AddFileToDfsRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AddFileToDfsRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AddFileToDfsRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_AddFileToDfsResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_AddFileToDfsResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::AddFileToDfsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::AddFileToDfsResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AddFileToDfsResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AddFileToDfsResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_AddNodeRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_AddNodeRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::AddNodeRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::AddNodeRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AddNodeRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AddNodeRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_AddNodeResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_AddNodeResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::AddNodeResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::AddNodeResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_AddNodeResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_AddNodeResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_BroadcastRawTransactionRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_BroadcastRawTransactionRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BroadcastRawTransactionRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_BroadcastRawTransactionRequest_Rpc_2eproto}, { - &scc_info_TransactionBroadcast_Wire_2eproto.base,}}; - -static void InitDefaultsscc_info_BroadcastRawTransactionResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_BroadcastRawTransactionResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_BroadcastRawTransactionResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_BroadcastRawTransactionResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_CreateAddressRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_CreateAddressRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::CreateAddressRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::CreateAddressRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CreateAddressRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CreateAddressRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_CreateAddressResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_CreateAddressResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::CreateAddressResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::CreateAddressResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CreateAddressResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CreateAddressResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_CreateRawTransactionRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_CreateRawTransactionRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::CreateRawTransactionRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::CreateRawTransactionRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CreateRawTransactionRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CreateRawTransactionRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_CreateRawTransactionResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_CreateRawTransactionResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::CreateRawTransactionResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::CreateRawTransactionResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CreateRawTransactionResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CreateRawTransactionResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_CreateWalletRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_CreateWalletRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::CreateWalletRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::CreateWalletRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CreateWalletRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CreateWalletRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_CreateWalletResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_CreateWalletResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::CreateWalletResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::CreateWalletResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CreateWalletResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CreateWalletResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_DecodeRawTransactionRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_DecodeRawTransactionRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DecodeRawTransactionRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DecodeRawTransactionRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_DecodeRawTransactionResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_DecodeRawTransactionResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DecodeRawTransactionResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DecodeRawTransactionResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetAddressRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetAddressRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetAddressRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetAddressRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetAddressRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetAddressRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetAddressResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetAddressResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetAddressResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetAddressResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetAddressResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetAddressResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetBalanceRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetBalanceRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetBalanceRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetBalanceRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetBalanceRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetBalanceRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetBalanceResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetBalanceResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetBalanceResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetBalanceResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetBalanceResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetBalanceResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetConnectionCountRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetConnectionCountRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetConnectionCountRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetConnectionCountRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetConnectionCountRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetConnectionCountRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetConnectionCountResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetConnectionCountResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetConnectionCountResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetConnectionCountResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetConnectionCountResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetConnectionCountResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetDeltaRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetDeltaRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetDeltaRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetDeltaRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetDeltaRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetDeltaRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetDeltaResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetDeltaResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetDeltaResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetDeltaResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetDeltaResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetDeltaResponse_Rpc_2eproto}, { - &scc_info_Delta_Deltas_2eproto.base,}}; - -static void InitDefaultsscc_info_GetFileFromDfsRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetFileFromDfsRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetFileFromDfsRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetFileFromDfsRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetFileFromDfsRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetFileFromDfsRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetFileFromDfsResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetFileFromDfsResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetFileFromDfsResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetFileFromDfsResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetFileFromDfsResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetFileFromDfsResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetInfoRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetInfoRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetInfoRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetInfoRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetInfoRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetInfoRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetInfoResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetInfoResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetInfoResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetInfoResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetInfoResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetInfoResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetMempoolRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetMempoolRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetMempoolRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetMempoolRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetMempoolRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetMempoolRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetMempoolResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetMempoolResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetMempoolResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetMempoolResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetMempoolResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetMempoolResponse_Rpc_2eproto}, { - &scc_info_PublicEntry_Transaction_2eproto.base,}}; - -static void InitDefaultsscc_info_GetPeerCountRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetPeerCountRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetPeerCountRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetPeerCountRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetPeerCountRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetPeerCountRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetPeerCountResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetPeerCountResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetPeerCountResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetPeerCountResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetPeerCountResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetPeerCountResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetPeerInfoRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetPeerInfoRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetPeerInfoRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetPeerInfoRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetPeerInfoRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetPeerInfoRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetPeerInfoResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetPeerInfoResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetPeerInfoResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetPeerInfoResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetPeerInfoResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetPeerInfoResponse_Rpc_2eproto}, { - &scc_info_PeerInfo_Peer_2eproto.base,}}; - -static void InitDefaultsscc_info_GetPeerListRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetPeerListRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetPeerListRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetPeerListRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetPeerListRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetPeerListRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetPeerListResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetPeerListResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetPeerListResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetPeerListResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetPeerListResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_GetPeerListResponse_Rpc_2eproto}, { - &scc_info_PeerId_Peer_2eproto.base,}}; - -static void InitDefaultsscc_info_GetPeerReputationRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetPeerReputationRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetPeerReputationRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetPeerReputationRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetPeerReputationRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetPeerReputationRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_GetPeerReputationResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_GetPeerReputationResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::GetPeerReputationResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::GetPeerReputationResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetPeerReputationResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_GetPeerReputationResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_ListAddressRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_ListAddressRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::ListAddressRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::ListAddressRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListAddressRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListAddressRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_ListAddressResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_ListAddressResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::ListAddressResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::ListAddressResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListAddressResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListAddressResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_ListWalletRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_ListWalletRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::ListWalletRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::ListWalletRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListWalletRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListWalletRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_ListWalletResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_ListWalletResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::ListWalletResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::ListWalletResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ListWalletResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ListWalletResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_RemovePeerRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_RemovePeerRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::RemovePeerRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::RemovePeerRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RemovePeerRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_RemovePeerRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_RemovePeerResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_RemovePeerResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::RemovePeerResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::RemovePeerResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RemovePeerResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_RemovePeerResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SendFromManyRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SendFromManyRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SendFromManyRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SendFromManyRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SendFromManyRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SendFromManyRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SendFromManyResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SendFromManyResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SendFromManyResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SendFromManyResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SendFromManyResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SendFromManyResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SendManyRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SendManyRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SendManyRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SendManyRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SendManyRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SendManyRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SendManyResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SendManyResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SendManyResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SendManyResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SendManyResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SendManyResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SendToFromRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SendToFromRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SendToFromRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SendToFromRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SendToFromRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SendToFromRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SendToFromResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SendToFromResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SendToFromResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SendToFromResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SendToFromResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SendToFromResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SendToRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SendToRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SendToRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SendToRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SendToRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SendToRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SendToResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SendToResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SendToResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SendToResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SendToResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SendToResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_ServiceStatusRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_ServiceStatusRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::ServiceStatusRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::ServiceStatusRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ServiceStatusRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ServiceStatusRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_ServiceStatusResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_ServiceStatusResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::ServiceStatusResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::ServiceStatusResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ServiceStatusResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ServiceStatusResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SetPeerBlackListRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SetPeerBlackListRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SetPeerBlackListRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SetPeerBlackListRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SetPeerBlackListRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SetPeerBlackListRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SetPeerBlackListResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SetPeerBlackListResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SetPeerBlackListResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SetPeerBlackListResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SetPeerBlackListResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SetPeerBlackListResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SetPeerDataFolderRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SetPeerDataFolderRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SetPeerDataFolderRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SetPeerDataFolderRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SetPeerDataFolderResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SetPeerDataFolderResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SetPeerDataFolderResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SetPeerDataFolderResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SignMessageRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SignMessageRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SignMessageRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SignMessageRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SignMessageRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_SignMessageRequest_Rpc_2eproto}, { - &scc_info_SigningContext_Cryptography_2eproto.base,}}; - -static void InitDefaultsscc_info_SignMessageResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SignMessageResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SignMessageResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SignMessageResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SignMessageResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SignMessageResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SignRawTransactionRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SignRawTransactionRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SignRawTransactionRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SignRawTransactionRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SignRawTransactionRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SignRawTransactionRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_SignRawTransactionResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_SignRawTransactionResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::SignRawTransactionResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::SignRawTransactionResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SignRawTransactionResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SignRawTransactionResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_TransferFileBytesRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_TransferFileBytesRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::TransferFileBytesRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::TransferFileBytesRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TransferFileBytesRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_TransferFileBytesRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_TransferFileBytesResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_TransferFileBytesResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::TransferFileBytesResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::TransferFileBytesResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TransferFileBytesResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_TransferFileBytesResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_ValidateAddressRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_ValidateAddressRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::ValidateAddressRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::ValidateAddressRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ValidateAddressRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ValidateAddressRequest_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_ValidateAddressResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_ValidateAddressResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::ValidateAddressResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::ValidateAddressResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ValidateAddressResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ValidateAddressResponse_Rpc_2eproto}, {}}; - -static void InitDefaultsscc_info_VerifyMessageRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_VerifyMessageRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_VerifyMessageRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_VerifyMessageRequest_Rpc_2eproto}, { - &scc_info_SigningContext_Cryptography_2eproto.base,}}; - -static void InitDefaultsscc_info_VerifyMessageResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_VerifyMessageResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::VerifyMessageResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::VerifyMessageResponse::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VerifyMessageResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_VerifyMessageResponse_Rpc_2eproto}, {}}; -static void InitDefaultsscc_info_VersionRequest_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_VersionRequest_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::VersionRequest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::VersionRequest::InitAsDefaultInstance(); -} +namespace Catalyst { +namespace Protocol { +namespace Rpc { +namespace Node { +class VersionRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _VersionRequest_default_instance_; +class VersionResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _VersionResponse_default_instance_; +class GetInfoRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetInfoRequest_default_instance_; +class GetInfoResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetInfoResponse_default_instance_; +class CreateWalletRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _CreateWalletRequest_default_instance_; +class CreateWalletResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _CreateWalletResponse_default_instance_; +class ListWalletRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _ListWalletRequest_default_instance_; +class ListWalletResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _ListWalletResponse_default_instance_; +class CreateAddressRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _CreateAddressRequest_default_instance_; +class CreateAddressResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _CreateAddressResponse_default_instance_; +class GetAddressRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetAddressRequest_default_instance_; +class GetAddressResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetAddressResponse_default_instance_; +class ListAddressRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _ListAddressRequest_default_instance_; +class ListAddressResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _ListAddressResponse_default_instance_; +class ValidateAddressRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _ValidateAddressRequest_default_instance_; +class ValidateAddressResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _ValidateAddressResponse_default_instance_; +class GetBalanceRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetBalanceRequest_default_instance_; +class GetBalanceResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetBalanceResponse_default_instance_; +class CreateRawTransactionRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _CreateRawTransactionRequest_default_instance_; +class CreateRawTransactionResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _CreateRawTransactionResponse_default_instance_; +class SignRawTransactionRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SignRawTransactionRequest_default_instance_; +class SignRawTransactionResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SignRawTransactionResponse_default_instance_; +class DecodeRawTransactionRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _DecodeRawTransactionRequest_default_instance_; +class DecodeRawTransactionResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _DecodeRawTransactionResponse_default_instance_; +class BroadcastRawTransactionRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _BroadcastRawTransactionRequest_default_instance_; +class BroadcastRawTransactionResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _BroadcastRawTransactionResponse_default_instance_; +class SendToRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SendToRequest_default_instance_; +class SendToResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SendToResponse_default_instance_; +class SendToFromRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SendToFromRequest_default_instance_; +class SendToFromResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SendToFromResponse_default_instance_; +class SendManyRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SendManyRequest_default_instance_; +class SendManyResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SendManyResponse_default_instance_; +class SendFromManyRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SendFromManyRequest_default_instance_; +class SendFromManyResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SendFromManyResponse_default_instance_; +class AddNodeRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _AddNodeRequest_default_instance_; +class AddNodeResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _AddNodeResponse_default_instance_; +class GetPeerListRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetPeerListRequest_default_instance_; +class GetPeerListResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetPeerListResponse_default_instance_; +class GetPeerReputationRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetPeerReputationRequest_default_instance_; +class GetPeerReputationResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetPeerReputationResponse_default_instance_; +class SetPeerBlackListRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SetPeerBlackListRequest_default_instance_; +class SetPeerBlackListResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SetPeerBlackListResponse_default_instance_; +class GetPeerInfoRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetPeerInfoRequest_default_instance_; +class GetPeerInfoResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetPeerInfoResponse_default_instance_; +class GetConnectionCountRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetConnectionCountRequest_default_instance_; +class GetConnectionCountResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetConnectionCountResponse_default_instance_; +class GetDeltaRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetDeltaRequest_default_instance_; +class GetDeltaResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetDeltaResponse_default_instance_; +class GetMempoolRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetMempoolRequest_default_instance_; +class GetMempoolResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetMempoolResponse_default_instance_; +class SignMessageRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SignMessageRequest_default_instance_; +class SignMessageResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SignMessageResponse_default_instance_; +class VerifyMessageRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _VerifyMessageRequest_default_instance_; +class VerifyMessageResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _VerifyMessageResponse_default_instance_; +class ServiceStatusRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _ServiceStatusRequest_default_instance_; +class ServiceStatusResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _ServiceStatusResponse_default_instance_; +class AddFileToDfsRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _AddFileToDfsRequest_default_instance_; +class AddFileToDfsResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _AddFileToDfsResponse_default_instance_; +class TransferFileBytesRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _TransferFileBytesRequest_default_instance_; +class TransferFileBytesResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _TransferFileBytesResponse_default_instance_; +class RemovePeerRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _RemovePeerRequest_default_instance_; +class RemovePeerResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _RemovePeerResponse_default_instance_; +class GetPeerCountRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetPeerCountRequest_default_instance_; +class GetPeerCountResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetPeerCountResponse_default_instance_; +class GetFileFromDfsRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetFileFromDfsRequest_default_instance_; +class GetFileFromDfsResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _GetFileFromDfsResponse_default_instance_; +class SetPeerDataFolderRequestDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SetPeerDataFolderRequest_default_instance_; +class SetPeerDataFolderResponseDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { +} _SetPeerDataFolderResponse_default_instance_; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VersionRequest_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_VersionRequest_Rpc_2eproto}, {}}; +namespace protobuf_Rpc_2eproto { -static void InitDefaultsscc_info_VersionResponse_Rpc_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - { - void* ptr = &::Catalyst::Protocol::Rpc::Node::_VersionResponse_default_instance_; - new (ptr) ::Catalyst::Protocol::Rpc::Node::VersionResponse(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Rpc::Node::VersionResponse::InitAsDefaultInstance(); -} +namespace { -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VersionResponse_Rpc_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_VersionResponse_Rpc_2eproto}, {}}; +::google::protobuf::Metadata file_level_metadata[68]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Rpc_2eproto[68]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_Rpc_2eproto[1]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Rpc_2eproto = nullptr; +} // namespace -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Rpc_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct::offsets[] = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::VersionRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::VersionRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::VersionResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::VersionResponse, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VersionResponse, version_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetInfoRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetInfoRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetInfoRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetInfoRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetInfoResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetInfoResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetInfoResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetInfoResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::CreateWalletRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateWalletRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::CreateWalletRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateWalletRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::CreateWalletResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateWalletResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::CreateWalletResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateWalletResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ListWalletRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListWalletRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ListWalletRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListWalletRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ListWalletResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListWalletResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ListWalletResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListWalletResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::CreateAddressRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateAddressRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::CreateAddressRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateAddressRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::CreateAddressResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateAddressResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::CreateAddressResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateAddressResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetAddressRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAddressRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetAddressRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAddressRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetAddressResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAddressResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetAddressResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetAddressResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ListAddressRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListAddressRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ListAddressRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListAddressRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ListAddressResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListAddressResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ListAddressResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListAddressResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ValidateAddressRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ValidateAddressRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ValidateAddressRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ValidateAddressRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ValidateAddressResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ValidateAddressResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ValidateAddressResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ValidateAddressResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetBalanceRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetBalanceRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetBalanceRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetBalanceRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetBalanceResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetBalanceResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetBalanceResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetBalanceResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::CreateRawTransactionRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateRawTransactionRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::CreateRawTransactionRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateRawTransactionRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::CreateRawTransactionResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateRawTransactionResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::CreateRawTransactionResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CreateRawTransactionResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SignRawTransactionRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignRawTransactionRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SignRawTransactionRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignRawTransactionRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SignRawTransactionResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignRawTransactionResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SignRawTransactionResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignRawTransactionResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DecodeRawTransactionRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DecodeRawTransactionRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DecodeRawTransactionResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DecodeRawTransactionResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastRawTransactionRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionRequest, transaction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastRawTransactionRequest, transaction_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastRawTransactionResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionResponse, response_code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BroadcastRawTransactionResponse, response_code_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendToRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendToRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendToRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendToRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendToResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendToResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendToResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendToResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendToFromRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendToFromRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendToFromRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendToFromRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendToFromResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendToFromResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendToFromResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendToFromResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendManyRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendManyRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendManyRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendManyRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendManyResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendManyResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendManyResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendManyResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendFromManyRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendFromManyRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendFromManyRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendFromManyRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendFromManyResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendFromManyResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SendFromManyResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SendFromManyResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::AddNodeRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddNodeRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::AddNodeRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddNodeRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::AddNodeResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddNodeResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::AddNodeResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddNodeResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerListRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerListRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerListResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerListResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerListResponse, peers_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerListResponse, peers_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerReputationRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerReputationRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerReputationRequest, public_key_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerReputationRequest, ip_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerReputationRequest, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerReputationRequest, ip_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerReputationResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerReputationResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerReputationResponse, reputation_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerReputationResponse, reputation_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SetPeerBlackListRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetPeerBlackListRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SetPeerBlackListRequest, public_key_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SetPeerBlackListRequest, ip_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SetPeerBlackListRequest, blacklist_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetPeerBlackListRequest, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetPeerBlackListRequest, ip_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetPeerBlackListRequest, blacklist_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SetPeerBlackListResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetPeerBlackListResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SetPeerBlackListResponse, public_key_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SetPeerBlackListResponse, ip_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SetPeerBlackListResponse, blacklist_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetPeerBlackListResponse, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetPeerBlackListResponse, ip_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetPeerBlackListResponse, blacklist_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerInfoRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerInfoRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerInfoRequest, public_key_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerInfoRequest, ip_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerInfoRequest, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerInfoRequest, ip_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerInfoResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerInfoResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerInfoResponse, peer_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerInfoResponse, peer_info_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetConnectionCountRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetConnectionCountRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetConnectionCountRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetConnectionCountRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetConnectionCountResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetConnectionCountResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetConnectionCountResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetConnectionCountResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetDeltaRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDeltaRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetDeltaRequest, delta_dfs_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDeltaRequest, delta_dfs_hash_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetDeltaResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDeltaResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetDeltaResponse, delta_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetDeltaResponse, delta_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetMempoolRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetMempoolRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetMempoolRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetMempoolRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetMempoolResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetMempoolResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetMempoolResponse, transactions_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetMempoolResponse, transactions_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SignMessageRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignMessageRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SignMessageRequest, message_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SignMessageRequest, key_id_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SignMessageRequest, signing_context_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignMessageRequest, message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignMessageRequest, key_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignMessageRequest, signing_context_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SignMessageResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignMessageResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SignMessageResponse, signature_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SignMessageResponse, public_key_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SignMessageResponse, original_message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignMessageResponse, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignMessageResponse, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SignMessageResponse, original_message_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VerifyMessageRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest, signature_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest, public_key_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest, message_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest, signing_context_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VerifyMessageRequest, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VerifyMessageRequest, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VerifyMessageRequest, message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VerifyMessageRequest, signing_context_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::VerifyMessageResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VerifyMessageResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::VerifyMessageResponse, is_signed_by_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VerifyMessageResponse, is_signed_by_key_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ServiceStatusRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceStatusRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ServiceStatusRequest, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceStatusRequest, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ServiceStatusResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceStatusResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::ServiceStatusResponse, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceStatusResponse, query_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::AddFileToDfsRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddFileToDfsRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::AddFileToDfsRequest, file_size_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::AddFileToDfsRequest, file_name_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::AddFileToDfsRequest, node_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddFileToDfsRequest, file_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddFileToDfsRequest, file_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddFileToDfsRequest, node_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::AddFileToDfsResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddFileToDfsResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::AddFileToDfsResponse, response_code_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::AddFileToDfsResponse, dfs_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddFileToDfsResponse, response_code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AddFileToDfsResponse, dfs_hash_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::TransferFileBytesRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransferFileBytesRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::TransferFileBytesRequest, chunk_id_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::TransferFileBytesRequest, chunk_bytes_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::TransferFileBytesRequest, correlation_file_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransferFileBytesRequest, chunk_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransferFileBytesRequest, chunk_bytes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransferFileBytesRequest, correlation_file_name_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::TransferFileBytesResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransferFileBytesResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::TransferFileBytesResponse, response_code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransferFileBytesResponse, response_code_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::RemovePeerRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemovePeerRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::RemovePeerRequest, peer_ip_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::RemovePeerRequest, public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemovePeerRequest, peer_ip_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemovePeerRequest, public_key_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::RemovePeerResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemovePeerResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::RemovePeerResponse, deleted_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemovePeerResponse, deleted_count_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerCountRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerCountRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerCountResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerCountResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetPeerCountResponse, peer_count_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetPeerCountResponse, peer_count_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetFileFromDfsRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetFileFromDfsRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetFileFromDfsRequest, dfs_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetFileFromDfsRequest, dfs_hash_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetFileFromDfsResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetFileFromDfsResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetFileFromDfsResponse, file_size_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::GetFileFromDfsResponse, response_code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetFileFromDfsResponse, file_size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GetFileFromDfsResponse, response_code_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderRequest, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetPeerDataFolderRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderRequest, data_folder_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetPeerDataFolderRequest, data_folder_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderResponse, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetPeerDataFolderResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderResponse, query_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::Catalyst::Protocol::Rpc::Node::VersionRequest)}, - { 6, -1, sizeof(::Catalyst::Protocol::Rpc::Node::VersionResponse)}, - { 12, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetInfoRequest)}, - { 18, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetInfoResponse)}, - { 24, -1, sizeof(::Catalyst::Protocol::Rpc::Node::CreateWalletRequest)}, - { 30, -1, sizeof(::Catalyst::Protocol::Rpc::Node::CreateWalletResponse)}, - { 36, -1, sizeof(::Catalyst::Protocol::Rpc::Node::ListWalletRequest)}, - { 42, -1, sizeof(::Catalyst::Protocol::Rpc::Node::ListWalletResponse)}, - { 48, -1, sizeof(::Catalyst::Protocol::Rpc::Node::CreateAddressRequest)}, - { 54, -1, sizeof(::Catalyst::Protocol::Rpc::Node::CreateAddressResponse)}, - { 60, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetAddressRequest)}, - { 66, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetAddressResponse)}, - { 72, -1, sizeof(::Catalyst::Protocol::Rpc::Node::ListAddressRequest)}, - { 78, -1, sizeof(::Catalyst::Protocol::Rpc::Node::ListAddressResponse)}, - { 84, -1, sizeof(::Catalyst::Protocol::Rpc::Node::ValidateAddressRequest)}, - { 90, -1, sizeof(::Catalyst::Protocol::Rpc::Node::ValidateAddressResponse)}, - { 96, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetBalanceRequest)}, - { 102, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetBalanceResponse)}, - { 108, -1, sizeof(::Catalyst::Protocol::Rpc::Node::CreateRawTransactionRequest)}, - { 114, -1, sizeof(::Catalyst::Protocol::Rpc::Node::CreateRawTransactionResponse)}, - { 120, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SignRawTransactionRequest)}, - { 126, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SignRawTransactionResponse)}, - { 132, -1, sizeof(::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionRequest)}, - { 138, -1, sizeof(::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionResponse)}, - { 144, -1, sizeof(::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionRequest)}, - { 150, -1, sizeof(::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionResponse)}, - { 156, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SendToRequest)}, - { 162, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SendToResponse)}, - { 168, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SendToFromRequest)}, - { 174, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SendToFromResponse)}, - { 180, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SendManyRequest)}, - { 186, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SendManyResponse)}, - { 192, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SendFromManyRequest)}, - { 198, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SendFromManyResponse)}, - { 204, -1, sizeof(::Catalyst::Protocol::Rpc::Node::AddNodeRequest)}, - { 210, -1, sizeof(::Catalyst::Protocol::Rpc::Node::AddNodeResponse)}, - { 216, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetPeerListRequest)}, - { 221, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetPeerListResponse)}, - { 227, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetPeerReputationRequest)}, - { 234, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetPeerReputationResponse)}, - { 240, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SetPeerBlackListRequest)}, - { 248, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SetPeerBlackListResponse)}, - { 256, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetPeerInfoRequest)}, - { 263, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetPeerInfoResponse)}, - { 269, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetConnectionCountRequest)}, - { 275, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetConnectionCountResponse)}, - { 281, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetDeltaRequest)}, - { 287, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetDeltaResponse)}, - { 293, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetMempoolRequest)}, - { 299, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetMempoolResponse)}, - { 305, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SignMessageRequest)}, - { 313, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SignMessageResponse)}, - { 321, -1, sizeof(::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest)}, - { 330, -1, sizeof(::Catalyst::Protocol::Rpc::Node::VerifyMessageResponse)}, - { 336, -1, sizeof(::Catalyst::Protocol::Rpc::Node::ServiceStatusRequest)}, - { 342, -1, sizeof(::Catalyst::Protocol::Rpc::Node::ServiceStatusResponse)}, - { 348, -1, sizeof(::Catalyst::Protocol::Rpc::Node::AddFileToDfsRequest)}, - { 356, -1, sizeof(::Catalyst::Protocol::Rpc::Node::AddFileToDfsResponse)}, - { 363, -1, sizeof(::Catalyst::Protocol::Rpc::Node::TransferFileBytesRequest)}, - { 371, -1, sizeof(::Catalyst::Protocol::Rpc::Node::TransferFileBytesResponse)}, - { 377, -1, sizeof(::Catalyst::Protocol::Rpc::Node::RemovePeerRequest)}, - { 384, -1, sizeof(::Catalyst::Protocol::Rpc::Node::RemovePeerResponse)}, - { 390, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetPeerCountRequest)}, - { 395, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetPeerCountResponse)}, - { 401, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetFileFromDfsRequest)}, - { 407, -1, sizeof(::Catalyst::Protocol::Rpc::Node::GetFileFromDfsResponse)}, - { 414, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderRequest)}, - { 420, -1, sizeof(::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderResponse)}, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SetPeerDataFolderResponse, query_), }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_VersionRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_VersionResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetInfoRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetInfoResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_CreateWalletRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_CreateWalletResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_ListWalletRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_ListWalletResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_CreateAddressRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_CreateAddressResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetAddressRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetAddressResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_ListAddressRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_ListAddressResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_ValidateAddressRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_ValidateAddressResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetBalanceRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetBalanceResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_CreateRawTransactionRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_CreateRawTransactionResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SignRawTransactionRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SignRawTransactionResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_DecodeRawTransactionRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_DecodeRawTransactionResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_BroadcastRawTransactionRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_BroadcastRawTransactionResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SendToRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SendToResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SendToFromRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SendToFromResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SendManyRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SendManyResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SendFromManyRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SendFromManyResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_AddNodeRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_AddNodeResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetPeerListRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetPeerListResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetPeerReputationRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetPeerReputationResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SetPeerBlackListRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SetPeerBlackListResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetPeerInfoRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetPeerInfoResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetConnectionCountRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetConnectionCountResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetDeltaRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetDeltaResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetMempoolRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetMempoolResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SignMessageRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SignMessageResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_VerifyMessageRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_VerifyMessageResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_ServiceStatusRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_ServiceStatusResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_AddFileToDfsRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_AddFileToDfsResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_TransferFileBytesRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_TransferFileBytesResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_RemovePeerRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_RemovePeerResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetPeerCountRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetPeerCountResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetFileFromDfsRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_GetFileFromDfsResponse_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SetPeerDataFolderRequest_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Rpc::Node::_SetPeerDataFolderResponse_default_instance_), +static const ::google::protobuf::internal::MigrationSchema schemas[] = { + { 0, -1, sizeof(VersionRequest)}, + { 5, -1, sizeof(VersionResponse)}, + { 10, -1, sizeof(GetInfoRequest)}, + { 15, -1, sizeof(GetInfoResponse)}, + { 20, -1, sizeof(CreateWalletRequest)}, + { 25, -1, sizeof(CreateWalletResponse)}, + { 30, -1, sizeof(ListWalletRequest)}, + { 35, -1, sizeof(ListWalletResponse)}, + { 40, -1, sizeof(CreateAddressRequest)}, + { 45, -1, sizeof(CreateAddressResponse)}, + { 50, -1, sizeof(GetAddressRequest)}, + { 55, -1, sizeof(GetAddressResponse)}, + { 60, -1, sizeof(ListAddressRequest)}, + { 65, -1, sizeof(ListAddressResponse)}, + { 70, -1, sizeof(ValidateAddressRequest)}, + { 75, -1, sizeof(ValidateAddressResponse)}, + { 80, -1, sizeof(GetBalanceRequest)}, + { 85, -1, sizeof(GetBalanceResponse)}, + { 90, -1, sizeof(CreateRawTransactionRequest)}, + { 95, -1, sizeof(CreateRawTransactionResponse)}, + { 100, -1, sizeof(SignRawTransactionRequest)}, + { 105, -1, sizeof(SignRawTransactionResponse)}, + { 110, -1, sizeof(DecodeRawTransactionRequest)}, + { 115, -1, sizeof(DecodeRawTransactionResponse)}, + { 120, -1, sizeof(BroadcastRawTransactionRequest)}, + { 125, -1, sizeof(BroadcastRawTransactionResponse)}, + { 130, -1, sizeof(SendToRequest)}, + { 135, -1, sizeof(SendToResponse)}, + { 140, -1, sizeof(SendToFromRequest)}, + { 145, -1, sizeof(SendToFromResponse)}, + { 150, -1, sizeof(SendManyRequest)}, + { 155, -1, sizeof(SendManyResponse)}, + { 160, -1, sizeof(SendFromManyRequest)}, + { 165, -1, sizeof(SendFromManyResponse)}, + { 170, -1, sizeof(AddNodeRequest)}, + { 175, -1, sizeof(AddNodeResponse)}, + { 180, -1, sizeof(GetPeerListRequest)}, + { 184, -1, sizeof(GetPeerListResponse)}, + { 189, -1, sizeof(GetPeerReputationRequest)}, + { 195, -1, sizeof(GetPeerReputationResponse)}, + { 200, -1, sizeof(SetPeerBlackListRequest)}, + { 207, -1, sizeof(SetPeerBlackListResponse)}, + { 214, -1, sizeof(GetPeerInfoRequest)}, + { 220, -1, sizeof(GetPeerInfoResponse)}, + { 225, -1, sizeof(GetConnectionCountRequest)}, + { 230, -1, sizeof(GetConnectionCountResponse)}, + { 235, -1, sizeof(GetDeltaRequest)}, + { 240, -1, sizeof(GetDeltaResponse)}, + { 245, -1, sizeof(GetMempoolRequest)}, + { 250, -1, sizeof(GetMempoolResponse)}, + { 255, -1, sizeof(SignMessageRequest)}, + { 262, -1, sizeof(SignMessageResponse)}, + { 269, -1, sizeof(VerifyMessageRequest)}, + { 277, -1, sizeof(VerifyMessageResponse)}, + { 282, -1, sizeof(ServiceStatusRequest)}, + { 287, -1, sizeof(ServiceStatusResponse)}, + { 292, -1, sizeof(AddFileToDfsRequest)}, + { 299, -1, sizeof(AddFileToDfsResponse)}, + { 305, -1, sizeof(TransferFileBytesRequest)}, + { 312, -1, sizeof(TransferFileBytesResponse)}, + { 317, -1, sizeof(RemovePeerRequest)}, + { 323, -1, sizeof(RemovePeerResponse)}, + { 328, -1, sizeof(GetPeerCountRequest)}, + { 332, -1, sizeof(GetPeerCountResponse)}, + { 337, -1, sizeof(GetFileFromDfsRequest)}, + { 342, -1, sizeof(GetFileFromDfsResponse)}, + { 348, -1, sizeof(SetPeerDataFolderRequest)}, + { 353, -1, sizeof(SetPeerDataFolderResponse)}, }; -const char descriptor_table_protodef_Rpc_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\tRpc.proto\022\032Catalyst.Protocol.Rpc.Node\032" - "\nPeer.proto\032\022Cryptography.proto\032\014Deltas." - "proto\032\nWire.proto\032\021Transaction.proto\"\037\n\016" - "VersionRequest\022\r\n\005query\030\001 \001(\010\"\"\n\017Version" - "Response\022\017\n\007version\030\001 \001(\t\"\037\n\016GetInfoRequ" - "est\022\r\n\005query\030\001 \001(\010\" \n\017GetInfoResponse\022\r\n" - "\005query\030\001 \001(\t\"$\n\023CreateWalletRequest\022\r\n\005q" - "uery\030\001 \001(\010\"%\n\024CreateWalletResponse\022\r\n\005qu" - "ery\030\001 \001(\t\"\"\n\021ListWalletRequest\022\r\n\005query\030" - "\001 \001(\010\"#\n\022ListWalletResponse\022\r\n\005query\030\001 \001" - "(\t\"%\n\024CreateAddressRequest\022\r\n\005query\030\001 \001(" - "\010\"&\n\025CreateAddressResponse\022\r\n\005query\030\001 \001(" - "\t\"\"\n\021GetAddressRequest\022\r\n\005query\030\001 \001(\010\"#\n" - "\022GetAddressResponse\022\r\n\005query\030\001 \001(\t\"#\n\022Li" - "stAddressRequest\022\r\n\005query\030\001 \001(\010\"$\n\023ListA" - "ddressResponse\022\r\n\005query\030\001 \001(\t\"\'\n\026Validat" - "eAddressRequest\022\r\n\005query\030\001 \001(\010\"(\n\027Valida" - "teAddressResponse\022\r\n\005query\030\001 \001(\t\"\"\n\021GetB" - "alanceRequest\022\r\n\005query\030\001 \001(\010\"#\n\022GetBalan" - "ceResponse\022\r\n\005query\030\001 \001(\t\",\n\033CreateRawTr" - "ansactionRequest\022\r\n\005query\030\001 \001(\010\"-\n\034Creat" - "eRawTransactionResponse\022\r\n\005query\030\001 \001(\t\"*" - "\n\031SignRawTransactionRequest\022\r\n\005query\030\001 \001" - "(\010\"+\n\032SignRawTransactionResponse\022\r\n\005quer" - "y\030\001 \001(\t\",\n\033DecodeRawTransactionRequest\022\r" - "\n\005query\030\001 \001(\010\"-\n\034DecodeRawTransactionRes" - "ponse\022\r\n\005query\030\001 \001(\t\"c\n\036BroadcastRawTran" - "sactionRequest\022A\n\013transaction\030\001 \001(\0132,.Ca" - "talyst.Protocol.Wire.TransactionBroadcas" - "t\"b\n\037BroadcastRawTransactionResponse\022\?\n\r" - "response_code\030\001 \001(\0162(.Catalyst.Protocol." - "Rpc.Node.ResponseCode\"\036\n\rSendToRequest\022\r" - "\n\005query\030\001 \001(\010\"\037\n\016SendToResponse\022\r\n\005query" - "\030\001 \001(\t\"\"\n\021SendToFromRequest\022\r\n\005query\030\001 \001" - "(\010\"#\n\022SendToFromResponse\022\r\n\005query\030\001 \001(\t\"" - " \n\017SendManyRequest\022\r\n\005query\030\001 \001(\010\"!\n\020Sen" - "dManyResponse\022\r\n\005query\030\001 \001(\t\"$\n\023SendFrom" - "ManyRequest\022\r\n\005query\030\001 \001(\010\"%\n\024SendFromMa" - "nyResponse\022\r\n\005query\030\001 \001(\t\"\037\n\016AddNodeRequ" - "est\022\r\n\005query\030\001 \001(\010\" \n\017AddNodeResponse\022\r\n" - "\005query\030\001 \001(\t\"\024\n\022GetPeerListRequest\"D\n\023Ge" - "tPeerListResponse\022-\n\005peers\030\001 \003(\0132\036.Catal" - "yst.Protocol.Peer.PeerId\":\n\030GetPeerReput" - "ationRequest\022\022\n\npublic_key\030\001 \001(\014\022\n\n\002ip\030\002" - " \001(\014\"/\n\031GetPeerReputationResponse\022\022\n\nrep" - "utation\030\001 \001(\005\"L\n\027SetPeerBlackListRequest" - "\022\022\n\npublic_key\030\001 \001(\014\022\n\n\002ip\030\002 \001(\014\022\021\n\tblac" - "klist\030\003 \001(\010\"M\n\030SetPeerBlackListResponse\022" - "\022\n\npublic_key\030\001 \001(\014\022\n\n\002ip\030\002 \001(\014\022\021\n\tblack" - "list\030\003 \001(\010\"4\n\022GetPeerInfoRequest\022\022\n\npubl" - "ic_key\030\001 \001(\014\022\n\n\002ip\030\002 \001(\014\"J\n\023GetPeerInfoR" - "esponse\0223\n\tpeer_info\030\001 \003(\0132 .Catalyst.Pr" - "otocol.Peer.PeerInfo\"*\n\031GetConnectionCou" - "ntRequest\022\r\n\005query\030\001 \001(\010\"+\n\032GetConnectio" - "nCountResponse\022\r\n\005query\030\001 \001(\t\")\n\017GetDelt" - "aRequest\022\026\n\016delta_dfs_hash\030\001 \001(\014\"B\n\020GetD" - "eltaResponse\022.\n\005delta\030\001 \001(\0132\037.Catalyst.P" - "rotocol.Deltas.Delta\"\"\n\021GetMempoolReques" - "t\022\r\n\005query\030\001 \001(\010\"V\n\022GetMempoolResponse\022@" - "\n\014transactions\030\001 \003(\0132*.Catalyst.Protocol" - ".Transaction.PublicEntry\"~\n\022SignMessageR" - "equest\022\017\n\007message\030\001 \001(\014\022\016\n\006key_id\030\002 \001(\t\022" - "G\n\017signing_context\030\003 \001(\0132..Catalyst.Prot" - "ocol.Cryptography.SigningContext\"V\n\023Sign" - "MessageResponse\022\021\n\tsignature\030\001 \001(\014\022\022\n\npu" - "blic_key\030\002 \001(\014\022\030\n\020original_message\030\003 \001(\014" - "\"\227\001\n\024VerifyMessageRequest\022\021\n\tsignature\030\001" - " \001(\014\022\022\n\npublic_key\030\002 \001(\014\022\017\n\007message\030\003 \001(" - "\014\022G\n\017signing_context\030\004 \001(\0132..Catalyst.Pr" - "otocol.Cryptography.SigningContext\"1\n\025Ve" - "rifyMessageResponse\022\030\n\020is_signed_by_key\030" - "\001 \001(\010\"%\n\024ServiceStatusRequest\022\r\n\005query\030\001" - " \001(\010\"&\n\025ServiceStatusResponse\022\r\n\005query\030\001" - " \001(\t\"I\n\023AddFileToDfsRequest\022\021\n\tfile_size" - "\030\001 \001(\004\022\021\n\tfile_name\030\002 \001(\t\022\014\n\004node\030\003 \001(\t\"" - "\?\n\024AddFileToDfsResponse\022\025\n\rresponse_code" - "\030\001 \001(\014\022\020\n\010dfs_hash\030\002 \001(\t\"`\n\030TransferFile" - "BytesRequest\022\020\n\010chunk_id\030\001 \001(\r\022\023\n\013chunk_" - "bytes\030\002 \001(\014\022\035\n\025correlation_file_name\030\003 \001" - "(\014\"2\n\031TransferFileBytesResponse\022\025\n\rrespo" - "nse_code\030\001 \001(\014\"8\n\021RemovePeerRequest\022\017\n\007p" - "eer_ip\030\001 \001(\014\022\022\n\npublic_key\030\002 \001(\014\"+\n\022Remo" - "vePeerResponse\022\025\n\rdeleted_count\030\001 \001(\r\"\025\n" - "\023GetPeerCountRequest\"*\n\024GetPeerCountResp" - "onse\022\022\n\npeer_count\030\001 \001(\005\")\n\025GetFileFromD" - "fsRequest\022\020\n\010dfs_hash\030\001 \001(\t\"B\n\026GetFileFr" - "omDfsResponse\022\021\n\tfile_size\030\001 \001(\004\022\025\n\rresp" - "onse_code\030\002 \001(\014\"/\n\030SetPeerDataFolderRequ" - "est\022\023\n\013data_folder\030\001 \001(\t\"*\n\031SetPeerDataF" - "olderResponse\022\r\n\005query\030\001 \001(\010*i\n\014Response" - "Code\022\013\n\007PENDING\020\000\022\016\n\nSUCCESSFUL\020\001\022\t\n\005ERR" - "OR\020\002\022\014\n\010FINISHED\020\003\022\013\n\007EXPIRED\020\004\022\n\n\006FAILE" - "D\020\005\022\n\n\006EXISTS\020\006B\002P\001b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Rpc_2eproto_deps[5] = { - &::descriptor_table_Cryptography_2eproto, - &::descriptor_table_Deltas_2eproto, - &::descriptor_table_Peer_2eproto, - &::descriptor_table_Transaction_2eproto, - &::descriptor_table_Wire_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Rpc_2eproto_sccs[68] = { - &scc_info_AddFileToDfsRequest_Rpc_2eproto.base, - &scc_info_AddFileToDfsResponse_Rpc_2eproto.base, - &scc_info_AddNodeRequest_Rpc_2eproto.base, - &scc_info_AddNodeResponse_Rpc_2eproto.base, - &scc_info_BroadcastRawTransactionRequest_Rpc_2eproto.base, - &scc_info_BroadcastRawTransactionResponse_Rpc_2eproto.base, - &scc_info_CreateAddressRequest_Rpc_2eproto.base, - &scc_info_CreateAddressResponse_Rpc_2eproto.base, - &scc_info_CreateRawTransactionRequest_Rpc_2eproto.base, - &scc_info_CreateRawTransactionResponse_Rpc_2eproto.base, - &scc_info_CreateWalletRequest_Rpc_2eproto.base, - &scc_info_CreateWalletResponse_Rpc_2eproto.base, - &scc_info_DecodeRawTransactionRequest_Rpc_2eproto.base, - &scc_info_DecodeRawTransactionResponse_Rpc_2eproto.base, - &scc_info_GetAddressRequest_Rpc_2eproto.base, - &scc_info_GetAddressResponse_Rpc_2eproto.base, - &scc_info_GetBalanceRequest_Rpc_2eproto.base, - &scc_info_GetBalanceResponse_Rpc_2eproto.base, - &scc_info_GetConnectionCountRequest_Rpc_2eproto.base, - &scc_info_GetConnectionCountResponse_Rpc_2eproto.base, - &scc_info_GetDeltaRequest_Rpc_2eproto.base, - &scc_info_GetDeltaResponse_Rpc_2eproto.base, - &scc_info_GetFileFromDfsRequest_Rpc_2eproto.base, - &scc_info_GetFileFromDfsResponse_Rpc_2eproto.base, - &scc_info_GetInfoRequest_Rpc_2eproto.base, - &scc_info_GetInfoResponse_Rpc_2eproto.base, - &scc_info_GetMempoolRequest_Rpc_2eproto.base, - &scc_info_GetMempoolResponse_Rpc_2eproto.base, - &scc_info_GetPeerCountRequest_Rpc_2eproto.base, - &scc_info_GetPeerCountResponse_Rpc_2eproto.base, - &scc_info_GetPeerInfoRequest_Rpc_2eproto.base, - &scc_info_GetPeerInfoResponse_Rpc_2eproto.base, - &scc_info_GetPeerListRequest_Rpc_2eproto.base, - &scc_info_GetPeerListResponse_Rpc_2eproto.base, - &scc_info_GetPeerReputationRequest_Rpc_2eproto.base, - &scc_info_GetPeerReputationResponse_Rpc_2eproto.base, - &scc_info_ListAddressRequest_Rpc_2eproto.base, - &scc_info_ListAddressResponse_Rpc_2eproto.base, - &scc_info_ListWalletRequest_Rpc_2eproto.base, - &scc_info_ListWalletResponse_Rpc_2eproto.base, - &scc_info_RemovePeerRequest_Rpc_2eproto.base, - &scc_info_RemovePeerResponse_Rpc_2eproto.base, - &scc_info_SendFromManyRequest_Rpc_2eproto.base, - &scc_info_SendFromManyResponse_Rpc_2eproto.base, - &scc_info_SendManyRequest_Rpc_2eproto.base, - &scc_info_SendManyResponse_Rpc_2eproto.base, - &scc_info_SendToFromRequest_Rpc_2eproto.base, - &scc_info_SendToFromResponse_Rpc_2eproto.base, - &scc_info_SendToRequest_Rpc_2eproto.base, - &scc_info_SendToResponse_Rpc_2eproto.base, - &scc_info_ServiceStatusRequest_Rpc_2eproto.base, - &scc_info_ServiceStatusResponse_Rpc_2eproto.base, - &scc_info_SetPeerBlackListRequest_Rpc_2eproto.base, - &scc_info_SetPeerBlackListResponse_Rpc_2eproto.base, - &scc_info_SetPeerDataFolderRequest_Rpc_2eproto.base, - &scc_info_SetPeerDataFolderResponse_Rpc_2eproto.base, - &scc_info_SignMessageRequest_Rpc_2eproto.base, - &scc_info_SignMessageResponse_Rpc_2eproto.base, - &scc_info_SignRawTransactionRequest_Rpc_2eproto.base, - &scc_info_SignRawTransactionResponse_Rpc_2eproto.base, - &scc_info_TransferFileBytesRequest_Rpc_2eproto.base, - &scc_info_TransferFileBytesResponse_Rpc_2eproto.base, - &scc_info_ValidateAddressRequest_Rpc_2eproto.base, - &scc_info_ValidateAddressResponse_Rpc_2eproto.base, - &scc_info_VerifyMessageRequest_Rpc_2eproto.base, - &scc_info_VerifyMessageResponse_Rpc_2eproto.base, - &scc_info_VersionRequest_Rpc_2eproto.base, - &scc_info_VersionResponse_Rpc_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Rpc_2eproto_once; -static bool descriptor_table_Rpc_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Rpc_2eproto = { - &descriptor_table_Rpc_2eproto_initialized, descriptor_table_protodef_Rpc_2eproto, "Rpc.proto", 3707, - &descriptor_table_Rpc_2eproto_once, descriptor_table_Rpc_2eproto_sccs, descriptor_table_Rpc_2eproto_deps, 68, 5, - schemas, file_default_instances, TableStruct_Rpc_2eproto::offsets, - file_level_metadata_Rpc_2eproto, 68, file_level_enum_descriptors_Rpc_2eproto, file_level_service_descriptors_Rpc_2eproto, +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&_VersionRequest_default_instance_), + reinterpret_cast(&_VersionResponse_default_instance_), + reinterpret_cast(&_GetInfoRequest_default_instance_), + reinterpret_cast(&_GetInfoResponse_default_instance_), + reinterpret_cast(&_CreateWalletRequest_default_instance_), + reinterpret_cast(&_CreateWalletResponse_default_instance_), + reinterpret_cast(&_ListWalletRequest_default_instance_), + reinterpret_cast(&_ListWalletResponse_default_instance_), + reinterpret_cast(&_CreateAddressRequest_default_instance_), + reinterpret_cast(&_CreateAddressResponse_default_instance_), + reinterpret_cast(&_GetAddressRequest_default_instance_), + reinterpret_cast(&_GetAddressResponse_default_instance_), + reinterpret_cast(&_ListAddressRequest_default_instance_), + reinterpret_cast(&_ListAddressResponse_default_instance_), + reinterpret_cast(&_ValidateAddressRequest_default_instance_), + reinterpret_cast(&_ValidateAddressResponse_default_instance_), + reinterpret_cast(&_GetBalanceRequest_default_instance_), + reinterpret_cast(&_GetBalanceResponse_default_instance_), + reinterpret_cast(&_CreateRawTransactionRequest_default_instance_), + reinterpret_cast(&_CreateRawTransactionResponse_default_instance_), + reinterpret_cast(&_SignRawTransactionRequest_default_instance_), + reinterpret_cast(&_SignRawTransactionResponse_default_instance_), + reinterpret_cast(&_DecodeRawTransactionRequest_default_instance_), + reinterpret_cast(&_DecodeRawTransactionResponse_default_instance_), + reinterpret_cast(&_BroadcastRawTransactionRequest_default_instance_), + reinterpret_cast(&_BroadcastRawTransactionResponse_default_instance_), + reinterpret_cast(&_SendToRequest_default_instance_), + reinterpret_cast(&_SendToResponse_default_instance_), + reinterpret_cast(&_SendToFromRequest_default_instance_), + reinterpret_cast(&_SendToFromResponse_default_instance_), + reinterpret_cast(&_SendManyRequest_default_instance_), + reinterpret_cast(&_SendManyResponse_default_instance_), + reinterpret_cast(&_SendFromManyRequest_default_instance_), + reinterpret_cast(&_SendFromManyResponse_default_instance_), + reinterpret_cast(&_AddNodeRequest_default_instance_), + reinterpret_cast(&_AddNodeResponse_default_instance_), + reinterpret_cast(&_GetPeerListRequest_default_instance_), + reinterpret_cast(&_GetPeerListResponse_default_instance_), + reinterpret_cast(&_GetPeerReputationRequest_default_instance_), + reinterpret_cast(&_GetPeerReputationResponse_default_instance_), + reinterpret_cast(&_SetPeerBlackListRequest_default_instance_), + reinterpret_cast(&_SetPeerBlackListResponse_default_instance_), + reinterpret_cast(&_GetPeerInfoRequest_default_instance_), + reinterpret_cast(&_GetPeerInfoResponse_default_instance_), + reinterpret_cast(&_GetConnectionCountRequest_default_instance_), + reinterpret_cast(&_GetConnectionCountResponse_default_instance_), + reinterpret_cast(&_GetDeltaRequest_default_instance_), + reinterpret_cast(&_GetDeltaResponse_default_instance_), + reinterpret_cast(&_GetMempoolRequest_default_instance_), + reinterpret_cast(&_GetMempoolResponse_default_instance_), + reinterpret_cast(&_SignMessageRequest_default_instance_), + reinterpret_cast(&_SignMessageResponse_default_instance_), + reinterpret_cast(&_VerifyMessageRequest_default_instance_), + reinterpret_cast(&_VerifyMessageResponse_default_instance_), + reinterpret_cast(&_ServiceStatusRequest_default_instance_), + reinterpret_cast(&_ServiceStatusResponse_default_instance_), + reinterpret_cast(&_AddFileToDfsRequest_default_instance_), + reinterpret_cast(&_AddFileToDfsResponse_default_instance_), + reinterpret_cast(&_TransferFileBytesRequest_default_instance_), + reinterpret_cast(&_TransferFileBytesResponse_default_instance_), + reinterpret_cast(&_RemovePeerRequest_default_instance_), + reinterpret_cast(&_RemovePeerResponse_default_instance_), + reinterpret_cast(&_GetPeerCountRequest_default_instance_), + reinterpret_cast(&_GetPeerCountResponse_default_instance_), + reinterpret_cast(&_GetFileFromDfsRequest_default_instance_), + reinterpret_cast(&_GetFileFromDfsResponse_default_instance_), + reinterpret_cast(&_SetPeerDataFolderRequest_default_instance_), + reinterpret_cast(&_SetPeerDataFolderResponse_default_instance_), }; -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_Rpc_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Rpc_2eproto), true); -namespace Catalyst { -namespace Protocol { -namespace Rpc { -namespace Node { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResponseCode_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_Rpc_2eproto); - return file_level_enum_descriptors_Rpc_2eproto[0]; +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "Rpc.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 68); +} + +} // namespace + +void TableStruct::Shutdown() { + _VersionRequest_default_instance_.Shutdown(); + delete file_level_metadata[0].reflection; + _VersionResponse_default_instance_.Shutdown(); + delete file_level_metadata[1].reflection; + _GetInfoRequest_default_instance_.Shutdown(); + delete file_level_metadata[2].reflection; + _GetInfoResponse_default_instance_.Shutdown(); + delete file_level_metadata[3].reflection; + _CreateWalletRequest_default_instance_.Shutdown(); + delete file_level_metadata[4].reflection; + _CreateWalletResponse_default_instance_.Shutdown(); + delete file_level_metadata[5].reflection; + _ListWalletRequest_default_instance_.Shutdown(); + delete file_level_metadata[6].reflection; + _ListWalletResponse_default_instance_.Shutdown(); + delete file_level_metadata[7].reflection; + _CreateAddressRequest_default_instance_.Shutdown(); + delete file_level_metadata[8].reflection; + _CreateAddressResponse_default_instance_.Shutdown(); + delete file_level_metadata[9].reflection; + _GetAddressRequest_default_instance_.Shutdown(); + delete file_level_metadata[10].reflection; + _GetAddressResponse_default_instance_.Shutdown(); + delete file_level_metadata[11].reflection; + _ListAddressRequest_default_instance_.Shutdown(); + delete file_level_metadata[12].reflection; + _ListAddressResponse_default_instance_.Shutdown(); + delete file_level_metadata[13].reflection; + _ValidateAddressRequest_default_instance_.Shutdown(); + delete file_level_metadata[14].reflection; + _ValidateAddressResponse_default_instance_.Shutdown(); + delete file_level_metadata[15].reflection; + _GetBalanceRequest_default_instance_.Shutdown(); + delete file_level_metadata[16].reflection; + _GetBalanceResponse_default_instance_.Shutdown(); + delete file_level_metadata[17].reflection; + _CreateRawTransactionRequest_default_instance_.Shutdown(); + delete file_level_metadata[18].reflection; + _CreateRawTransactionResponse_default_instance_.Shutdown(); + delete file_level_metadata[19].reflection; + _SignRawTransactionRequest_default_instance_.Shutdown(); + delete file_level_metadata[20].reflection; + _SignRawTransactionResponse_default_instance_.Shutdown(); + delete file_level_metadata[21].reflection; + _DecodeRawTransactionRequest_default_instance_.Shutdown(); + delete file_level_metadata[22].reflection; + _DecodeRawTransactionResponse_default_instance_.Shutdown(); + delete file_level_metadata[23].reflection; + _BroadcastRawTransactionRequest_default_instance_.Shutdown(); + delete file_level_metadata[24].reflection; + _BroadcastRawTransactionResponse_default_instance_.Shutdown(); + delete file_level_metadata[25].reflection; + _SendToRequest_default_instance_.Shutdown(); + delete file_level_metadata[26].reflection; + _SendToResponse_default_instance_.Shutdown(); + delete file_level_metadata[27].reflection; + _SendToFromRequest_default_instance_.Shutdown(); + delete file_level_metadata[28].reflection; + _SendToFromResponse_default_instance_.Shutdown(); + delete file_level_metadata[29].reflection; + _SendManyRequest_default_instance_.Shutdown(); + delete file_level_metadata[30].reflection; + _SendManyResponse_default_instance_.Shutdown(); + delete file_level_metadata[31].reflection; + _SendFromManyRequest_default_instance_.Shutdown(); + delete file_level_metadata[32].reflection; + _SendFromManyResponse_default_instance_.Shutdown(); + delete file_level_metadata[33].reflection; + _AddNodeRequest_default_instance_.Shutdown(); + delete file_level_metadata[34].reflection; + _AddNodeResponse_default_instance_.Shutdown(); + delete file_level_metadata[35].reflection; + _GetPeerListRequest_default_instance_.Shutdown(); + delete file_level_metadata[36].reflection; + _GetPeerListResponse_default_instance_.Shutdown(); + delete file_level_metadata[37].reflection; + _GetPeerReputationRequest_default_instance_.Shutdown(); + delete file_level_metadata[38].reflection; + _GetPeerReputationResponse_default_instance_.Shutdown(); + delete file_level_metadata[39].reflection; + _SetPeerBlackListRequest_default_instance_.Shutdown(); + delete file_level_metadata[40].reflection; + _SetPeerBlackListResponse_default_instance_.Shutdown(); + delete file_level_metadata[41].reflection; + _GetPeerInfoRequest_default_instance_.Shutdown(); + delete file_level_metadata[42].reflection; + _GetPeerInfoResponse_default_instance_.Shutdown(); + delete file_level_metadata[43].reflection; + _GetConnectionCountRequest_default_instance_.Shutdown(); + delete file_level_metadata[44].reflection; + _GetConnectionCountResponse_default_instance_.Shutdown(); + delete file_level_metadata[45].reflection; + _GetDeltaRequest_default_instance_.Shutdown(); + delete file_level_metadata[46].reflection; + _GetDeltaResponse_default_instance_.Shutdown(); + delete file_level_metadata[47].reflection; + _GetMempoolRequest_default_instance_.Shutdown(); + delete file_level_metadata[48].reflection; + _GetMempoolResponse_default_instance_.Shutdown(); + delete file_level_metadata[49].reflection; + _SignMessageRequest_default_instance_.Shutdown(); + delete file_level_metadata[50].reflection; + _SignMessageResponse_default_instance_.Shutdown(); + delete file_level_metadata[51].reflection; + _VerifyMessageRequest_default_instance_.Shutdown(); + delete file_level_metadata[52].reflection; + _VerifyMessageResponse_default_instance_.Shutdown(); + delete file_level_metadata[53].reflection; + _ServiceStatusRequest_default_instance_.Shutdown(); + delete file_level_metadata[54].reflection; + _ServiceStatusResponse_default_instance_.Shutdown(); + delete file_level_metadata[55].reflection; + _AddFileToDfsRequest_default_instance_.Shutdown(); + delete file_level_metadata[56].reflection; + _AddFileToDfsResponse_default_instance_.Shutdown(); + delete file_level_metadata[57].reflection; + _TransferFileBytesRequest_default_instance_.Shutdown(); + delete file_level_metadata[58].reflection; + _TransferFileBytesResponse_default_instance_.Shutdown(); + delete file_level_metadata[59].reflection; + _RemovePeerRequest_default_instance_.Shutdown(); + delete file_level_metadata[60].reflection; + _RemovePeerResponse_default_instance_.Shutdown(); + delete file_level_metadata[61].reflection; + _GetPeerCountRequest_default_instance_.Shutdown(); + delete file_level_metadata[62].reflection; + _GetPeerCountResponse_default_instance_.Shutdown(); + delete file_level_metadata[63].reflection; + _GetFileFromDfsRequest_default_instance_.Shutdown(); + delete file_level_metadata[64].reflection; + _GetFileFromDfsResponse_default_instance_.Shutdown(); + delete file_level_metadata[65].reflection; + _SetPeerDataFolderRequest_default_instance_.Shutdown(); + delete file_level_metadata[66].reflection; + _SetPeerDataFolderResponse_default_instance_.Shutdown(); + delete file_level_metadata[67].reflection; +} + +void TableStruct::InitDefaultsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::internal::InitProtobufDefaults(); + ::Catalyst::Protocol::Peer::protobuf_Peer_2eproto::InitDefaults(); + ::Catalyst::Protocol::Cryptography::protobuf_Cryptography_2eproto::InitDefaults(); + ::Catalyst::Protocol::Deltas::protobuf_Deltas_2eproto::InitDefaults(); + ::Catalyst::Protocol::Wire::protobuf_Wire_2eproto::InitDefaults(); + ::Catalyst::Protocol::Transaction::protobuf_Transaction_2eproto::InitDefaults(); + _VersionRequest_default_instance_.DefaultConstruct(); + _VersionResponse_default_instance_.DefaultConstruct(); + _GetInfoRequest_default_instance_.DefaultConstruct(); + _GetInfoResponse_default_instance_.DefaultConstruct(); + _CreateWalletRequest_default_instance_.DefaultConstruct(); + _CreateWalletResponse_default_instance_.DefaultConstruct(); + _ListWalletRequest_default_instance_.DefaultConstruct(); + _ListWalletResponse_default_instance_.DefaultConstruct(); + _CreateAddressRequest_default_instance_.DefaultConstruct(); + _CreateAddressResponse_default_instance_.DefaultConstruct(); + _GetAddressRequest_default_instance_.DefaultConstruct(); + _GetAddressResponse_default_instance_.DefaultConstruct(); + _ListAddressRequest_default_instance_.DefaultConstruct(); + _ListAddressResponse_default_instance_.DefaultConstruct(); + _ValidateAddressRequest_default_instance_.DefaultConstruct(); + _ValidateAddressResponse_default_instance_.DefaultConstruct(); + _GetBalanceRequest_default_instance_.DefaultConstruct(); + _GetBalanceResponse_default_instance_.DefaultConstruct(); + _CreateRawTransactionRequest_default_instance_.DefaultConstruct(); + _CreateRawTransactionResponse_default_instance_.DefaultConstruct(); + _SignRawTransactionRequest_default_instance_.DefaultConstruct(); + _SignRawTransactionResponse_default_instance_.DefaultConstruct(); + _DecodeRawTransactionRequest_default_instance_.DefaultConstruct(); + _DecodeRawTransactionResponse_default_instance_.DefaultConstruct(); + _BroadcastRawTransactionRequest_default_instance_.DefaultConstruct(); + _BroadcastRawTransactionResponse_default_instance_.DefaultConstruct(); + _SendToRequest_default_instance_.DefaultConstruct(); + _SendToResponse_default_instance_.DefaultConstruct(); + _SendToFromRequest_default_instance_.DefaultConstruct(); + _SendToFromResponse_default_instance_.DefaultConstruct(); + _SendManyRequest_default_instance_.DefaultConstruct(); + _SendManyResponse_default_instance_.DefaultConstruct(); + _SendFromManyRequest_default_instance_.DefaultConstruct(); + _SendFromManyResponse_default_instance_.DefaultConstruct(); + _AddNodeRequest_default_instance_.DefaultConstruct(); + _AddNodeResponse_default_instance_.DefaultConstruct(); + _GetPeerListRequest_default_instance_.DefaultConstruct(); + _GetPeerListResponse_default_instance_.DefaultConstruct(); + _GetPeerReputationRequest_default_instance_.DefaultConstruct(); + _GetPeerReputationResponse_default_instance_.DefaultConstruct(); + _SetPeerBlackListRequest_default_instance_.DefaultConstruct(); + _SetPeerBlackListResponse_default_instance_.DefaultConstruct(); + _GetPeerInfoRequest_default_instance_.DefaultConstruct(); + _GetPeerInfoResponse_default_instance_.DefaultConstruct(); + _GetConnectionCountRequest_default_instance_.DefaultConstruct(); + _GetConnectionCountResponse_default_instance_.DefaultConstruct(); + _GetDeltaRequest_default_instance_.DefaultConstruct(); + _GetDeltaResponse_default_instance_.DefaultConstruct(); + _GetMempoolRequest_default_instance_.DefaultConstruct(); + _GetMempoolResponse_default_instance_.DefaultConstruct(); + _SignMessageRequest_default_instance_.DefaultConstruct(); + _SignMessageResponse_default_instance_.DefaultConstruct(); + _VerifyMessageRequest_default_instance_.DefaultConstruct(); + _VerifyMessageResponse_default_instance_.DefaultConstruct(); + _ServiceStatusRequest_default_instance_.DefaultConstruct(); + _ServiceStatusResponse_default_instance_.DefaultConstruct(); + _AddFileToDfsRequest_default_instance_.DefaultConstruct(); + _AddFileToDfsResponse_default_instance_.DefaultConstruct(); + _TransferFileBytesRequest_default_instance_.DefaultConstruct(); + _TransferFileBytesResponse_default_instance_.DefaultConstruct(); + _RemovePeerRequest_default_instance_.DefaultConstruct(); + _RemovePeerResponse_default_instance_.DefaultConstruct(); + _GetPeerCountRequest_default_instance_.DefaultConstruct(); + _GetPeerCountResponse_default_instance_.DefaultConstruct(); + _GetFileFromDfsRequest_default_instance_.DefaultConstruct(); + _GetFileFromDfsResponse_default_instance_.DefaultConstruct(); + _SetPeerDataFolderRequest_default_instance_.DefaultConstruct(); + _SetPeerDataFolderResponse_default_instance_.DefaultConstruct(); + _BroadcastRawTransactionRequest_default_instance_.get_mutable()->transaction_ = const_cast< ::Catalyst::Protocol::Wire::TransactionBroadcast*>( + ::Catalyst::Protocol::Wire::TransactionBroadcast::internal_default_instance()); + _GetDeltaResponse_default_instance_.get_mutable()->delta_ = const_cast< ::Catalyst::Protocol::Deltas::Delta*>( + ::Catalyst::Protocol::Deltas::Delta::internal_default_instance()); + _SignMessageRequest_default_instance_.get_mutable()->signing_context_ = const_cast< ::Catalyst::Protocol::Cryptography::SigningContext*>( + ::Catalyst::Protocol::Cryptography::SigningContext::internal_default_instance()); + _VerifyMessageRequest_default_instance_.get_mutable()->signing_context_ = const_cast< ::Catalyst::Protocol::Cryptography::SigningContext*>( + ::Catalyst::Protocol::Cryptography::SigningContext::internal_default_instance()); +} + +void InitDefaults() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); +} +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] = { + "\n\tRpc.proto\022\032Catalyst.Protocol.Rpc.Node\032" + "\nPeer.proto\032\022Cryptography.proto\032\014Deltas." + "proto\032\nWire.proto\032\021Transaction.proto\"\037\n\016" + "VersionRequest\022\r\n\005query\030\001 \001(\010\"\"\n\017Version" + "Response\022\017\n\007version\030\001 \001(\t\"\037\n\016GetInfoRequ" + "est\022\r\n\005query\030\001 \001(\010\" \n\017GetInfoResponse\022\r\n" + "\005query\030\001 \001(\t\"$\n\023CreateWalletRequest\022\r\n\005q" + "uery\030\001 \001(\010\"%\n\024CreateWalletResponse\022\r\n\005qu" + "ery\030\001 \001(\t\"\"\n\021ListWalletRequest\022\r\n\005query\030" + "\001 \001(\010\"#\n\022ListWalletResponse\022\r\n\005query\030\001 \001" + "(\t\"%\n\024CreateAddressRequest\022\r\n\005query\030\001 \001(" + "\010\"&\n\025CreateAddressResponse\022\r\n\005query\030\001 \001(" + "\t\"\"\n\021GetAddressRequest\022\r\n\005query\030\001 \001(\010\"#\n" + "\022GetAddressResponse\022\r\n\005query\030\001 \001(\t\"#\n\022Li" + "stAddressRequest\022\r\n\005query\030\001 \001(\010\"$\n\023ListA" + "ddressResponse\022\r\n\005query\030\001 \001(\t\"\'\n\026Validat" + "eAddressRequest\022\r\n\005query\030\001 \001(\010\"(\n\027Valida" + "teAddressResponse\022\r\n\005query\030\001 \001(\t\"\"\n\021GetB" + "alanceRequest\022\r\n\005query\030\001 \001(\010\"#\n\022GetBalan" + "ceResponse\022\r\n\005query\030\001 \001(\t\",\n\033CreateRawTr" + "ansactionRequest\022\r\n\005query\030\001 \001(\010\"-\n\034Creat" + "eRawTransactionResponse\022\r\n\005query\030\001 \001(\t\"*" + "\n\031SignRawTransactionRequest\022\r\n\005query\030\001 \001" + "(\010\"+\n\032SignRawTransactionResponse\022\r\n\005quer" + "y\030\001 \001(\t\",\n\033DecodeRawTransactionRequest\022\r" + "\n\005query\030\001 \001(\010\"-\n\034DecodeRawTransactionRes" + "ponse\022\r\n\005query\030\001 \001(\t\"c\n\036BroadcastRawTran" + "sactionRequest\022A\n\013transaction\030\001 \001(\0132,.Ca" + "talyst.Protocol.Wire.TransactionBroadcas" + "t\"b\n\037BroadcastRawTransactionResponse\022\?\n\r" + "response_code\030\001 \001(\0162(.Catalyst.Protocol." + "Rpc.Node.ResponseCode\"\036\n\rSendToRequest\022\r" + "\n\005query\030\001 \001(\010\"\037\n\016SendToResponse\022\r\n\005query" + "\030\001 \001(\t\"\"\n\021SendToFromRequest\022\r\n\005query\030\001 \001" + "(\010\"#\n\022SendToFromResponse\022\r\n\005query\030\001 \001(\t\"" + " \n\017SendManyRequest\022\r\n\005query\030\001 \001(\010\"!\n\020Sen" + "dManyResponse\022\r\n\005query\030\001 \001(\t\"$\n\023SendFrom" + "ManyRequest\022\r\n\005query\030\001 \001(\010\"%\n\024SendFromMa" + "nyResponse\022\r\n\005query\030\001 \001(\t\"\037\n\016AddNodeRequ" + "est\022\r\n\005query\030\001 \001(\010\" \n\017AddNodeResponse\022\r\n" + "\005query\030\001 \001(\t\"\024\n\022GetPeerListRequest\"D\n\023Ge" + "tPeerListResponse\022-\n\005peers\030\001 \003(\0132\036.Catal" + "yst.Protocol.Peer.PeerId\":\n\030GetPeerReput" + "ationRequest\022\022\n\npublic_key\030\001 \001(\014\022\n\n\002ip\030\002" + " \001(\014\"/\n\031GetPeerReputationResponse\022\022\n\nrep" + "utation\030\001 \001(\005\"L\n\027SetPeerBlackListRequest" + "\022\022\n\npublic_key\030\001 \001(\014\022\n\n\002ip\030\002 \001(\014\022\021\n\tblac" + "klist\030\003 \001(\010\"M\n\030SetPeerBlackListResponse\022" + "\022\n\npublic_key\030\001 \001(\014\022\n\n\002ip\030\002 \001(\014\022\021\n\tblack" + "list\030\003 \001(\010\"4\n\022GetPeerInfoRequest\022\022\n\npubl" + "ic_key\030\001 \001(\014\022\n\n\002ip\030\002 \001(\014\"J\n\023GetPeerInfoR" + "esponse\0223\n\tpeer_info\030\001 \003(\0132 .Catalyst.Pr" + "otocol.Peer.PeerInfo\"*\n\031GetConnectionCou" + "ntRequest\022\r\n\005query\030\001 \001(\010\"+\n\032GetConnectio" + "nCountResponse\022\r\n\005query\030\001 \001(\t\")\n\017GetDelt" + "aRequest\022\026\n\016delta_dfs_hash\030\001 \001(\014\"B\n\020GetD" + "eltaResponse\022.\n\005delta\030\001 \001(\0132\037.Catalyst.P" + "rotocol.Deltas.Delta\"\"\n\021GetMempoolReques" + "t\022\r\n\005query\030\001 \001(\010\"V\n\022GetMempoolResponse\022@" + "\n\014transactions\030\001 \003(\0132*.Catalyst.Protocol" + ".Transaction.PublicEntry\"~\n\022SignMessageR" + "equest\022\017\n\007message\030\001 \001(\014\022\016\n\006key_id\030\002 \001(\t\022" + "G\n\017signing_context\030\003 \001(\0132..Catalyst.Prot" + "ocol.Cryptography.SigningContext\"V\n\023Sign" + "MessageResponse\022\021\n\tsignature\030\001 \001(\014\022\022\n\npu" + "blic_key\030\002 \001(\014\022\030\n\020original_message\030\003 \001(\014" + "\"\227\001\n\024VerifyMessageRequest\022\021\n\tsignature\030\001" + " \001(\014\022\022\n\npublic_key\030\002 \001(\014\022\017\n\007message\030\003 \001(" + "\014\022G\n\017signing_context\030\004 \001(\0132..Catalyst.Pr" + "otocol.Cryptography.SigningContext\"1\n\025Ve" + "rifyMessageResponse\022\030\n\020is_signed_by_key\030" + "\001 \001(\010\"%\n\024ServiceStatusRequest\022\r\n\005query\030\001" + " \001(\010\"&\n\025ServiceStatusResponse\022\r\n\005query\030\001" + " \001(\t\"I\n\023AddFileToDfsRequest\022\021\n\tfile_size" + "\030\001 \001(\004\022\021\n\tfile_name\030\002 \001(\t\022\014\n\004node\030\003 \001(\t\"" + "\?\n\024AddFileToDfsResponse\022\025\n\rresponse_code" + "\030\001 \001(\014\022\020\n\010dfs_hash\030\002 \001(\t\"`\n\030TransferFile" + "BytesRequest\022\020\n\010chunk_id\030\001 \001(\r\022\023\n\013chunk_" + "bytes\030\002 \001(\014\022\035\n\025correlation_file_name\030\003 \001" + "(\014\"2\n\031TransferFileBytesResponse\022\025\n\rrespo" + "nse_code\030\001 \001(\014\"8\n\021RemovePeerRequest\022\017\n\007p" + "eer_ip\030\001 \001(\014\022\022\n\npublic_key\030\002 \001(\014\"+\n\022Remo" + "vePeerResponse\022\025\n\rdeleted_count\030\001 \001(\r\"\025\n" + "\023GetPeerCountRequest\"*\n\024GetPeerCountResp" + "onse\022\022\n\npeer_count\030\001 \001(\005\")\n\025GetFileFromD" + "fsRequest\022\020\n\010dfs_hash\030\001 \001(\t\"B\n\026GetFileFr" + "omDfsResponse\022\021\n\tfile_size\030\001 \001(\004\022\025\n\rresp" + "onse_code\030\002 \001(\014\"/\n\030SetPeerDataFolderRequ" + "est\022\023\n\013data_folder\030\001 \001(\t\"*\n\031SetPeerDataF" + "olderResponse\022\r\n\005query\030\001 \001(\010*i\n\014Response" + "Code\022\013\n\007PENDING\020\000\022\016\n\nSUCCESSFUL\020\001\022\t\n\005ERR" + "OR\020\002\022\014\n\010FINISHED\020\003\022\013\n\007EXPIRED\020\004\022\n\n\006FAILE" + "D\020\005\022\n\n\006EXISTS\020\006B\002P\001b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 3707); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Rpc.proto", &protobuf_RegisterTypes); + ::Catalyst::Protocol::Peer::protobuf_Peer_2eproto::AddDescriptors(); + ::Catalyst::Protocol::Cryptography::protobuf_Cryptography_2eproto::AddDescriptors(); + ::Catalyst::Protocol::Deltas::protobuf_Deltas_2eproto::AddDescriptors(); + ::Catalyst::Protocol::Wire::protobuf_Wire_2eproto::AddDescriptors(); + ::Catalyst::Protocol::Transaction::protobuf_Transaction_2eproto::AddDescriptors(); + ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; + +} // namespace protobuf_Rpc_2eproto + +const ::google::protobuf::EnumDescriptor* ResponseCode_descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_enum_descriptors[0]; } bool ResponseCode_IsValid(int value) { switch (value) { @@ -2042,20 +1068,22 @@ bool ResponseCode_IsValid(int value) { // =================================================================== -void VersionRequest::InitAsDefaultInstance() { -} -class VersionRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int VersionRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 VersionRequest::VersionRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.VersionRequest) } VersionRequest::VersionRequest(const VersionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.VersionRequest) @@ -2063,6 +1091,7 @@ VersionRequest::VersionRequest(const VersionRequest& from) void VersionRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } VersionRequest::~VersionRequest() { @@ -2074,74 +1103,97 @@ void VersionRequest::SharedDtor() { } void VersionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* VersionRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[0].descriptor; } + const VersionRequest& VersionRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VersionRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +VersionRequest* VersionRequest::New(::google::protobuf::Arena* arena) const { + VersionRequest* n = new VersionRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void VersionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.VersionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* VersionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool VersionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.VersionRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.VersionRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.VersionRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* VersionRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.VersionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void VersionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.VersionRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.VersionRequest) +} + +::google::protobuf::uint8* VersionRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.VersionRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.VersionRequest) return target; } @@ -2150,33 +1202,27 @@ size_t VersionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.VersionRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void VersionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VersionRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.VersionRequest) GOOGLE_DCHECK_NE(&from, this); const VersionRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.VersionRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.VersionRequest) MergeFrom(*source); @@ -2187,15 +1233,12 @@ void VersionRequest::MergeFrom(const VersionRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.VersionRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void VersionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VersionRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.VersionRequest) if (&from == this) return; Clear(); @@ -2213,44 +1256,68 @@ bool VersionRequest::IsInitialized() const { return true; } +void VersionRequest::Swap(VersionRequest* other) { + if (other == this) return; + InternalSwap(other); +} void VersionRequest::InternalSwap(VersionRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata VersionRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[0]; } -::PROTOBUF_NAMESPACE_ID::Metadata VersionRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// VersionRequest + +// bool query = 1; +void VersionRequest::clear_query() { + query_ = false; +} +bool VersionRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VersionRequest.query) + return query_; +} +void VersionRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VersionRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void VersionResponse::InitAsDefaultInstance() { -} -class VersionResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int VersionResponse::kVersionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 VersionResponse::VersionResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.VersionResponse) } VersionResponse::VersionResponse(const VersionResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_version().empty()) { - version_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.version_); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.version().size() > 0) { + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.VersionResponse) } void VersionResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VersionResponse_Rpc_2eproto.base); - version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } VersionResponse::~VersionResponse() { @@ -2259,84 +1326,114 @@ VersionResponse::~VersionResponse() { } void VersionResponse::SharedDtor() { - version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void VersionResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* VersionResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[1].descriptor; } + const VersionResponse& VersionResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VersionResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +VersionResponse* VersionResponse::New(::google::protobuf::Arena* arena) const { + VersionResponse* n = new VersionResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void VersionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.VersionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - version_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* VersionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool VersionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.VersionResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string version = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_version(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.VersionResponse.version")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), this->version().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.VersionResponse.version")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.VersionResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.VersionResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* VersionResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.VersionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void VersionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.VersionResponse) // string version = 1; if (this->version().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_version().data(), static_cast(this->_internal_version().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), this->version().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.VersionResponse.version"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_version(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->version(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.VersionResponse) +} + +::google::protobuf::uint8* VersionResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.VersionResponse) + // string version = 1; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), this->version().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.VersionResponse.version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->version(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.VersionResponse) return target; } @@ -2345,35 +1442,29 @@ size_t VersionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.VersionResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string version = 1; if (this->version().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_version()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void VersionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VersionResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.VersionResponse) GOOGLE_DCHECK_NE(&from, this); const VersionResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.VersionResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.VersionResponse) MergeFrom(*source); @@ -2384,16 +1475,13 @@ void VersionResponse::MergeFrom(const VersionResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.VersionResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.version().size() > 0) { - version_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.version_); + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); } } -void VersionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VersionResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.VersionResponse) if (&from == this) return; Clear(); @@ -2411,34 +1499,95 @@ bool VersionResponse::IsInitialized() const { return true; } -void VersionResponse::InternalSwap(VersionResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - version_.Swap(&other->version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void VersionResponse::Swap(VersionResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata VersionResponse::GetMetadata() const { - return GetMetadataStatic(); +void VersionResponse::InternalSwap(VersionResponse* other) { + version_.Swap(&other->version_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata VersionResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[1]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// VersionResponse + +// string version = 1; +void VersionResponse::clear_version() { + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& VersionResponse::version() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VersionResponse.version) + return version_.GetNoArena(); +} +void VersionResponse::set_version(const ::std::string& value) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VersionResponse.version) +} +#if LANG_CXX11 +void VersionResponse::set_version(::std::string&& value) { + + version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.VersionResponse.version) +} +#endif +void VersionResponse::set_version(const char* value) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.VersionResponse.version) +} +void VersionResponse::set_version(const char* value, size_t size) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.VersionResponse.version) +} +::std::string* VersionResponse::mutable_version() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VersionResponse.version) + return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* VersionResponse::release_version() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.VersionResponse.version) + + return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void VersionResponse::set_allocated_version(::std::string* version) { + if (version != NULL) { + + } else { + + } + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.VersionResponse.version) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetInfoRequest::InitAsDefaultInstance() { -} -class GetInfoRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetInfoRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetInfoRequest::GetInfoRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetInfoRequest) } GetInfoRequest::GetInfoRequest(const GetInfoRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetInfoRequest) @@ -2446,6 +1595,7 @@ GetInfoRequest::GetInfoRequest(const GetInfoRequest& from) void GetInfoRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } GetInfoRequest::~GetInfoRequest() { @@ -2457,74 +1607,97 @@ void GetInfoRequest::SharedDtor() { } void GetInfoRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetInfoRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[2].descriptor; } + const GetInfoRequest& GetInfoRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetInfoRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetInfoRequest* GetInfoRequest::New(::google::protobuf::Arena* arena) const { + GetInfoRequest* n = new GetInfoRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetInfoRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetInfoRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* GetInfoRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool GetInfoRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetInfoRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetInfoRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetInfoRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetInfoRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetInfoRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetInfoRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetInfoRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetInfoRequest) +} + +::google::protobuf::uint8* GetInfoRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetInfoRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetInfoRequest) return target; } @@ -2533,33 +1706,27 @@ size_t GetInfoRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetInfoRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetInfoRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetInfoRequest) GOOGLE_DCHECK_NE(&from, this); const GetInfoRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetInfoRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetInfoRequest) MergeFrom(*source); @@ -2570,15 +1737,12 @@ void GetInfoRequest::MergeFrom(const GetInfoRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetInfoRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void GetInfoRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetInfoRequest) if (&from == this) return; Clear(); @@ -2596,44 +1760,68 @@ bool GetInfoRequest::IsInitialized() const { return true; } +void GetInfoRequest::Swap(GetInfoRequest* other) { + if (other == this) return; + InternalSwap(other); +} void GetInfoRequest::InternalSwap(GetInfoRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetInfoRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[2]; } -::PROTOBUF_NAMESPACE_ID::Metadata GetInfoRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetInfoRequest + +// bool query = 1; +void GetInfoRequest::clear_query() { + query_ = false; +} +bool GetInfoRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetInfoRequest.query) + return query_; +} +void GetInfoRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetInfoRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetInfoResponse::InitAsDefaultInstance() { -} -class GetInfoResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetInfoResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetInfoResponse::GetInfoResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetInfoResponse) } GetInfoResponse::GetInfoResponse(const GetInfoResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetInfoResponse) } void GetInfoResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetInfoResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } GetInfoResponse::~GetInfoResponse() { @@ -2642,84 +1830,114 @@ GetInfoResponse::~GetInfoResponse() { } void GetInfoResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void GetInfoResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetInfoResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[3].descriptor; } + const GetInfoResponse& GetInfoResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetInfoResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetInfoResponse* GetInfoResponse::New(::google::protobuf::Arena* arena) const { + GetInfoResponse* n = new GetInfoResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetInfoResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetInfoResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* GetInfoResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool GetInfoResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetInfoResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.GetInfoResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.GetInfoResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetInfoResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetInfoResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetInfoResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetInfoResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetInfoResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetInfoResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.GetInfoResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetInfoResponse) +} + +::google::protobuf::uint8* GetInfoResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetInfoResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.GetInfoResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetInfoResponse) return target; } @@ -2728,35 +1946,29 @@ size_t GetInfoResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetInfoResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetInfoResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetInfoResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetInfoResponse) GOOGLE_DCHECK_NE(&from, this); const GetInfoResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetInfoResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetInfoResponse) MergeFrom(*source); @@ -2767,16 +1979,13 @@ void GetInfoResponse::MergeFrom(const GetInfoResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetInfoResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void GetInfoResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetInfoResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetInfoResponse) if (&from == this) return; Clear(); @@ -2794,34 +2003,95 @@ bool GetInfoResponse::IsInitialized() const { return true; } -void GetInfoResponse::InternalSwap(GetInfoResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void GetInfoResponse::Swap(GetInfoResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata GetInfoResponse::GetMetadata() const { - return GetMetadataStatic(); +void GetInfoResponse::InternalSwap(GetInfoResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetInfoResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[3]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetInfoResponse + +// string query = 1; +void GetInfoResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& GetInfoResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) + return query_.GetNoArena(); +} +void GetInfoResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) +} +#if LANG_CXX11 +void GetInfoResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) +} +#endif +void GetInfoResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) +} +void GetInfoResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) +} +::std::string* GetInfoResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* GetInfoResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void GetInfoResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void CreateWalletRequest::InitAsDefaultInstance() { -} -class CreateWalletRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateWalletRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CreateWalletRequest::CreateWalletRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) } CreateWalletRequest::CreateWalletRequest(const CreateWalletRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) @@ -2829,6 +2099,7 @@ CreateWalletRequest::CreateWalletRequest(const CreateWalletRequest& from) void CreateWalletRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } CreateWalletRequest::~CreateWalletRequest() { @@ -2840,74 +2111,97 @@ void CreateWalletRequest::SharedDtor() { } void CreateWalletRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateWalletRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[4].descriptor; } + const CreateWalletRequest& CreateWalletRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateWalletRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +CreateWalletRequest* CreateWalletRequest::New(::google::protobuf::Arena* arena) const { + CreateWalletRequest* n = new CreateWalletRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void CreateWalletRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* CreateWalletRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool CreateWalletRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* CreateWalletRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void CreateWalletRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) +} + +::google::protobuf::uint8* CreateWalletRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) return target; } @@ -2916,33 +2210,27 @@ size_t CreateWalletRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void CreateWalletRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CreateWalletRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) GOOGLE_DCHECK_NE(&from, this); const CreateWalletRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) MergeFrom(*source); @@ -2953,15 +2241,12 @@ void CreateWalletRequest::MergeFrom(const CreateWalletRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void CreateWalletRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CreateWalletRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) if (&from == this) return; Clear(); @@ -2979,44 +2264,68 @@ bool CreateWalletRequest::IsInitialized() const { return true; } +void CreateWalletRequest::Swap(CreateWalletRequest* other) { + if (other == this) return; + InternalSwap(other); +} void CreateWalletRequest::InternalSwap(CreateWalletRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata CreateWalletRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[4]; } -::PROTOBUF_NAMESPACE_ID::Metadata CreateWalletRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// CreateWalletRequest + +// bool query = 1; +void CreateWalletRequest::clear_query() { + query_ = false; +} +bool CreateWalletRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.CreateWalletRequest.query) + return query_; +} +void CreateWalletRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateWalletRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void CreateWalletResponse::InitAsDefaultInstance() { -} -class CreateWalletResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateWalletResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CreateWalletResponse::CreateWalletResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) } CreateWalletResponse::CreateWalletResponse(const CreateWalletResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) } void CreateWalletResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CreateWalletResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } CreateWalletResponse::~CreateWalletResponse() { @@ -3025,84 +2334,114 @@ CreateWalletResponse::~CreateWalletResponse() { } void CreateWalletResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void CreateWalletResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateWalletResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[5].descriptor; } + const CreateWalletResponse& CreateWalletResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateWalletResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +CreateWalletResponse* CreateWalletResponse::New(::google::protobuf::Arena* arena) const { + CreateWalletResponse* n = new CreateWalletResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void CreateWalletResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* CreateWalletResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool CreateWalletResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* CreateWalletResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void CreateWalletResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) +} + +::google::protobuf::uint8* CreateWalletResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) return target; } @@ -3111,35 +2450,29 @@ size_t CreateWalletResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void CreateWalletResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CreateWalletResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) GOOGLE_DCHECK_NE(&from, this); const CreateWalletResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) MergeFrom(*source); @@ -3150,16 +2483,13 @@ void CreateWalletResponse::MergeFrom(const CreateWalletResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void CreateWalletResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CreateWalletResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) if (&from == this) return; Clear(); @@ -3177,34 +2507,95 @@ bool CreateWalletResponse::IsInitialized() const { return true; } -void CreateWalletResponse::InternalSwap(CreateWalletResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void CreateWalletResponse::Swap(CreateWalletResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata CreateWalletResponse::GetMetadata() const { - return GetMetadataStatic(); +void CreateWalletResponse::InternalSwap(CreateWalletResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata CreateWalletResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[5]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// CreateWalletResponse + +// string query = 1; +void CreateWalletResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& CreateWalletResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) + return query_.GetNoArena(); +} +void CreateWalletResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) +} +#if LANG_CXX11 +void CreateWalletResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) +} +#endif +void CreateWalletResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) +} +void CreateWalletResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) +} +::std::string* CreateWalletResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* CreateWalletResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void CreateWalletResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void ListWalletRequest::InitAsDefaultInstance() { -} -class ListWalletRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListWalletRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ListWalletRequest::ListWalletRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.ListWalletRequest) } ListWalletRequest::ListWalletRequest(const ListWalletRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.ListWalletRequest) @@ -3212,6 +2603,7 @@ ListWalletRequest::ListWalletRequest(const ListWalletRequest& from) void ListWalletRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } ListWalletRequest::~ListWalletRequest() { @@ -3223,74 +2615,97 @@ void ListWalletRequest::SharedDtor() { } void ListWalletRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListWalletRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[6].descriptor; } + const ListWalletRequest& ListWalletRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListWalletRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +ListWalletRequest* ListWalletRequest::New(::google::protobuf::Arena* arena) const { + ListWalletRequest* n = new ListWalletRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void ListWalletRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.ListWalletRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* ListWalletRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool ListWalletRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.ListWalletRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.ListWalletRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.ListWalletRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* ListWalletRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ListWalletRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void ListWalletRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.ListWalletRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.ListWalletRequest) +} + +::google::protobuf::uint8* ListWalletRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ListWalletRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.ListWalletRequest) return target; } @@ -3299,33 +2714,27 @@ size_t ListWalletRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.ListWalletRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ListWalletRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ListWalletRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.ListWalletRequest) GOOGLE_DCHECK_NE(&from, this); const ListWalletRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.ListWalletRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.ListWalletRequest) MergeFrom(*source); @@ -3336,15 +2745,12 @@ void ListWalletRequest::MergeFrom(const ListWalletRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.ListWalletRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void ListWalletRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ListWalletRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.ListWalletRequest) if (&from == this) return; Clear(); @@ -3362,44 +2768,68 @@ bool ListWalletRequest::IsInitialized() const { return true; } +void ListWalletRequest::Swap(ListWalletRequest* other) { + if (other == this) return; + InternalSwap(other); +} void ListWalletRequest::InternalSwap(ListWalletRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ListWalletRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[6]; } -::PROTOBUF_NAMESPACE_ID::Metadata ListWalletRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// ListWalletRequest + +// bool query = 1; +void ListWalletRequest::clear_query() { + query_ = false; +} +bool ListWalletRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ListWalletRequest.query) + return query_; +} +void ListWalletRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ListWalletRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void ListWalletResponse::InitAsDefaultInstance() { -} -class ListWalletResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListWalletResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ListWalletResponse::ListWalletResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.ListWalletResponse) } ListWalletResponse::ListWalletResponse(const ListWalletResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.ListWalletResponse) } void ListWalletResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListWalletResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } ListWalletResponse::~ListWalletResponse() { @@ -3408,84 +2838,114 @@ ListWalletResponse::~ListWalletResponse() { } void ListWalletResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void ListWalletResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListWalletResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[7].descriptor; } + const ListWalletResponse& ListWalletResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListWalletResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +ListWalletResponse* ListWalletResponse::New(::google::protobuf::Arena* arena) const { + ListWalletResponse* n = new ListWalletResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void ListWalletResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.ListWalletResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* ListWalletResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool ListWalletResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.ListWalletResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.ListWalletResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.ListWalletResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.ListWalletResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.ListWalletResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* ListWalletResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ListWalletResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void ListWalletResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.ListWalletResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.ListWalletResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.ListWalletResponse) +} + +::google::protobuf::uint8* ListWalletResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ListWalletResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.ListWalletResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.ListWalletResponse) return target; } @@ -3494,35 +2954,29 @@ size_t ListWalletResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.ListWalletResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ListWalletResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ListWalletResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.ListWalletResponse) GOOGLE_DCHECK_NE(&from, this); const ListWalletResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.ListWalletResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.ListWalletResponse) MergeFrom(*source); @@ -3533,16 +2987,13 @@ void ListWalletResponse::MergeFrom(const ListWalletResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.ListWalletResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void ListWalletResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ListWalletResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.ListWalletResponse) if (&from == this) return; Clear(); @@ -3560,34 +3011,95 @@ bool ListWalletResponse::IsInitialized() const { return true; } -void ListWalletResponse::InternalSwap(ListWalletResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void ListWalletResponse::Swap(ListWalletResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata ListWalletResponse::GetMetadata() const { - return GetMetadataStatic(); +void ListWalletResponse::InternalSwap(ListWalletResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ListWalletResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[7]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// ListWalletResponse + +// string query = 1; +void ListWalletResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& ListWalletResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) + return query_.GetNoArena(); +} +void ListWalletResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) +} +#if LANG_CXX11 +void ListWalletResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) +} +#endif +void ListWalletResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) +} +void ListWalletResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) +} +::std::string* ListWalletResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* ListWalletResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void ListWalletResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void CreateAddressRequest::InitAsDefaultInstance() { -} -class CreateAddressRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateAddressRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CreateAddressRequest::CreateAddressRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) } CreateAddressRequest::CreateAddressRequest(const CreateAddressRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) @@ -3595,6 +3107,7 @@ CreateAddressRequest::CreateAddressRequest(const CreateAddressRequest& from) void CreateAddressRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } CreateAddressRequest::~CreateAddressRequest() { @@ -3606,74 +3119,97 @@ void CreateAddressRequest::SharedDtor() { } void CreateAddressRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateAddressRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[8].descriptor; } + const CreateAddressRequest& CreateAddressRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateAddressRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +CreateAddressRequest* CreateAddressRequest::New(::google::protobuf::Arena* arena) const { + CreateAddressRequest* n = new CreateAddressRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void CreateAddressRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* CreateAddressRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool CreateAddressRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* CreateAddressRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void CreateAddressRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) +} + +::google::protobuf::uint8* CreateAddressRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) return target; } @@ -3682,33 +3218,27 @@ size_t CreateAddressRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void CreateAddressRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CreateAddressRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) GOOGLE_DCHECK_NE(&from, this); const CreateAddressRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) MergeFrom(*source); @@ -3719,15 +3249,12 @@ void CreateAddressRequest::MergeFrom(const CreateAddressRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void CreateAddressRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CreateAddressRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) if (&from == this) return; Clear(); @@ -3745,44 +3272,68 @@ bool CreateAddressRequest::IsInitialized() const { return true; } +void CreateAddressRequest::Swap(CreateAddressRequest* other) { + if (other == this) return; + InternalSwap(other); +} void CreateAddressRequest::InternalSwap(CreateAddressRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata CreateAddressRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[8]; } -::PROTOBUF_NAMESPACE_ID::Metadata CreateAddressRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// CreateAddressRequest + +// bool query = 1; +void CreateAddressRequest::clear_query() { + query_ = false; +} +bool CreateAddressRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.CreateAddressRequest.query) + return query_; +} +void CreateAddressRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateAddressRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void CreateAddressResponse::InitAsDefaultInstance() { -} -class CreateAddressResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateAddressResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CreateAddressResponse::CreateAddressResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) } CreateAddressResponse::CreateAddressResponse(const CreateAddressResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) } void CreateAddressResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CreateAddressResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } CreateAddressResponse::~CreateAddressResponse() { @@ -3791,84 +3342,114 @@ CreateAddressResponse::~CreateAddressResponse() { } void CreateAddressResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void CreateAddressResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateAddressResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[9].descriptor; } + const CreateAddressResponse& CreateAddressResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateAddressResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +CreateAddressResponse* CreateAddressResponse::New(::google::protobuf::Arena* arena) const { + CreateAddressResponse* n = new CreateAddressResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void CreateAddressResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* CreateAddressResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool CreateAddressResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* CreateAddressResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void CreateAddressResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) +} + +::google::protobuf::uint8* CreateAddressResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) return target; } @@ -3877,35 +3458,29 @@ size_t CreateAddressResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void CreateAddressResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CreateAddressResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) GOOGLE_DCHECK_NE(&from, this); const CreateAddressResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) MergeFrom(*source); @@ -3916,16 +3491,13 @@ void CreateAddressResponse::MergeFrom(const CreateAddressResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void CreateAddressResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CreateAddressResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) if (&from == this) return; Clear(); @@ -3943,34 +3515,95 @@ bool CreateAddressResponse::IsInitialized() const { return true; } -void CreateAddressResponse::InternalSwap(CreateAddressResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void CreateAddressResponse::Swap(CreateAddressResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata CreateAddressResponse::GetMetadata() const { - return GetMetadataStatic(); +void CreateAddressResponse::InternalSwap(CreateAddressResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata CreateAddressResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[9]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// CreateAddressResponse + +// string query = 1; +void CreateAddressResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& CreateAddressResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) + return query_.GetNoArena(); +} +void CreateAddressResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) +} +#if LANG_CXX11 +void CreateAddressResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) +} +#endif +void CreateAddressResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) +} +void CreateAddressResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) +} +::std::string* CreateAddressResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* CreateAddressResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void CreateAddressResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetAddressRequest::InitAsDefaultInstance() { -} -class GetAddressRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetAddressRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetAddressRequest::GetAddressRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetAddressRequest) } GetAddressRequest::GetAddressRequest(const GetAddressRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetAddressRequest) @@ -3978,6 +3611,7 @@ GetAddressRequest::GetAddressRequest(const GetAddressRequest& from) void GetAddressRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } GetAddressRequest::~GetAddressRequest() { @@ -3989,74 +3623,97 @@ void GetAddressRequest::SharedDtor() { } void GetAddressRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetAddressRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[10].descriptor; } + const GetAddressRequest& GetAddressRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetAddressRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetAddressRequest* GetAddressRequest::New(::google::protobuf::Arena* arena) const { + GetAddressRequest* n = new GetAddressRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetAddressRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetAddressRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* GetAddressRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool GetAddressRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetAddressRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetAddressRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetAddressRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetAddressRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetAddressRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetAddressRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetAddressRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetAddressRequest) +} + +::google::protobuf::uint8* GetAddressRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetAddressRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetAddressRequest) return target; } @@ -4065,33 +3722,27 @@ size_t GetAddressRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetAddressRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetAddressRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetAddressRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetAddressRequest) GOOGLE_DCHECK_NE(&from, this); const GetAddressRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetAddressRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetAddressRequest) MergeFrom(*source); @@ -4102,15 +3753,12 @@ void GetAddressRequest::MergeFrom(const GetAddressRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetAddressRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void GetAddressRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetAddressRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetAddressRequest) if (&from == this) return; Clear(); @@ -4128,44 +3776,68 @@ bool GetAddressRequest::IsInitialized() const { return true; } +void GetAddressRequest::Swap(GetAddressRequest* other) { + if (other == this) return; + InternalSwap(other); +} void GetAddressRequest::InternalSwap(GetAddressRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetAddressRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[10]; } -::PROTOBUF_NAMESPACE_ID::Metadata GetAddressRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetAddressRequest + +// bool query = 1; +void GetAddressRequest::clear_query() { + query_ = false; +} +bool GetAddressRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetAddressRequest.query) + return query_; +} +void GetAddressRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetAddressRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetAddressResponse::InitAsDefaultInstance() { -} -class GetAddressResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetAddressResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetAddressResponse::GetAddressResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetAddressResponse) } GetAddressResponse::GetAddressResponse(const GetAddressResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetAddressResponse) } void GetAddressResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetAddressResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } GetAddressResponse::~GetAddressResponse() { @@ -4174,84 +3846,114 @@ GetAddressResponse::~GetAddressResponse() { } void GetAddressResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void GetAddressResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetAddressResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[11].descriptor; } + const GetAddressResponse& GetAddressResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetAddressResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetAddressResponse* GetAddressResponse::New(::google::protobuf::Arena* arena) const { + GetAddressResponse* n = new GetAddressResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetAddressResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetAddressResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* GetAddressResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool GetAddressResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetAddressResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.GetAddressResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.GetAddressResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetAddressResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetAddressResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetAddressResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetAddressResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetAddressResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetAddressResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.GetAddressResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetAddressResponse) +} + +::google::protobuf::uint8* GetAddressResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetAddressResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.GetAddressResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetAddressResponse) return target; } @@ -4260,35 +3962,29 @@ size_t GetAddressResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetAddressResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetAddressResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetAddressResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetAddressResponse) GOOGLE_DCHECK_NE(&from, this); const GetAddressResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetAddressResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetAddressResponse) MergeFrom(*source); @@ -4299,16 +3995,13 @@ void GetAddressResponse::MergeFrom(const GetAddressResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetAddressResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void GetAddressResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetAddressResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetAddressResponse) if (&from == this) return; Clear(); @@ -4326,34 +4019,95 @@ bool GetAddressResponse::IsInitialized() const { return true; } -void GetAddressResponse::InternalSwap(GetAddressResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void GetAddressResponse::Swap(GetAddressResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata GetAddressResponse::GetMetadata() const { - return GetMetadataStatic(); +void GetAddressResponse::InternalSwap(GetAddressResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetAddressResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[11]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetAddressResponse + +// string query = 1; +void GetAddressResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& GetAddressResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) + return query_.GetNoArena(); +} +void GetAddressResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) +} +#if LANG_CXX11 +void GetAddressResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) +} +#endif +void GetAddressResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) +} +void GetAddressResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) +} +::std::string* GetAddressResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* GetAddressResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void GetAddressResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void ListAddressRequest::InitAsDefaultInstance() { -} -class ListAddressRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListAddressRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ListAddressRequest::ListAddressRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.ListAddressRequest) } ListAddressRequest::ListAddressRequest(const ListAddressRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.ListAddressRequest) @@ -4361,6 +4115,7 @@ ListAddressRequest::ListAddressRequest(const ListAddressRequest& from) void ListAddressRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } ListAddressRequest::~ListAddressRequest() { @@ -4372,74 +4127,97 @@ void ListAddressRequest::SharedDtor() { } void ListAddressRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListAddressRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[12].descriptor; } + const ListAddressRequest& ListAddressRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListAddressRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +ListAddressRequest* ListAddressRequest::New(::google::protobuf::Arena* arena) const { + ListAddressRequest* n = new ListAddressRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void ListAddressRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.ListAddressRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* ListAddressRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool ListAddressRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.ListAddressRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.ListAddressRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.ListAddressRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* ListAddressRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ListAddressRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void ListAddressRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.ListAddressRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.ListAddressRequest) +} + +::google::protobuf::uint8* ListAddressRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ListAddressRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.ListAddressRequest) return target; } @@ -4448,33 +4226,27 @@ size_t ListAddressRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.ListAddressRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ListAddressRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ListAddressRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.ListAddressRequest) GOOGLE_DCHECK_NE(&from, this); const ListAddressRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.ListAddressRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.ListAddressRequest) MergeFrom(*source); @@ -4485,15 +4257,12 @@ void ListAddressRequest::MergeFrom(const ListAddressRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.ListAddressRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void ListAddressRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ListAddressRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.ListAddressRequest) if (&from == this) return; Clear(); @@ -4511,44 +4280,68 @@ bool ListAddressRequest::IsInitialized() const { return true; } +void ListAddressRequest::Swap(ListAddressRequest* other) { + if (other == this) return; + InternalSwap(other); +} void ListAddressRequest::InternalSwap(ListAddressRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ListAddressRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[12]; } -::PROTOBUF_NAMESPACE_ID::Metadata ListAddressRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// ListAddressRequest + +// bool query = 1; +void ListAddressRequest::clear_query() { + query_ = false; +} +bool ListAddressRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ListAddressRequest.query) + return query_; +} +void ListAddressRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ListAddressRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void ListAddressResponse::InitAsDefaultInstance() { -} -class ListAddressResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ListAddressResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ListAddressResponse::ListAddressResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.ListAddressResponse) } ListAddressResponse::ListAddressResponse(const ListAddressResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.ListAddressResponse) } void ListAddressResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ListAddressResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } ListAddressResponse::~ListAddressResponse() { @@ -4557,84 +4350,114 @@ ListAddressResponse::~ListAddressResponse() { } void ListAddressResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void ListAddressResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ListAddressResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[13].descriptor; } + const ListAddressResponse& ListAddressResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ListAddressResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +ListAddressResponse* ListAddressResponse::New(::google::protobuf::Arena* arena) const { + ListAddressResponse* n = new ListAddressResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void ListAddressResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.ListAddressResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* ListAddressResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool ListAddressResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.ListAddressResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.ListAddressResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.ListAddressResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.ListAddressResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.ListAddressResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* ListAddressResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ListAddressResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void ListAddressResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.ListAddressResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.ListAddressResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.ListAddressResponse) +} + +::google::protobuf::uint8* ListAddressResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ListAddressResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.ListAddressResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.ListAddressResponse) return target; } @@ -4643,35 +4466,29 @@ size_t ListAddressResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.ListAddressResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ListAddressResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ListAddressResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.ListAddressResponse) GOOGLE_DCHECK_NE(&from, this); const ListAddressResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.ListAddressResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.ListAddressResponse) MergeFrom(*source); @@ -4682,16 +4499,13 @@ void ListAddressResponse::MergeFrom(const ListAddressResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.ListAddressResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void ListAddressResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ListAddressResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.ListAddressResponse) if (&from == this) return; Clear(); @@ -4709,34 +4523,95 @@ bool ListAddressResponse::IsInitialized() const { return true; } -void ListAddressResponse::InternalSwap(ListAddressResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void ListAddressResponse::Swap(ListAddressResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata ListAddressResponse::GetMetadata() const { - return GetMetadataStatic(); +void ListAddressResponse::InternalSwap(ListAddressResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ListAddressResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[13]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// ListAddressResponse + +// string query = 1; +void ListAddressResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& ListAddressResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) + return query_.GetNoArena(); +} +void ListAddressResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) +} +#if LANG_CXX11 +void ListAddressResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) +} +#endif +void ListAddressResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) +} +void ListAddressResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) +} +::std::string* ListAddressResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* ListAddressResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void ListAddressResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void ValidateAddressRequest::InitAsDefaultInstance() { -} -class ValidateAddressRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ValidateAddressRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ValidateAddressRequest::ValidateAddressRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) } ValidateAddressRequest::ValidateAddressRequest(const ValidateAddressRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) @@ -4744,6 +4619,7 @@ ValidateAddressRequest::ValidateAddressRequest(const ValidateAddressRequest& fro void ValidateAddressRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } ValidateAddressRequest::~ValidateAddressRequest() { @@ -4755,74 +4631,97 @@ void ValidateAddressRequest::SharedDtor() { } void ValidateAddressRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ValidateAddressRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[14].descriptor; } + const ValidateAddressRequest& ValidateAddressRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ValidateAddressRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +ValidateAddressRequest* ValidateAddressRequest::New(::google::protobuf::Arena* arena) const { + ValidateAddressRequest* n = new ValidateAddressRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void ValidateAddressRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* ValidateAddressRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool ValidateAddressRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* ValidateAddressRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void ValidateAddressRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) +} + +::google::protobuf::uint8* ValidateAddressRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) return target; } @@ -4831,33 +4730,27 @@ size_t ValidateAddressRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ValidateAddressRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ValidateAddressRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) GOOGLE_DCHECK_NE(&from, this); const ValidateAddressRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) MergeFrom(*source); @@ -4868,15 +4761,12 @@ void ValidateAddressRequest::MergeFrom(const ValidateAddressRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void ValidateAddressRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ValidateAddressRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) if (&from == this) return; Clear(); @@ -4894,44 +4784,68 @@ bool ValidateAddressRequest::IsInitialized() const { return true; } +void ValidateAddressRequest::Swap(ValidateAddressRequest* other) { + if (other == this) return; + InternalSwap(other); +} void ValidateAddressRequest::InternalSwap(ValidateAddressRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ValidateAddressRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[14]; } -::PROTOBUF_NAMESPACE_ID::Metadata ValidateAddressRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// ValidateAddressRequest + +// bool query = 1; +void ValidateAddressRequest::clear_query() { + query_ = false; +} +bool ValidateAddressRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.query) + return query_; +} +void ValidateAddressRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void ValidateAddressResponse::InitAsDefaultInstance() { -} -class ValidateAddressResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ValidateAddressResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ValidateAddressResponse::ValidateAddressResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) } ValidateAddressResponse::ValidateAddressResponse(const ValidateAddressResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) } void ValidateAddressResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ValidateAddressResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } ValidateAddressResponse::~ValidateAddressResponse() { @@ -4940,84 +4854,114 @@ ValidateAddressResponse::~ValidateAddressResponse() { } void ValidateAddressResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void ValidateAddressResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ValidateAddressResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[15].descriptor; } + const ValidateAddressResponse& ValidateAddressResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ValidateAddressResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +ValidateAddressResponse* ValidateAddressResponse::New(::google::protobuf::Arena* arena) const { + ValidateAddressResponse* n = new ValidateAddressResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void ValidateAddressResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* ValidateAddressResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool ValidateAddressResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* ValidateAddressResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void ValidateAddressResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) +} + +::google::protobuf::uint8* ValidateAddressResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) return target; } @@ -5026,35 +4970,29 @@ size_t ValidateAddressResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ValidateAddressResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ValidateAddressResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) GOOGLE_DCHECK_NE(&from, this); const ValidateAddressResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) MergeFrom(*source); @@ -5065,16 +5003,13 @@ void ValidateAddressResponse::MergeFrom(const ValidateAddressResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void ValidateAddressResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ValidateAddressResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) if (&from == this) return; Clear(); @@ -5092,34 +5027,95 @@ bool ValidateAddressResponse::IsInitialized() const { return true; } -void ValidateAddressResponse::InternalSwap(ValidateAddressResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void ValidateAddressResponse::Swap(ValidateAddressResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata ValidateAddressResponse::GetMetadata() const { - return GetMetadataStatic(); +void ValidateAddressResponse::InternalSwap(ValidateAddressResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ValidateAddressResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[15]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// ValidateAddressResponse + +// string query = 1; +void ValidateAddressResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& ValidateAddressResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) + return query_.GetNoArena(); +} +void ValidateAddressResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) +} +#if LANG_CXX11 +void ValidateAddressResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) +} +#endif +void ValidateAddressResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) +} +void ValidateAddressResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) +} +::std::string* ValidateAddressResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* ValidateAddressResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void ValidateAddressResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetBalanceRequest::InitAsDefaultInstance() { -} -class GetBalanceRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetBalanceRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetBalanceRequest::GetBalanceRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) } GetBalanceRequest::GetBalanceRequest(const GetBalanceRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) @@ -5127,6 +5123,7 @@ GetBalanceRequest::GetBalanceRequest(const GetBalanceRequest& from) void GetBalanceRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } GetBalanceRequest::~GetBalanceRequest() { @@ -5138,74 +5135,97 @@ void GetBalanceRequest::SharedDtor() { } void GetBalanceRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetBalanceRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[16].descriptor; } + const GetBalanceRequest& GetBalanceRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetBalanceRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetBalanceRequest* GetBalanceRequest::New(::google::protobuf::Arena* arena) const { + GetBalanceRequest* n = new GetBalanceRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetBalanceRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* GetBalanceRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool GetBalanceRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetBalanceRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetBalanceRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) +} + +::google::protobuf::uint8* GetBalanceRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) return target; } @@ -5214,33 +5234,27 @@ size_t GetBalanceRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetBalanceRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetBalanceRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) GOOGLE_DCHECK_NE(&from, this); const GetBalanceRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) MergeFrom(*source); @@ -5251,15 +5265,12 @@ void GetBalanceRequest::MergeFrom(const GetBalanceRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void GetBalanceRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetBalanceRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) if (&from == this) return; Clear(); @@ -5277,44 +5288,68 @@ bool GetBalanceRequest::IsInitialized() const { return true; } +void GetBalanceRequest::Swap(GetBalanceRequest* other) { + if (other == this) return; + InternalSwap(other); +} void GetBalanceRequest::InternalSwap(GetBalanceRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetBalanceRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[16]; } -::PROTOBUF_NAMESPACE_ID::Metadata GetBalanceRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetBalanceRequest + +// bool query = 1; +void GetBalanceRequest::clear_query() { + query_ = false; +} +bool GetBalanceRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetBalanceRequest.query) + return query_; +} +void GetBalanceRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetBalanceRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetBalanceResponse::InitAsDefaultInstance() { -} -class GetBalanceResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetBalanceResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetBalanceResponse::GetBalanceResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) } GetBalanceResponse::GetBalanceResponse(const GetBalanceResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) } void GetBalanceResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetBalanceResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } GetBalanceResponse::~GetBalanceResponse() { @@ -5323,84 +5358,114 @@ GetBalanceResponse::~GetBalanceResponse() { } void GetBalanceResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void GetBalanceResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetBalanceResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[17].descriptor; } + const GetBalanceResponse& GetBalanceResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetBalanceResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetBalanceResponse* GetBalanceResponse::New(::google::protobuf::Arena* arena) const { + GetBalanceResponse* n = new GetBalanceResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetBalanceResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* GetBalanceResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool GetBalanceResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetBalanceResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetBalanceResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) +} + +::google::protobuf::uint8* GetBalanceResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) return target; } @@ -5409,35 +5474,29 @@ size_t GetBalanceResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetBalanceResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetBalanceResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) GOOGLE_DCHECK_NE(&from, this); const GetBalanceResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) MergeFrom(*source); @@ -5448,16 +5507,13 @@ void GetBalanceResponse::MergeFrom(const GetBalanceResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void GetBalanceResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetBalanceResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) if (&from == this) return; Clear(); @@ -5475,34 +5531,95 @@ bool GetBalanceResponse::IsInitialized() const { return true; } -void GetBalanceResponse::InternalSwap(GetBalanceResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void GetBalanceResponse::Swap(GetBalanceResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata GetBalanceResponse::GetMetadata() const { - return GetMetadataStatic(); +void GetBalanceResponse::InternalSwap(GetBalanceResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetBalanceResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[17]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetBalanceResponse + +// string query = 1; +void GetBalanceResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& GetBalanceResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) + return query_.GetNoArena(); +} +void GetBalanceResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) +} +#if LANG_CXX11 +void GetBalanceResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) +} +#endif +void GetBalanceResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) +} +void GetBalanceResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) +} +::std::string* GetBalanceResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* GetBalanceResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void GetBalanceResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void CreateRawTransactionRequest::InitAsDefaultInstance() { -} -class CreateRawTransactionRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateRawTransactionRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CreateRawTransactionRequest::CreateRawTransactionRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) } CreateRawTransactionRequest::CreateRawTransactionRequest(const CreateRawTransactionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) @@ -5510,6 +5627,7 @@ CreateRawTransactionRequest::CreateRawTransactionRequest(const CreateRawTransact void CreateRawTransactionRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } CreateRawTransactionRequest::~CreateRawTransactionRequest() { @@ -5521,74 +5639,97 @@ void CreateRawTransactionRequest::SharedDtor() { } void CreateRawTransactionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateRawTransactionRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[18].descriptor; } + const CreateRawTransactionRequest& CreateRawTransactionRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateRawTransactionRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +CreateRawTransactionRequest* CreateRawTransactionRequest::New(::google::protobuf::Arena* arena) const { + CreateRawTransactionRequest* n = new CreateRawTransactionRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void CreateRawTransactionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* CreateRawTransactionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool CreateRawTransactionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* CreateRawTransactionRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void CreateRawTransactionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) +} + +::google::protobuf::uint8* CreateRawTransactionRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) return target; } @@ -5597,33 +5738,27 @@ size_t CreateRawTransactionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void CreateRawTransactionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CreateRawTransactionRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) GOOGLE_DCHECK_NE(&from, this); const CreateRawTransactionRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) MergeFrom(*source); @@ -5634,15 +5769,12 @@ void CreateRawTransactionRequest::MergeFrom(const CreateRawTransactionRequest& f // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void CreateRawTransactionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CreateRawTransactionRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) if (&from == this) return; Clear(); @@ -5660,44 +5792,68 @@ bool CreateRawTransactionRequest::IsInitialized() const { return true; } +void CreateRawTransactionRequest::Swap(CreateRawTransactionRequest* other) { + if (other == this) return; + InternalSwap(other); +} void CreateRawTransactionRequest::InternalSwap(CreateRawTransactionRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata CreateRawTransactionRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[18]; } -::PROTOBUF_NAMESPACE_ID::Metadata CreateRawTransactionRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// CreateRawTransactionRequest + +// bool query = 1; +void CreateRawTransactionRequest::clear_query() { + query_ = false; +} +bool CreateRawTransactionRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.query) + return query_; +} +void CreateRawTransactionRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void CreateRawTransactionResponse::InitAsDefaultInstance() { -} -class CreateRawTransactionResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateRawTransactionResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CreateRawTransactionResponse::CreateRawTransactionResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) } CreateRawTransactionResponse::CreateRawTransactionResponse(const CreateRawTransactionResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) } void CreateRawTransactionResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CreateRawTransactionResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } CreateRawTransactionResponse::~CreateRawTransactionResponse() { @@ -5706,84 +5862,114 @@ CreateRawTransactionResponse::~CreateRawTransactionResponse() { } void CreateRawTransactionResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void CreateRawTransactionResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CreateRawTransactionResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[19].descriptor; } + const CreateRawTransactionResponse& CreateRawTransactionResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateRawTransactionResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +CreateRawTransactionResponse* CreateRawTransactionResponse::New(::google::protobuf::Arena* arena) const { + CreateRawTransactionResponse* n = new CreateRawTransactionResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void CreateRawTransactionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* CreateRawTransactionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool CreateRawTransactionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* CreateRawTransactionResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void CreateRawTransactionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) +} + +::google::protobuf::uint8* CreateRawTransactionResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) return target; } @@ -5792,35 +5978,29 @@ size_t CreateRawTransactionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void CreateRawTransactionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CreateRawTransactionResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) GOOGLE_DCHECK_NE(&from, this); const CreateRawTransactionResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) MergeFrom(*source); @@ -5831,16 +6011,13 @@ void CreateRawTransactionResponse::MergeFrom(const CreateRawTransactionResponse& // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void CreateRawTransactionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CreateRawTransactionResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) if (&from == this) return; Clear(); @@ -5858,34 +6035,95 @@ bool CreateRawTransactionResponse::IsInitialized() const { return true; } -void CreateRawTransactionResponse::InternalSwap(CreateRawTransactionResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void CreateRawTransactionResponse::Swap(CreateRawTransactionResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata CreateRawTransactionResponse::GetMetadata() const { - return GetMetadataStatic(); +void CreateRawTransactionResponse::InternalSwap(CreateRawTransactionResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata CreateRawTransactionResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[19]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// CreateRawTransactionResponse + +// string query = 1; +void CreateRawTransactionResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& CreateRawTransactionResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) + return query_.GetNoArena(); +} +void CreateRawTransactionResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) +} +#if LANG_CXX11 +void CreateRawTransactionResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) +} +#endif +void CreateRawTransactionResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) +} +void CreateRawTransactionResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) +} +::std::string* CreateRawTransactionResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* CreateRawTransactionResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void CreateRawTransactionResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SignRawTransactionRequest::InitAsDefaultInstance() { -} -class SignRawTransactionRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignRawTransactionRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SignRawTransactionRequest::SignRawTransactionRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) } SignRawTransactionRequest::SignRawTransactionRequest(const SignRawTransactionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) @@ -5893,6 +6131,7 @@ SignRawTransactionRequest::SignRawTransactionRequest(const SignRawTransactionReq void SignRawTransactionRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } SignRawTransactionRequest::~SignRawTransactionRequest() { @@ -5904,74 +6143,97 @@ void SignRawTransactionRequest::SharedDtor() { } void SignRawTransactionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SignRawTransactionRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[20].descriptor; } + const SignRawTransactionRequest& SignRawTransactionRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SignRawTransactionRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SignRawTransactionRequest* SignRawTransactionRequest::New(::google::protobuf::Arena* arena) const { + SignRawTransactionRequest* n = new SignRawTransactionRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SignRawTransactionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* SignRawTransactionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool SignRawTransactionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SignRawTransactionRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SignRawTransactionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) +} + +::google::protobuf::uint8* SignRawTransactionRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) return target; } @@ -5980,33 +6242,27 @@ size_t SignRawTransactionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SignRawTransactionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SignRawTransactionRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) GOOGLE_DCHECK_NE(&from, this); const SignRawTransactionRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) MergeFrom(*source); @@ -6017,15 +6273,12 @@ void SignRawTransactionRequest::MergeFrom(const SignRawTransactionRequest& from) // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void SignRawTransactionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SignRawTransactionRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) if (&from == this) return; Clear(); @@ -6043,44 +6296,68 @@ bool SignRawTransactionRequest::IsInitialized() const { return true; } +void SignRawTransactionRequest::Swap(SignRawTransactionRequest* other) { + if (other == this) return; + InternalSwap(other); +} void SignRawTransactionRequest::InternalSwap(SignRawTransactionRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SignRawTransactionRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[20]; } -::PROTOBUF_NAMESPACE_ID::Metadata SignRawTransactionRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SignRawTransactionRequest + +// bool query = 1; +void SignRawTransactionRequest::clear_query() { + query_ = false; +} +bool SignRawTransactionRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.query) + return query_; +} +void SignRawTransactionRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SignRawTransactionResponse::InitAsDefaultInstance() { -} -class SignRawTransactionResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignRawTransactionResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SignRawTransactionResponse::SignRawTransactionResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) } SignRawTransactionResponse::SignRawTransactionResponse(const SignRawTransactionResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) } void SignRawTransactionResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SignRawTransactionResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } SignRawTransactionResponse::~SignRawTransactionResponse() { @@ -6089,84 +6366,114 @@ SignRawTransactionResponse::~SignRawTransactionResponse() { } void SignRawTransactionResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void SignRawTransactionResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SignRawTransactionResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[21].descriptor; } + const SignRawTransactionResponse& SignRawTransactionResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SignRawTransactionResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SignRawTransactionResponse* SignRawTransactionResponse::New(::google::protobuf::Arena* arena) const { + SignRawTransactionResponse* n = new SignRawTransactionResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SignRawTransactionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* SignRawTransactionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool SignRawTransactionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SignRawTransactionResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SignRawTransactionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) +} + +::google::protobuf::uint8* SignRawTransactionResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) return target; } @@ -6175,35 +6482,29 @@ size_t SignRawTransactionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SignRawTransactionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SignRawTransactionResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) GOOGLE_DCHECK_NE(&from, this); const SignRawTransactionResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) MergeFrom(*source); @@ -6214,16 +6515,13 @@ void SignRawTransactionResponse::MergeFrom(const SignRawTransactionResponse& fro // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void SignRawTransactionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SignRawTransactionResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) if (&from == this) return; Clear(); @@ -6241,34 +6539,95 @@ bool SignRawTransactionResponse::IsInitialized() const { return true; } -void SignRawTransactionResponse::InternalSwap(SignRawTransactionResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void SignRawTransactionResponse::Swap(SignRawTransactionResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata SignRawTransactionResponse::GetMetadata() const { - return GetMetadataStatic(); +void SignRawTransactionResponse::InternalSwap(SignRawTransactionResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SignRawTransactionResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[21]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SignRawTransactionResponse + +// string query = 1; +void SignRawTransactionResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SignRawTransactionResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) + return query_.GetNoArena(); +} +void SignRawTransactionResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) +} +#if LANG_CXX11 +void SignRawTransactionResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) +} +#endif +void SignRawTransactionResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) +} +void SignRawTransactionResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) +} +::std::string* SignRawTransactionResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SignRawTransactionResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SignRawTransactionResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void DecodeRawTransactionRequest::InitAsDefaultInstance() { -} -class DecodeRawTransactionRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DecodeRawTransactionRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 DecodeRawTransactionRequest::DecodeRawTransactionRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) } DecodeRawTransactionRequest::DecodeRawTransactionRequest(const DecodeRawTransactionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) @@ -6276,6 +6635,7 @@ DecodeRawTransactionRequest::DecodeRawTransactionRequest(const DecodeRawTransact void DecodeRawTransactionRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } DecodeRawTransactionRequest::~DecodeRawTransactionRequest() { @@ -6287,74 +6647,97 @@ void DecodeRawTransactionRequest::SharedDtor() { } void DecodeRawTransactionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DecodeRawTransactionRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[22].descriptor; } + const DecodeRawTransactionRequest& DecodeRawTransactionRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DecodeRawTransactionRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +DecodeRawTransactionRequest* DecodeRawTransactionRequest::New(::google::protobuf::Arena* arena) const { + DecodeRawTransactionRequest* n = new DecodeRawTransactionRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void DecodeRawTransactionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* DecodeRawTransactionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool DecodeRawTransactionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* DecodeRawTransactionRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void DecodeRawTransactionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) +} + +::google::protobuf::uint8* DecodeRawTransactionRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) return target; } @@ -6363,33 +6746,27 @@ size_t DecodeRawTransactionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void DecodeRawTransactionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DecodeRawTransactionRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) GOOGLE_DCHECK_NE(&from, this); const DecodeRawTransactionRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) MergeFrom(*source); @@ -6400,15 +6777,12 @@ void DecodeRawTransactionRequest::MergeFrom(const DecodeRawTransactionRequest& f // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void DecodeRawTransactionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DecodeRawTransactionRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) if (&from == this) return; Clear(); @@ -6426,44 +6800,68 @@ bool DecodeRawTransactionRequest::IsInitialized() const { return true; } +void DecodeRawTransactionRequest::Swap(DecodeRawTransactionRequest* other) { + if (other == this) return; + InternalSwap(other); +} void DecodeRawTransactionRequest::InternalSwap(DecodeRawTransactionRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata DecodeRawTransactionRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[22]; } -::PROTOBUF_NAMESPACE_ID::Metadata DecodeRawTransactionRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// DecodeRawTransactionRequest + +// bool query = 1; +void DecodeRawTransactionRequest::clear_query() { + query_ = false; +} +bool DecodeRawTransactionRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.query) + return query_; +} +void DecodeRawTransactionRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void DecodeRawTransactionResponse::InitAsDefaultInstance() { -} -class DecodeRawTransactionResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DecodeRawTransactionResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 DecodeRawTransactionResponse::DecodeRawTransactionResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) } DecodeRawTransactionResponse::DecodeRawTransactionResponse(const DecodeRawTransactionResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) } void DecodeRawTransactionResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DecodeRawTransactionResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } DecodeRawTransactionResponse::~DecodeRawTransactionResponse() { @@ -6472,84 +6870,114 @@ DecodeRawTransactionResponse::~DecodeRawTransactionResponse() { } void DecodeRawTransactionResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void DecodeRawTransactionResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DecodeRawTransactionResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[23].descriptor; } + const DecodeRawTransactionResponse& DecodeRawTransactionResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DecodeRawTransactionResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +DecodeRawTransactionResponse* DecodeRawTransactionResponse::New(::google::protobuf::Arena* arena) const { + DecodeRawTransactionResponse* n = new DecodeRawTransactionResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void DecodeRawTransactionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* DecodeRawTransactionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool DecodeRawTransactionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* DecodeRawTransactionResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void DecodeRawTransactionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) +} + +::google::protobuf::uint8* DecodeRawTransactionResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) return target; } @@ -6558,35 +6986,29 @@ size_t DecodeRawTransactionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void DecodeRawTransactionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DecodeRawTransactionResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) GOOGLE_DCHECK_NE(&from, this); const DecodeRawTransactionResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) MergeFrom(*source); @@ -6597,16 +7019,13 @@ void DecodeRawTransactionResponse::MergeFrom(const DecodeRawTransactionResponse& // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void DecodeRawTransactionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DecodeRawTransactionResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) if (&from == this) return; Clear(); @@ -6624,59 +7043,107 @@ bool DecodeRawTransactionResponse::IsInitialized() const { return true; } -void DecodeRawTransactionResponse::InternalSwap(DecodeRawTransactionResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void DecodeRawTransactionResponse::Swap(DecodeRawTransactionResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata DecodeRawTransactionResponse::GetMetadata() const { - return GetMetadataStatic(); +void DecodeRawTransactionResponse::InternalSwap(DecodeRawTransactionResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata DecodeRawTransactionResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[23]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// DecodeRawTransactionResponse + +// string query = 1; +void DecodeRawTransactionResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& DecodeRawTransactionResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) + return query_.GetNoArena(); +} +void DecodeRawTransactionResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) +} +#if LANG_CXX11 +void DecodeRawTransactionResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) +} +#endif +void DecodeRawTransactionResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) +} +void DecodeRawTransactionResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) +} +::std::string* DecodeRawTransactionResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* DecodeRawTransactionResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void DecodeRawTransactionResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void BroadcastRawTransactionRequest::InitAsDefaultInstance() { - ::Catalyst::Protocol::Rpc::Node::_BroadcastRawTransactionRequest_default_instance_._instance.get_mutable()->transaction_ = const_cast< ::Catalyst::Protocol::Wire::TransactionBroadcast*>( - ::Catalyst::Protocol::Wire::TransactionBroadcast::internal_default_instance()); -} -class BroadcastRawTransactionRequest::_Internal { - public: - static const ::Catalyst::Protocol::Wire::TransactionBroadcast& transaction(const BroadcastRawTransactionRequest* msg); -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BroadcastRawTransactionRequest::kTransactionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::Catalyst::Protocol::Wire::TransactionBroadcast& -BroadcastRawTransactionRequest::_Internal::transaction(const BroadcastRawTransactionRequest* msg) { - return *msg->transaction_; -} -void BroadcastRawTransactionRequest::clear_transaction() { - if (GetArenaNoVirtual() == nullptr && transaction_ != nullptr) { - delete transaction_; - } - transaction_ = nullptr; -} BroadcastRawTransactionRequest::BroadcastRawTransactionRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) } BroadcastRawTransactionRequest::BroadcastRawTransactionRequest(const BroadcastRawTransactionRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_transaction()) { + if (from.has_transaction()) { transaction_ = new ::Catalyst::Protocol::Wire::TransactionBroadcast(*from.transaction_); } else { - transaction_ = nullptr; + transaction_ = NULL; } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) } void BroadcastRawTransactionRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BroadcastRawTransactionRequest_Rpc_2eproto.base); - transaction_ = nullptr; + transaction_ = NULL; + _cached_size_ = 0; } BroadcastRawTransactionRequest::~BroadcastRawTransactionRequest() { @@ -6685,83 +7152,107 @@ BroadcastRawTransactionRequest::~BroadcastRawTransactionRequest() { } void BroadcastRawTransactionRequest::SharedDtor() { - if (this != internal_default_instance()) delete transaction_; + if (this != internal_default_instance()) { + delete transaction_; + } } void BroadcastRawTransactionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* BroadcastRawTransactionRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[24].descriptor; +} + const BroadcastRawTransactionRequest& BroadcastRawTransactionRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BroadcastRawTransactionRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +BroadcastRawTransactionRequest* BroadcastRawTransactionRequest::New(::google::protobuf::Arena* arena) const { + BroadcastRawTransactionRequest* n = new BroadcastRawTransactionRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void BroadcastRawTransactionRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && transaction_ != nullptr) { + if (GetArenaNoVirtual() == NULL && transaction_ != NULL) { delete transaction_; } - transaction_ = nullptr; - _internal_metadata_.Clear(); + transaction_ = NULL; } -const char* BroadcastRawTransactionRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool BroadcastRawTransactionRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_transaction(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_transaction())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* BroadcastRawTransactionRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void BroadcastRawTransactionRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) // .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; if (this->has_transaction()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::transaction(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->transaction_, output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) +} + +::google::protobuf::uint8* BroadcastRawTransactionRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) + // .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; + if (this->has_transaction()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *this->transaction_, false, target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) return target; } @@ -6770,35 +7261,29 @@ size_t BroadcastRawTransactionRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; if (this->has_transaction()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *transaction_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->transaction_); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void BroadcastRawTransactionRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void BroadcastRawTransactionRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) GOOGLE_DCHECK_NE(&from, this); const BroadcastRawTransactionRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) MergeFrom(*source); @@ -6809,15 +7294,12 @@ void BroadcastRawTransactionRequest::MergeFrom(const BroadcastRawTransactionRequ // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.has_transaction()) { - _internal_mutable_transaction()->::Catalyst::Protocol::Wire::TransactionBroadcast::MergeFrom(from._internal_transaction()); + mutable_transaction()->::Catalyst::Protocol::Wire::TransactionBroadcast::MergeFrom(from.transaction()); } } -void BroadcastRawTransactionRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void BroadcastRawTransactionRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) if (&from == this) return; Clear(); @@ -6835,33 +7317,82 @@ bool BroadcastRawTransactionRequest::IsInitialized() const { return true; } +void BroadcastRawTransactionRequest::Swap(BroadcastRawTransactionRequest* other) { + if (other == this) return; + InternalSwap(other); +} void BroadcastRawTransactionRequest::InternalSwap(BroadcastRawTransactionRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(transaction_, other->transaction_); + std::swap(transaction_, other->transaction_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BroadcastRawTransactionRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[24]; } -::PROTOBUF_NAMESPACE_ID::Metadata BroadcastRawTransactionRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// BroadcastRawTransactionRequest + +// .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; +bool BroadcastRawTransactionRequest::has_transaction() const { + return this != internal_default_instance() && transaction_ != NULL; +} +void BroadcastRawTransactionRequest::clear_transaction() { + if (GetArenaNoVirtual() == NULL && transaction_ != NULL) delete transaction_; + transaction_ = NULL; +} +const ::Catalyst::Protocol::Wire::TransactionBroadcast& BroadcastRawTransactionRequest::transaction() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.transaction) + return transaction_ != NULL ? *transaction_ + : *::Catalyst::Protocol::Wire::TransactionBroadcast::internal_default_instance(); +} +::Catalyst::Protocol::Wire::TransactionBroadcast* BroadcastRawTransactionRequest::mutable_transaction() { + + if (transaction_ == NULL) { + transaction_ = new ::Catalyst::Protocol::Wire::TransactionBroadcast; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.transaction) + return transaction_; +} +::Catalyst::Protocol::Wire::TransactionBroadcast* BroadcastRawTransactionRequest::release_transaction() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.transaction) + + ::Catalyst::Protocol::Wire::TransactionBroadcast* temp = transaction_; + transaction_ = NULL; + return temp; +} +void BroadcastRawTransactionRequest::set_allocated_transaction(::Catalyst::Protocol::Wire::TransactionBroadcast* transaction) { + delete transaction_; + transaction_ = transaction; + if (transaction) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.transaction) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void BroadcastRawTransactionResponse::InitAsDefaultInstance() { -} -class BroadcastRawTransactionResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BroadcastRawTransactionResponse::kResponseCodeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 BroadcastRawTransactionResponse::BroadcastRawTransactionResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) } BroadcastRawTransactionResponse::BroadcastRawTransactionResponse(const BroadcastRawTransactionResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); response_code_ = from.response_code_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) @@ -6869,6 +7400,7 @@ BroadcastRawTransactionResponse::BroadcastRawTransactionResponse(const Broadcast void BroadcastRawTransactionResponse::SharedCtor() { response_code_ = 0; + _cached_size_ = 0; } BroadcastRawTransactionResponse::~BroadcastRawTransactionResponse() { @@ -6880,76 +7412,100 @@ void BroadcastRawTransactionResponse::SharedDtor() { } void BroadcastRawTransactionResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* BroadcastRawTransactionResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[25].descriptor; +} + const BroadcastRawTransactionResponse& BroadcastRawTransactionResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BroadcastRawTransactionResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +BroadcastRawTransactionResponse* BroadcastRawTransactionResponse::New(::google::protobuf::Arena* arena) const { + BroadcastRawTransactionResponse* n = new BroadcastRawTransactionResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void BroadcastRawTransactionResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - response_code_ = 0; - _internal_metadata_.Clear(); } -const char* BroadcastRawTransactionResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool BroadcastRawTransactionResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - _internal_set_response_code(static_cast<::Catalyst::Protocol::Rpc::Node::ResponseCode>(val)); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_response_code(static_cast< ::Catalyst::Protocol::Rpc::Node::ResponseCode >(value)); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* BroadcastRawTransactionResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void BroadcastRawTransactionResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) // .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; if (this->response_code() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_response_code(), target); + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->response_code(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) +} + +::google::protobuf::uint8* BroadcastRawTransactionResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) + // .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; + if (this->response_code() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->response_code(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) return target; } @@ -6958,34 +7514,28 @@ size_t BroadcastRawTransactionResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; if (this->response_code() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_response_code()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->response_code()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void BroadcastRawTransactionResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void BroadcastRawTransactionResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) GOOGLE_DCHECK_NE(&from, this); const BroadcastRawTransactionResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) MergeFrom(*source); @@ -6996,15 +7546,12 @@ void BroadcastRawTransactionResponse::MergeFrom(const BroadcastRawTransactionRes // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.response_code() != 0) { - _internal_set_response_code(from._internal_response_code()); + set_response_code(from.response_code()); } } -void BroadcastRawTransactionResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void BroadcastRawTransactionResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) if (&from == this) return; Clear(); @@ -7022,33 +7569,57 @@ bool BroadcastRawTransactionResponse::IsInitialized() const { return true; } +void BroadcastRawTransactionResponse::Swap(BroadcastRawTransactionResponse* other) { + if (other == this) return; + InternalSwap(other); +} void BroadcastRawTransactionResponse::InternalSwap(BroadcastRawTransactionResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(response_code_, other->response_code_); + std::swap(response_code_, other->response_code_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BroadcastRawTransactionResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[25]; } -::PROTOBUF_NAMESPACE_ID::Metadata BroadcastRawTransactionResponse::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// BroadcastRawTransactionResponse + +// .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; +void BroadcastRawTransactionResponse::clear_response_code() { + response_code_ = 0; +} +::Catalyst::Protocol::Rpc::Node::ResponseCode BroadcastRawTransactionResponse::response_code() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.response_code) + return static_cast< ::Catalyst::Protocol::Rpc::Node::ResponseCode >(response_code_); +} +void BroadcastRawTransactionResponse::set_response_code(::Catalyst::Protocol::Rpc::Node::ResponseCode value) { + + response_code_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.response_code) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SendToRequest::InitAsDefaultInstance() { -} -class SendToRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SendToRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SendToRequest::SendToRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SendToRequest) } SendToRequest::SendToRequest(const SendToRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SendToRequest) @@ -7056,6 +7627,7 @@ SendToRequest::SendToRequest(const SendToRequest& from) void SendToRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } SendToRequest::~SendToRequest() { @@ -7067,74 +7639,97 @@ void SendToRequest::SharedDtor() { } void SendToRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SendToRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[26].descriptor; } + const SendToRequest& SendToRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendToRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SendToRequest* SendToRequest::New(::google::protobuf::Arena* arena) const { + SendToRequest* n = new SendToRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SendToRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SendToRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* SendToRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool SendToRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SendToRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SendToRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SendToRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SendToRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendToRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SendToRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SendToRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SendToRequest) +} + +::google::protobuf::uint8* SendToRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendToRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SendToRequest) return target; } @@ -7143,33 +7738,27 @@ size_t SendToRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SendToRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SendToRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendToRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SendToRequest) GOOGLE_DCHECK_NE(&from, this); const SendToRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SendToRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SendToRequest) MergeFrom(*source); @@ -7180,15 +7769,12 @@ void SendToRequest::MergeFrom(const SendToRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SendToRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void SendToRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendToRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SendToRequest) if (&from == this) return; Clear(); @@ -7206,44 +7792,68 @@ bool SendToRequest::IsInitialized() const { return true; } +void SendToRequest::Swap(SendToRequest* other) { + if (other == this) return; + InternalSwap(other); +} void SendToRequest::InternalSwap(SendToRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SendToRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[26]; } -::PROTOBUF_NAMESPACE_ID::Metadata SendToRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SendToRequest + +// bool query = 1; +void SendToRequest::clear_query() { + query_ = false; +} +bool SendToRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendToRequest.query) + return query_; +} +void SendToRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendToRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SendToResponse::InitAsDefaultInstance() { -} -class SendToResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SendToResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SendToResponse::SendToResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SendToResponse) } SendToResponse::SendToResponse(const SendToResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SendToResponse) } void SendToResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SendToResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } SendToResponse::~SendToResponse() { @@ -7252,84 +7862,114 @@ SendToResponse::~SendToResponse() { } void SendToResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void SendToResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SendToResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[27].descriptor; } + const SendToResponse& SendToResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendToResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SendToResponse* SendToResponse::New(::google::protobuf::Arena* arena) const { + SendToResponse* n = new SendToResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SendToResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SendToResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* SendToResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool SendToResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SendToResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.SendToResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.SendToResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SendToResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SendToResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SendToResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendToResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SendToResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SendToResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.SendToResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SendToResponse) +} + +::google::protobuf::uint8* SendToResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendToResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.SendToResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SendToResponse) return target; } @@ -7338,35 +7978,29 @@ size_t SendToResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SendToResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SendToResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendToResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SendToResponse) GOOGLE_DCHECK_NE(&from, this); const SendToResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SendToResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SendToResponse) MergeFrom(*source); @@ -7377,16 +8011,13 @@ void SendToResponse::MergeFrom(const SendToResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SendToResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void SendToResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendToResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SendToResponse) if (&from == this) return; Clear(); @@ -7404,34 +8035,95 @@ bool SendToResponse::IsInitialized() const { return true; } -void SendToResponse::InternalSwap(SendToResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void SendToResponse::Swap(SendToResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata SendToResponse::GetMetadata() const { - return GetMetadataStatic(); +void SendToResponse::InternalSwap(SendToResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SendToResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[27]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SendToResponse + +// string query = 1; +void SendToResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SendToResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendToResponse.query) + return query_.GetNoArena(); +} +void SendToResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendToResponse.query) +} +#if LANG_CXX11 +void SendToResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SendToResponse.query) +} +#endif +void SendToResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SendToResponse.query) +} +void SendToResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SendToResponse.query) +} +::std::string* SendToResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SendToResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SendToResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SendToResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SendToResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SendToResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SendToFromRequest::InitAsDefaultInstance() { -} -class SendToFromRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SendToFromRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SendToFromRequest::SendToFromRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SendToFromRequest) } SendToFromRequest::SendToFromRequest(const SendToFromRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SendToFromRequest) @@ -7439,6 +8131,7 @@ SendToFromRequest::SendToFromRequest(const SendToFromRequest& from) void SendToFromRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } SendToFromRequest::~SendToFromRequest() { @@ -7450,74 +8143,97 @@ void SendToFromRequest::SharedDtor() { } void SendToFromRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SendToFromRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[28].descriptor; } + const SendToFromRequest& SendToFromRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendToFromRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SendToFromRequest* SendToFromRequest::New(::google::protobuf::Arena* arena) const { + SendToFromRequest* n = new SendToFromRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SendToFromRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SendToFromRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* SendToFromRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool SendToFromRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SendToFromRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SendToFromRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SendToFromRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SendToFromRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendToFromRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SendToFromRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SendToFromRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SendToFromRequest) +} + +::google::protobuf::uint8* SendToFromRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendToFromRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SendToFromRequest) return target; } @@ -7526,33 +8242,27 @@ size_t SendToFromRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SendToFromRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SendToFromRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendToFromRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SendToFromRequest) GOOGLE_DCHECK_NE(&from, this); const SendToFromRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SendToFromRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SendToFromRequest) MergeFrom(*source); @@ -7563,15 +8273,12 @@ void SendToFromRequest::MergeFrom(const SendToFromRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SendToFromRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void SendToFromRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendToFromRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SendToFromRequest) if (&from == this) return; Clear(); @@ -7589,44 +8296,68 @@ bool SendToFromRequest::IsInitialized() const { return true; } +void SendToFromRequest::Swap(SendToFromRequest* other) { + if (other == this) return; + InternalSwap(other); +} void SendToFromRequest::InternalSwap(SendToFromRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SendToFromRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[28]; } -::PROTOBUF_NAMESPACE_ID::Metadata SendToFromRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SendToFromRequest + +// bool query = 1; +void SendToFromRequest::clear_query() { + query_ = false; +} +bool SendToFromRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendToFromRequest.query) + return query_; +} +void SendToFromRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendToFromRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SendToFromResponse::InitAsDefaultInstance() { -} -class SendToFromResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SendToFromResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SendToFromResponse::SendToFromResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SendToFromResponse) } SendToFromResponse::SendToFromResponse(const SendToFromResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SendToFromResponse) } void SendToFromResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SendToFromResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } SendToFromResponse::~SendToFromResponse() { @@ -7635,84 +8366,114 @@ SendToFromResponse::~SendToFromResponse() { } void SendToFromResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void SendToFromResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SendToFromResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[29].descriptor; } + const SendToFromResponse& SendToFromResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendToFromResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SendToFromResponse* SendToFromResponse::New(::google::protobuf::Arena* arena) const { + SendToFromResponse* n = new SendToFromResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SendToFromResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SendToFromResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* SendToFromResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool SendToFromResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SendToFromResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.SendToFromResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.SendToFromResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SendToFromResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SendToFromResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SendToFromResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendToFromResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SendToFromResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SendToFromResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.SendToFromResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SendToFromResponse) +} + +::google::protobuf::uint8* SendToFromResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendToFromResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.SendToFromResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SendToFromResponse) return target; } @@ -7721,35 +8482,29 @@ size_t SendToFromResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SendToFromResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SendToFromResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendToFromResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SendToFromResponse) GOOGLE_DCHECK_NE(&from, this); const SendToFromResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SendToFromResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SendToFromResponse) MergeFrom(*source); @@ -7760,16 +8515,13 @@ void SendToFromResponse::MergeFrom(const SendToFromResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SendToFromResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void SendToFromResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendToFromResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SendToFromResponse) if (&from == this) return; Clear(); @@ -7787,34 +8539,95 @@ bool SendToFromResponse::IsInitialized() const { return true; } -void SendToFromResponse::InternalSwap(SendToFromResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void SendToFromResponse::Swap(SendToFromResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata SendToFromResponse::GetMetadata() const { - return GetMetadataStatic(); +void SendToFromResponse::InternalSwap(SendToFromResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SendToFromResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[29]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SendToFromResponse + +// string query = 1; +void SendToFromResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SendToFromResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) + return query_.GetNoArena(); +} +void SendToFromResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) +} +#if LANG_CXX11 +void SendToFromResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) +} +#endif +void SendToFromResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) +} +void SendToFromResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) +} +::std::string* SendToFromResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SendToFromResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SendToFromResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SendManyRequest::InitAsDefaultInstance() { -} -class SendManyRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SendManyRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SendManyRequest::SendManyRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SendManyRequest) } SendManyRequest::SendManyRequest(const SendManyRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SendManyRequest) @@ -7822,6 +8635,7 @@ SendManyRequest::SendManyRequest(const SendManyRequest& from) void SendManyRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } SendManyRequest::~SendManyRequest() { @@ -7833,74 +8647,97 @@ void SendManyRequest::SharedDtor() { } void SendManyRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SendManyRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[30].descriptor; } + const SendManyRequest& SendManyRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendManyRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SendManyRequest* SendManyRequest::New(::google::protobuf::Arena* arena) const { + SendManyRequest* n = new SendManyRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SendManyRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SendManyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* SendManyRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool SendManyRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SendManyRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SendManyRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SendManyRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SendManyRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendManyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SendManyRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SendManyRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SendManyRequest) +} + +::google::protobuf::uint8* SendManyRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendManyRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SendManyRequest) return target; } @@ -7909,33 +8746,27 @@ size_t SendManyRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SendManyRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SendManyRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendManyRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SendManyRequest) GOOGLE_DCHECK_NE(&from, this); const SendManyRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SendManyRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SendManyRequest) MergeFrom(*source); @@ -7946,15 +8777,12 @@ void SendManyRequest::MergeFrom(const SendManyRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SendManyRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void SendManyRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendManyRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SendManyRequest) if (&from == this) return; Clear(); @@ -7972,44 +8800,68 @@ bool SendManyRequest::IsInitialized() const { return true; } +void SendManyRequest::Swap(SendManyRequest* other) { + if (other == this) return; + InternalSwap(other); +} void SendManyRequest::InternalSwap(SendManyRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SendManyRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[30]; } -::PROTOBUF_NAMESPACE_ID::Metadata SendManyRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SendManyRequest + +// bool query = 1; +void SendManyRequest::clear_query() { + query_ = false; +} +bool SendManyRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendManyRequest.query) + return query_; +} +void SendManyRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendManyRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SendManyResponse::InitAsDefaultInstance() { -} -class SendManyResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SendManyResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SendManyResponse::SendManyResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SendManyResponse) } SendManyResponse::SendManyResponse(const SendManyResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SendManyResponse) } void SendManyResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SendManyResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } SendManyResponse::~SendManyResponse() { @@ -8018,84 +8870,114 @@ SendManyResponse::~SendManyResponse() { } void SendManyResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void SendManyResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SendManyResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[31].descriptor; } + const SendManyResponse& SendManyResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendManyResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SendManyResponse* SendManyResponse::New(::google::protobuf::Arena* arena) const { + SendManyResponse* n = new SendManyResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SendManyResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SendManyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* SendManyResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool SendManyResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SendManyResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.SendManyResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.SendManyResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SendManyResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SendManyResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SendManyResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendManyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SendManyResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SendManyResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.SendManyResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SendManyResponse) +} + +::google::protobuf::uint8* SendManyResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendManyResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.SendManyResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SendManyResponse) return target; } @@ -8104,35 +8986,29 @@ size_t SendManyResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SendManyResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SendManyResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendManyResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SendManyResponse) GOOGLE_DCHECK_NE(&from, this); const SendManyResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SendManyResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SendManyResponse) MergeFrom(*source); @@ -8143,16 +9019,13 @@ void SendManyResponse::MergeFrom(const SendManyResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SendManyResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void SendManyResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendManyResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SendManyResponse) if (&from == this) return; Clear(); @@ -8170,34 +9043,95 @@ bool SendManyResponse::IsInitialized() const { return true; } -void SendManyResponse::InternalSwap(SendManyResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void SendManyResponse::Swap(SendManyResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata SendManyResponse::GetMetadata() const { - return GetMetadataStatic(); +void SendManyResponse::InternalSwap(SendManyResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SendManyResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[31]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SendManyResponse + +// string query = 1; +void SendManyResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SendManyResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) + return query_.GetNoArena(); +} +void SendManyResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) +} +#if LANG_CXX11 +void SendManyResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) +} +#endif +void SendManyResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) +} +void SendManyResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) +} +::std::string* SendManyResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SendManyResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SendManyResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SendFromManyRequest::InitAsDefaultInstance() { -} -class SendFromManyRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SendFromManyRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SendFromManyRequest::SendFromManyRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) } SendFromManyRequest::SendFromManyRequest(const SendFromManyRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) @@ -8205,6 +9139,7 @@ SendFromManyRequest::SendFromManyRequest(const SendFromManyRequest& from) void SendFromManyRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } SendFromManyRequest::~SendFromManyRequest() { @@ -8216,74 +9151,97 @@ void SendFromManyRequest::SharedDtor() { } void SendFromManyRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SendFromManyRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[32].descriptor; } + const SendFromManyRequest& SendFromManyRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendFromManyRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SendFromManyRequest* SendFromManyRequest::New(::google::protobuf::Arena* arena) const { + SendFromManyRequest* n = new SendFromManyRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SendFromManyRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* SendFromManyRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool SendFromManyRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SendFromManyRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SendFromManyRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) +} + +::google::protobuf::uint8* SendFromManyRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) return target; } @@ -8292,33 +9250,27 @@ size_t SendFromManyRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SendFromManyRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendFromManyRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) GOOGLE_DCHECK_NE(&from, this); const SendFromManyRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) MergeFrom(*source); @@ -8329,15 +9281,12 @@ void SendFromManyRequest::MergeFrom(const SendFromManyRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void SendFromManyRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendFromManyRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) if (&from == this) return; Clear(); @@ -8355,44 +9304,68 @@ bool SendFromManyRequest::IsInitialized() const { return true; } +void SendFromManyRequest::Swap(SendFromManyRequest* other) { + if (other == this) return; + InternalSwap(other); +} void SendFromManyRequest::InternalSwap(SendFromManyRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SendFromManyRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[32]; } -::PROTOBUF_NAMESPACE_ID::Metadata SendFromManyRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SendFromManyRequest + +// bool query = 1; +void SendFromManyRequest::clear_query() { + query_ = false; +} +bool SendFromManyRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendFromManyRequest.query) + return query_; +} +void SendFromManyRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendFromManyRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SendFromManyResponse::InitAsDefaultInstance() { -} -class SendFromManyResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SendFromManyResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SendFromManyResponse::SendFromManyResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) } SendFromManyResponse::SendFromManyResponse(const SendFromManyResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) } void SendFromManyResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SendFromManyResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } SendFromManyResponse::~SendFromManyResponse() { @@ -8401,84 +9374,114 @@ SendFromManyResponse::~SendFromManyResponse() { } void SendFromManyResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void SendFromManyResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SendFromManyResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[33].descriptor; } + const SendFromManyResponse& SendFromManyResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendFromManyResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SendFromManyResponse* SendFromManyResponse::New(::google::protobuf::Arena* arena) const { + SendFromManyResponse* n = new SendFromManyResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SendFromManyResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* SendFromManyResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool SendFromManyResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SendFromManyResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SendFromManyResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) +} + +::google::protobuf::uint8* SendFromManyResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) return target; } @@ -8487,35 +9490,29 @@ size_t SendFromManyResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SendFromManyResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendFromManyResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) GOOGLE_DCHECK_NE(&from, this); const SendFromManyResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) MergeFrom(*source); @@ -8526,16 +9523,13 @@ void SendFromManyResponse::MergeFrom(const SendFromManyResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void SendFromManyResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SendFromManyResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) if (&from == this) return; Clear(); @@ -8553,34 +9547,95 @@ bool SendFromManyResponse::IsInitialized() const { return true; } -void SendFromManyResponse::InternalSwap(SendFromManyResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void SendFromManyResponse::Swap(SendFromManyResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata SendFromManyResponse::GetMetadata() const { - return GetMetadataStatic(); +void SendFromManyResponse::InternalSwap(SendFromManyResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SendFromManyResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[33]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SendFromManyResponse + +// string query = 1; +void SendFromManyResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SendFromManyResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) + return query_.GetNoArena(); +} +void SendFromManyResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) +} +#if LANG_CXX11 +void SendFromManyResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) +} +#endif +void SendFromManyResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) +} +void SendFromManyResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) +} +::std::string* SendFromManyResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SendFromManyResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SendFromManyResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void AddNodeRequest::InitAsDefaultInstance() { -} -class AddNodeRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AddNodeRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 AddNodeRequest::AddNodeRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.AddNodeRequest) } AddNodeRequest::AddNodeRequest(const AddNodeRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.AddNodeRequest) @@ -8588,6 +9643,7 @@ AddNodeRequest::AddNodeRequest(const AddNodeRequest& from) void AddNodeRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } AddNodeRequest::~AddNodeRequest() { @@ -8599,74 +9655,97 @@ void AddNodeRequest::SharedDtor() { } void AddNodeRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AddNodeRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[34].descriptor; } + const AddNodeRequest& AddNodeRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AddNodeRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +AddNodeRequest* AddNodeRequest::New(::google::protobuf::Arena* arena) const { + AddNodeRequest* n = new AddNodeRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void AddNodeRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.AddNodeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* AddNodeRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool AddNodeRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.AddNodeRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.AddNodeRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.AddNodeRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* AddNodeRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.AddNodeRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void AddNodeRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.AddNodeRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.AddNodeRequest) +} + +::google::protobuf::uint8* AddNodeRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.AddNodeRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.AddNodeRequest) return target; } @@ -8675,33 +9754,27 @@ size_t AddNodeRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.AddNodeRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void AddNodeRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void AddNodeRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.AddNodeRequest) GOOGLE_DCHECK_NE(&from, this); const AddNodeRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.AddNodeRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.AddNodeRequest) MergeFrom(*source); @@ -8712,15 +9785,12 @@ void AddNodeRequest::MergeFrom(const AddNodeRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.AddNodeRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void AddNodeRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void AddNodeRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.AddNodeRequest) if (&from == this) return; Clear(); @@ -8738,44 +9808,68 @@ bool AddNodeRequest::IsInitialized() const { return true; } +void AddNodeRequest::Swap(AddNodeRequest* other) { + if (other == this) return; + InternalSwap(other); +} void AddNodeRequest::InternalSwap(AddNodeRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata AddNodeRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[34]; } -::PROTOBUF_NAMESPACE_ID::Metadata AddNodeRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// AddNodeRequest + +// bool query = 1; +void AddNodeRequest::clear_query() { + query_ = false; +} +bool AddNodeRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddNodeRequest.query) + return query_; +} +void AddNodeRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddNodeRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void AddNodeResponse::InitAsDefaultInstance() { -} -class AddNodeResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AddNodeResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 AddNodeResponse::AddNodeResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.AddNodeResponse) } AddNodeResponse::AddNodeResponse(const AddNodeResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.AddNodeResponse) } void AddNodeResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AddNodeResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } AddNodeResponse::~AddNodeResponse() { @@ -8784,84 +9878,114 @@ AddNodeResponse::~AddNodeResponse() { } void AddNodeResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void AddNodeResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AddNodeResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[35].descriptor; } + const AddNodeResponse& AddNodeResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AddNodeResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +AddNodeResponse* AddNodeResponse::New(::google::protobuf::Arena* arena) const { + AddNodeResponse* n = new AddNodeResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void AddNodeResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.AddNodeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* AddNodeResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool AddNodeResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.AddNodeResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.AddNodeResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.AddNodeResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.AddNodeResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.AddNodeResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* AddNodeResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.AddNodeResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void AddNodeResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.AddNodeResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.AddNodeResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.AddNodeResponse) +} + +::google::protobuf::uint8* AddNodeResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.AddNodeResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.AddNodeResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.AddNodeResponse) return target; } @@ -8870,35 +9994,29 @@ size_t AddNodeResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.AddNodeResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void AddNodeResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void AddNodeResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.AddNodeResponse) GOOGLE_DCHECK_NE(&from, this); const AddNodeResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.AddNodeResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.AddNodeResponse) MergeFrom(*source); @@ -8909,16 +10027,13 @@ void AddNodeResponse::MergeFrom(const AddNodeResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.AddNodeResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void AddNodeResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void AddNodeResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.AddNodeResponse) if (&from == this) return; Clear(); @@ -8936,39 +10051,100 @@ bool AddNodeResponse::IsInitialized() const { return true; } -void AddNodeResponse::InternalSwap(AddNodeResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void AddNodeResponse::Swap(AddNodeResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata AddNodeResponse::GetMetadata() const { - return GetMetadataStatic(); +void AddNodeResponse::InternalSwap(AddNodeResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata AddNodeResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[35]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// AddNodeResponse + +// string query = 1; +void AddNodeResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& AddNodeResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) + return query_.GetNoArena(); +} +void AddNodeResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) +} +#if LANG_CXX11 +void AddNodeResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) +} +#endif +void AddNodeResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) +} +void AddNodeResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) +} +::std::string* AddNodeResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* AddNodeResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void AddNodeResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetPeerListRequest::InitAsDefaultInstance() { -} -class GetPeerListRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetPeerListRequest::GetPeerListRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) } GetPeerListRequest::GetPeerListRequest(const GetPeerListRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) } void GetPeerListRequest::SharedCtor() { + _cached_size_ = 0; } GetPeerListRequest::~GetPeerListRequest() { @@ -8980,55 +10156,68 @@ void GetPeerListRequest::SharedDtor() { } void GetPeerListRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetPeerListRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[36].descriptor; } + const GetPeerListRequest& GetPeerListRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetPeerListRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetPeerListRequest* GetPeerListRequest::New(::google::protobuf::Arena* arena) const { + GetPeerListRequest* n = new GetPeerListRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetPeerListRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); } -const char* GetPeerListRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while +bool GetPeerListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetPeerListRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +void GetPeerListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) +} - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } +::google::protobuf::uint8* GetPeerListRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) return target; } @@ -9037,28 +10226,22 @@ size_t GetPeerListRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetPeerListRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerListRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) GOOGLE_DCHECK_NE(&from, this); const GetPeerListRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) MergeFrom(*source); @@ -9069,12 +10252,9 @@ void GetPeerListRequest::MergeFrom(const GetPeerListRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - } -void GetPeerListRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerListRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) if (&from == this) return; Clear(); @@ -9092,42 +10272,49 @@ bool GetPeerListRequest::IsInitialized() const { return true; } +void GetPeerListRequest::Swap(GetPeerListRequest* other) { + if (other == this) return; + InternalSwap(other); +} void GetPeerListRequest::InternalSwap(GetPeerListRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata GetPeerListRequest::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata GetPeerListRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[36]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetPeerListRequest + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetPeerListResponse::InitAsDefaultInstance() { -} -class GetPeerListResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetPeerListResponse::kPeersFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -void GetPeerListResponse::clear_peers() { - peers_.Clear(); -} GetPeerListResponse::GetPeerListResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) } GetPeerListResponse::GetPeerListResponse(const GetPeerListResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - peers_(from.peers_) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + peers_(from.peers_), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) } void GetPeerListResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetPeerListResponse_Rpc_2eproto.base); + _cached_size_ = 0; } GetPeerListResponse::~GetPeerListResponse() { @@ -9139,81 +10326,100 @@ void GetPeerListResponse::SharedDtor() { } void GetPeerListResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetPeerListResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[37].descriptor; } + const GetPeerListResponse& GetPeerListResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetPeerListResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetPeerListResponse* GetPeerListResponse::New(::google::protobuf::Arena* arena) const { + GetPeerListResponse* n = new GetPeerListResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetPeerListResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - peers_.Clear(); - _internal_metadata_.Clear(); } -const char* GetPeerListResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool GetPeerListResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .Catalyst.Protocol.Peer.PeerId peers = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_peers(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(input->IncrementRecursionDepth()); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + input, add_peers())); + } else { + goto handle_unusual; + } + input->UnsafeDecrementRecursionDepth(); + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetPeerListResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetPeerListResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) // repeated .Catalyst.Protocol.Peer.PeerId peers = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_peers_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_peers(i), target, stream); + for (unsigned int i = 0, n = this->peers_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->peers(i), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) +} + +::google::protobuf::uint8* GetPeerListResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) + // repeated .Catalyst.Protocol.Peer.PeerId peers = 1; + for (unsigned int i = 0, n = this->peers_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, this->peers(i), false, target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) return target; } @@ -9222,35 +10428,33 @@ size_t GetPeerListResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // repeated .Catalyst.Protocol.Peer.PeerId peers = 1; - total_size += 1UL * this->_internal_peers_size(); - for (const auto& msg : this->peers_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + { + unsigned int count = this->peers_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->peers(i)); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetPeerListResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerListResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) GOOGLE_DCHECK_NE(&from, this); const GetPeerListResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) MergeFrom(*source); @@ -9261,13 +10465,10 @@ void GetPeerListResponse::MergeFrom(const GetPeerListResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - peers_.MergeFrom(from.peers_); } -void GetPeerListResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerListResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) if (&from == this) return; Clear(); @@ -9285,49 +10486,90 @@ bool GetPeerListResponse::IsInitialized() const { return true; } +void GetPeerListResponse::Swap(GetPeerListResponse* other) { + if (other == this) return; + InternalSwap(other); +} void GetPeerListResponse::InternalSwap(GetPeerListResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - peers_.InternalSwap(&other->peers_); + peers_.UnsafeArenaSwap(&other->peers_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetPeerListResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[37]; } -::PROTOBUF_NAMESPACE_ID::Metadata GetPeerListResponse::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetPeerListResponse + +// repeated .Catalyst.Protocol.Peer.PeerId peers = 1; +int GetPeerListResponse::peers_size() const { + return peers_.size(); +} +void GetPeerListResponse::clear_peers() { + peers_.Clear(); +} +const ::Catalyst::Protocol::Peer::PeerId& GetPeerListResponse::peers(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerListResponse.peers) + return peers_.Get(index); +} +::Catalyst::Protocol::Peer::PeerId* GetPeerListResponse::mutable_peers(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerListResponse.peers) + return peers_.Mutable(index); +} +::Catalyst::Protocol::Peer::PeerId* GetPeerListResponse::add_peers() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Rpc.Node.GetPeerListResponse.peers) + return peers_.Add(); +} +::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >* +GetPeerListResponse::mutable_peers() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Rpc.Node.GetPeerListResponse.peers) + return &peers_; +} +const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >& +GetPeerListResponse::peers() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.Rpc.Node.GetPeerListResponse.peers) + return peers_; } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetPeerReputationRequest::InitAsDefaultInstance() { -} -class GetPeerReputationRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetPeerReputationRequest::kPublicKeyFieldNumber; +const int GetPeerReputationRequest::kIpFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetPeerReputationRequest::GetPeerReputationRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) } GetPeerReputationRequest::GetPeerReputationRequest(const GetPeerReputationRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_public_key().empty()) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.public_key().size() > 0) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } - ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_ip().empty()) { - ip_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.ip_); + ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.ip().size() > 0) { + ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) } void GetPeerReputationRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetPeerReputationRequest_Rpc_2eproto.base); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } GetPeerReputationRequest::~GetPeerReputationRequest() { @@ -9336,95 +10578,128 @@ GetPeerReputationRequest::~GetPeerReputationRequest() { } void GetPeerReputationRequest::SharedDtor() { - public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void GetPeerReputationRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetPeerReputationRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[38].descriptor; } + const GetPeerReputationRequest& GetPeerReputationRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetPeerReputationRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetPeerReputationRequest* GetPeerReputationRequest::New(::google::protobuf::Arena* arena) const { + GetPeerReputationRequest* n = new GetPeerReputationRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetPeerReputationRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* GetPeerReputationRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool GetPeerReputationRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes public_key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + // bytes ip = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_ip(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_ip())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetPeerReputationRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetPeerReputationRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) // bytes public_key = 1; if (this->public_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_public_key(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->public_key(), output); } // bytes ip = 2; if (this->ip().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_ip(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->ip(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) +} + +::google::protobuf::uint8* GetPeerReputationRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) + // bytes public_key = 1; + if (this->public_key().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->public_key(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // bytes ip = 2; + if (this->ip().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->ip(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) return target; } @@ -9433,42 +10708,36 @@ size_t GetPeerReputationRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes public_key = 1; if (this->public_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); } // bytes ip = 2; if (this->ip().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_ip()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->ip()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetPeerReputationRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerReputationRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) GOOGLE_DCHECK_NE(&from, this); const GetPeerReputationRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) MergeFrom(*source); @@ -9479,20 +10748,17 @@ void GetPeerReputationRequest::MergeFrom(const GetPeerReputationRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.public_key().size() > 0) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } if (from.ip().size() > 0) { - ip_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.ip_); + ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_); } } -void GetPeerReputationRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerReputationRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) if (&from == this) return; Clear(); @@ -9510,36 +10776,148 @@ bool GetPeerReputationRequest::IsInitialized() const { return true; } -void GetPeerReputationRequest::InternalSwap(GetPeerReputationRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - public_key_.Swap(&other->public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - ip_.Swap(&other->ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void GetPeerReputationRequest::Swap(GetPeerReputationRequest* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata GetPeerReputationRequest::GetMetadata() const { - return GetMetadataStatic(); +void GetPeerReputationRequest::InternalSwap(GetPeerReputationRequest* other) { + public_key_.Swap(&other->public_key_); + ip_.Swap(&other->ip_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetPeerReputationRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[38]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetPeerReputationRequest + +// bytes public_key = 1; +void GetPeerReputationRequest::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& GetPeerReputationRequest::public_key() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) + return public_key_.GetNoArena(); +} +void GetPeerReputationRequest::set_public_key(const ::std::string& value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) +} +#if LANG_CXX11 +void GetPeerReputationRequest::set_public_key(::std::string&& value) { + + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) +} +#endif +void GetPeerReputationRequest::set_public_key(const char* value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) +} +void GetPeerReputationRequest::set_public_key(const void* value, size_t size) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) +} +::std::string* GetPeerReputationRequest::mutable_public_key() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* GetPeerReputationRequest::release_public_key() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) + + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void GetPeerReputationRequest::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + + } else { + + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) +} + +// bytes ip = 2; +void GetPeerReputationRequest::clear_ip() { + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& GetPeerReputationRequest::ip() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) + return ip_.GetNoArena(); +} +void GetPeerReputationRequest::set_ip(const ::std::string& value) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) +} +#if LANG_CXX11 +void GetPeerReputationRequest::set_ip(::std::string&& value) { + + ip_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) +} +#endif +void GetPeerReputationRequest::set_ip(const char* value) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) +} +void GetPeerReputationRequest::set_ip(const void* value, size_t size) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) +} +::std::string* GetPeerReputationRequest::mutable_ip() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) + return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* GetPeerReputationRequest::release_ip() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) + + return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void GetPeerReputationRequest::set_allocated_ip(::std::string* ip) { + if (ip != NULL) { + + } else { + + } + ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetPeerReputationResponse::InitAsDefaultInstance() { -} -class GetPeerReputationResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetPeerReputationResponse::kReputationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetPeerReputationResponse::GetPeerReputationResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) } GetPeerReputationResponse::GetPeerReputationResponse(const GetPeerReputationResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); reputation_ = from.reputation_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) @@ -9547,6 +10925,7 @@ GetPeerReputationResponse::GetPeerReputationResponse(const GetPeerReputationResp void GetPeerReputationResponse::SharedCtor() { reputation_ = 0; + _cached_size_ = 0; } GetPeerReputationResponse::~GetPeerReputationResponse() { @@ -9558,74 +10937,97 @@ void GetPeerReputationResponse::SharedDtor() { } void GetPeerReputationResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetPeerReputationResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[39].descriptor; } + const GetPeerReputationResponse& GetPeerReputationResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetPeerReputationResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetPeerReputationResponse* GetPeerReputationResponse::New(::google::protobuf::Arena* arena) const { + GetPeerReputationResponse* n = new GetPeerReputationResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetPeerReputationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - reputation_ = 0; - _internal_metadata_.Clear(); } -const char* GetPeerReputationResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool GetPeerReputationResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 reputation = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - reputation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &reputation_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetPeerReputationResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetPeerReputationResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) // int32 reputation = 1; if (this->reputation() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_reputation(), target); + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->reputation(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) +} + +::google::protobuf::uint8* GetPeerReputationResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) + // int32 reputation = 1; + if (this->reputation() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->reputation(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) return target; } @@ -9634,35 +11036,29 @@ size_t GetPeerReputationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // int32 reputation = 1; if (this->reputation() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_reputation()); + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->reputation()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetPeerReputationResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerReputationResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) GOOGLE_DCHECK_NE(&from, this); const GetPeerReputationResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) MergeFrom(*source); @@ -9673,15 +11069,12 @@ void GetPeerReputationResponse::MergeFrom(const GetPeerReputationResponse& from) // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.reputation() != 0) { - _internal_set_reputation(from._internal_reputation()); + set_reputation(from.reputation()); } } -void GetPeerReputationResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerReputationResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) if (&from == this) return; Clear(); @@ -9699,51 +11092,77 @@ bool GetPeerReputationResponse::IsInitialized() const { return true; } +void GetPeerReputationResponse::Swap(GetPeerReputationResponse* other) { + if (other == this) return; + InternalSwap(other); +} void GetPeerReputationResponse::InternalSwap(GetPeerReputationResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(reputation_, other->reputation_); + std::swap(reputation_, other->reputation_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetPeerReputationResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[39]; } -::PROTOBUF_NAMESPACE_ID::Metadata GetPeerReputationResponse::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetPeerReputationResponse + +// int32 reputation = 1; +void GetPeerReputationResponse::clear_reputation() { + reputation_ = 0; +} +::google::protobuf::int32 GetPeerReputationResponse::reputation() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.reputation) + return reputation_; +} +void GetPeerReputationResponse::set_reputation(::google::protobuf::int32 value) { + + reputation_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.reputation) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SetPeerBlackListRequest::InitAsDefaultInstance() { -} -class SetPeerBlackListRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SetPeerBlackListRequest::kPublicKeyFieldNumber; +const int SetPeerBlackListRequest::kIpFieldNumber; +const int SetPeerBlackListRequest::kBlacklistFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SetPeerBlackListRequest::SetPeerBlackListRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) } SetPeerBlackListRequest::SetPeerBlackListRequest(const SetPeerBlackListRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_public_key().empty()) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.public_key().size() > 0) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } - ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_ip().empty()) { - ip_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.ip_); + ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.ip().size() > 0) { + ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_); } blacklist_ = from.blacklist_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) } void SetPeerBlackListRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SetPeerBlackListRequest_Rpc_2eproto.base); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); blacklist_ = false; + _cached_size_ = 0; } SetPeerBlackListRequest::~SetPeerBlackListRequest() { @@ -9752,109 +11171,152 @@ SetPeerBlackListRequest::~SetPeerBlackListRequest() { } void SetPeerBlackListRequest::SharedDtor() { - public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void SetPeerBlackListRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* SetPeerBlackListRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[40].descriptor; +} + const SetPeerBlackListRequest& SetPeerBlackListRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SetPeerBlackListRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SetPeerBlackListRequest* SetPeerBlackListRequest::New(::google::protobuf::Arena* arena) const { + SetPeerBlackListRequest* n = new SetPeerBlackListRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SetPeerBlackListRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); blacklist_ = false; - _internal_metadata_.Clear(); } -const char* SetPeerBlackListRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool SetPeerBlackListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes public_key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + // bytes ip = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_ip(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_ip())); + } else { + goto handle_unusual; + } + break; + } + // bool blacklist = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - blacklist_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 24u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &blacklist_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SetPeerBlackListRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SetPeerBlackListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) // bytes public_key = 1; if (this->public_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_public_key(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->public_key(), output); } // bytes ip = 2; if (this->ip().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_ip(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->ip(), output); } // bool blacklist = 3; if (this->blacklist() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_blacklist(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->blacklist(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) +} + +::google::protobuf::uint8* SetPeerBlackListRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) + // bytes public_key = 1; + if (this->public_key().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->public_key(), target); + } + + // bytes ip = 2; + if (this->ip().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->ip(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // bool blacklist = 3; + if (this->blacklist() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->blacklist(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) return target; } @@ -9863,22 +11325,18 @@ size_t SetPeerBlackListRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes public_key = 1; if (this->public_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); } // bytes ip = 2; if (this->ip().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_ip()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->ip()); } // bool blacklist = 3; @@ -9886,24 +11344,22 @@ size_t SetPeerBlackListRequest::ByteSizeLong() const { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SetPeerBlackListRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SetPeerBlackListRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) GOOGLE_DCHECK_NE(&from, this); const SetPeerBlackListRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) MergeFrom(*source); @@ -9914,23 +11370,20 @@ void SetPeerBlackListRequest::MergeFrom(const SetPeerBlackListRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.public_key().size() > 0) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } if (from.ip().size() > 0) { - ip_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.ip_); + ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_); } if (from.blacklist() != 0) { - _internal_set_blacklist(from._internal_blacklist()); + set_blacklist(from.blacklist()); } } -void SetPeerBlackListRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SetPeerBlackListRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) if (&from == this) return; Clear(); @@ -9948,55 +11401,183 @@ bool SetPeerBlackListRequest::IsInitialized() const { return true; } +void SetPeerBlackListRequest::Swap(SetPeerBlackListRequest* other) { + if (other == this) return; + InternalSwap(other); +} void SetPeerBlackListRequest::InternalSwap(SetPeerBlackListRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - public_key_.Swap(&other->public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - ip_.Swap(&other->ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(blacklist_, other->blacklist_); + public_key_.Swap(&other->public_key_); + ip_.Swap(&other->ip_); + std::swap(blacklist_, other->blacklist_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SetPeerBlackListRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[40]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SetPeerBlackListRequest + +// bytes public_key = 1; +void SetPeerBlackListRequest::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SetPeerBlackListRequest::public_key() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) + return public_key_.GetNoArena(); +} +void SetPeerBlackListRequest::set_public_key(const ::std::string& value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) +} +#if LANG_CXX11 +void SetPeerBlackListRequest::set_public_key(::std::string&& value) { + + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) +} +#endif +void SetPeerBlackListRequest::set_public_key(const char* value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) +} +void SetPeerBlackListRequest::set_public_key(const void* value, size_t size) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) +} +::std::string* SetPeerBlackListRequest::mutable_public_key() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SetPeerBlackListRequest::release_public_key() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) + + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SetPeerBlackListRequest::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + + } else { + + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) +} + +// bytes ip = 2; +void SetPeerBlackListRequest::clear_ip() { + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SetPeerBlackListRequest::ip() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) + return ip_.GetNoArena(); +} +void SetPeerBlackListRequest::set_ip(const ::std::string& value) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) +} +#if LANG_CXX11 +void SetPeerBlackListRequest::set_ip(::std::string&& value) { + + ip_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) +} +#endif +void SetPeerBlackListRequest::set_ip(const char* value) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) +} +void SetPeerBlackListRequest::set_ip(const void* value, size_t size) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) +} +::std::string* SetPeerBlackListRequest::mutable_ip() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) + return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SetPeerBlackListRequest::release_ip() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) + + return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SetPeerBlackListRequest::set_allocated_ip(::std::string* ip) { + if (ip != NULL) { + + } else { + + } + ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) } -::PROTOBUF_NAMESPACE_ID::Metadata SetPeerBlackListRequest::GetMetadata() const { - return GetMetadataStatic(); +// bool blacklist = 3; +void SetPeerBlackListRequest::clear_blacklist() { + blacklist_ = false; +} +bool SetPeerBlackListRequest::blacklist() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.blacklist) + return blacklist_; +} +void SetPeerBlackListRequest::set_blacklist(bool value) { + + blacklist_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.blacklist) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SetPeerBlackListResponse::InitAsDefaultInstance() { -} -class SetPeerBlackListResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SetPeerBlackListResponse::kPublicKeyFieldNumber; +const int SetPeerBlackListResponse::kIpFieldNumber; +const int SetPeerBlackListResponse::kBlacklistFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SetPeerBlackListResponse::SetPeerBlackListResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) } SetPeerBlackListResponse::SetPeerBlackListResponse(const SetPeerBlackListResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_public_key().empty()) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.public_key().size() > 0) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } - ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_ip().empty()) { - ip_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.ip_); + ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.ip().size() > 0) { + ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_); } blacklist_ = from.blacklist_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) } void SetPeerBlackListResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SetPeerBlackListResponse_Rpc_2eproto.base); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); blacklist_ = false; + _cached_size_ = 0; } SetPeerBlackListResponse::~SetPeerBlackListResponse() { @@ -10005,109 +11586,152 @@ SetPeerBlackListResponse::~SetPeerBlackListResponse() { } void SetPeerBlackListResponse::SharedDtor() { - public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void SetPeerBlackListResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SetPeerBlackListResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[41].descriptor; } + const SetPeerBlackListResponse& SetPeerBlackListResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SetPeerBlackListResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SetPeerBlackListResponse* SetPeerBlackListResponse::New(::google::protobuf::Arena* arena) const { + SetPeerBlackListResponse* n = new SetPeerBlackListResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SetPeerBlackListResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); blacklist_ = false; - _internal_metadata_.Clear(); } -const char* SetPeerBlackListResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool SetPeerBlackListResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes public_key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + // bytes ip = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_ip(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_ip())); + } else { + goto handle_unusual; + } + break; + } + // bool blacklist = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - blacklist_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 24u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &blacklist_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SetPeerBlackListResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SetPeerBlackListResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) // bytes public_key = 1; if (this->public_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_public_key(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->public_key(), output); } // bytes ip = 2; if (this->ip().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_ip(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->ip(), output); } // bool blacklist = 3; if (this->blacklist() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_blacklist(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->blacklist(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) +} + +::google::protobuf::uint8* SetPeerBlackListResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) + // bytes public_key = 1; + if (this->public_key().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->public_key(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // bytes ip = 2; + if (this->ip().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->ip(), target); + } + + // bool blacklist = 3; + if (this->blacklist() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->blacklist(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) return target; } @@ -10116,22 +11740,18 @@ size_t SetPeerBlackListResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes public_key = 1; if (this->public_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); } // bytes ip = 2; if (this->ip().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_ip()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->ip()); } // bool blacklist = 3; @@ -10139,24 +11759,22 @@ size_t SetPeerBlackListResponse::ByteSizeLong() const { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SetPeerBlackListResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SetPeerBlackListResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) GOOGLE_DCHECK_NE(&from, this); const SetPeerBlackListResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) MergeFrom(*source); @@ -10167,23 +11785,20 @@ void SetPeerBlackListResponse::MergeFrom(const SetPeerBlackListResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.public_key().size() > 0) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } if (from.ip().size() > 0) { - ip_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.ip_); + ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_); } if (from.blacklist() != 0) { - _internal_set_blacklist(from._internal_blacklist()); + set_blacklist(from.blacklist()); } } -void SetPeerBlackListResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SetPeerBlackListResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) if (&from == this) return; Clear(); @@ -10201,53 +11816,180 @@ bool SetPeerBlackListResponse::IsInitialized() const { return true; } +void SetPeerBlackListResponse::Swap(SetPeerBlackListResponse* other) { + if (other == this) return; + InternalSwap(other); +} void SetPeerBlackListResponse::InternalSwap(SetPeerBlackListResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - public_key_.Swap(&other->public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - ip_.Swap(&other->ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(blacklist_, other->blacklist_); + public_key_.Swap(&other->public_key_); + ip_.Swap(&other->ip_); + std::swap(blacklist_, other->blacklist_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SetPeerBlackListResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[41]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SetPeerBlackListResponse + +// bytes public_key = 1; +void SetPeerBlackListResponse::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SetPeerBlackListResponse::public_key() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) + return public_key_.GetNoArena(); +} +void SetPeerBlackListResponse::set_public_key(const ::std::string& value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) +} +#if LANG_CXX11 +void SetPeerBlackListResponse::set_public_key(::std::string&& value) { + + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) +} +#endif +void SetPeerBlackListResponse::set_public_key(const char* value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) +} +void SetPeerBlackListResponse::set_public_key(const void* value, size_t size) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) +} +::std::string* SetPeerBlackListResponse::mutable_public_key() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SetPeerBlackListResponse::release_public_key() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) + + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SetPeerBlackListResponse::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + + } else { + + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) +} + +// bytes ip = 2; +void SetPeerBlackListResponse::clear_ip() { + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SetPeerBlackListResponse::ip() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) + return ip_.GetNoArena(); +} +void SetPeerBlackListResponse::set_ip(const ::std::string& value) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) +} +#if LANG_CXX11 +void SetPeerBlackListResponse::set_ip(::std::string&& value) { + + ip_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) +} +#endif +void SetPeerBlackListResponse::set_ip(const char* value) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) +} +void SetPeerBlackListResponse::set_ip(const void* value, size_t size) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) +} +::std::string* SetPeerBlackListResponse::mutable_ip() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) + return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SetPeerBlackListResponse::release_ip() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) + + return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SetPeerBlackListResponse::set_allocated_ip(::std::string* ip) { + if (ip != NULL) { + + } else { + + } + ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) } -::PROTOBUF_NAMESPACE_ID::Metadata SetPeerBlackListResponse::GetMetadata() const { - return GetMetadataStatic(); +// bool blacklist = 3; +void SetPeerBlackListResponse::clear_blacklist() { + blacklist_ = false; +} +bool SetPeerBlackListResponse::blacklist() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.blacklist) + return blacklist_; +} +void SetPeerBlackListResponse::set_blacklist(bool value) { + + blacklist_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.blacklist) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetPeerInfoRequest::InitAsDefaultInstance() { -} -class GetPeerInfoRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetPeerInfoRequest::kPublicKeyFieldNumber; +const int GetPeerInfoRequest::kIpFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetPeerInfoRequest::GetPeerInfoRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) } GetPeerInfoRequest::GetPeerInfoRequest(const GetPeerInfoRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_public_key().empty()) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.public_key().size() > 0) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } - ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_ip().empty()) { - ip_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.ip_); + ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.ip().size() > 0) { + ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) } void GetPeerInfoRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetPeerInfoRequest_Rpc_2eproto.base); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } GetPeerInfoRequest::~GetPeerInfoRequest() { @@ -10256,95 +11998,128 @@ GetPeerInfoRequest::~GetPeerInfoRequest() { } void GetPeerInfoRequest::SharedDtor() { - public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void GetPeerInfoRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* GetPeerInfoRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[42].descriptor; +} + const GetPeerInfoRequest& GetPeerInfoRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetPeerInfoRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetPeerInfoRequest* GetPeerInfoRequest::New(::google::protobuf::Arena* arena) const { + GetPeerInfoRequest* n = new GetPeerInfoRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetPeerInfoRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* GetPeerInfoRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool GetPeerInfoRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes public_key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + // bytes ip = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_ip(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_ip())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) + return false; +#undef DO_ +} + +void GetPeerInfoRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) + // bytes public_key = 1; + if (this->public_key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->public_key(), output); + } + + // bytes ip = 2; + if (this->ip().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->ip(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) } -::PROTOBUF_NAMESPACE_ID::uint8* GetPeerInfoRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::google::protobuf::uint8* GetPeerInfoRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - // bytes public_key = 1; if (this->public_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_public_key(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->public_key(), target); } // bytes ip = 2; if (this->ip().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_ip(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->ip(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) return target; } @@ -10353,42 +12128,36 @@ size_t GetPeerInfoRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes public_key = 1; if (this->public_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); } // bytes ip = 2; if (this->ip().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_ip()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->ip()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetPeerInfoRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) GOOGLE_DCHECK_NE(&from, this); const GetPeerInfoRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) MergeFrom(*source); @@ -10399,20 +12168,17 @@ void GetPeerInfoRequest::MergeFrom(const GetPeerInfoRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.public_key().size() > 0) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } if (from.ip().size() > 0) { - ip_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.ip_); + ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_); } } -void GetPeerInfoRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) if (&from == this) return; Clear(); @@ -10430,46 +12196,155 @@ bool GetPeerInfoRequest::IsInitialized() const { return true; } -void GetPeerInfoRequest::InternalSwap(GetPeerInfoRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - public_key_.Swap(&other->public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - ip_.Swap(&other->ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void GetPeerInfoRequest::Swap(GetPeerInfoRequest* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata GetPeerInfoRequest::GetMetadata() const { - return GetMetadataStatic(); +void GetPeerInfoRequest::InternalSwap(GetPeerInfoRequest* other) { + public_key_.Swap(&other->public_key_); + ip_.Swap(&other->ip_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetPeerInfoRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[42]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetPeerInfoRequest + +// bytes public_key = 1; +void GetPeerInfoRequest::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& GetPeerInfoRequest::public_key() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) + return public_key_.GetNoArena(); +} +void GetPeerInfoRequest::set_public_key(const ::std::string& value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) +} +#if LANG_CXX11 +void GetPeerInfoRequest::set_public_key(::std::string&& value) { + + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) +} +#endif +void GetPeerInfoRequest::set_public_key(const char* value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) +} +void GetPeerInfoRequest::set_public_key(const void* value, size_t size) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) +} +::std::string* GetPeerInfoRequest::mutable_public_key() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* GetPeerInfoRequest::release_public_key() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) + + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void GetPeerInfoRequest::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + + } else { + + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) +} + +// bytes ip = 2; +void GetPeerInfoRequest::clear_ip() { + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& GetPeerInfoRequest::ip() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) + return ip_.GetNoArena(); +} +void GetPeerInfoRequest::set_ip(const ::std::string& value) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) +} +#if LANG_CXX11 +void GetPeerInfoRequest::set_ip(::std::string&& value) { + + ip_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) +} +#endif +void GetPeerInfoRequest::set_ip(const char* value) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) +} +void GetPeerInfoRequest::set_ip(const void* value, size_t size) { + + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) +} +::std::string* GetPeerInfoRequest::mutable_ip() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) + return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* GetPeerInfoRequest::release_ip() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) + + return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void GetPeerInfoRequest::set_allocated_ip(::std::string* ip) { + if (ip != NULL) { + + } else { + + } + ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetPeerInfoResponse::InitAsDefaultInstance() { -} -class GetPeerInfoResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetPeerInfoResponse::kPeerInfoFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -void GetPeerInfoResponse::clear_peer_info() { - peer_info_.Clear(); -} GetPeerInfoResponse::GetPeerInfoResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) } GetPeerInfoResponse::GetPeerInfoResponse(const GetPeerInfoResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - peer_info_(from.peer_info_) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + peer_info_(from.peer_info_), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) } void GetPeerInfoResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetPeerInfoResponse_Rpc_2eproto.base); + _cached_size_ = 0; } GetPeerInfoResponse::~GetPeerInfoResponse() { @@ -10481,81 +12356,100 @@ void GetPeerInfoResponse::SharedDtor() { } void GetPeerInfoResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetPeerInfoResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[43].descriptor; } + const GetPeerInfoResponse& GetPeerInfoResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetPeerInfoResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetPeerInfoResponse* GetPeerInfoResponse::New(::google::protobuf::Arena* arena) const { + GetPeerInfoResponse* n = new GetPeerInfoResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetPeerInfoResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - peer_info_.Clear(); - _internal_metadata_.Clear(); } -const char* GetPeerInfoResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool GetPeerInfoResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_peer_info(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(input->IncrementRecursionDepth()); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + input, add_peer_info())); + } else { + goto handle_unusual; + } + input->UnsafeDecrementRecursionDepth(); + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetPeerInfoResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetPeerInfoResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) // repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_peer_info_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_peer_info(i), target, stream); + for (unsigned int i = 0, n = this->peer_info_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->peer_info(i), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) +} + +::google::protobuf::uint8* GetPeerInfoResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) + // repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; + for (unsigned int i = 0, n = this->peer_info_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, this->peer_info(i), false, target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) return target; } @@ -10564,35 +12458,33 @@ size_t GetPeerInfoResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; - total_size += 1UL * this->_internal_peer_info_size(); - for (const auto& msg : this->peer_info_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + { + unsigned int count = this->peer_info_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->peer_info(i)); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetPeerInfoResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerInfoResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) GOOGLE_DCHECK_NE(&from, this); const GetPeerInfoResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) MergeFrom(*source); @@ -10603,13 +12495,10 @@ void GetPeerInfoResponse::MergeFrom(const GetPeerInfoResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - peer_info_.MergeFrom(from.peer_info_); } -void GetPeerInfoResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerInfoResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) if (&from == this) return; Clear(); @@ -10627,33 +12516,73 @@ bool GetPeerInfoResponse::IsInitialized() const { return true; } +void GetPeerInfoResponse::Swap(GetPeerInfoResponse* other) { + if (other == this) return; + InternalSwap(other); +} void GetPeerInfoResponse::InternalSwap(GetPeerInfoResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - peer_info_.InternalSwap(&other->peer_info_); + peer_info_.UnsafeArenaSwap(&other->peer_info_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetPeerInfoResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[43]; } -::PROTOBUF_NAMESPACE_ID::Metadata GetPeerInfoResponse::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetPeerInfoResponse + +// repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; +int GetPeerInfoResponse::peer_info_size() const { + return peer_info_.size(); +} +void GetPeerInfoResponse::clear_peer_info() { + peer_info_.Clear(); +} +const ::Catalyst::Protocol::Peer::PeerInfo& GetPeerInfoResponse::peer_info(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.peer_info) + return peer_info_.Get(index); +} +::Catalyst::Protocol::Peer::PeerInfo* GetPeerInfoResponse::mutable_peer_info(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.peer_info) + return peer_info_.Mutable(index); +} +::Catalyst::Protocol::Peer::PeerInfo* GetPeerInfoResponse::add_peer_info() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.peer_info) + return peer_info_.Add(); +} +::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerInfo >* +GetPeerInfoResponse::mutable_peer_info() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.peer_info) + return &peer_info_; +} +const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerInfo >& +GetPeerInfoResponse::peer_info() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.peer_info) + return peer_info_; } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetConnectionCountRequest::InitAsDefaultInstance() { -} -class GetConnectionCountRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetConnectionCountRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetConnectionCountRequest::GetConnectionCountRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) } GetConnectionCountRequest::GetConnectionCountRequest(const GetConnectionCountRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) @@ -10661,6 +12590,7 @@ GetConnectionCountRequest::GetConnectionCountRequest(const GetConnectionCountReq void GetConnectionCountRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } GetConnectionCountRequest::~GetConnectionCountRequest() { @@ -10672,74 +12602,97 @@ void GetConnectionCountRequest::SharedDtor() { } void GetConnectionCountRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetConnectionCountRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[44].descriptor; } + const GetConnectionCountRequest& GetConnectionCountRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetConnectionCountRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetConnectionCountRequest* GetConnectionCountRequest::New(::google::protobuf::Arena* arena) const { + GetConnectionCountRequest* n = new GetConnectionCountRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetConnectionCountRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* GetConnectionCountRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool GetConnectionCountRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetConnectionCountRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetConnectionCountRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) +} + +::google::protobuf::uint8* GetConnectionCountRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) return target; } @@ -10748,33 +12701,27 @@ size_t GetConnectionCountRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetConnectionCountRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetConnectionCountRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) GOOGLE_DCHECK_NE(&from, this); const GetConnectionCountRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) MergeFrom(*source); @@ -10785,15 +12732,12 @@ void GetConnectionCountRequest::MergeFrom(const GetConnectionCountRequest& from) // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void GetConnectionCountRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetConnectionCountRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) if (&from == this) return; Clear(); @@ -10811,44 +12755,68 @@ bool GetConnectionCountRequest::IsInitialized() const { return true; } +void GetConnectionCountRequest::Swap(GetConnectionCountRequest* other) { + if (other == this) return; + InternalSwap(other); +} void GetConnectionCountRequest::InternalSwap(GetConnectionCountRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetConnectionCountRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[44]; } -::PROTOBUF_NAMESPACE_ID::Metadata GetConnectionCountRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetConnectionCountRequest + +// bool query = 1; +void GetConnectionCountRequest::clear_query() { + query_ = false; +} +bool GetConnectionCountRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.query) + return query_; +} +void GetConnectionCountRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetConnectionCountResponse::InitAsDefaultInstance() { -} -class GetConnectionCountResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetConnectionCountResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetConnectionCountResponse::GetConnectionCountResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) } GetConnectionCountResponse::GetConnectionCountResponse(const GetConnectionCountResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) } void GetConnectionCountResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetConnectionCountResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } GetConnectionCountResponse::~GetConnectionCountResponse() { @@ -10857,84 +12825,114 @@ GetConnectionCountResponse::~GetConnectionCountResponse() { } void GetConnectionCountResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void GetConnectionCountResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetConnectionCountResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[45].descriptor; } + const GetConnectionCountResponse& GetConnectionCountResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetConnectionCountResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetConnectionCountResponse* GetConnectionCountResponse::New(::google::protobuf::Arena* arena) const { + GetConnectionCountResponse* n = new GetConnectionCountResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetConnectionCountResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* GetConnectionCountResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool GetConnectionCountResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetConnectionCountResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetConnectionCountResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) +} + +::google::protobuf::uint8* GetConnectionCountResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) return target; } @@ -10943,35 +12941,29 @@ size_t GetConnectionCountResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetConnectionCountResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetConnectionCountResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) GOOGLE_DCHECK_NE(&from, this); const GetConnectionCountResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) MergeFrom(*source); @@ -10982,16 +12974,13 @@ void GetConnectionCountResponse::MergeFrom(const GetConnectionCountResponse& fro // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void GetConnectionCountResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetConnectionCountResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) if (&from == this) return; Clear(); @@ -11009,45 +12998,106 @@ bool GetConnectionCountResponse::IsInitialized() const { return true; } -void GetConnectionCountResponse::InternalSwap(GetConnectionCountResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void GetConnectionCountResponse::Swap(GetConnectionCountResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata GetConnectionCountResponse::GetMetadata() const { - return GetMetadataStatic(); +void GetConnectionCountResponse::InternalSwap(GetConnectionCountResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetConnectionCountResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[45]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetConnectionCountResponse + +// string query = 1; +void GetConnectionCountResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& GetConnectionCountResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) + return query_.GetNoArena(); +} +void GetConnectionCountResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) +} +#if LANG_CXX11 +void GetConnectionCountResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) +} +#endif +void GetConnectionCountResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) +} +void GetConnectionCountResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) +} +::std::string* GetConnectionCountResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* GetConnectionCountResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void GetConnectionCountResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetDeltaRequest::InitAsDefaultInstance() { -} -class GetDeltaRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetDeltaRequest::kDeltaDfsHashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetDeltaRequest::GetDeltaRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) } GetDeltaRequest::GetDeltaRequest(const GetDeltaRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - delta_dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_delta_dfs_hash().empty()) { - delta_dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.delta_dfs_hash_); + delta_dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.delta_dfs_hash().size() > 0) { + delta_dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.delta_dfs_hash_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) } void GetDeltaRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetDeltaRequest_Rpc_2eproto.base); - delta_dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + delta_dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } GetDeltaRequest::~GetDeltaRequest() { @@ -11056,79 +13106,102 @@ GetDeltaRequest::~GetDeltaRequest() { } void GetDeltaRequest::SharedDtor() { - delta_dfs_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + delta_dfs_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void GetDeltaRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* GetDeltaRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[46].descriptor; +} + const GetDeltaRequest& GetDeltaRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetDeltaRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetDeltaRequest* GetDeltaRequest::New(::google::protobuf::Arena* arena) const { + GetDeltaRequest* n = new GetDeltaRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetDeltaRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - delta_dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* GetDeltaRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool GetDeltaRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes delta_dfs_hash = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_delta_dfs_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_delta_dfs_hash())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetDeltaRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetDeltaRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) // bytes delta_dfs_hash = 1; if (this->delta_dfs_hash().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_delta_dfs_hash(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->delta_dfs_hash(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) +} + +::google::protobuf::uint8* GetDeltaRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) + // bytes delta_dfs_hash = 1; + if (this->delta_dfs_hash().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->delta_dfs_hash(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) return target; } @@ -11137,35 +13210,29 @@ size_t GetDeltaRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes delta_dfs_hash = 1; if (this->delta_dfs_hash().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_delta_dfs_hash()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->delta_dfs_hash()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetDeltaRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetDeltaRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) GOOGLE_DCHECK_NE(&from, this); const GetDeltaRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) MergeFrom(*source); @@ -11176,16 +13243,13 @@ void GetDeltaRequest::MergeFrom(const GetDeltaRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.delta_dfs_hash().size() > 0) { - delta_dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.delta_dfs_hash_); + delta_dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.delta_dfs_hash_); } } -void GetDeltaRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetDeltaRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) if (&from == this) return; Clear(); @@ -11203,59 +13267,107 @@ bool GetDeltaRequest::IsInitialized() const { return true; } -void GetDeltaRequest::InternalSwap(GetDeltaRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - delta_dfs_hash_.Swap(&other->delta_dfs_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void GetDeltaRequest::Swap(GetDeltaRequest* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata GetDeltaRequest::GetMetadata() const { - return GetMetadataStatic(); +void GetDeltaRequest::InternalSwap(GetDeltaRequest* other) { + delta_dfs_hash_.Swap(&other->delta_dfs_hash_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetDeltaRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[46]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetDeltaRequest + +// bytes delta_dfs_hash = 1; +void GetDeltaRequest::clear_delta_dfs_hash() { + delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& GetDeltaRequest::delta_dfs_hash() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) + return delta_dfs_hash_.GetNoArena(); +} +void GetDeltaRequest::set_delta_dfs_hash(const ::std::string& value) { + + delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) +} +#if LANG_CXX11 +void GetDeltaRequest::set_delta_dfs_hash(::std::string&& value) { + + delta_dfs_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) +} +#endif +void GetDeltaRequest::set_delta_dfs_hash(const char* value) { + + delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) +} +void GetDeltaRequest::set_delta_dfs_hash(const void* value, size_t size) { + + delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) +} +::std::string* GetDeltaRequest::mutable_delta_dfs_hash() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) + return delta_dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* GetDeltaRequest::release_delta_dfs_hash() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) + + return delta_dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void GetDeltaRequest::set_allocated_delta_dfs_hash(::std::string* delta_dfs_hash) { + if (delta_dfs_hash != NULL) { + + } else { + + } + delta_dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delta_dfs_hash); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetDeltaResponse::InitAsDefaultInstance() { - ::Catalyst::Protocol::Rpc::Node::_GetDeltaResponse_default_instance_._instance.get_mutable()->delta_ = const_cast< ::Catalyst::Protocol::Deltas::Delta*>( - ::Catalyst::Protocol::Deltas::Delta::internal_default_instance()); -} -class GetDeltaResponse::_Internal { - public: - static const ::Catalyst::Protocol::Deltas::Delta& delta(const GetDeltaResponse* msg); -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetDeltaResponse::kDeltaFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::Catalyst::Protocol::Deltas::Delta& -GetDeltaResponse::_Internal::delta(const GetDeltaResponse* msg) { - return *msg->delta_; -} -void GetDeltaResponse::clear_delta() { - if (GetArenaNoVirtual() == nullptr && delta_ != nullptr) { - delete delta_; - } - delta_ = nullptr; -} GetDeltaResponse::GetDeltaResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) } GetDeltaResponse::GetDeltaResponse(const GetDeltaResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_delta()) { + if (from.has_delta()) { delta_ = new ::Catalyst::Protocol::Deltas::Delta(*from.delta_); } else { - delta_ = nullptr; + delta_ = NULL; } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) } void GetDeltaResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetDeltaResponse_Rpc_2eproto.base); - delta_ = nullptr; + delta_ = NULL; + _cached_size_ = 0; } GetDeltaResponse::~GetDeltaResponse() { @@ -11264,83 +13376,107 @@ GetDeltaResponse::~GetDeltaResponse() { } void GetDeltaResponse::SharedDtor() { - if (this != internal_default_instance()) delete delta_; + if (this != internal_default_instance()) { + delete delta_; + } } void GetDeltaResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* GetDeltaResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[47].descriptor; +} + const GetDeltaResponse& GetDeltaResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetDeltaResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetDeltaResponse* GetDeltaResponse::New(::google::protobuf::Arena* arena) const { + GetDeltaResponse* n = new GetDeltaResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetDeltaResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && delta_ != nullptr) { + if (GetArenaNoVirtual() == NULL && delta_ != NULL) { delete delta_; } - delta_ = nullptr; - _internal_metadata_.Clear(); + delta_ = NULL; } -const char* GetDeltaResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool GetDeltaResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .Catalyst.Protocol.Deltas.Delta delta = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_delta(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_delta())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetDeltaResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetDeltaResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) // .Catalyst.Protocol.Deltas.Delta delta = 1; if (this->has_delta()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::delta(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->delta_, output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) +} + +::google::protobuf::uint8* GetDeltaResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) + // .Catalyst.Protocol.Deltas.Delta delta = 1; + if (this->has_delta()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *this->delta_, false, target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) return target; } @@ -11349,35 +13485,29 @@ size_t GetDeltaResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // .Catalyst.Protocol.Deltas.Delta delta = 1; if (this->has_delta()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *delta_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->delta_); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetDeltaResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetDeltaResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) GOOGLE_DCHECK_NE(&from, this); const GetDeltaResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) MergeFrom(*source); @@ -11388,15 +13518,12 @@ void GetDeltaResponse::MergeFrom(const GetDeltaResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.has_delta()) { - _internal_mutable_delta()->::Catalyst::Protocol::Deltas::Delta::MergeFrom(from._internal_delta()); + mutable_delta()->::Catalyst::Protocol::Deltas::Delta::MergeFrom(from.delta()); } } -void GetDeltaResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetDeltaResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) if (&from == this) return; Clear(); @@ -11414,33 +13541,82 @@ bool GetDeltaResponse::IsInitialized() const { return true; } +void GetDeltaResponse::Swap(GetDeltaResponse* other) { + if (other == this) return; + InternalSwap(other); +} void GetDeltaResponse::InternalSwap(GetDeltaResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(delta_, other->delta_); + std::swap(delta_, other->delta_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetDeltaResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[47]; } -::PROTOBUF_NAMESPACE_ID::Metadata GetDeltaResponse::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetDeltaResponse + +// .Catalyst.Protocol.Deltas.Delta delta = 1; +bool GetDeltaResponse::has_delta() const { + return this != internal_default_instance() && delta_ != NULL; +} +void GetDeltaResponse::clear_delta() { + if (GetArenaNoVirtual() == NULL && delta_ != NULL) delete delta_; + delta_ = NULL; +} +const ::Catalyst::Protocol::Deltas::Delta& GetDeltaResponse::delta() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetDeltaResponse.delta) + return delta_ != NULL ? *delta_ + : *::Catalyst::Protocol::Deltas::Delta::internal_default_instance(); +} +::Catalyst::Protocol::Deltas::Delta* GetDeltaResponse::mutable_delta() { + + if (delta_ == NULL) { + delta_ = new ::Catalyst::Protocol::Deltas::Delta; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetDeltaResponse.delta) + return delta_; +} +::Catalyst::Protocol::Deltas::Delta* GetDeltaResponse::release_delta() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetDeltaResponse.delta) + + ::Catalyst::Protocol::Deltas::Delta* temp = delta_; + delta_ = NULL; + return temp; +} +void GetDeltaResponse::set_allocated_delta(::Catalyst::Protocol::Deltas::Delta* delta) { + delete delta_; + delta_ = delta; + if (delta) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetDeltaResponse.delta) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetMempoolRequest::InitAsDefaultInstance() { -} -class GetMempoolRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetMempoolRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetMempoolRequest::GetMempoolRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) } GetMempoolRequest::GetMempoolRequest(const GetMempoolRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) @@ -11448,6 +13624,7 @@ GetMempoolRequest::GetMempoolRequest(const GetMempoolRequest& from) void GetMempoolRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } GetMempoolRequest::~GetMempoolRequest() { @@ -11459,74 +13636,97 @@ void GetMempoolRequest::SharedDtor() { } void GetMempoolRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* GetMempoolRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[48].descriptor; +} + const GetMempoolRequest& GetMempoolRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetMempoolRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetMempoolRequest* GetMempoolRequest::New(::google::protobuf::Arena* arena) const { + GetMempoolRequest* n = new GetMempoolRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetMempoolRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* GetMempoolRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool GetMempoolRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetMempoolRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetMempoolRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) +} + +::google::protobuf::uint8* GetMempoolRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) return target; } @@ -11535,33 +13735,27 @@ size_t GetMempoolRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetMempoolRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetMempoolRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) GOOGLE_DCHECK_NE(&from, this); const GetMempoolRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) MergeFrom(*source); @@ -11572,15 +13766,12 @@ void GetMempoolRequest::MergeFrom(const GetMempoolRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void GetMempoolRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetMempoolRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) if (&from == this) return; Clear(); @@ -11598,43 +13789,64 @@ bool GetMempoolRequest::IsInitialized() const { return true; } +void GetMempoolRequest::Swap(GetMempoolRequest* other) { + if (other == this) return; + InternalSwap(other); +} void GetMempoolRequest::InternalSwap(GetMempoolRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetMempoolRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[48]; } -::PROTOBUF_NAMESPACE_ID::Metadata GetMempoolRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetMempoolRequest + +// bool query = 1; +void GetMempoolRequest::clear_query() { + query_ = false; +} +bool GetMempoolRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetMempoolRequest.query) + return query_; +} +void GetMempoolRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetMempoolRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetMempoolResponse::InitAsDefaultInstance() { -} -class GetMempoolResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetMempoolResponse::kTransactionsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -void GetMempoolResponse::clear_transactions() { - transactions_.Clear(); -} GetMempoolResponse::GetMempoolResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) } GetMempoolResponse::GetMempoolResponse(const GetMempoolResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - transactions_(from.transactions_) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + transactions_(from.transactions_), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) } void GetMempoolResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetMempoolResponse_Rpc_2eproto.base); + _cached_size_ = 0; } GetMempoolResponse::~GetMempoolResponse() { @@ -11646,81 +13858,100 @@ void GetMempoolResponse::SharedDtor() { } void GetMempoolResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* GetMempoolResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[49].descriptor; +} + const GetMempoolResponse& GetMempoolResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetMempoolResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetMempoolResponse* GetMempoolResponse::New(::google::protobuf::Arena* arena) const { + GetMempoolResponse* n = new GetMempoolResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetMempoolResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - transactions_.Clear(); - _internal_metadata_.Clear(); } -const char* GetMempoolResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool GetMempoolResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_transactions(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(input->IncrementRecursionDepth()); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth( + input, add_transactions())); + } else { + goto handle_unusual; + } + input->UnsafeDecrementRecursionDepth(); + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetMempoolResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetMempoolResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) // repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_transactions_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_transactions(i), target, stream); + for (unsigned int i = 0, n = this->transactions_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->transactions(i), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) +} + +::google::protobuf::uint8* GetMempoolResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) + // repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; + for (unsigned int i = 0, n = this->transactions_size(); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, this->transactions(i), false, target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) return target; } @@ -11729,35 +13960,33 @@ size_t GetMempoolResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; - total_size += 1UL * this->_internal_transactions_size(); - for (const auto& msg : this->transactions_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + { + unsigned int count = this->transactions_size(); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->transactions(i)); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetMempoolResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetMempoolResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) GOOGLE_DCHECK_NE(&from, this); const GetMempoolResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) MergeFrom(*source); @@ -11768,13 +13997,10 @@ void GetMempoolResponse::MergeFrom(const GetMempoolResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - transactions_.MergeFrom(from.transactions_); } -void GetMempoolResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetMempoolResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) if (&from == this) return; Clear(); @@ -11792,68 +14018,97 @@ bool GetMempoolResponse::IsInitialized() const { return true; } -void GetMempoolResponse::InternalSwap(GetMempoolResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - transactions_.InternalSwap(&other->transactions_); +void GetMempoolResponse::Swap(GetMempoolResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void GetMempoolResponse::InternalSwap(GetMempoolResponse* other) { + transactions_.UnsafeArenaSwap(&other->transactions_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetMempoolResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[49]; } -::PROTOBUF_NAMESPACE_ID::Metadata GetMempoolResponse::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetMempoolResponse + +// repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; +int GetMempoolResponse::transactions_size() const { + return transactions_.size(); +} +void GetMempoolResponse::clear_transactions() { + transactions_.Clear(); +} +const ::Catalyst::Protocol::Transaction::PublicEntry& GetMempoolResponse::transactions(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetMempoolResponse.transactions) + return transactions_.Get(index); +} +::Catalyst::Protocol::Transaction::PublicEntry* GetMempoolResponse::mutable_transactions(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetMempoolResponse.transactions) + return transactions_.Mutable(index); +} +::Catalyst::Protocol::Transaction::PublicEntry* GetMempoolResponse::add_transactions() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Rpc.Node.GetMempoolResponse.transactions) + return transactions_.Add(); +} +::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >* +GetMempoolResponse::mutable_transactions() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Rpc.Node.GetMempoolResponse.transactions) + return &transactions_; +} +const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >& +GetMempoolResponse::transactions() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.Rpc.Node.GetMempoolResponse.transactions) + return transactions_; } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SignMessageRequest::InitAsDefaultInstance() { - ::Catalyst::Protocol::Rpc::Node::_SignMessageRequest_default_instance_._instance.get_mutable()->signing_context_ = const_cast< ::Catalyst::Protocol::Cryptography::SigningContext*>( - ::Catalyst::Protocol::Cryptography::SigningContext::internal_default_instance()); -} -class SignMessageRequest::_Internal { - public: - static const ::Catalyst::Protocol::Cryptography::SigningContext& signing_context(const SignMessageRequest* msg); -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignMessageRequest::kMessageFieldNumber; +const int SignMessageRequest::kKeyIdFieldNumber; +const int SignMessageRequest::kSigningContextFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::Catalyst::Protocol::Cryptography::SigningContext& -SignMessageRequest::_Internal::signing_context(const SignMessageRequest* msg) { - return *msg->signing_context_; -} -void SignMessageRequest::clear_signing_context() { - if (GetArenaNoVirtual() == nullptr && signing_context_ != nullptr) { - delete signing_context_; - } - signing_context_ = nullptr; -} SignMessageRequest::SignMessageRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SignMessageRequest) } SignMessageRequest::SignMessageRequest(const SignMessageRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_message().empty()) { - message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.message_); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.message().size() > 0) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); } - key_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_key_id().empty()) { - key_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_id_); + key_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key_id().size() > 0) { + key_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_id_); } - if (from._internal_has_signing_context()) { + if (from.has_signing_context()) { signing_context_ = new ::Catalyst::Protocol::Cryptography::SigningContext(*from.signing_context_); } else { - signing_context_ = nullptr; + signing_context_ = NULL; } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SignMessageRequest) } void SignMessageRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SignMessageRequest_Rpc_2eproto.base); - message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - key_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - signing_context_ = nullptr; + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signing_context_ = NULL; + _cached_size_ = 0; } SignMessageRequest::~SignMessageRequest() { @@ -11862,120 +14117,171 @@ SignMessageRequest::~SignMessageRequest() { } void SignMessageRequest::SharedDtor() { - message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - key_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete signing_context_; + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) { + delete signing_context_; + } } void SignMessageRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SignMessageRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[50].descriptor; } + const SignMessageRequest& SignMessageRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SignMessageRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SignMessageRequest* SignMessageRequest::New(::google::protobuf::Arena* arena) const { + SignMessageRequest* n = new SignMessageRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SignMessageRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SignMessageRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - key_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && signing_context_ != nullptr) { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + key_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && signing_context_ != NULL) { delete signing_context_; } - signing_context_ = nullptr; - _internal_metadata_.Clear(); + signing_context_ = NULL; } -const char* SignMessageRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool SignMessageRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SignMessageRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes message = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_message(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_message())); + } else { + goto handle_unusual; + } + break; + } + // string key_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_key_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key_id().data(), this->key_id().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id")); + } else { + goto handle_unusual; + } + break; + } + // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_signing_context(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_signing_context())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SignMessageRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SignMessageRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SignMessageRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SignMessageRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SignMessageRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SignMessageRequest) // bytes message = 1; if (this->message().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_message(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->message(), output); } // string key_id = 2; if (this->key_id().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_key_id().data(), static_cast(this->_internal_key_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key_id().data(), this->key_id().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_key_id(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->key_id(), output); } // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; if (this->has_signing_context()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::signing_context(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->signing_context_, output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SignMessageRequest) +} + +::google::protobuf::uint8* SignMessageRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SignMessageRequest) + // bytes message = 1; + if (this->message().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->message(), target); + } + + // string key_id = 2; + if (this->key_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key_id().data(), this->key_id().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->key_id(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; + if (this->has_signing_context()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 3, *this->signing_context_, false, target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SignMessageRequest) return target; } @@ -11984,49 +14290,43 @@ size_t SignMessageRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SignMessageRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes message = 1; if (this->message().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_message()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->message()); } // string key_id = 2; if (this->key_id().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_key_id()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key_id()); } // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; if (this->has_signing_context()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *signing_context_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->signing_context_); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SignMessageRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SignMessageRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SignMessageRequest) GOOGLE_DCHECK_NE(&from, this); const SignMessageRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SignMessageRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SignMessageRequest) MergeFrom(*source); @@ -12037,23 +14337,20 @@ void SignMessageRequest::MergeFrom(const SignMessageRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SignMessageRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.message().size() > 0) { - message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.message_); + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); } if (from.key_id().size() > 0) { - key_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.key_id_); + key_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_id_); } if (from.has_signing_context()) { - _internal_mutable_signing_context()->::Catalyst::Protocol::Cryptography::SigningContext::MergeFrom(from._internal_signing_context()); + mutable_signing_context()->::Catalyst::Protocol::Cryptography::SigningContext::MergeFrom(from.signing_context()); } } -void SignMessageRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SignMessageRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SignMessageRequest) if (&from == this) return; Clear(); @@ -12071,58 +14368,211 @@ bool SignMessageRequest::IsInitialized() const { return true; } +void SignMessageRequest::Swap(SignMessageRequest* other) { + if (other == this) return; + InternalSwap(other); +} void SignMessageRequest::InternalSwap(SignMessageRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - message_.Swap(&other->message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - key_id_.Swap(&other->key_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(signing_context_, other->signing_context_); + message_.Swap(&other->message_); + key_id_.Swap(&other->key_id_); + std::swap(signing_context_, other->signing_context_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SignMessageRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[50]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SignMessageRequest + +// bytes message = 1; +void SignMessageRequest::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SignMessageRequest::message() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) + return message_.GetNoArena(); +} +void SignMessageRequest::set_message(const ::std::string& value) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) +} +#if LANG_CXX11 +void SignMessageRequest::set_message(::std::string&& value) { + + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) +} +#endif +void SignMessageRequest::set_message(const char* value) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) +} +void SignMessageRequest::set_message(const void* value, size_t size) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) +} +::std::string* SignMessageRequest::mutable_message() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SignMessageRequest::release_message() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) + + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SignMessageRequest::set_allocated_message(::std::string* message) { + if (message != NULL) { + + } else { + + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) +} + +// string key_id = 2; +void SignMessageRequest::clear_key_id() { + key_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SignMessageRequest::key_id() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) + return key_id_.GetNoArena(); +} +void SignMessageRequest::set_key_id(const ::std::string& value) { + + key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) +} +#if LANG_CXX11 +void SignMessageRequest::set_key_id(::std::string&& value) { + + key_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) +} +#endif +void SignMessageRequest::set_key_id(const char* value) { + + key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) +} +void SignMessageRequest::set_key_id(const char* value, size_t size) { + + key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) +} +::std::string* SignMessageRequest::mutable_key_id() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) + return key_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SignMessageRequest::release_key_id() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) + + return key_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SignMessageRequest::set_allocated_key_id(::std::string* key_id) { + if (key_id != NULL) { + + } else { + + } + key_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key_id); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) } -::PROTOBUF_NAMESPACE_ID::Metadata SignMessageRequest::GetMetadata() const { - return GetMetadataStatic(); +// .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; +bool SignMessageRequest::has_signing_context() const { + return this != internal_default_instance() && signing_context_ != NULL; +} +void SignMessageRequest::clear_signing_context() { + if (GetArenaNoVirtual() == NULL && signing_context_ != NULL) delete signing_context_; + signing_context_ = NULL; +} +const ::Catalyst::Protocol::Cryptography::SigningContext& SignMessageRequest::signing_context() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignMessageRequest.signing_context) + return signing_context_ != NULL ? *signing_context_ + : *::Catalyst::Protocol::Cryptography::SigningContext::internal_default_instance(); +} +::Catalyst::Protocol::Cryptography::SigningContext* SignMessageRequest::mutable_signing_context() { + + if (signing_context_ == NULL) { + signing_context_ = new ::Catalyst::Protocol::Cryptography::SigningContext; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageRequest.signing_context) + return signing_context_; +} +::Catalyst::Protocol::Cryptography::SigningContext* SignMessageRequest::release_signing_context() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignMessageRequest.signing_context) + + ::Catalyst::Protocol::Cryptography::SigningContext* temp = signing_context_; + signing_context_ = NULL; + return temp; +} +void SignMessageRequest::set_allocated_signing_context(::Catalyst::Protocol::Cryptography::SigningContext* signing_context) { + delete signing_context_; + signing_context_ = signing_context; + if (signing_context) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignMessageRequest.signing_context) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SignMessageResponse::InitAsDefaultInstance() { -} -class SignMessageResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SignMessageResponse::kSignatureFieldNumber; +const int SignMessageResponse::kPublicKeyFieldNumber; +const int SignMessageResponse::kOriginalMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SignMessageResponse::SignMessageResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SignMessageResponse) } SignMessageResponse::SignMessageResponse(const SignMessageResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_signature().empty()) { - signature_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.signature_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.signature().size() > 0) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); } - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_public_key().empty()) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.public_key().size() > 0) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } - original_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_original_message().empty()) { - original_message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.original_message_); + original_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.original_message().size() > 0) { + original_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.original_message_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SignMessageResponse) } void SignMessageResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SignMessageResponse_Rpc_2eproto.base); - signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - original_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + original_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } SignMessageResponse::~SignMessageResponse() { @@ -12131,111 +14581,154 @@ SignMessageResponse::~SignMessageResponse() { } void SignMessageResponse::SharedDtor() { - signature_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - original_message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + original_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void SignMessageResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SignMessageResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[51].descriptor; } + const SignMessageResponse& SignMessageResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SignMessageResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SignMessageResponse* SignMessageResponse::New(::google::protobuf::Arena* arena) const { + SignMessageResponse* n = new SignMessageResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SignMessageResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SignMessageResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - signature_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - original_message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* SignMessageResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + original_message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool SignMessageResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SignMessageResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes signature = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_signature(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + // bytes public_key = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + // bytes original_message = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_original_message(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_original_message())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SignMessageResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SignMessageResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SignMessageResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SignMessageResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SignMessageResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SignMessageResponse) // bytes signature = 1; if (this->signature().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_signature(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->signature(), output); } // bytes public_key = 2; if (this->public_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_public_key(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->public_key(), output); } // bytes original_message = 3; if (this->original_message().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_original_message(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->original_message(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SignMessageResponse) +} + +::google::protobuf::uint8* SignMessageResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SignMessageResponse) + // bytes signature = 1; + if (this->signature().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->signature(), target); + } + + // bytes public_key = 2; + if (this->public_key().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->public_key(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // bytes original_message = 3; + if (this->original_message().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->original_message(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SignMessageResponse) return target; } @@ -12244,49 +14737,43 @@ size_t SignMessageResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SignMessageResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes signature = 1; if (this->signature().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_signature()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); } // bytes public_key = 2; if (this->public_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); } // bytes original_message = 3; if (this->original_message().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_original_message()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->original_message()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SignMessageResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SignMessageResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SignMessageResponse) GOOGLE_DCHECK_NE(&from, this); const SignMessageResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SignMessageResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SignMessageResponse) MergeFrom(*source); @@ -12297,24 +14784,21 @@ void SignMessageResponse::MergeFrom(const SignMessageResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SignMessageResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.signature().size() > 0) { - signature_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.signature_); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); } if (from.public_key().size() > 0) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } if (from.original_message().size() > 0) { - original_message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.original_message_); + original_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.original_message_); } } -void SignMessageResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SignMessageResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SignMessageResponse) if (&from == this) return; Clear(); @@ -12332,78 +14816,231 @@ bool SignMessageResponse::IsInitialized() const { return true; } -void SignMessageResponse::InternalSwap(SignMessageResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - signature_.Swap(&other->signature_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - public_key_.Swap(&other->public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - original_message_.Swap(&other->original_message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void SignMessageResponse::Swap(SignMessageResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata SignMessageResponse::GetMetadata() const { - return GetMetadataStatic(); +void SignMessageResponse::InternalSwap(SignMessageResponse* other) { + signature_.Swap(&other->signature_); + public_key_.Swap(&other->public_key_); + original_message_.Swap(&other->original_message_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SignMessageResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[51]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SignMessageResponse + +// bytes signature = 1; +void SignMessageResponse::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SignMessageResponse::signature() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) + return signature_.GetNoArena(); +} +void SignMessageResponse::set_signature(const ::std::string& value) { + + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) +} +#if LANG_CXX11 +void SignMessageResponse::set_signature(::std::string&& value) { + + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) +} +#endif +void SignMessageResponse::set_signature(const char* value) { + + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) +} +void SignMessageResponse::set_signature(const void* value, size_t size) { + + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) +} +::std::string* SignMessageResponse::mutable_signature() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SignMessageResponse::release_signature() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) + + return signature_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SignMessageResponse::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + + } else { + + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) +} + +// bytes public_key = 2; +void SignMessageResponse::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SignMessageResponse::public_key() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) + return public_key_.GetNoArena(); +} +void SignMessageResponse::set_public_key(const ::std::string& value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) +} +#if LANG_CXX11 +void SignMessageResponse::set_public_key(::std::string&& value) { + + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) +} +#endif +void SignMessageResponse::set_public_key(const char* value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) +} +void SignMessageResponse::set_public_key(const void* value, size_t size) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) +} +::std::string* SignMessageResponse::mutable_public_key() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SignMessageResponse::release_public_key() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) + + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SignMessageResponse::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + + } else { + + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) +} + +// bytes original_message = 3; +void SignMessageResponse::clear_original_message() { + original_message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SignMessageResponse::original_message() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) + return original_message_.GetNoArena(); +} +void SignMessageResponse::set_original_message(const ::std::string& value) { + + original_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) +} +#if LANG_CXX11 +void SignMessageResponse::set_original_message(::std::string&& value) { + + original_message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) +} +#endif +void SignMessageResponse::set_original_message(const char* value) { + + original_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) +} +void SignMessageResponse::set_original_message(const void* value, size_t size) { + + original_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) +} +::std::string* SignMessageResponse::mutable_original_message() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) + return original_message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SignMessageResponse::release_original_message() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) + + return original_message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SignMessageResponse::set_allocated_original_message(::std::string* original_message) { + if (original_message != NULL) { + + } else { + + } + original_message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), original_message); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void VerifyMessageRequest::InitAsDefaultInstance() { - ::Catalyst::Protocol::Rpc::Node::_VerifyMessageRequest_default_instance_._instance.get_mutable()->signing_context_ = const_cast< ::Catalyst::Protocol::Cryptography::SigningContext*>( - ::Catalyst::Protocol::Cryptography::SigningContext::internal_default_instance()); -} -class VerifyMessageRequest::_Internal { - public: - static const ::Catalyst::Protocol::Cryptography::SigningContext& signing_context(const VerifyMessageRequest* msg); -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int VerifyMessageRequest::kSignatureFieldNumber; +const int VerifyMessageRequest::kPublicKeyFieldNumber; +const int VerifyMessageRequest::kMessageFieldNumber; +const int VerifyMessageRequest::kSigningContextFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::Catalyst::Protocol::Cryptography::SigningContext& -VerifyMessageRequest::_Internal::signing_context(const VerifyMessageRequest* msg) { - return *msg->signing_context_; -} -void VerifyMessageRequest::clear_signing_context() { - if (GetArenaNoVirtual() == nullptr && signing_context_ != nullptr) { - delete signing_context_; - } - signing_context_ = nullptr; -} VerifyMessageRequest::VerifyMessageRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) } VerifyMessageRequest::VerifyMessageRequest(const VerifyMessageRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_signature().empty()) { - signature_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.signature_); + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.signature().size() > 0) { + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); } - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_public_key().empty()) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.public_key().size() > 0) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } - message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_message().empty()) { - message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.message_); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.message().size() > 0) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); } - if (from._internal_has_signing_context()) { + if (from.has_signing_context()) { signing_context_ = new ::Catalyst::Protocol::Cryptography::SigningContext(*from.signing_context_); } else { - signing_context_ = nullptr; + signing_context_ = NULL; } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) } void VerifyMessageRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VerifyMessageRequest_Rpc_2eproto.base); - signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - signing_context_ = nullptr; + signature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + signing_context_ = NULL; + _cached_size_ = 0; } VerifyMessageRequest::~VerifyMessageRequest() { @@ -12412,131 +15049,185 @@ VerifyMessageRequest::~VerifyMessageRequest() { } void VerifyMessageRequest::SharedDtor() { - signature_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete signing_context_; + signature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) { + delete signing_context_; + } } void VerifyMessageRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* VerifyMessageRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[52].descriptor; } + const VerifyMessageRequest& VerifyMessageRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VerifyMessageRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +VerifyMessageRequest* VerifyMessageRequest::New(::google::protobuf::Arena* arena) const { + VerifyMessageRequest* n = new VerifyMessageRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void VerifyMessageRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - signature_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && signing_context_ != nullptr) { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && signing_context_ != NULL) { delete signing_context_; } - signing_context_ = nullptr; - _internal_metadata_.Clear(); + signing_context_ = NULL; } -const char* VerifyMessageRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool VerifyMessageRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes signature = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_signature(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + // bytes public_key = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + // bytes message = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_message(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_message())); + } else { + goto handle_unusual; + } + break; + } + // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_signing_context(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 4: { + if (tag == 34u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_signing_context())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* VerifyMessageRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void VerifyMessageRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) // bytes signature = 1; if (this->signature().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_signature(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->signature(), output); } // bytes public_key = 2; if (this->public_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_public_key(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->public_key(), output); } // bytes message = 3; if (this->message().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_message(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->message(), output); } // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; if (this->has_signing_context()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::signing_context(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->signing_context_, output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) +} + +::google::protobuf::uint8* VerifyMessageRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) + // bytes signature = 1; + if (this->signature().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->signature(), target); + } + + // bytes public_key = 2; + if (this->public_key().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->public_key(), target); + } + + // bytes message = 3; + if (this->message().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->message(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; + if (this->has_signing_context()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 4, *this->signing_context_, false, target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) return target; } @@ -12545,56 +15236,50 @@ size_t VerifyMessageRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes signature = 1; if (this->signature().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_signature()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->signature()); } // bytes public_key = 2; if (this->public_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); } // bytes message = 3; if (this->message().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_message()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->message()); } // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; if (this->has_signing_context()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *signing_context_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->signing_context_); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void VerifyMessageRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VerifyMessageRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) GOOGLE_DCHECK_NE(&from, this); const VerifyMessageRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) MergeFrom(*source); @@ -12605,27 +15290,24 @@ void VerifyMessageRequest::MergeFrom(const VerifyMessageRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.signature().size() > 0) { - signature_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.signature_); + signature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signature_); } if (from.public_key().size() > 0) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } if (from.message().size() > 0) { - message_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.message_); + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); } if (from.has_signing_context()) { - _internal_mutable_signing_context()->::Catalyst::Protocol::Cryptography::SigningContext::MergeFrom(from._internal_signing_context()); + mutable_signing_context()->::Catalyst::Protocol::Cryptography::SigningContext::MergeFrom(from.signing_context()); } } -void VerifyMessageRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VerifyMessageRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) if (&from == this) return; Clear(); @@ -12643,39 +15325,241 @@ bool VerifyMessageRequest::IsInitialized() const { return true; } +void VerifyMessageRequest::Swap(VerifyMessageRequest* other) { + if (other == this) return; + InternalSwap(other); +} void VerifyMessageRequest::InternalSwap(VerifyMessageRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - signature_.Swap(&other->signature_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - public_key_.Swap(&other->public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - message_.Swap(&other->message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(signing_context_, other->signing_context_); + signature_.Swap(&other->signature_); + public_key_.Swap(&other->public_key_); + message_.Swap(&other->message_); + std::swap(signing_context_, other->signing_context_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata VerifyMessageRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[52]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// VerifyMessageRequest + +// bytes signature = 1; +void VerifyMessageRequest::clear_signature() { + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& VerifyMessageRequest::signature() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) + return signature_.GetNoArena(); +} +void VerifyMessageRequest::set_signature(const ::std::string& value) { + + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) +} +#if LANG_CXX11 +void VerifyMessageRequest::set_signature(::std::string&& value) { + + signature_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) +} +#endif +void VerifyMessageRequest::set_signature(const char* value) { + + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) +} +void VerifyMessageRequest::set_signature(const void* value, size_t size) { + + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) +} +::std::string* VerifyMessageRequest::mutable_signature() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* VerifyMessageRequest::release_signature() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) + + return signature_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void VerifyMessageRequest::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { + + } else { + + } + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) +} + +// bytes public_key = 2; +void VerifyMessageRequest::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& VerifyMessageRequest::public_key() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) + return public_key_.GetNoArena(); +} +void VerifyMessageRequest::set_public_key(const ::std::string& value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) +} +#if LANG_CXX11 +void VerifyMessageRequest::set_public_key(::std::string&& value) { + + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) +} +#endif +void VerifyMessageRequest::set_public_key(const char* value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) +} +void VerifyMessageRequest::set_public_key(const void* value, size_t size) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) +} +::std::string* VerifyMessageRequest::mutable_public_key() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* VerifyMessageRequest::release_public_key() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) + + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void VerifyMessageRequest::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + + } else { + + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) +} + +// bytes message = 3; +void VerifyMessageRequest::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& VerifyMessageRequest::message() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) + return message_.GetNoArena(); +} +void VerifyMessageRequest::set_message(const ::std::string& value) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) +} +#if LANG_CXX11 +void VerifyMessageRequest::set_message(::std::string&& value) { + + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) +} +#endif +void VerifyMessageRequest::set_message(const char* value) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) +} +void VerifyMessageRequest::set_message(const void* value, size_t size) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) +} +::std::string* VerifyMessageRequest::mutable_message() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* VerifyMessageRequest::release_message() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) + + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void VerifyMessageRequest::set_allocated_message(::std::string* message) { + if (message != NULL) { + + } else { + + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) } -::PROTOBUF_NAMESPACE_ID::Metadata VerifyMessageRequest::GetMetadata() const { - return GetMetadataStatic(); +// .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; +bool VerifyMessageRequest::has_signing_context() const { + return this != internal_default_instance() && signing_context_ != NULL; +} +void VerifyMessageRequest::clear_signing_context() { + if (GetArenaNoVirtual() == NULL && signing_context_ != NULL) delete signing_context_; + signing_context_ = NULL; +} +const ::Catalyst::Protocol::Cryptography::SigningContext& VerifyMessageRequest::signing_context() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signing_context) + return signing_context_ != NULL ? *signing_context_ + : *::Catalyst::Protocol::Cryptography::SigningContext::internal_default_instance(); +} +::Catalyst::Protocol::Cryptography::SigningContext* VerifyMessageRequest::mutable_signing_context() { + + if (signing_context_ == NULL) { + signing_context_ = new ::Catalyst::Protocol::Cryptography::SigningContext; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signing_context) + return signing_context_; +} +::Catalyst::Protocol::Cryptography::SigningContext* VerifyMessageRequest::release_signing_context() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signing_context) + + ::Catalyst::Protocol::Cryptography::SigningContext* temp = signing_context_; + signing_context_ = NULL; + return temp; +} +void VerifyMessageRequest::set_allocated_signing_context(::Catalyst::Protocol::Cryptography::SigningContext* signing_context) { + delete signing_context_; + signing_context_ = signing_context; + if (signing_context) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signing_context) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void VerifyMessageResponse::InitAsDefaultInstance() { -} -class VerifyMessageResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int VerifyMessageResponse::kIsSignedByKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 VerifyMessageResponse::VerifyMessageResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) } VerifyMessageResponse::VerifyMessageResponse(const VerifyMessageResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); is_signed_by_key_ = from.is_signed_by_key_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) @@ -12683,6 +15567,7 @@ VerifyMessageResponse::VerifyMessageResponse(const VerifyMessageResponse& from) void VerifyMessageResponse::SharedCtor() { is_signed_by_key_ = false; + _cached_size_ = 0; } VerifyMessageResponse::~VerifyMessageResponse() { @@ -12694,74 +15579,97 @@ void VerifyMessageResponse::SharedDtor() { } void VerifyMessageResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* VerifyMessageResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[53].descriptor; +} + const VerifyMessageResponse& VerifyMessageResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VerifyMessageResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +VerifyMessageResponse* VerifyMessageResponse::New(::google::protobuf::Arena* arena) const { + VerifyMessageResponse* n = new VerifyMessageResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void VerifyMessageResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - is_signed_by_key_ = false; - _internal_metadata_.Clear(); } -const char* VerifyMessageResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool VerifyMessageResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool is_signed_by_key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - is_signed_by_key_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_signed_by_key_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* VerifyMessageResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void VerifyMessageResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) // bool is_signed_by_key = 1; if (this->is_signed_by_key() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_is_signed_by_key(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_signed_by_key(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) +} + +::google::protobuf::uint8* VerifyMessageResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) + // bool is_signed_by_key = 1; + if (this->is_signed_by_key() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->is_signed_by_key(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) return target; } @@ -12770,33 +15678,27 @@ size_t VerifyMessageResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool is_signed_by_key = 1; if (this->is_signed_by_key() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void VerifyMessageResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VerifyMessageResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) GOOGLE_DCHECK_NE(&from, this); const VerifyMessageResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) MergeFrom(*source); @@ -12807,15 +15709,12 @@ void VerifyMessageResponse::MergeFrom(const VerifyMessageResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.is_signed_by_key() != 0) { - _internal_set_is_signed_by_key(from._internal_is_signed_by_key()); + set_is_signed_by_key(from.is_signed_by_key()); } } -void VerifyMessageResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VerifyMessageResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) if (&from == this) return; Clear(); @@ -12833,33 +15732,57 @@ bool VerifyMessageResponse::IsInitialized() const { return true; } +void VerifyMessageResponse::Swap(VerifyMessageResponse* other) { + if (other == this) return; + InternalSwap(other); +} void VerifyMessageResponse::InternalSwap(VerifyMessageResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(is_signed_by_key_, other->is_signed_by_key_); + std::swap(is_signed_by_key_, other->is_signed_by_key_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata VerifyMessageResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[53]; } -::PROTOBUF_NAMESPACE_ID::Metadata VerifyMessageResponse::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// VerifyMessageResponse + +// bool is_signed_by_key = 1; +void VerifyMessageResponse::clear_is_signed_by_key() { + is_signed_by_key_ = false; +} +bool VerifyMessageResponse::is_signed_by_key() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.is_signed_by_key) + return is_signed_by_key_; +} +void VerifyMessageResponse::set_is_signed_by_key(bool value) { + + is_signed_by_key_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.is_signed_by_key) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void ServiceStatusRequest::InitAsDefaultInstance() { -} -class ServiceStatusRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ServiceStatusRequest::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ServiceStatusRequest::ServiceStatusRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) } ServiceStatusRequest::ServiceStatusRequest(const ServiceStatusRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) @@ -12867,6 +15790,7 @@ ServiceStatusRequest::ServiceStatusRequest(const ServiceStatusRequest& from) void ServiceStatusRequest::SharedCtor() { query_ = false; + _cached_size_ = 0; } ServiceStatusRequest::~ServiceStatusRequest() { @@ -12878,74 +15802,97 @@ void ServiceStatusRequest::SharedDtor() { } void ServiceStatusRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ServiceStatusRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[54].descriptor; } + const ServiceStatusRequest& ServiceStatusRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ServiceStatusRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +ServiceStatusRequest* ServiceStatusRequest::New(::google::protobuf::Arena* arena) const { + ServiceStatusRequest* n = new ServiceStatusRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void ServiceStatusRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* ServiceStatusRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool ServiceStatusRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* ServiceStatusRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void ServiceStatusRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) +} + +::google::protobuf::uint8* ServiceStatusRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) return target; } @@ -12954,33 +15901,27 @@ size_t ServiceStatusRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ServiceStatusRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ServiceStatusRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) GOOGLE_DCHECK_NE(&from, this); const ServiceStatusRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) MergeFrom(*source); @@ -12991,15 +15932,12 @@ void ServiceStatusRequest::MergeFrom(const ServiceStatusRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void ServiceStatusRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ServiceStatusRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) if (&from == this) return; Clear(); @@ -13017,44 +15955,68 @@ bool ServiceStatusRequest::IsInitialized() const { return true; } +void ServiceStatusRequest::Swap(ServiceStatusRequest* other) { + if (other == this) return; + InternalSwap(other); +} void ServiceStatusRequest::InternalSwap(ServiceStatusRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ServiceStatusRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[54]; } -::PROTOBUF_NAMESPACE_ID::Metadata ServiceStatusRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// ServiceStatusRequest + +// bool query = 1; +void ServiceStatusRequest::clear_query() { + query_ = false; +} +bool ServiceStatusRequest::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.query) + return query_; +} +void ServiceStatusRequest::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void ServiceStatusResponse::InitAsDefaultInstance() { -} -class ServiceStatusResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ServiceStatusResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ServiceStatusResponse::ServiceStatusResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) } ServiceStatusResponse::ServiceStatusResponse(const ServiceStatusResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_query().empty()) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) } void ServiceStatusResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ServiceStatusResponse_Rpc_2eproto.base); - query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } ServiceStatusResponse::~ServiceStatusResponse() { @@ -13063,84 +16025,114 @@ ServiceStatusResponse::~ServiceStatusResponse() { } void ServiceStatusResponse::SharedDtor() { - query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void ServiceStatusResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ServiceStatusResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[55].descriptor; } + const ServiceStatusResponse& ServiceStatusResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ServiceStatusResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +ServiceStatusResponse* ServiceStatusResponse::New(::google::protobuf::Arena* arena) const { + ServiceStatusResponse* n = new ServiceStatusResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void ServiceStatusResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool ServiceStatusResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string query = 1; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query")); + } else { + goto handle_unusual; + } + break; + } -const char* ServiceStatusResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { - // string query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_query(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query")); - CHK_(ptr); - } else goto handle_unusual; - continue; default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* ServiceStatusResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void ServiceStatusResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) // string query = 1; if (this->query().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_query().data(), static_cast(this->_internal_query().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) +} + +::google::protobuf::uint8* ServiceStatusResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), this->query().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) return target; } @@ -13149,35 +16141,29 @@ size_t ServiceStatusResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string query = 1; if (this->query().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_query()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ServiceStatusResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ServiceStatusResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) GOOGLE_DCHECK_NE(&from, this); const ServiceStatusResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) MergeFrom(*source); @@ -13188,16 +16174,13 @@ void ServiceStatusResponse::MergeFrom(const ServiceStatusResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query().size() > 0) { - query_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_); + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); } } -void ServiceStatusResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ServiceStatusResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) if (&from == this) return; Clear(); @@ -13215,52 +16198,115 @@ bool ServiceStatusResponse::IsInitialized() const { return true; } -void ServiceStatusResponse::InternalSwap(ServiceStatusResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void ServiceStatusResponse::Swap(ServiceStatusResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata ServiceStatusResponse::GetMetadata() const { - return GetMetadataStatic(); +void ServiceStatusResponse::InternalSwap(ServiceStatusResponse* other) { + query_.Swap(&other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ServiceStatusResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[55]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// ServiceStatusResponse + +// string query = 1; +void ServiceStatusResponse::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& ServiceStatusResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) + return query_.GetNoArena(); +} +void ServiceStatusResponse::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) +} +#if LANG_CXX11 +void ServiceStatusResponse::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) +} +#endif +void ServiceStatusResponse::set_query(const char* value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) +} +void ServiceStatusResponse::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) +} +::std::string* ServiceStatusResponse::mutable_query() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* ServiceStatusResponse::release_query() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void ServiceStatusResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void AddFileToDfsRequest::InitAsDefaultInstance() { -} -class AddFileToDfsRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AddFileToDfsRequest::kFileSizeFieldNumber; +const int AddFileToDfsRequest::kFileNameFieldNumber; +const int AddFileToDfsRequest::kNodeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 AddFileToDfsRequest::AddFileToDfsRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) } AddFileToDfsRequest::AddFileToDfsRequest(const AddFileToDfsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_file_name().empty()) { - file_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.file_name_); + file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.file_name().size() > 0) { + file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_); } - node_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_node().empty()) { - node_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.node_); + node_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.node().size() > 0) { + node_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_); } file_size_ = from.file_size_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) } void AddFileToDfsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AddFileToDfsRequest_Rpc_2eproto.base); - file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - node_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - file_size_ = PROTOBUF_ULONGLONG(0); + file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + node_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + file_size_ = GOOGLE_ULONGLONG(0); + _cached_size_ = 0; } AddFileToDfsRequest::~AddFileToDfsRequest() { @@ -13269,119 +16315,176 @@ AddFileToDfsRequest::~AddFileToDfsRequest() { } void AddFileToDfsRequest::SharedDtor() { - file_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - node_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + file_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + node_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void AddFileToDfsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AddFileToDfsRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[56].descriptor; } + const AddFileToDfsRequest& AddFileToDfsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AddFileToDfsRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +AddFileToDfsRequest* AddFileToDfsRequest::New(::google::protobuf::Arena* arena) const { + AddFileToDfsRequest* n = new AddFileToDfsRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void AddFileToDfsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - file_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - node_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - file_size_ = PROTOBUF_ULONGLONG(0); - _internal_metadata_.Clear(); -} - -const char* AddFileToDfsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + node_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + file_size_ = GOOGLE_ULONGLONG(0); +} + +bool AddFileToDfsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // uint64 file_size = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - file_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &file_size_))); + } else { + goto handle_unusual; + } + break; + } + // string file_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_file_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_file_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->file_name().data(), this->file_name().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name")); + } else { + goto handle_unusual; + } + break; + } + // string node = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_node(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_node())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node().data(), this->node().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* AddFileToDfsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void AddFileToDfsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) // uint64 file_size = 1; if (this->file_size() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_file_size(), target); + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->file_size(), output); } // string file_name = 2; if (this->file_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_file_name().data(), static_cast(this->_internal_file_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->file_name().data(), this->file_name().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_file_name(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->file_name(), output); } // string node = 3; if (this->node().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_node().data(), static_cast(this->_internal_node().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node().data(), this->node().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_node(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->node(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) +} + +::google::protobuf::uint8* AddFileToDfsRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) + // uint64 file_size = 1; + if (this->file_size() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->file_size(), target); + } + + // string file_name = 2; + if (this->file_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->file_name().data(), this->file_name().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->file_name(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // string node = 3; + if (this->node().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node().data(), this->node().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->node(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) return target; } @@ -13390,49 +16493,43 @@ size_t AddFileToDfsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string file_name = 2; if (this->file_name().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_file_name()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->file_name()); } // string node = 3; if (this->node().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_node()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->node()); } // uint64 file_size = 1; if (this->file_size() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_file_size()); + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->file_size()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void AddFileToDfsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void AddFileToDfsRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) GOOGLE_DCHECK_NE(&from, this); const AddFileToDfsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) MergeFrom(*source); @@ -13443,23 +16540,20 @@ void AddFileToDfsRequest::MergeFrom(const AddFileToDfsRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.file_name().size() > 0) { - file_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.file_name_); + file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_); } if (from.node().size() > 0) { - node_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.node_); + node_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_); } if (from.file_size() != 0) { - _internal_set_file_size(from._internal_file_size()); + set_file_size(from.file_size()); } } -void AddFileToDfsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void AddFileToDfsRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) if (&from == this) return; Clear(); @@ -13477,53 +16571,180 @@ bool AddFileToDfsRequest::IsInitialized() const { return true; } -void AddFileToDfsRequest::InternalSwap(AddFileToDfsRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - file_name_.Swap(&other->file_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - node_.Swap(&other->node_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(file_size_, other->file_size_); +void AddFileToDfsRequest::Swap(AddFileToDfsRequest* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata AddFileToDfsRequest::GetMetadata() const { - return GetMetadataStatic(); +void AddFileToDfsRequest::InternalSwap(AddFileToDfsRequest* other) { + file_name_.Swap(&other->file_name_); + node_.Swap(&other->node_); + std::swap(file_size_, other->file_size_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata AddFileToDfsRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[56]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// AddFileToDfsRequest + +// uint64 file_size = 1; +void AddFileToDfsRequest::clear_file_size() { + file_size_ = GOOGLE_ULONGLONG(0); +} +::google::protobuf::uint64 AddFileToDfsRequest::file_size() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_size) + return file_size_; +} +void AddFileToDfsRequest::set_file_size(::google::protobuf::uint64 value) { + + file_size_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_size) +} + +// string file_name = 2; +void AddFileToDfsRequest::clear_file_name() { + file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& AddFileToDfsRequest::file_name() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) + return file_name_.GetNoArena(); +} +void AddFileToDfsRequest::set_file_name(const ::std::string& value) { + + file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) +} +#if LANG_CXX11 +void AddFileToDfsRequest::set_file_name(::std::string&& value) { + + file_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) +} +#endif +void AddFileToDfsRequest::set_file_name(const char* value) { + + file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) +} +void AddFileToDfsRequest::set_file_name(const char* value, size_t size) { + + file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) +} +::std::string* AddFileToDfsRequest::mutable_file_name() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) + return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* AddFileToDfsRequest::release_file_name() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) + + return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void AddFileToDfsRequest::set_allocated_file_name(::std::string* file_name) { + if (file_name != NULL) { + + } else { + + } + file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), file_name); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) +} + +// string node = 3; +void AddFileToDfsRequest::clear_node() { + node_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& AddFileToDfsRequest::node() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) + return node_.GetNoArena(); +} +void AddFileToDfsRequest::set_node(const ::std::string& value) { + + node_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) +} +#if LANG_CXX11 +void AddFileToDfsRequest::set_node(::std::string&& value) { + + node_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) +} +#endif +void AddFileToDfsRequest::set_node(const char* value) { + + node_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) +} +void AddFileToDfsRequest::set_node(const char* value, size_t size) { + + node_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) +} +::std::string* AddFileToDfsRequest::mutable_node() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) + return node_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* AddFileToDfsRequest::release_node() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) + + return node_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void AddFileToDfsRequest::set_allocated_node(::std::string* node) { + if (node != NULL) { + + } else { + + } + node_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void AddFileToDfsResponse::InitAsDefaultInstance() { -} -class AddFileToDfsResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int AddFileToDfsResponse::kResponseCodeFieldNumber; +const int AddFileToDfsResponse::kDfsHashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 AddFileToDfsResponse::AddFileToDfsResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) } AddFileToDfsResponse::AddFileToDfsResponse(const AddFileToDfsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - response_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_response_code().empty()) { - response_code_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.response_code_); + response_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.response_code().size() > 0) { + response_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.response_code_); } - dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_dfs_hash().empty()) { - dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dfs_hash_); + dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.dfs_hash().size() > 0) { + dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dfs_hash_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) } void AddFileToDfsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_AddFileToDfsResponse_Rpc_2eproto.base); - response_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + response_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } AddFileToDfsResponse::~AddFileToDfsResponse() { @@ -13532,100 +16753,140 @@ AddFileToDfsResponse::~AddFileToDfsResponse() { } void AddFileToDfsResponse::SharedDtor() { - response_code_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - dfs_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + response_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dfs_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void AddFileToDfsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* AddFileToDfsResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[57].descriptor; +} + const AddFileToDfsResponse& AddFileToDfsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_AddFileToDfsResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +AddFileToDfsResponse* AddFileToDfsResponse::New(::google::protobuf::Arena* arena) const { + AddFileToDfsResponse* n = new AddFileToDfsResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void AddFileToDfsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - response_code_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* AddFileToDfsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + response_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool AddFileToDfsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes response_code = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_response_code(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_response_code())); + } else { + goto handle_unusual; + } + break; + } + // string dfs_hash = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_dfs_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_dfs_hash())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dfs_hash().data(), this->dfs_hash().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* AddFileToDfsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void AddFileToDfsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) // bytes response_code = 1; if (this->response_code().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_response_code(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->response_code(), output); } // string dfs_hash = 2; if (this->dfs_hash().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_dfs_hash().data(), static_cast(this->_internal_dfs_hash().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dfs_hash().data(), this->dfs_hash().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_dfs_hash(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->dfs_hash(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) +} + +::google::protobuf::uint8* AddFileToDfsResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) + // bytes response_code = 1; + if (this->response_code().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->response_code(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // string dfs_hash = 2; + if (this->dfs_hash().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dfs_hash().data(), this->dfs_hash().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->dfs_hash(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) return target; } @@ -13634,42 +16895,36 @@ size_t AddFileToDfsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes response_code = 1; if (this->response_code().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_response_code()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->response_code()); } // string dfs_hash = 2; if (this->dfs_hash().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_dfs_hash()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->dfs_hash()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void AddFileToDfsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void AddFileToDfsResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) GOOGLE_DCHECK_NE(&from, this); const AddFileToDfsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) MergeFrom(*source); @@ -13680,20 +16935,17 @@ void AddFileToDfsResponse::MergeFrom(const AddFileToDfsResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.response_code().size() > 0) { - response_code_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.response_code_); + response_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.response_code_); } if (from.dfs_hash().size() > 0) { - dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dfs_hash_); + dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dfs_hash_); } } -void AddFileToDfsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void AddFileToDfsResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) if (&from == this) return; Clear(); @@ -13711,54 +16963,168 @@ bool AddFileToDfsResponse::IsInitialized() const { return true; } -void AddFileToDfsResponse::InternalSwap(AddFileToDfsResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - response_code_.Swap(&other->response_code_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - dfs_hash_.Swap(&other->dfs_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void AddFileToDfsResponse::Swap(AddFileToDfsResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata AddFileToDfsResponse::GetMetadata() const { - return GetMetadataStatic(); +void AddFileToDfsResponse::InternalSwap(AddFileToDfsResponse* other) { + response_code_.Swap(&other->response_code_); + dfs_hash_.Swap(&other->dfs_hash_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata AddFileToDfsResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[57]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// AddFileToDfsResponse + +// bytes response_code = 1; +void AddFileToDfsResponse::clear_response_code() { + response_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& AddFileToDfsResponse::response_code() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) + return response_code_.GetNoArena(); +} +void AddFileToDfsResponse::set_response_code(const ::std::string& value) { + + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) +} +#if LANG_CXX11 +void AddFileToDfsResponse::set_response_code(::std::string&& value) { + + response_code_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) +} +#endif +void AddFileToDfsResponse::set_response_code(const char* value) { + + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) +} +void AddFileToDfsResponse::set_response_code(const void* value, size_t size) { + + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) +} +::std::string* AddFileToDfsResponse::mutable_response_code() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) + return response_code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* AddFileToDfsResponse::release_response_code() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) + + return response_code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void AddFileToDfsResponse::set_allocated_response_code(::std::string* response_code) { + if (response_code != NULL) { + + } else { + + } + response_code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_code); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) +} + +// string dfs_hash = 2; +void AddFileToDfsResponse::clear_dfs_hash() { + dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& AddFileToDfsResponse::dfs_hash() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) + return dfs_hash_.GetNoArena(); +} +void AddFileToDfsResponse::set_dfs_hash(const ::std::string& value) { + + dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) +} +#if LANG_CXX11 +void AddFileToDfsResponse::set_dfs_hash(::std::string&& value) { + + dfs_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) +} +#endif +void AddFileToDfsResponse::set_dfs_hash(const char* value) { + + dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) +} +void AddFileToDfsResponse::set_dfs_hash(const char* value, size_t size) { + + dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) +} +::std::string* AddFileToDfsResponse::mutable_dfs_hash() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) + return dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* AddFileToDfsResponse::release_dfs_hash() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) + + return dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void AddFileToDfsResponse::set_allocated_dfs_hash(::std::string* dfs_hash) { + if (dfs_hash != NULL) { + + } else { + + } + dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dfs_hash); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void TransferFileBytesRequest::InitAsDefaultInstance() { -} -class TransferFileBytesRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TransferFileBytesRequest::kChunkIdFieldNumber; +const int TransferFileBytesRequest::kChunkBytesFieldNumber; +const int TransferFileBytesRequest::kCorrelationFileNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 TransferFileBytesRequest::TransferFileBytesRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) } TransferFileBytesRequest::TransferFileBytesRequest(const TransferFileBytesRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - chunk_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_chunk_bytes().empty()) { - chunk_bytes_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.chunk_bytes_); + chunk_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.chunk_bytes().size() > 0) { + chunk_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chunk_bytes_); } - correlation_file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_correlation_file_name().empty()) { - correlation_file_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.correlation_file_name_); + correlation_file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.correlation_file_name().size() > 0) { + correlation_file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.correlation_file_name_); } chunk_id_ = from.chunk_id_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) } void TransferFileBytesRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TransferFileBytesRequest_Rpc_2eproto.base); - chunk_bytes_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - correlation_file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + chunk_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + correlation_file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); chunk_id_ = 0u; + _cached_size_ = 0; } TransferFileBytesRequest::~TransferFileBytesRequest() { @@ -13767,109 +17133,152 @@ TransferFileBytesRequest::~TransferFileBytesRequest() { } void TransferFileBytesRequest::SharedDtor() { - chunk_bytes_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - correlation_file_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + chunk_bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + correlation_file_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void TransferFileBytesRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TransferFileBytesRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[58].descriptor; } + const TransferFileBytesRequest& TransferFileBytesRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TransferFileBytesRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +TransferFileBytesRequest* TransferFileBytesRequest::New(::google::protobuf::Arena* arena) const { + TransferFileBytesRequest* n = new TransferFileBytesRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void TransferFileBytesRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - chunk_bytes_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - correlation_file_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + chunk_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + correlation_file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); chunk_id_ = 0u; - _internal_metadata_.Clear(); } -const char* TransferFileBytesRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool TransferFileBytesRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // uint32 chunk_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - chunk_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &chunk_id_))); + } else { + goto handle_unusual; + } + break; + } + // bytes chunk_bytes = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_chunk_bytes(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_chunk_bytes())); + } else { + goto handle_unusual; + } + break; + } + // bytes correlation_file_name = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_correlation_file_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_correlation_file_name())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* TransferFileBytesRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void TransferFileBytesRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) // uint32 chunk_id = 1; if (this->chunk_id() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_chunk_id(), target); + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->chunk_id(), output); } // bytes chunk_bytes = 2; if (this->chunk_bytes().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_chunk_bytes(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->chunk_bytes(), output); } // bytes correlation_file_name = 3; if (this->correlation_file_name().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_correlation_file_name(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->correlation_file_name(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) +} + +::google::protobuf::uint8* TransferFileBytesRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) + // uint32 chunk_id = 1; + if (this->chunk_id() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->chunk_id(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // bytes chunk_bytes = 2; + if (this->chunk_bytes().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->chunk_bytes(), target); + } + + // bytes correlation_file_name = 3; + if (this->correlation_file_name().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->correlation_file_name(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) return target; } @@ -13878,49 +17287,43 @@ size_t TransferFileBytesRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes chunk_bytes = 2; if (this->chunk_bytes().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_chunk_bytes()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->chunk_bytes()); } // bytes correlation_file_name = 3; if (this->correlation_file_name().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_correlation_file_name()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->correlation_file_name()); } // uint32 chunk_id = 1; if (this->chunk_id() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_chunk_id()); + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->chunk_id()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void TransferFileBytesRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TransferFileBytesRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) GOOGLE_DCHECK_NE(&from, this); const TransferFileBytesRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) MergeFrom(*source); @@ -13931,23 +17334,20 @@ void TransferFileBytesRequest::MergeFrom(const TransferFileBytesRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.chunk_bytes().size() > 0) { - chunk_bytes_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.chunk_bytes_); + chunk_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chunk_bytes_); } if (from.correlation_file_name().size() > 0) { - correlation_file_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.correlation_file_name_); + correlation_file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.correlation_file_name_); } if (from.chunk_id() != 0) { - _internal_set_chunk_id(from._internal_chunk_id()); + set_chunk_id(from.chunk_id()); } } -void TransferFileBytesRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TransferFileBytesRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) if (&from == this) return; Clear(); @@ -13965,48 +17365,174 @@ bool TransferFileBytesRequest::IsInitialized() const { return true; } +void TransferFileBytesRequest::Swap(TransferFileBytesRequest* other) { + if (other == this) return; + InternalSwap(other); +} void TransferFileBytesRequest::InternalSwap(TransferFileBytesRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - chunk_bytes_.Swap(&other->chunk_bytes_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - correlation_file_name_.Swap(&other->correlation_file_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(chunk_id_, other->chunk_id_); + chunk_bytes_.Swap(&other->chunk_bytes_); + correlation_file_name_.Swap(&other->correlation_file_name_); + std::swap(chunk_id_, other->chunk_id_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TransferFileBytesRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[58]; } -::PROTOBUF_NAMESPACE_ID::Metadata TransferFileBytesRequest::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// TransferFileBytesRequest + +// uint32 chunk_id = 1; +void TransferFileBytesRequest::clear_chunk_id() { + chunk_id_ = 0u; +} +::google::protobuf::uint32 TransferFileBytesRequest::chunk_id() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_id) + return chunk_id_; +} +void TransferFileBytesRequest::set_chunk_id(::google::protobuf::uint32 value) { + + chunk_id_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_id) +} + +// bytes chunk_bytes = 2; +void TransferFileBytesRequest::clear_chunk_bytes() { + chunk_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& TransferFileBytesRequest::chunk_bytes() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) + return chunk_bytes_.GetNoArena(); +} +void TransferFileBytesRequest::set_chunk_bytes(const ::std::string& value) { + + chunk_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) +} +#if LANG_CXX11 +void TransferFileBytesRequest::set_chunk_bytes(::std::string&& value) { + + chunk_bytes_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) +} +#endif +void TransferFileBytesRequest::set_chunk_bytes(const char* value) { + + chunk_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) +} +void TransferFileBytesRequest::set_chunk_bytes(const void* value, size_t size) { + + chunk_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) +} +::std::string* TransferFileBytesRequest::mutable_chunk_bytes() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) + return chunk_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* TransferFileBytesRequest::release_chunk_bytes() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) + + return chunk_bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void TransferFileBytesRequest::set_allocated_chunk_bytes(::std::string* chunk_bytes) { + if (chunk_bytes != NULL) { + + } else { + + } + chunk_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chunk_bytes); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) +} + +// bytes correlation_file_name = 3; +void TransferFileBytesRequest::clear_correlation_file_name() { + correlation_file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& TransferFileBytesRequest::correlation_file_name() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) + return correlation_file_name_.GetNoArena(); +} +void TransferFileBytesRequest::set_correlation_file_name(const ::std::string& value) { + + correlation_file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) +} +#if LANG_CXX11 +void TransferFileBytesRequest::set_correlation_file_name(::std::string&& value) { + + correlation_file_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) +} +#endif +void TransferFileBytesRequest::set_correlation_file_name(const char* value) { + + correlation_file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) +} +void TransferFileBytesRequest::set_correlation_file_name(const void* value, size_t size) { + + correlation_file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) +} +::std::string* TransferFileBytesRequest::mutable_correlation_file_name() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) + return correlation_file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* TransferFileBytesRequest::release_correlation_file_name() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) + + return correlation_file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void TransferFileBytesRequest::set_allocated_correlation_file_name(::std::string* correlation_file_name) { + if (correlation_file_name != NULL) { + + } else { + + } + correlation_file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), correlation_file_name); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void TransferFileBytesResponse::InitAsDefaultInstance() { -} -class TransferFileBytesResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TransferFileBytesResponse::kResponseCodeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 TransferFileBytesResponse::TransferFileBytesResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) } TransferFileBytesResponse::TransferFileBytesResponse(const TransferFileBytesResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - response_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_response_code().empty()) { - response_code_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.response_code_); + response_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.response_code().size() > 0) { + response_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.response_code_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) } void TransferFileBytesResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TransferFileBytesResponse_Rpc_2eproto.base); - response_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + response_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } TransferFileBytesResponse::~TransferFileBytesResponse() { @@ -14015,79 +17541,102 @@ TransferFileBytesResponse::~TransferFileBytesResponse() { } void TransferFileBytesResponse::SharedDtor() { - response_code_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + response_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void TransferFileBytesResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TransferFileBytesResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[59].descriptor; } + const TransferFileBytesResponse& TransferFileBytesResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TransferFileBytesResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +TransferFileBytesResponse* TransferFileBytesResponse::New(::google::protobuf::Arena* arena) const { + TransferFileBytesResponse* n = new TransferFileBytesResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void TransferFileBytesResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - response_code_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* TransferFileBytesResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + response_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool TransferFileBytesResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes response_code = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_response_code(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_response_code())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* TransferFileBytesResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void TransferFileBytesResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) // bytes response_code = 1; if (this->response_code().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_response_code(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->response_code(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) +} + +::google::protobuf::uint8* TransferFileBytesResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) + // bytes response_code = 1; + if (this->response_code().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->response_code(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) return target; } @@ -14096,35 +17645,29 @@ size_t TransferFileBytesResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes response_code = 1; if (this->response_code().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_response_code()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->response_code()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void TransferFileBytesResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TransferFileBytesResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) GOOGLE_DCHECK_NE(&from, this); const TransferFileBytesResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) MergeFrom(*source); @@ -14135,16 +17678,13 @@ void TransferFileBytesResponse::MergeFrom(const TransferFileBytesResponse& from) // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.response_code().size() > 0) { - response_code_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.response_code_); + response_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.response_code_); } } -void TransferFileBytesResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TransferFileBytesResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) if (&from == this) return; Clear(); @@ -14162,50 +17702,112 @@ bool TransferFileBytesResponse::IsInitialized() const { return true; } -void TransferFileBytesResponse::InternalSwap(TransferFileBytesResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - response_code_.Swap(&other->response_code_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void TransferFileBytesResponse::Swap(TransferFileBytesResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata TransferFileBytesResponse::GetMetadata() const { - return GetMetadataStatic(); +void TransferFileBytesResponse::InternalSwap(TransferFileBytesResponse* other) { + response_code_.Swap(&other->response_code_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TransferFileBytesResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[59]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// TransferFileBytesResponse + +// bytes response_code = 1; +void TransferFileBytesResponse::clear_response_code() { + response_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& TransferFileBytesResponse::response_code() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) + return response_code_.GetNoArena(); +} +void TransferFileBytesResponse::set_response_code(const ::std::string& value) { + + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) +} +#if LANG_CXX11 +void TransferFileBytesResponse::set_response_code(::std::string&& value) { + + response_code_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) +} +#endif +void TransferFileBytesResponse::set_response_code(const char* value) { + + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) +} +void TransferFileBytesResponse::set_response_code(const void* value, size_t size) { + + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) +} +::std::string* TransferFileBytesResponse::mutable_response_code() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) + return response_code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* TransferFileBytesResponse::release_response_code() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) + + return response_code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void TransferFileBytesResponse::set_allocated_response_code(::std::string* response_code) { + if (response_code != NULL) { + + } else { + + } + response_code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_code); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void RemovePeerRequest::InitAsDefaultInstance() { -} -class RemovePeerRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RemovePeerRequest::kPeerIpFieldNumber; +const int RemovePeerRequest::kPublicKeyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RemovePeerRequest::RemovePeerRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) } RemovePeerRequest::RemovePeerRequest(const RemovePeerRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - peer_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_peer_ip().empty()) { - peer_ip_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.peer_ip_); + peer_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.peer_ip().size() > 0) { + peer_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.peer_ip_); } - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_public_key().empty()) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.public_key().size() > 0) { + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) } void RemovePeerRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RemovePeerRequest_Rpc_2eproto.base); - peer_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + peer_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } RemovePeerRequest::~RemovePeerRequest() { @@ -14214,95 +17816,128 @@ RemovePeerRequest::~RemovePeerRequest() { } void RemovePeerRequest::SharedDtor() { - peer_ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + peer_ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void RemovePeerRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* RemovePeerRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[60].descriptor; +} + const RemovePeerRequest& RemovePeerRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RemovePeerRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +RemovePeerRequest* RemovePeerRequest::New(::google::protobuf::Arena* arena) const { + RemovePeerRequest* n = new RemovePeerRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void RemovePeerRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - peer_ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* RemovePeerRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + peer_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool RemovePeerRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes peer_ip = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_peer_ip(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_peer_ip())); + } else { + goto handle_unusual; + } + break; + } + // bytes public_key = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_public_key())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* RemovePeerRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void RemovePeerRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) // bytes peer_ip = 1; if (this->peer_ip().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_peer_ip(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->peer_ip(), output); } // bytes public_key = 2; if (this->public_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_public_key(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->public_key(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) +} + +::google::protobuf::uint8* RemovePeerRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) + // bytes peer_ip = 1; + if (this->peer_ip().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->peer_ip(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // bytes public_key = 2; + if (this->public_key().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->public_key(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) return target; } @@ -14311,42 +17946,36 @@ size_t RemovePeerRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes peer_ip = 1; if (this->peer_ip().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_peer_ip()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->peer_ip()); } // bytes public_key = 2; if (this->public_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_public_key()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->public_key()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void RemovePeerRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void RemovePeerRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) GOOGLE_DCHECK_NE(&from, this); const RemovePeerRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) MergeFrom(*source); @@ -14357,20 +17986,17 @@ void RemovePeerRequest::MergeFrom(const RemovePeerRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.peer_ip().size() > 0) { - peer_ip_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.peer_ip_); + peer_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.peer_ip_); } if (from.public_key().size() > 0) { - public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.public_key_); + public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.public_key_); } } -void RemovePeerRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void RemovePeerRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) if (&from == this) return; Clear(); @@ -14388,36 +18014,148 @@ bool RemovePeerRequest::IsInitialized() const { return true; } -void RemovePeerRequest::InternalSwap(RemovePeerRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - peer_ip_.Swap(&other->peer_ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - public_key_.Swap(&other->public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void RemovePeerRequest::Swap(RemovePeerRequest* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata RemovePeerRequest::GetMetadata() const { - return GetMetadataStatic(); +void RemovePeerRequest::InternalSwap(RemovePeerRequest* other) { + peer_ip_.Swap(&other->peer_ip_); + public_key_.Swap(&other->public_key_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata RemovePeerRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[60]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// RemovePeerRequest + +// bytes peer_ip = 1; +void RemovePeerRequest::clear_peer_ip() { + peer_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& RemovePeerRequest::peer_ip() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) + return peer_ip_.GetNoArena(); +} +void RemovePeerRequest::set_peer_ip(const ::std::string& value) { + + peer_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) +} +#if LANG_CXX11 +void RemovePeerRequest::set_peer_ip(::std::string&& value) { + + peer_ip_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) +} +#endif +void RemovePeerRequest::set_peer_ip(const char* value) { + + peer_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) +} +void RemovePeerRequest::set_peer_ip(const void* value, size_t size) { + + peer_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) +} +::std::string* RemovePeerRequest::mutable_peer_ip() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) + return peer_ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* RemovePeerRequest::release_peer_ip() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) + + return peer_ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void RemovePeerRequest::set_allocated_peer_ip(::std::string* peer_ip) { + if (peer_ip != NULL) { + + } else { + + } + peer_ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), peer_ip); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) +} + +// bytes public_key = 2; +void RemovePeerRequest::clear_public_key() { + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& RemovePeerRequest::public_key() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) + return public_key_.GetNoArena(); +} +void RemovePeerRequest::set_public_key(const ::std::string& value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) +} +#if LANG_CXX11 +void RemovePeerRequest::set_public_key(::std::string&& value) { + + public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) +} +#endif +void RemovePeerRequest::set_public_key(const char* value) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) +} +void RemovePeerRequest::set_public_key(const void* value, size_t size) { + + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) +} +::std::string* RemovePeerRequest::mutable_public_key() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* RemovePeerRequest::release_public_key() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) + + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void RemovePeerRequest::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { + + } else { + + } + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void RemovePeerResponse::InitAsDefaultInstance() { -} -class RemovePeerResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RemovePeerResponse::kDeletedCountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RemovePeerResponse::RemovePeerResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) } RemovePeerResponse::RemovePeerResponse(const RemovePeerResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); deleted_count_ = from.deleted_count_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) @@ -14425,6 +18163,7 @@ RemovePeerResponse::RemovePeerResponse(const RemovePeerResponse& from) void RemovePeerResponse::SharedCtor() { deleted_count_ = 0u; + _cached_size_ = 0; } RemovePeerResponse::~RemovePeerResponse() { @@ -14436,74 +18175,97 @@ void RemovePeerResponse::SharedDtor() { } void RemovePeerResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* RemovePeerResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[61].descriptor; +} + const RemovePeerResponse& RemovePeerResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RemovePeerResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +RemovePeerResponse* RemovePeerResponse::New(::google::protobuf::Arena* arena) const { + RemovePeerResponse* n = new RemovePeerResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void RemovePeerResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - deleted_count_ = 0u; - _internal_metadata_.Clear(); } -const char* RemovePeerResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool RemovePeerResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // uint32 deleted_count = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - deleted_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &deleted_count_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* RemovePeerResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void RemovePeerResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) // uint32 deleted_count = 1; if (this->deleted_count() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_deleted_count(), target); + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->deleted_count(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) +} + +::google::protobuf::uint8* RemovePeerResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) + // uint32 deleted_count = 1; + if (this->deleted_count() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->deleted_count(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) return target; } @@ -14512,35 +18274,29 @@ size_t RemovePeerResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // uint32 deleted_count = 1; if (this->deleted_count() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_deleted_count()); + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->deleted_count()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void RemovePeerResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void RemovePeerResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) GOOGLE_DCHECK_NE(&from, this); const RemovePeerResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) MergeFrom(*source); @@ -14551,15 +18307,12 @@ void RemovePeerResponse::MergeFrom(const RemovePeerResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.deleted_count() != 0) { - _internal_set_deleted_count(from._internal_deleted_count()); + set_deleted_count(from.deleted_count()); } } -void RemovePeerResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void RemovePeerResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) if (&from == this) return; Clear(); @@ -14577,38 +18330,62 @@ bool RemovePeerResponse::IsInitialized() const { return true; } +void RemovePeerResponse::Swap(RemovePeerResponse* other) { + if (other == this) return; + InternalSwap(other); +} void RemovePeerResponse::InternalSwap(RemovePeerResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(deleted_count_, other->deleted_count_); + std::swap(deleted_count_, other->deleted_count_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata RemovePeerResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[61]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// RemovePeerResponse + +// uint32 deleted_count = 1; +void RemovePeerResponse::clear_deleted_count() { + deleted_count_ = 0u; } - -::PROTOBUF_NAMESPACE_ID::Metadata RemovePeerResponse::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::uint32 RemovePeerResponse::deleted_count() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.RemovePeerResponse.deleted_count) + return deleted_count_; +} +void RemovePeerResponse::set_deleted_count(::google::protobuf::uint32 value) { + + deleted_count_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.RemovePeerResponse.deleted_count) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetPeerCountRequest::InitAsDefaultInstance() { -} -class GetPeerCountRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetPeerCountRequest::GetPeerCountRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) } GetPeerCountRequest::GetPeerCountRequest(const GetPeerCountRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) } void GetPeerCountRequest::SharedCtor() { + _cached_size_ = 0; } GetPeerCountRequest::~GetPeerCountRequest() { @@ -14620,55 +18397,68 @@ void GetPeerCountRequest::SharedDtor() { } void GetPeerCountRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetPeerCountRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[62].descriptor; } + const GetPeerCountRequest& GetPeerCountRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetPeerCountRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetPeerCountRequest* GetPeerCountRequest::New(::google::protobuf::Arena* arena) const { + GetPeerCountRequest* n = new GetPeerCountRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetPeerCountRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); } -const char* GetPeerCountRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } // while +bool GetPeerCountRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + goto success; + } + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetPeerCountRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; +void GetPeerCountRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) +} - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } +::google::protobuf::uint8* GetPeerCountRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) return target; } @@ -14677,28 +18467,22 @@ size_t GetPeerCountRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetPeerCountRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerCountRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) GOOGLE_DCHECK_NE(&from, this); const GetPeerCountRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) MergeFrom(*source); @@ -14709,12 +18493,9 @@ void GetPeerCountRequest::MergeFrom(const GetPeerCountRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - } -void GetPeerCountRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerCountRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) if (&from == this) return; Clear(); @@ -14732,32 +18513,42 @@ bool GetPeerCountRequest::IsInitialized() const { return true; } +void GetPeerCountRequest::Swap(GetPeerCountRequest* other) { + if (other == this) return; + InternalSwap(other); +} void GetPeerCountRequest::InternalSwap(GetPeerCountRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata GetPeerCountRequest::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata GetPeerCountRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[62]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetPeerCountRequest + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetPeerCountResponse::InitAsDefaultInstance() { -} -class GetPeerCountResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetPeerCountResponse::kPeerCountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetPeerCountResponse::GetPeerCountResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) } GetPeerCountResponse::GetPeerCountResponse(const GetPeerCountResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); peer_count_ = from.peer_count_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) @@ -14765,6 +18556,7 @@ GetPeerCountResponse::GetPeerCountResponse(const GetPeerCountResponse& from) void GetPeerCountResponse::SharedCtor() { peer_count_ = 0; + _cached_size_ = 0; } GetPeerCountResponse::~GetPeerCountResponse() { @@ -14776,74 +18568,97 @@ void GetPeerCountResponse::SharedDtor() { } void GetPeerCountResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* GetPeerCountResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[63].descriptor; +} + const GetPeerCountResponse& GetPeerCountResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetPeerCountResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetPeerCountResponse* GetPeerCountResponse::New(::google::protobuf::Arena* arena) const { + GetPeerCountResponse* n = new GetPeerCountResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetPeerCountResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - peer_count_ = 0; - _internal_metadata_.Clear(); } -const char* GetPeerCountResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool GetPeerCountResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int32 peer_count = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - peer_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &peer_count_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetPeerCountResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetPeerCountResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) // int32 peer_count = 1; if (this->peer_count() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer_count(), target); + ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->peer_count(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) +} + +::google::protobuf::uint8* GetPeerCountResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) + // int32 peer_count = 1; + if (this->peer_count() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->peer_count(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) return target; } @@ -14852,35 +18667,29 @@ size_t GetPeerCountResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // int32 peer_count = 1; if (this->peer_count() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_peer_count()); + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->peer_count()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetPeerCountResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerCountResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) GOOGLE_DCHECK_NE(&from, this); const GetPeerCountResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) MergeFrom(*source); @@ -14891,15 +18700,12 @@ void GetPeerCountResponse::MergeFrom(const GetPeerCountResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.peer_count() != 0) { - _internal_set_peer_count(from._internal_peer_count()); + set_peer_count(from.peer_count()); } } -void GetPeerCountResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetPeerCountResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) if (&from == this) return; Clear(); @@ -14917,44 +18723,68 @@ bool GetPeerCountResponse::IsInitialized() const { return true; } +void GetPeerCountResponse::Swap(GetPeerCountResponse* other) { + if (other == this) return; + InternalSwap(other); +} void GetPeerCountResponse::InternalSwap(GetPeerCountResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(peer_count_, other->peer_count_); + std::swap(peer_count_, other->peer_count_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata GetPeerCountResponse::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata GetPeerCountResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[63]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetPeerCountResponse + +// int32 peer_count = 1; +void GetPeerCountResponse::clear_peer_count() { + peer_count_ = 0; +} +::google::protobuf::int32 GetPeerCountResponse::peer_count() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.peer_count) + return peer_count_; +} +void GetPeerCountResponse::set_peer_count(::google::protobuf::int32 value) { + + peer_count_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.peer_count) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetFileFromDfsRequest::InitAsDefaultInstance() { -} -class GetFileFromDfsRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetFileFromDfsRequest::kDfsHashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetFileFromDfsRequest::GetFileFromDfsRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) } GetFileFromDfsRequest::GetFileFromDfsRequest(const GetFileFromDfsRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_dfs_hash().empty()) { - dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dfs_hash_); + dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.dfs_hash().size() > 0) { + dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dfs_hash_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) } void GetFileFromDfsRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetFileFromDfsRequest_Rpc_2eproto.base); - dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } GetFileFromDfsRequest::~GetFileFromDfsRequest() { @@ -14963,84 +18793,114 @@ GetFileFromDfsRequest::~GetFileFromDfsRequest() { } void GetFileFromDfsRequest::SharedDtor() { - dfs_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + dfs_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void GetFileFromDfsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* GetFileFromDfsRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[64].descriptor; +} + const GetFileFromDfsRequest& GetFileFromDfsRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetFileFromDfsRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetFileFromDfsRequest* GetFileFromDfsRequest::New(::google::protobuf::Arena* arena) const { + GetFileFromDfsRequest* n = new GetFileFromDfsRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetFileFromDfsRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* GetFileFromDfsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool GetFileFromDfsRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string dfs_hash = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_dfs_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_dfs_hash())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dfs_hash().data(), this->dfs_hash().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetFileFromDfsRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetFileFromDfsRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) // string dfs_hash = 1; if (this->dfs_hash().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_dfs_hash().data(), static_cast(this->_internal_dfs_hash().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dfs_hash().data(), this->dfs_hash().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_dfs_hash(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->dfs_hash(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) +} + +::google::protobuf::uint8* GetFileFromDfsRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) + // string dfs_hash = 1; + if (this->dfs_hash().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->dfs_hash().data(), this->dfs_hash().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->dfs_hash(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) return target; } @@ -15049,35 +18909,29 @@ size_t GetFileFromDfsRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string dfs_hash = 1; if (this->dfs_hash().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_dfs_hash()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->dfs_hash()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetFileFromDfsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetFileFromDfsRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) GOOGLE_DCHECK_NE(&from, this); const GetFileFromDfsRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) MergeFrom(*source); @@ -15088,16 +18942,13 @@ void GetFileFromDfsRequest::MergeFrom(const GetFileFromDfsRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.dfs_hash().size() > 0) { - dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.dfs_hash_); + dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dfs_hash_); } } -void GetFileFromDfsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetFileFromDfsRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) if (&from == this) return; Clear(); @@ -15115,47 +18966,109 @@ bool GetFileFromDfsRequest::IsInitialized() const { return true; } -void GetFileFromDfsRequest::InternalSwap(GetFileFromDfsRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - dfs_hash_.Swap(&other->dfs_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void GetFileFromDfsRequest::Swap(GetFileFromDfsRequest* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata GetFileFromDfsRequest::GetMetadata() const { - return GetMetadataStatic(); +void GetFileFromDfsRequest::InternalSwap(GetFileFromDfsRequest* other) { + dfs_hash_.Swap(&other->dfs_hash_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetFileFromDfsRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[64]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetFileFromDfsRequest + +// string dfs_hash = 1; +void GetFileFromDfsRequest::clear_dfs_hash() { + dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& GetFileFromDfsRequest::dfs_hash() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) + return dfs_hash_.GetNoArena(); +} +void GetFileFromDfsRequest::set_dfs_hash(const ::std::string& value) { + + dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) +} +#if LANG_CXX11 +void GetFileFromDfsRequest::set_dfs_hash(::std::string&& value) { + + dfs_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) +} +#endif +void GetFileFromDfsRequest::set_dfs_hash(const char* value) { + + dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) +} +void GetFileFromDfsRequest::set_dfs_hash(const char* value, size_t size) { + + dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) +} +::std::string* GetFileFromDfsRequest::mutable_dfs_hash() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) + return dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* GetFileFromDfsRequest::release_dfs_hash() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) + + return dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void GetFileFromDfsRequest::set_allocated_dfs_hash(::std::string* dfs_hash) { + if (dfs_hash != NULL) { + + } else { + + } + dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dfs_hash); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void GetFileFromDfsResponse::InitAsDefaultInstance() { -} -class GetFileFromDfsResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int GetFileFromDfsResponse::kFileSizeFieldNumber; +const int GetFileFromDfsResponse::kResponseCodeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 GetFileFromDfsResponse::GetFileFromDfsResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) } GetFileFromDfsResponse::GetFileFromDfsResponse(const GetFileFromDfsResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - response_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_response_code().empty()) { - response_code_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.response_code_); + response_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.response_code().size() > 0) { + response_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.response_code_); } file_size_ = from.file_size_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) } void GetFileFromDfsResponse::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetFileFromDfsResponse_Rpc_2eproto.base); - response_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - file_size_ = PROTOBUF_ULONGLONG(0); + response_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + file_size_ = GOOGLE_ULONGLONG(0); + _cached_size_ = 0; } GetFileFromDfsResponse::~GetFileFromDfsResponse() { @@ -15164,93 +19077,126 @@ GetFileFromDfsResponse::~GetFileFromDfsResponse() { } void GetFileFromDfsResponse::SharedDtor() { - response_code_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + response_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void GetFileFromDfsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GetFileFromDfsResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[65].descriptor; } + const GetFileFromDfsResponse& GetFileFromDfsResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetFileFromDfsResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +GetFileFromDfsResponse* GetFileFromDfsResponse::New(::google::protobuf::Arena* arena) const { + GetFileFromDfsResponse* n = new GetFileFromDfsResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void GetFileFromDfsResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - response_code_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - file_size_ = PROTOBUF_ULONGLONG(0); - _internal_metadata_.Clear(); -} - -const char* GetFileFromDfsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + response_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + file_size_ = GOOGLE_ULONGLONG(0); +} + +bool GetFileFromDfsResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // uint64 file_size = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - file_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &file_size_))); + } else { + goto handle_unusual; + } + break; + } + // bytes response_code = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_response_code(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_response_code())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* GetFileFromDfsResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void GetFileFromDfsResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) // uint64 file_size = 1; if (this->file_size() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_file_size(), target); + ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->file_size(), output); } // bytes response_code = 2; if (this->response_code().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_response_code(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->response_code(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) +} + +::google::protobuf::uint8* GetFileFromDfsResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) + // uint64 file_size = 1; + if (this->file_size() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->file_size(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // bytes response_code = 2; + if (this->response_code().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->response_code(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) return target; } @@ -15259,42 +19205,36 @@ size_t GetFileFromDfsResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes response_code = 2; if (this->response_code().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_response_code()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->response_code()); } // uint64 file_size = 1; if (this->file_size() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_file_size()); + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->file_size()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void GetFileFromDfsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetFileFromDfsResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) GOOGLE_DCHECK_NE(&from, this); const GetFileFromDfsResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) MergeFrom(*source); @@ -15305,19 +19245,16 @@ void GetFileFromDfsResponse::MergeFrom(const GetFileFromDfsResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.response_code().size() > 0) { - response_code_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.response_code_); + response_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.response_code_); } if (from.file_size() != 0) { - _internal_set_file_size(from._internal_file_size()); + set_file_size(from.file_size()); } } -void GetFileFromDfsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void GetFileFromDfsResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) if (&from == this) return; Clear(); @@ -15335,46 +19272,121 @@ bool GetFileFromDfsResponse::IsInitialized() const { return true; } -void GetFileFromDfsResponse::InternalSwap(GetFileFromDfsResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - response_code_.Swap(&other->response_code_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(file_size_, other->file_size_); +void GetFileFromDfsResponse::Swap(GetFileFromDfsResponse* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata GetFileFromDfsResponse::GetMetadata() const { - return GetMetadataStatic(); +void GetFileFromDfsResponse::InternalSwap(GetFileFromDfsResponse* other) { + response_code_.Swap(&other->response_code_); + std::swap(file_size_, other->file_size_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata GetFileFromDfsResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[65]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// GetFileFromDfsResponse + +// uint64 file_size = 1; +void GetFileFromDfsResponse::clear_file_size() { + file_size_ = GOOGLE_ULONGLONG(0); +} +::google::protobuf::uint64 GetFileFromDfsResponse::file_size() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.file_size) + return file_size_; +} +void GetFileFromDfsResponse::set_file_size(::google::protobuf::uint64 value) { + + file_size_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.file_size) +} + +// bytes response_code = 2; +void GetFileFromDfsResponse::clear_response_code() { + response_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& GetFileFromDfsResponse::response_code() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) + return response_code_.GetNoArena(); +} +void GetFileFromDfsResponse::set_response_code(const ::std::string& value) { + + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) +} +#if LANG_CXX11 +void GetFileFromDfsResponse::set_response_code(::std::string&& value) { + + response_code_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) +} +#endif +void GetFileFromDfsResponse::set_response_code(const char* value) { + + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) +} +void GetFileFromDfsResponse::set_response_code(const void* value, size_t size) { + + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) +} +::std::string* GetFileFromDfsResponse::mutable_response_code() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) + return response_code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* GetFileFromDfsResponse::release_response_code() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) + + return response_code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void GetFileFromDfsResponse::set_allocated_response_code(::std::string* response_code) { + if (response_code != NULL) { + + } else { + + } + response_code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_code); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SetPeerDataFolderRequest::InitAsDefaultInstance() { -} -class SetPeerDataFolderRequest::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SetPeerDataFolderRequest::kDataFolderFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SetPeerDataFolderRequest::SetPeerDataFolderRequest() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) } SetPeerDataFolderRequest::SetPeerDataFolderRequest(const SetPeerDataFolderRequest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - data_folder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_data_folder().empty()) { - data_folder_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.data_folder_); + data_folder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.data_folder().size() > 0) { + data_folder_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_folder_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) } void SetPeerDataFolderRequest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SetPeerDataFolderRequest_Rpc_2eproto.base); - data_folder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + data_folder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } SetPeerDataFolderRequest::~SetPeerDataFolderRequest() { @@ -15383,84 +19395,114 @@ SetPeerDataFolderRequest::~SetPeerDataFolderRequest() { } void SetPeerDataFolderRequest::SharedDtor() { - data_folder_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + data_folder_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void SetPeerDataFolderRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SetPeerDataFolderRequest::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[66].descriptor; } + const SetPeerDataFolderRequest& SetPeerDataFolderRequest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SetPeerDataFolderRequest_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SetPeerDataFolderRequest* SetPeerDataFolderRequest::New(::google::protobuf::Arena* arena) const { + SetPeerDataFolderRequest* n = new SetPeerDataFolderRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SetPeerDataFolderRequest::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - data_folder_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* SetPeerDataFolderRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + data_folder_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool SetPeerDataFolderRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string data_folder = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_data_folder(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_data_folder())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->data_folder().data(), this->data_folder().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder")); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SetPeerDataFolderRequest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SetPeerDataFolderRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) // string data_folder = 1; if (this->data_folder().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_data_folder().data(), static_cast(this->_internal_data_folder().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->data_folder().data(), this->data_folder().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_data_folder(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->data_folder(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) +} + +::google::protobuf::uint8* SetPeerDataFolderRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) + // string data_folder = 1; + if (this->data_folder().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->data_folder().data(), this->data_folder().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->data_folder(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) return target; } @@ -15469,35 +19511,29 @@ size_t SetPeerDataFolderRequest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // string data_folder = 1; if (this->data_folder().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_data_folder()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->data_folder()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SetPeerDataFolderRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SetPeerDataFolderRequest::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) GOOGLE_DCHECK_NE(&from, this); const SetPeerDataFolderRequest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) MergeFrom(*source); @@ -15508,16 +19544,13 @@ void SetPeerDataFolderRequest::MergeFrom(const SetPeerDataFolderRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.data_folder().size() > 0) { - data_folder_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.data_folder_); + data_folder_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_folder_); } } -void SetPeerDataFolderRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SetPeerDataFolderRequest::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) if (&from == this) return; Clear(); @@ -15535,34 +19568,95 @@ bool SetPeerDataFolderRequest::IsInitialized() const { return true; } -void SetPeerDataFolderRequest::InternalSwap(SetPeerDataFolderRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - data_folder_.Swap(&other->data_folder_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void SetPeerDataFolderRequest::Swap(SetPeerDataFolderRequest* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata SetPeerDataFolderRequest::GetMetadata() const { - return GetMetadataStatic(); +void SetPeerDataFolderRequest::InternalSwap(SetPeerDataFolderRequest* other) { + data_folder_.Swap(&other->data_folder_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SetPeerDataFolderRequest::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[66]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SetPeerDataFolderRequest + +// string data_folder = 1; +void SetPeerDataFolderRequest::clear_data_folder() { + data_folder_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& SetPeerDataFolderRequest::data_folder() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) + return data_folder_.GetNoArena(); +} +void SetPeerDataFolderRequest::set_data_folder(const ::std::string& value) { + + data_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) +} +#if LANG_CXX11 +void SetPeerDataFolderRequest::set_data_folder(::std::string&& value) { + + data_folder_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) +} +#endif +void SetPeerDataFolderRequest::set_data_folder(const char* value) { + + data_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) +} +void SetPeerDataFolderRequest::set_data_folder(const char* value, size_t size) { + + data_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) +} +::std::string* SetPeerDataFolderRequest::mutable_data_folder() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) + return data_folder_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* SetPeerDataFolderRequest::release_data_folder() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) + + return data_folder_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void SetPeerDataFolderRequest::set_allocated_data_folder(::std::string* data_folder) { + if (data_folder != NULL) { + + } else { + + } + data_folder_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_folder); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void SetPeerDataFolderResponse::InitAsDefaultInstance() { -} -class SetPeerDataFolderResponse::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SetPeerDataFolderResponse::kQueryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SetPeerDataFolderResponse::SetPeerDataFolderResponse() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Rpc_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) } SetPeerDataFolderResponse::SetPeerDataFolderResponse(const SetPeerDataFolderResponse& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); query_ = from.query_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) @@ -15570,6 +19664,7 @@ SetPeerDataFolderResponse::SetPeerDataFolderResponse(const SetPeerDataFolderResp void SetPeerDataFolderResponse::SharedCtor() { query_ = false; + _cached_size_ = 0; } SetPeerDataFolderResponse::~SetPeerDataFolderResponse() { @@ -15581,74 +19676,97 @@ void SetPeerDataFolderResponse::SharedDtor() { } void SetPeerDataFolderResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SetPeerDataFolderResponse::descriptor() { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[67].descriptor; } + const SetPeerDataFolderResponse& SetPeerDataFolderResponse::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SetPeerDataFolderResponse_Rpc_2eproto.base); + protobuf_Rpc_2eproto::InitDefaults(); return *internal_default_instance(); } +SetPeerDataFolderResponse* SetPeerDataFolderResponse::New(::google::protobuf::Arena* arena) const { + SetPeerDataFolderResponse* n = new SetPeerDataFolderResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void SetPeerDataFolderResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - query_ = false; - _internal_metadata_.Clear(); } -const char* SetPeerDataFolderResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool SetPeerDataFolderResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bool query = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - query_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 8u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &query_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* SetPeerDataFolderResponse::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void SetPeerDataFolderResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) // bool query = 1; if (this->query() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_query(), target); + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->query(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) +} + +::google::protobuf::uint8* SetPeerDataFolderResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) + // bool query = 1; + if (this->query() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->query(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) return target; } @@ -15657,33 +19775,27 @@ size_t SetPeerDataFolderResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bool query = 1; if (this->query() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void SetPeerDataFolderResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SetPeerDataFolderResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) GOOGLE_DCHECK_NE(&from, this); const SetPeerDataFolderResponse* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) MergeFrom(*source); @@ -15694,15 +19806,12 @@ void SetPeerDataFolderResponse::MergeFrom(const SetPeerDataFolderResponse& from) // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.query() != 0) { - _internal_set_query(from._internal_query()); + set_query(from.query()); } } -void SetPeerDataFolderResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SetPeerDataFolderResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) if (&from == this) return; Clear(); @@ -15720,228 +19829,44 @@ bool SetPeerDataFolderResponse::IsInitialized() const { return true; } +void SetPeerDataFolderResponse::Swap(SetPeerDataFolderResponse* other) { + if (other == this) return; + InternalSwap(other); +} void SetPeerDataFolderResponse::InternalSwap(SetPeerDataFolderResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); + std::swap(query_, other->query_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SetPeerDataFolderResponse::GetMetadata() const { + protobuf_Rpc_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Rpc_2eproto::file_level_metadata[67]; } -::PROTOBUF_NAMESPACE_ID::Metadata SetPeerDataFolderResponse::GetMetadata() const { - return GetMetadataStatic(); +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// SetPeerDataFolderResponse + +// bool query = 1; +void SetPeerDataFolderResponse::clear_query() { + query_ = false; +} +bool SetPeerDataFolderResponse::query() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.query) + return query_; +} +void SetPeerDataFolderResponse::set_query(bool value) { + + query_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.query) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) + } // namespace Node } // namespace Rpc } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::VersionRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::VersionRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::VersionRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::VersionResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::VersionResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::VersionResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetInfoRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetInfoRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetInfoRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetInfoResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetInfoResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetInfoResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::CreateWalletRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::CreateWalletRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::CreateWalletRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::CreateWalletResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::CreateWalletResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::CreateWalletResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::ListWalletRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::ListWalletRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::ListWalletRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::ListWalletResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::ListWalletResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::ListWalletResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::CreateAddressRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::CreateAddressRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::CreateAddressRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::CreateAddressResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::CreateAddressResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::CreateAddressResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetAddressRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetAddressRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetAddressRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetAddressResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetAddressResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetAddressResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::ListAddressRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::ListAddressRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::ListAddressRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::ListAddressResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::ListAddressResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::ListAddressResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::ValidateAddressRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::ValidateAddressRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::ValidateAddressRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::ValidateAddressResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::ValidateAddressResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::ValidateAddressResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetBalanceRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetBalanceRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetBalanceRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetBalanceResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetBalanceResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetBalanceResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::CreateRawTransactionRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::CreateRawTransactionRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::CreateRawTransactionRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::CreateRawTransactionResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::CreateRawTransactionResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::CreateRawTransactionResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SignRawTransactionRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SignRawTransactionRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SignRawTransactionRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SignRawTransactionResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SignRawTransactionResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SignRawTransactionResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SendToRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SendToRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SendToRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SendToResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SendToResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SendToResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SendToFromRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SendToFromRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SendToFromRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SendToFromResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SendToFromResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SendToFromResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SendManyRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SendManyRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SendManyRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SendManyResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SendManyResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SendManyResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SendFromManyRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SendFromManyRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SendFromManyRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SendFromManyResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SendFromManyResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SendFromManyResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::AddNodeRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::AddNodeRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::AddNodeRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::AddNodeResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::AddNodeResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::AddNodeResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetPeerListRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetPeerListRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetPeerListRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetPeerListResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetPeerListResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetPeerListResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetPeerReputationRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetPeerReputationRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetPeerReputationRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetPeerReputationResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetPeerReputationResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetPeerReputationResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SetPeerBlackListRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SetPeerBlackListRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SetPeerBlackListRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SetPeerBlackListResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SetPeerBlackListResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SetPeerBlackListResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetPeerInfoRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetPeerInfoRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetPeerInfoRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetPeerInfoResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetPeerInfoResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetPeerInfoResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetConnectionCountRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetConnectionCountRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetConnectionCountRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetConnectionCountResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetConnectionCountResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetConnectionCountResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetDeltaRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetDeltaRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetDeltaRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetDeltaResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetDeltaResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetDeltaResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetMempoolRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetMempoolRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetMempoolRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetMempoolResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetMempoolResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetMempoolResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SignMessageRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SignMessageRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SignMessageRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SignMessageResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SignMessageResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SignMessageResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::VerifyMessageResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::VerifyMessageResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::VerifyMessageResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::ServiceStatusRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::ServiceStatusRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::ServiceStatusRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::ServiceStatusResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::ServiceStatusResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::ServiceStatusResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::AddFileToDfsRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::AddFileToDfsRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::AddFileToDfsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::AddFileToDfsResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::AddFileToDfsResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::AddFileToDfsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::TransferFileBytesRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::TransferFileBytesRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::TransferFileBytesRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::TransferFileBytesResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::TransferFileBytesResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::TransferFileBytesResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::RemovePeerRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::RemovePeerRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::RemovePeerRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::RemovePeerResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::RemovePeerResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::RemovePeerResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetPeerCountRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetPeerCountRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetPeerCountRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetPeerCountResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetPeerCountResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetPeerCountResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetFileFromDfsRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetFileFromDfsRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetFileFromDfsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::GetFileFromDfsResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::GetFileFromDfsResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::GetFileFromDfsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderRequest* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderRequest >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderResponse* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderResponse >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderResponse >(arena); -} -PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include diff --git a/packages/sdk-cpp/src/Rpc.pb.h b/packages/sdk-cpp/src/Rpc.pb.h index be450f6..363fde1 100644 --- a/packages/sdk-cpp/src/Rpc.pb.h +++ b/packages/sdk-cpp/src/Rpc.pb.h @@ -1,33 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Rpc.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_Rpc_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_Rpc_2eproto +#ifndef PROTOBUF_Rpc_2eproto__INCLUDED +#define PROTOBUF_Rpc_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3011000 +#include + +#if GOOGLE_PROTOBUF_VERSION < 3002000 #error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update +#error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3002000 < GOOGLE_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 incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif -#include #include #include #include -#include #include -#include #include -#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -39,29 +35,35 @@ #include "Wire.pb.h" #include "Transaction.pb.h" // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_Rpc_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_Rpc_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[68] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Rpc_2eproto; namespace Catalyst { namespace Protocol { +namespace Cryptography { +class Signature; +class SignatureDefaultTypeInternal; +extern SignatureDefaultTypeInternal _Signature_default_instance_; +class SignatureBatch; +class SignatureBatchDefaultTypeInternal; +extern SignatureBatchDefaultTypeInternal _SignatureBatch_default_instance_; +class SigningContext; +class SigningContextDefaultTypeInternal; +extern SigningContextDefaultTypeInternal _SigningContext_default_instance_; +} // namespace Cryptography +namespace Deltas { +class Delta; +class DeltaDefaultTypeInternal; +extern DeltaDefaultTypeInternal _Delta_default_instance_; +class DeltaIndex; +class DeltaIndexDefaultTypeInternal; +extern DeltaIndexDefaultTypeInternal _DeltaIndex_default_instance_; +} // namespace Deltas +namespace Peer { +class PeerId; +class PeerIdDefaultTypeInternal; +extern PeerIdDefaultTypeInternal _PeerId_default_instance_; +class PeerInfo; +class PeerInfoDefaultTypeInternal; +extern PeerInfoDefaultTypeInternal _PeerInfo_default_instance_; +} // namespace Peer namespace Rpc { namespace Node { class AddFileToDfsRequest; @@ -270,84 +272,60 @@ class VersionResponseDefaultTypeInternal; extern VersionResponseDefaultTypeInternal _VersionResponse_default_instance_; } // namespace Node } // namespace Rpc +namespace Transaction { +class CoinbaseEntry; +class CoinbaseEntryDefaultTypeInternal; +extern CoinbaseEntryDefaultTypeInternal _CoinbaseEntry_default_instance_; +class ConfidentialEntry; +class ConfidentialEntryDefaultTypeInternal; +extern ConfidentialEntryDefaultTypeInternal _ConfidentialEntry_default_instance_; +class PublicEntry; +class PublicEntryDefaultTypeInternal; +extern PublicEntryDefaultTypeInternal _PublicEntry_default_instance_; +class RangeProof; +class RangeProofDefaultTypeInternal; +extern RangeProofDefaultTypeInternal _RangeProof_default_instance_; +} // namespace Transaction +namespace Wire { +class CandidateDeltaBroadcast; +class CandidateDeltaBroadcastDefaultTypeInternal; +extern CandidateDeltaBroadcastDefaultTypeInternal _CandidateDeltaBroadcast_default_instance_; +class DeltaDfsHashBroadcast; +class DeltaDfsHashBroadcastDefaultTypeInternal; +extern DeltaDfsHashBroadcastDefaultTypeInternal _DeltaDfsHashBroadcast_default_instance_; +class FavouriteDeltaBroadcast; +class FavouriteDeltaBroadcastDefaultTypeInternal; +extern FavouriteDeltaBroadcastDefaultTypeInternal _FavouriteDeltaBroadcast_default_instance_; +class ProtocolErrorMessage; +class ProtocolErrorMessageDefaultTypeInternal; +extern ProtocolErrorMessageDefaultTypeInternal _ProtocolErrorMessage_default_instance_; +class ProtocolMessage; +class ProtocolMessageDefaultTypeInternal; +extern ProtocolMessageDefaultTypeInternal _ProtocolMessage_default_instance_; +class TransactionBroadcast; +class TransactionBroadcastDefaultTypeInternal; +extern TransactionBroadcastDefaultTypeInternal _TransactionBroadcast_default_instance_; +} // namespace Wire } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> ::Catalyst::Protocol::Rpc::Node::AddFileToDfsRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::AddFileToDfsRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::AddFileToDfsResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::AddFileToDfsResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::AddNodeRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::AddNodeRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::AddNodeResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::AddNodeResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::BroadcastRawTransactionResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::CreateAddressRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::CreateAddressRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::CreateAddressResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::CreateAddressResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::CreateRawTransactionRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::CreateRawTransactionRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::CreateRawTransactionResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::CreateRawTransactionResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::CreateWalletRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::CreateWalletRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::CreateWalletResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::CreateWalletResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::DecodeRawTransactionResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetAddressRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetAddressRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetAddressResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetAddressResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetBalanceRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetBalanceRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetBalanceResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetBalanceResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetConnectionCountRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetConnectionCountRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetConnectionCountResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetConnectionCountResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetDeltaRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetDeltaRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetDeltaResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetDeltaResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetFileFromDfsRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetFileFromDfsRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetFileFromDfsResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetFileFromDfsResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetInfoRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetInfoRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetInfoResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetInfoResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetMempoolRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetMempoolRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetMempoolResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetMempoolResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetPeerCountRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetPeerCountRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetPeerCountResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetPeerCountResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetPeerInfoRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetPeerInfoRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetPeerInfoResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetPeerInfoResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetPeerListRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetPeerListRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetPeerListResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetPeerListResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetPeerReputationRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetPeerReputationRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::GetPeerReputationResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::GetPeerReputationResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::ListAddressRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::ListAddressRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::ListAddressResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::ListAddressResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::ListWalletRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::ListWalletRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::ListWalletResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::ListWalletResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::RemovePeerRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::RemovePeerRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::RemovePeerResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::RemovePeerResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SendFromManyRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SendFromManyRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SendFromManyResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SendFromManyResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SendManyRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SendManyRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SendManyResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SendManyResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SendToFromRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SendToFromRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SendToFromResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SendToFromResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SendToRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SendToRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SendToResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SendToResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::ServiceStatusRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::ServiceStatusRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::ServiceStatusResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::ServiceStatusResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SetPeerBlackListRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SetPeerBlackListRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SetPeerBlackListResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SetPeerBlackListResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SetPeerDataFolderResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SignMessageRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SignMessageRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SignMessageResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SignMessageResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SignRawTransactionRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SignRawTransactionRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::SignRawTransactionResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::SignRawTransactionResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::TransferFileBytesRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::TransferFileBytesRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::TransferFileBytesResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::TransferFileBytesResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::ValidateAddressRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::ValidateAddressRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::ValidateAddressResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::ValidateAddressResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::VerifyMessageRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::VerifyMessageResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::VerifyMessageResponse>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::VersionRequest* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::VersionRequest>(Arena*); -template<> ::Catalyst::Protocol::Rpc::Node::VersionResponse* Arena::CreateMaybeMessage<::Catalyst::Protocol::Rpc::Node::VersionResponse>(Arena*); -PROTOBUF_NAMESPACE_CLOSE + namespace Catalyst { namespace Protocol { namespace Rpc { namespace Node { -enum ResponseCode : int { +namespace protobuf_Rpc_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::uint32 offsets[]; + static void InitDefaultsImpl(); + static void Shutdown(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_Rpc_2eproto + +enum ResponseCode { PENDING = 0, SUCCESSFUL = 1, ERROR = 2, @@ -355,4863 +333,3215 @@ enum ResponseCode : int { EXPIRED = 4, FAILED = 5, EXISTS = 6, - ResponseCode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - ResponseCode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + ResponseCode_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + ResponseCode_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max }; bool ResponseCode_IsValid(int value); -constexpr ResponseCode ResponseCode_MIN = PENDING; -constexpr ResponseCode ResponseCode_MAX = EXISTS; -constexpr int ResponseCode_ARRAYSIZE = ResponseCode_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResponseCode_descriptor(); -template -inline const std::string& ResponseCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ResponseCode_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ResponseCode_descriptor(), enum_t_value); +const ResponseCode ResponseCode_MIN = PENDING; +const ResponseCode ResponseCode_MAX = EXISTS; +const int ResponseCode_ARRAYSIZE = ResponseCode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ResponseCode_descriptor(); +inline const ::std::string& ResponseCode_Name(ResponseCode value) { + return ::google::protobuf::internal::NameOfEnum( + ResponseCode_descriptor(), value); } inline bool ResponseCode_Parse( - const std::string& name, ResponseCode* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + const ::std::string& name, ResponseCode* value) { + return ::google::protobuf::internal::ParseNamedEnum( ResponseCode_descriptor(), name, value); } // =================================================================== -class VersionRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.VersionRequest) */ { +class VersionRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.VersionRequest) */ { public: VersionRequest(); virtual ~VersionRequest(); VersionRequest(const VersionRequest& from); - VersionRequest(VersionRequest&& from) noexcept - : VersionRequest() { - *this = ::std::move(from); - } inline VersionRequest& operator=(const VersionRequest& from) { CopyFrom(from); return *this; } - inline VersionRequest& operator=(VersionRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const VersionRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const VersionRequest* internal_default_instance() { return reinterpret_cast( &_VersionRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(VersionRequest& a, VersionRequest& b) { - a.Swap(&b); - } - inline void Swap(VersionRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(VersionRequest* other); // implements Message ---------------------------------------------- - inline VersionRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline VersionRequest* New() const PROTOBUF_FINAL { return New(NULL); } - VersionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + VersionRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const VersionRequest& from); void MergeFrom(const VersionRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(VersionRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.VersionRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.VersionRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class VersionResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.VersionResponse) */ { +class VersionResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.VersionResponse) */ { public: VersionResponse(); virtual ~VersionResponse(); VersionResponse(const VersionResponse& from); - VersionResponse(VersionResponse&& from) noexcept - : VersionResponse() { - *this = ::std::move(from); - } inline VersionResponse& operator=(const VersionResponse& from) { CopyFrom(from); return *this; } - inline VersionResponse& operator=(VersionResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const VersionResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const VersionResponse* internal_default_instance() { return reinterpret_cast( &_VersionResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 1; - friend void swap(VersionResponse& a, VersionResponse& b) { - a.Swap(&b); - } - inline void Swap(VersionResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(VersionResponse* other); // implements Message ---------------------------------------------- - inline VersionResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline VersionResponse* New() const PROTOBUF_FINAL { return New(NULL); } - VersionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + VersionResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const VersionResponse& from); void MergeFrom(const VersionResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(VersionResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.VersionResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kVersionFieldNumber = 1, - }; // string version = 1; void clear_version(); - const std::string& version() const; - void set_version(const std::string& value); - void set_version(std::string&& value); + static const int kVersionFieldNumber = 1; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif void set_version(const char* value); void set_version(const char* value, size_t size); - std::string* mutable_version(); - std::string* release_version(); - void set_allocated_version(std::string* version); - private: - const std::string& _internal_version() const; - void _internal_set_version(const std::string& value); - std::string* _internal_mutable_version(); - public: + ::std::string* mutable_version(); + ::std::string* release_version(); + void set_allocated_version(::std::string* version); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.VersionResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr version_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetInfoRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetInfoRequest) */ { +class GetInfoRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetInfoRequest) */ { public: GetInfoRequest(); virtual ~GetInfoRequest(); GetInfoRequest(const GetInfoRequest& from); - GetInfoRequest(GetInfoRequest&& from) noexcept - : GetInfoRequest() { - *this = ::std::move(from); - } inline GetInfoRequest& operator=(const GetInfoRequest& from) { CopyFrom(from); return *this; } - inline GetInfoRequest& operator=(GetInfoRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetInfoRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetInfoRequest* internal_default_instance() { return reinterpret_cast( &_GetInfoRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 2; - friend void swap(GetInfoRequest& a, GetInfoRequest& b) { - a.Swap(&b); - } - inline void Swap(GetInfoRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetInfoRequest* other); // implements Message ---------------------------------------------- - inline GetInfoRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetInfoRequest* New() const PROTOBUF_FINAL { return New(NULL); } - GetInfoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetInfoRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetInfoRequest& from); void MergeFrom(const GetInfoRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetInfoRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetInfoRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetInfoRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetInfoResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetInfoResponse) */ { +class GetInfoResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetInfoResponse) */ { public: GetInfoResponse(); virtual ~GetInfoResponse(); GetInfoResponse(const GetInfoResponse& from); - GetInfoResponse(GetInfoResponse&& from) noexcept - : GetInfoResponse() { - *this = ::std::move(from); - } inline GetInfoResponse& operator=(const GetInfoResponse& from) { CopyFrom(from); return *this; } - inline GetInfoResponse& operator=(GetInfoResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetInfoResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetInfoResponse* internal_default_instance() { return reinterpret_cast( &_GetInfoResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 3; - friend void swap(GetInfoResponse& a, GetInfoResponse& b) { - a.Swap(&b); - } - inline void Swap(GetInfoResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetInfoResponse* other); // implements Message ---------------------------------------------- - inline GetInfoResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetInfoResponse* New() const PROTOBUF_FINAL { return New(NULL); } - GetInfoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetInfoResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetInfoResponse& from); void MergeFrom(const GetInfoResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetInfoResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetInfoResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetInfoResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class CreateWalletRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) */ { +class CreateWalletRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) */ { public: CreateWalletRequest(); virtual ~CreateWalletRequest(); CreateWalletRequest(const CreateWalletRequest& from); - CreateWalletRequest(CreateWalletRequest&& from) noexcept - : CreateWalletRequest() { - *this = ::std::move(from); - } inline CreateWalletRequest& operator=(const CreateWalletRequest& from) { CopyFrom(from); return *this; } - inline CreateWalletRequest& operator=(CreateWalletRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const CreateWalletRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CreateWalletRequest* internal_default_instance() { return reinterpret_cast( &_CreateWalletRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 4; - friend void swap(CreateWalletRequest& a, CreateWalletRequest& b) { - a.Swap(&b); - } - inline void Swap(CreateWalletRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(CreateWalletRequest* other); // implements Message ---------------------------------------------- - inline CreateWalletRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline CreateWalletRequest* New() const PROTOBUF_FINAL { return New(NULL); } - CreateWalletRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + CreateWalletRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const CreateWalletRequest& from); void MergeFrom(const CreateWalletRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(CreateWalletRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.CreateWalletRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class CreateWalletResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) */ { +class CreateWalletResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) */ { public: CreateWalletResponse(); virtual ~CreateWalletResponse(); CreateWalletResponse(const CreateWalletResponse& from); - CreateWalletResponse(CreateWalletResponse&& from) noexcept - : CreateWalletResponse() { - *this = ::std::move(from); - } inline CreateWalletResponse& operator=(const CreateWalletResponse& from) { CopyFrom(from); return *this; } - inline CreateWalletResponse& operator=(CreateWalletResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const CreateWalletResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CreateWalletResponse* internal_default_instance() { return reinterpret_cast( &_CreateWalletResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 5; - friend void swap(CreateWalletResponse& a, CreateWalletResponse& b) { - a.Swap(&b); - } - inline void Swap(CreateWalletResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(CreateWalletResponse* other); // implements Message ---------------------------------------------- - inline CreateWalletResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline CreateWalletResponse* New() const PROTOBUF_FINAL { return New(NULL); } - CreateWalletResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + CreateWalletResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const CreateWalletResponse& from); void MergeFrom(const CreateWalletResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(CreateWalletResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.CreateWalletResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class ListWalletRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ListWalletRequest) */ { +class ListWalletRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ListWalletRequest) */ { public: ListWalletRequest(); virtual ~ListWalletRequest(); ListWalletRequest(const ListWalletRequest& from); - ListWalletRequest(ListWalletRequest&& from) noexcept - : ListWalletRequest() { - *this = ::std::move(from); - } inline ListWalletRequest& operator=(const ListWalletRequest& from) { CopyFrom(from); return *this; } - inline ListWalletRequest& operator=(ListWalletRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const ListWalletRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ListWalletRequest* internal_default_instance() { return reinterpret_cast( &_ListWalletRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 6; - friend void swap(ListWalletRequest& a, ListWalletRequest& b) { - a.Swap(&b); - } - inline void Swap(ListWalletRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(ListWalletRequest* other); // implements Message ---------------------------------------------- - inline ListWalletRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline ListWalletRequest* New() const PROTOBUF_FINAL { return New(NULL); } - ListWalletRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + ListWalletRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ListWalletRequest& from); void MergeFrom(const ListWalletRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ListWalletRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.ListWalletRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ListWalletRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class ListWalletResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ListWalletResponse) */ { +class ListWalletResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ListWalletResponse) */ { public: ListWalletResponse(); virtual ~ListWalletResponse(); ListWalletResponse(const ListWalletResponse& from); - ListWalletResponse(ListWalletResponse&& from) noexcept - : ListWalletResponse() { - *this = ::std::move(from); - } inline ListWalletResponse& operator=(const ListWalletResponse& from) { CopyFrom(from); return *this; } - inline ListWalletResponse& operator=(ListWalletResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const ListWalletResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ListWalletResponse* internal_default_instance() { return reinterpret_cast( &_ListWalletResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 7; - friend void swap(ListWalletResponse& a, ListWalletResponse& b) { - a.Swap(&b); - } - inline void Swap(ListWalletResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(ListWalletResponse* other); // implements Message ---------------------------------------------- - inline ListWalletResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline ListWalletResponse* New() const PROTOBUF_FINAL { return New(NULL); } - ListWalletResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + ListWalletResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ListWalletResponse& from); void MergeFrom(const ListWalletResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ListWalletResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.ListWalletResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ListWalletResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class CreateAddressRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) */ { +class CreateAddressRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) */ { public: CreateAddressRequest(); virtual ~CreateAddressRequest(); CreateAddressRequest(const CreateAddressRequest& from); - CreateAddressRequest(CreateAddressRequest&& from) noexcept - : CreateAddressRequest() { - *this = ::std::move(from); - } inline CreateAddressRequest& operator=(const CreateAddressRequest& from) { CopyFrom(from); return *this; } - inline CreateAddressRequest& operator=(CreateAddressRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const CreateAddressRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CreateAddressRequest* internal_default_instance() { return reinterpret_cast( &_CreateAddressRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 8; - friend void swap(CreateAddressRequest& a, CreateAddressRequest& b) { - a.Swap(&b); - } - inline void Swap(CreateAddressRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(CreateAddressRequest* other); // implements Message ---------------------------------------------- - inline CreateAddressRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline CreateAddressRequest* New() const PROTOBUF_FINAL { return New(NULL); } - CreateAddressRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + CreateAddressRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const CreateAddressRequest& from); void MergeFrom(const CreateAddressRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(CreateAddressRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.CreateAddressRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class CreateAddressResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) */ { +class CreateAddressResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) */ { public: CreateAddressResponse(); virtual ~CreateAddressResponse(); CreateAddressResponse(const CreateAddressResponse& from); - CreateAddressResponse(CreateAddressResponse&& from) noexcept - : CreateAddressResponse() { - *this = ::std::move(from); - } inline CreateAddressResponse& operator=(const CreateAddressResponse& from) { CopyFrom(from); return *this; } - inline CreateAddressResponse& operator=(CreateAddressResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const CreateAddressResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CreateAddressResponse* internal_default_instance() { return reinterpret_cast( &_CreateAddressResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 9; - friend void swap(CreateAddressResponse& a, CreateAddressResponse& b) { - a.Swap(&b); - } - inline void Swap(CreateAddressResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(CreateAddressResponse* other); // implements Message ---------------------------------------------- - inline CreateAddressResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline CreateAddressResponse* New() const PROTOBUF_FINAL { return New(NULL); } - CreateAddressResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + CreateAddressResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const CreateAddressResponse& from); void MergeFrom(const CreateAddressResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(CreateAddressResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.CreateAddressResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetAddressRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetAddressRequest) */ { +class GetAddressRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetAddressRequest) */ { public: GetAddressRequest(); virtual ~GetAddressRequest(); GetAddressRequest(const GetAddressRequest& from); - GetAddressRequest(GetAddressRequest&& from) noexcept - : GetAddressRequest() { - *this = ::std::move(from); - } inline GetAddressRequest& operator=(const GetAddressRequest& from) { CopyFrom(from); return *this; } - inline GetAddressRequest& operator=(GetAddressRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetAddressRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetAddressRequest* internal_default_instance() { return reinterpret_cast( &_GetAddressRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 10; - friend void swap(GetAddressRequest& a, GetAddressRequest& b) { - a.Swap(&b); - } - inline void Swap(GetAddressRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetAddressRequest* other); // implements Message ---------------------------------------------- - inline GetAddressRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetAddressRequest* New() const PROTOBUF_FINAL { return New(NULL); } - GetAddressRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetAddressRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetAddressRequest& from); void MergeFrom(const GetAddressRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetAddressRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetAddressRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetAddressRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetAddressResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetAddressResponse) */ { +class GetAddressResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetAddressResponse) */ { public: GetAddressResponse(); virtual ~GetAddressResponse(); GetAddressResponse(const GetAddressResponse& from); - GetAddressResponse(GetAddressResponse&& from) noexcept - : GetAddressResponse() { - *this = ::std::move(from); - } inline GetAddressResponse& operator=(const GetAddressResponse& from) { CopyFrom(from); return *this; } - inline GetAddressResponse& operator=(GetAddressResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetAddressResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetAddressResponse* internal_default_instance() { return reinterpret_cast( &_GetAddressResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 11; - friend void swap(GetAddressResponse& a, GetAddressResponse& b) { - a.Swap(&b); - } - inline void Swap(GetAddressResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetAddressResponse* other); // implements Message ---------------------------------------------- - inline GetAddressResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetAddressResponse* New() const PROTOBUF_FINAL { return New(NULL); } - GetAddressResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetAddressResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetAddressResponse& from); void MergeFrom(const GetAddressResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetAddressResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetAddressResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetAddressResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class ListAddressRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ListAddressRequest) */ { +class ListAddressRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ListAddressRequest) */ { public: ListAddressRequest(); virtual ~ListAddressRequest(); ListAddressRequest(const ListAddressRequest& from); - ListAddressRequest(ListAddressRequest&& from) noexcept - : ListAddressRequest() { - *this = ::std::move(from); - } inline ListAddressRequest& operator=(const ListAddressRequest& from) { CopyFrom(from); return *this; } - inline ListAddressRequest& operator=(ListAddressRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const ListAddressRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ListAddressRequest* internal_default_instance() { return reinterpret_cast( &_ListAddressRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 12; - friend void swap(ListAddressRequest& a, ListAddressRequest& b) { - a.Swap(&b); - } - inline void Swap(ListAddressRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(ListAddressRequest* other); // implements Message ---------------------------------------------- - inline ListAddressRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline ListAddressRequest* New() const PROTOBUF_FINAL { return New(NULL); } - ListAddressRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + ListAddressRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ListAddressRequest& from); void MergeFrom(const ListAddressRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ListAddressRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.ListAddressRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ListAddressRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class ListAddressResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ListAddressResponse) */ { +class ListAddressResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ListAddressResponse) */ { public: ListAddressResponse(); virtual ~ListAddressResponse(); ListAddressResponse(const ListAddressResponse& from); - ListAddressResponse(ListAddressResponse&& from) noexcept - : ListAddressResponse() { - *this = ::std::move(from); - } inline ListAddressResponse& operator=(const ListAddressResponse& from) { CopyFrom(from); return *this; } - inline ListAddressResponse& operator=(ListAddressResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const ListAddressResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ListAddressResponse* internal_default_instance() { return reinterpret_cast( &_ListAddressResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 13; - friend void swap(ListAddressResponse& a, ListAddressResponse& b) { - a.Swap(&b); - } - inline void Swap(ListAddressResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(ListAddressResponse* other); // implements Message ---------------------------------------------- - inline ListAddressResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline ListAddressResponse* New() const PROTOBUF_FINAL { return New(NULL); } - ListAddressResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + ListAddressResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ListAddressResponse& from); void MergeFrom(const ListAddressResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ListAddressResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.ListAddressResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ListAddressResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class ValidateAddressRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) */ { +class ValidateAddressRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) */ { public: ValidateAddressRequest(); virtual ~ValidateAddressRequest(); ValidateAddressRequest(const ValidateAddressRequest& from); - ValidateAddressRequest(ValidateAddressRequest&& from) noexcept - : ValidateAddressRequest() { - *this = ::std::move(from); - } inline ValidateAddressRequest& operator=(const ValidateAddressRequest& from) { CopyFrom(from); return *this; } - inline ValidateAddressRequest& operator=(ValidateAddressRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const ValidateAddressRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ValidateAddressRequest* internal_default_instance() { return reinterpret_cast( &_ValidateAddressRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 14; - friend void swap(ValidateAddressRequest& a, ValidateAddressRequest& b) { - a.Swap(&b); - } - inline void Swap(ValidateAddressRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(ValidateAddressRequest* other); // implements Message ---------------------------------------------- - inline ValidateAddressRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline ValidateAddressRequest* New() const PROTOBUF_FINAL { return New(NULL); } - ValidateAddressRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + ValidateAddressRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ValidateAddressRequest& from); void MergeFrom(const ValidateAddressRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ValidateAddressRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.ValidateAddressRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class ValidateAddressResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) */ { +class ValidateAddressResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) */ { public: ValidateAddressResponse(); virtual ~ValidateAddressResponse(); ValidateAddressResponse(const ValidateAddressResponse& from); - ValidateAddressResponse(ValidateAddressResponse&& from) noexcept - : ValidateAddressResponse() { - *this = ::std::move(from); - } inline ValidateAddressResponse& operator=(const ValidateAddressResponse& from) { CopyFrom(from); return *this; } - inline ValidateAddressResponse& operator=(ValidateAddressResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const ValidateAddressResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ValidateAddressResponse* internal_default_instance() { return reinterpret_cast( &_ValidateAddressResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 15; - friend void swap(ValidateAddressResponse& a, ValidateAddressResponse& b) { - a.Swap(&b); - } - inline void Swap(ValidateAddressResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(ValidateAddressResponse* other); // implements Message ---------------------------------------------- - inline ValidateAddressResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline ValidateAddressResponse* New() const PROTOBUF_FINAL { return New(NULL); } - ValidateAddressResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + ValidateAddressResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ValidateAddressResponse& from); void MergeFrom(const ValidateAddressResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ValidateAddressResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.ValidateAddressResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetBalanceRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) */ { +class GetBalanceRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) */ { public: GetBalanceRequest(); virtual ~GetBalanceRequest(); GetBalanceRequest(const GetBalanceRequest& from); - GetBalanceRequest(GetBalanceRequest&& from) noexcept - : GetBalanceRequest() { - *this = ::std::move(from); - } inline GetBalanceRequest& operator=(const GetBalanceRequest& from) { CopyFrom(from); return *this; } - inline GetBalanceRequest& operator=(GetBalanceRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetBalanceRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetBalanceRequest* internal_default_instance() { return reinterpret_cast( &_GetBalanceRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 16; - friend void swap(GetBalanceRequest& a, GetBalanceRequest& b) { - a.Swap(&b); - } - inline void Swap(GetBalanceRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetBalanceRequest* other); // implements Message ---------------------------------------------- - inline GetBalanceRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetBalanceRequest* New() const PROTOBUF_FINAL { return New(NULL); } - GetBalanceRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetBalanceRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetBalanceRequest& from); void MergeFrom(const GetBalanceRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetBalanceRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetBalanceRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetBalanceResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) */ { +class GetBalanceResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) */ { public: GetBalanceResponse(); virtual ~GetBalanceResponse(); GetBalanceResponse(const GetBalanceResponse& from); - GetBalanceResponse(GetBalanceResponse&& from) noexcept - : GetBalanceResponse() { - *this = ::std::move(from); - } inline GetBalanceResponse& operator=(const GetBalanceResponse& from) { CopyFrom(from); return *this; } - inline GetBalanceResponse& operator=(GetBalanceResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetBalanceResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetBalanceResponse* internal_default_instance() { return reinterpret_cast( &_GetBalanceResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 17; - friend void swap(GetBalanceResponse& a, GetBalanceResponse& b) { - a.Swap(&b); - } - inline void Swap(GetBalanceResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetBalanceResponse* other); // implements Message ---------------------------------------------- - inline GetBalanceResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetBalanceResponse* New() const PROTOBUF_FINAL { return New(NULL); } - GetBalanceResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetBalanceResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetBalanceResponse& from); void MergeFrom(const GetBalanceResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetBalanceResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetBalanceResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class CreateRawTransactionRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) */ { +class CreateRawTransactionRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) */ { public: CreateRawTransactionRequest(); virtual ~CreateRawTransactionRequest(); CreateRawTransactionRequest(const CreateRawTransactionRequest& from); - CreateRawTransactionRequest(CreateRawTransactionRequest&& from) noexcept - : CreateRawTransactionRequest() { - *this = ::std::move(from); - } inline CreateRawTransactionRequest& operator=(const CreateRawTransactionRequest& from) { CopyFrom(from); return *this; } - inline CreateRawTransactionRequest& operator=(CreateRawTransactionRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const CreateRawTransactionRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CreateRawTransactionRequest* internal_default_instance() { return reinterpret_cast( &_CreateRawTransactionRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 18; - friend void swap(CreateRawTransactionRequest& a, CreateRawTransactionRequest& b) { - a.Swap(&b); - } - inline void Swap(CreateRawTransactionRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(CreateRawTransactionRequest* other); // implements Message ---------------------------------------------- - inline CreateRawTransactionRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline CreateRawTransactionRequest* New() const PROTOBUF_FINAL { return New(NULL); } - CreateRawTransactionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + CreateRawTransactionRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const CreateRawTransactionRequest& from); void MergeFrom(const CreateRawTransactionRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(CreateRawTransactionRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class CreateRawTransactionResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) */ { +class CreateRawTransactionResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) */ { public: CreateRawTransactionResponse(); virtual ~CreateRawTransactionResponse(); CreateRawTransactionResponse(const CreateRawTransactionResponse& from); - CreateRawTransactionResponse(CreateRawTransactionResponse&& from) noexcept - : CreateRawTransactionResponse() { - *this = ::std::move(from); - } inline CreateRawTransactionResponse& operator=(const CreateRawTransactionResponse& from) { CopyFrom(from); return *this; } - inline CreateRawTransactionResponse& operator=(CreateRawTransactionResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const CreateRawTransactionResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CreateRawTransactionResponse* internal_default_instance() { return reinterpret_cast( &_CreateRawTransactionResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 19; - friend void swap(CreateRawTransactionResponse& a, CreateRawTransactionResponse& b) { - a.Swap(&b); - } - inline void Swap(CreateRawTransactionResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(CreateRawTransactionResponse* other); // implements Message ---------------------------------------------- - inline CreateRawTransactionResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline CreateRawTransactionResponse* New() const PROTOBUF_FINAL { return New(NULL); } - CreateRawTransactionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + CreateRawTransactionResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const CreateRawTransactionResponse& from); void MergeFrom(const CreateRawTransactionResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(CreateRawTransactionResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SignRawTransactionRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) */ { +class SignRawTransactionRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) */ { public: SignRawTransactionRequest(); virtual ~SignRawTransactionRequest(); SignRawTransactionRequest(const SignRawTransactionRequest& from); - SignRawTransactionRequest(SignRawTransactionRequest&& from) noexcept - : SignRawTransactionRequest() { - *this = ::std::move(from); - } inline SignRawTransactionRequest& operator=(const SignRawTransactionRequest& from) { CopyFrom(from); return *this; } - inline SignRawTransactionRequest& operator=(SignRawTransactionRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SignRawTransactionRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SignRawTransactionRequest* internal_default_instance() { return reinterpret_cast( &_SignRawTransactionRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 20; - friend void swap(SignRawTransactionRequest& a, SignRawTransactionRequest& b) { - a.Swap(&b); - } - inline void Swap(SignRawTransactionRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SignRawTransactionRequest* other); // implements Message ---------------------------------------------- - inline SignRawTransactionRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SignRawTransactionRequest* New() const PROTOBUF_FINAL { return New(NULL); } - SignRawTransactionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SignRawTransactionRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SignRawTransactionRequest& from); void MergeFrom(const SignRawTransactionRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SignRawTransactionRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SignRawTransactionResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) */ { +class SignRawTransactionResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) */ { public: SignRawTransactionResponse(); virtual ~SignRawTransactionResponse(); SignRawTransactionResponse(const SignRawTransactionResponse& from); - SignRawTransactionResponse(SignRawTransactionResponse&& from) noexcept - : SignRawTransactionResponse() { - *this = ::std::move(from); - } inline SignRawTransactionResponse& operator=(const SignRawTransactionResponse& from) { CopyFrom(from); return *this; } - inline SignRawTransactionResponse& operator=(SignRawTransactionResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SignRawTransactionResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SignRawTransactionResponse* internal_default_instance() { return reinterpret_cast( &_SignRawTransactionResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 21; - friend void swap(SignRawTransactionResponse& a, SignRawTransactionResponse& b) { - a.Swap(&b); - } - inline void Swap(SignRawTransactionResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SignRawTransactionResponse* other); // implements Message ---------------------------------------------- - inline SignRawTransactionResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SignRawTransactionResponse* New() const PROTOBUF_FINAL { return New(NULL); } - SignRawTransactionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SignRawTransactionResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SignRawTransactionResponse& from); void MergeFrom(const SignRawTransactionResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SignRawTransactionResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class DecodeRawTransactionRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) */ { +class DecodeRawTransactionRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) */ { public: DecodeRawTransactionRequest(); virtual ~DecodeRawTransactionRequest(); DecodeRawTransactionRequest(const DecodeRawTransactionRequest& from); - DecodeRawTransactionRequest(DecodeRawTransactionRequest&& from) noexcept - : DecodeRawTransactionRequest() { - *this = ::std::move(from); - } inline DecodeRawTransactionRequest& operator=(const DecodeRawTransactionRequest& from) { CopyFrom(from); return *this; } - inline DecodeRawTransactionRequest& operator=(DecodeRawTransactionRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const DecodeRawTransactionRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DecodeRawTransactionRequest* internal_default_instance() { return reinterpret_cast( &_DecodeRawTransactionRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 22; - friend void swap(DecodeRawTransactionRequest& a, DecodeRawTransactionRequest& b) { - a.Swap(&b); - } - inline void Swap(DecodeRawTransactionRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(DecodeRawTransactionRequest* other); // implements Message ---------------------------------------------- - inline DecodeRawTransactionRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline DecodeRawTransactionRequest* New() const PROTOBUF_FINAL { return New(NULL); } - DecodeRawTransactionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + DecodeRawTransactionRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const DecodeRawTransactionRequest& from); void MergeFrom(const DecodeRawTransactionRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(DecodeRawTransactionRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class DecodeRawTransactionResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) */ { +class DecodeRawTransactionResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) */ { public: DecodeRawTransactionResponse(); virtual ~DecodeRawTransactionResponse(); DecodeRawTransactionResponse(const DecodeRawTransactionResponse& from); - DecodeRawTransactionResponse(DecodeRawTransactionResponse&& from) noexcept - : DecodeRawTransactionResponse() { - *this = ::std::move(from); - } inline DecodeRawTransactionResponse& operator=(const DecodeRawTransactionResponse& from) { CopyFrom(from); return *this; } - inline DecodeRawTransactionResponse& operator=(DecodeRawTransactionResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const DecodeRawTransactionResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DecodeRawTransactionResponse* internal_default_instance() { return reinterpret_cast( &_DecodeRawTransactionResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 23; - friend void swap(DecodeRawTransactionResponse& a, DecodeRawTransactionResponse& b) { - a.Swap(&b); - } - inline void Swap(DecodeRawTransactionResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(DecodeRawTransactionResponse* other); // implements Message ---------------------------------------------- - inline DecodeRawTransactionResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline DecodeRawTransactionResponse* New() const PROTOBUF_FINAL { return New(NULL); } - DecodeRawTransactionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + DecodeRawTransactionResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const DecodeRawTransactionResponse& from); void MergeFrom(const DecodeRawTransactionResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(DecodeRawTransactionResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class BroadcastRawTransactionRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) */ { +class BroadcastRawTransactionRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) */ { public: BroadcastRawTransactionRequest(); virtual ~BroadcastRawTransactionRequest(); BroadcastRawTransactionRequest(const BroadcastRawTransactionRequest& from); - BroadcastRawTransactionRequest(BroadcastRawTransactionRequest&& from) noexcept - : BroadcastRawTransactionRequest() { - *this = ::std::move(from); - } inline BroadcastRawTransactionRequest& operator=(const BroadcastRawTransactionRequest& from) { CopyFrom(from); return *this; } - inline BroadcastRawTransactionRequest& operator=(BroadcastRawTransactionRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const BroadcastRawTransactionRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const BroadcastRawTransactionRequest* internal_default_instance() { return reinterpret_cast( &_BroadcastRawTransactionRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 24; - friend void swap(BroadcastRawTransactionRequest& a, BroadcastRawTransactionRequest& b) { - a.Swap(&b); - } - inline void Swap(BroadcastRawTransactionRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(BroadcastRawTransactionRequest* other); // implements Message ---------------------------------------------- - inline BroadcastRawTransactionRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline BroadcastRawTransactionRequest* New() const PROTOBUF_FINAL { return New(NULL); } - BroadcastRawTransactionRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + BroadcastRawTransactionRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BroadcastRawTransactionRequest& from); void MergeFrom(const BroadcastRawTransactionRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BroadcastRawTransactionRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kTransactionFieldNumber = 1, - }; // .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; bool has_transaction() const; - private: - bool _internal_has_transaction() const; - public: void clear_transaction(); + static const int kTransactionFieldNumber = 1; const ::Catalyst::Protocol::Wire::TransactionBroadcast& transaction() const; - ::Catalyst::Protocol::Wire::TransactionBroadcast* release_transaction(); ::Catalyst::Protocol::Wire::TransactionBroadcast* mutable_transaction(); + ::Catalyst::Protocol::Wire::TransactionBroadcast* release_transaction(); void set_allocated_transaction(::Catalyst::Protocol::Wire::TransactionBroadcast* transaction); - private: - const ::Catalyst::Protocol::Wire::TransactionBroadcast& _internal_transaction() const; - ::Catalyst::Protocol::Wire::TransactionBroadcast* _internal_mutable_transaction(); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::Catalyst::Protocol::Wire::TransactionBroadcast* transaction_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class BroadcastRawTransactionResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) */ { +class BroadcastRawTransactionResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) */ { public: BroadcastRawTransactionResponse(); virtual ~BroadcastRawTransactionResponse(); BroadcastRawTransactionResponse(const BroadcastRawTransactionResponse& from); - BroadcastRawTransactionResponse(BroadcastRawTransactionResponse&& from) noexcept - : BroadcastRawTransactionResponse() { - *this = ::std::move(from); - } inline BroadcastRawTransactionResponse& operator=(const BroadcastRawTransactionResponse& from) { CopyFrom(from); return *this; } - inline BroadcastRawTransactionResponse& operator=(BroadcastRawTransactionResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const BroadcastRawTransactionResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const BroadcastRawTransactionResponse* internal_default_instance() { return reinterpret_cast( &_BroadcastRawTransactionResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 25; - friend void swap(BroadcastRawTransactionResponse& a, BroadcastRawTransactionResponse& b) { - a.Swap(&b); - } - inline void Swap(BroadcastRawTransactionResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(BroadcastRawTransactionResponse* other); // implements Message ---------------------------------------------- - inline BroadcastRawTransactionResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline BroadcastRawTransactionResponse* New() const PROTOBUF_FINAL { return New(NULL); } - BroadcastRawTransactionResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + BroadcastRawTransactionResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BroadcastRawTransactionResponse& from); void MergeFrom(const BroadcastRawTransactionResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BroadcastRawTransactionResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kResponseCodeFieldNumber = 1, - }; // .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; void clear_response_code(); + static const int kResponseCodeFieldNumber = 1; ::Catalyst::Protocol::Rpc::Node::ResponseCode response_code() const; void set_response_code(::Catalyst::Protocol::Rpc::Node::ResponseCode value); - private: - ::Catalyst::Protocol::Rpc::Node::ResponseCode _internal_response_code() const; - void _internal_set_response_code(::Catalyst::Protocol::Rpc::Node::ResponseCode value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; int response_code_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SendToRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendToRequest) */ { +class SendToRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendToRequest) */ { public: SendToRequest(); virtual ~SendToRequest(); SendToRequest(const SendToRequest& from); - SendToRequest(SendToRequest&& from) noexcept - : SendToRequest() { - *this = ::std::move(from); - } inline SendToRequest& operator=(const SendToRequest& from) { CopyFrom(from); return *this; } - inline SendToRequest& operator=(SendToRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SendToRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SendToRequest* internal_default_instance() { return reinterpret_cast( &_SendToRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 26; - friend void swap(SendToRequest& a, SendToRequest& b) { - a.Swap(&b); - } - inline void Swap(SendToRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SendToRequest* other); // implements Message ---------------------------------------------- - inline SendToRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SendToRequest* New() const PROTOBUF_FINAL { return New(NULL); } - SendToRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SendToRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SendToRequest& from); void MergeFrom(const SendToRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SendToRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SendToRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendToRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SendToResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendToResponse) */ { +class SendToResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendToResponse) */ { public: SendToResponse(); virtual ~SendToResponse(); SendToResponse(const SendToResponse& from); - SendToResponse(SendToResponse&& from) noexcept - : SendToResponse() { - *this = ::std::move(from); - } inline SendToResponse& operator=(const SendToResponse& from) { CopyFrom(from); return *this; } - inline SendToResponse& operator=(SendToResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SendToResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SendToResponse* internal_default_instance() { return reinterpret_cast( &_SendToResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 27; - friend void swap(SendToResponse& a, SendToResponse& b) { - a.Swap(&b); - } - inline void Swap(SendToResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SendToResponse* other); // implements Message ---------------------------------------------- - inline SendToResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SendToResponse* New() const PROTOBUF_FINAL { return New(NULL); } - SendToResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SendToResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SendToResponse& from); void MergeFrom(const SendToResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SendToResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SendToResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendToResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SendToFromRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendToFromRequest) */ { +class SendToFromRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendToFromRequest) */ { public: SendToFromRequest(); virtual ~SendToFromRequest(); SendToFromRequest(const SendToFromRequest& from); - SendToFromRequest(SendToFromRequest&& from) noexcept - : SendToFromRequest() { - *this = ::std::move(from); - } inline SendToFromRequest& operator=(const SendToFromRequest& from) { CopyFrom(from); return *this; } - inline SendToFromRequest& operator=(SendToFromRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SendToFromRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SendToFromRequest* internal_default_instance() { return reinterpret_cast( &_SendToFromRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 28; - friend void swap(SendToFromRequest& a, SendToFromRequest& b) { - a.Swap(&b); - } - inline void Swap(SendToFromRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SendToFromRequest* other); // implements Message ---------------------------------------------- - inline SendToFromRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SendToFromRequest* New() const PROTOBUF_FINAL { return New(NULL); } - SendToFromRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SendToFromRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SendToFromRequest& from); void MergeFrom(const SendToFromRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SendToFromRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SendToFromRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendToFromRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SendToFromResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendToFromResponse) */ { +class SendToFromResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendToFromResponse) */ { public: SendToFromResponse(); virtual ~SendToFromResponse(); SendToFromResponse(const SendToFromResponse& from); - SendToFromResponse(SendToFromResponse&& from) noexcept - : SendToFromResponse() { - *this = ::std::move(from); - } inline SendToFromResponse& operator=(const SendToFromResponse& from) { CopyFrom(from); return *this; } - inline SendToFromResponse& operator=(SendToFromResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SendToFromResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SendToFromResponse* internal_default_instance() { return reinterpret_cast( &_SendToFromResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 29; - friend void swap(SendToFromResponse& a, SendToFromResponse& b) { - a.Swap(&b); - } - inline void Swap(SendToFromResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SendToFromResponse* other); // implements Message ---------------------------------------------- - inline SendToFromResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SendToFromResponse* New() const PROTOBUF_FINAL { return New(NULL); } - SendToFromResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SendToFromResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SendToFromResponse& from); void MergeFrom(const SendToFromResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SendToFromResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SendToFromResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendToFromResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SendManyRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendManyRequest) */ { +class SendManyRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendManyRequest) */ { public: SendManyRequest(); virtual ~SendManyRequest(); SendManyRequest(const SendManyRequest& from); - SendManyRequest(SendManyRequest&& from) noexcept - : SendManyRequest() { - *this = ::std::move(from); - } inline SendManyRequest& operator=(const SendManyRequest& from) { CopyFrom(from); return *this; } - inline SendManyRequest& operator=(SendManyRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SendManyRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SendManyRequest* internal_default_instance() { return reinterpret_cast( &_SendManyRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 30; - friend void swap(SendManyRequest& a, SendManyRequest& b) { - a.Swap(&b); - } - inline void Swap(SendManyRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SendManyRequest* other); // implements Message ---------------------------------------------- - inline SendManyRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SendManyRequest* New() const PROTOBUF_FINAL { return New(NULL); } - SendManyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SendManyRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SendManyRequest& from); void MergeFrom(const SendManyRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SendManyRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SendManyRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendManyRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SendManyResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendManyResponse) */ { +class SendManyResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendManyResponse) */ { public: SendManyResponse(); virtual ~SendManyResponse(); SendManyResponse(const SendManyResponse& from); - SendManyResponse(SendManyResponse&& from) noexcept - : SendManyResponse() { - *this = ::std::move(from); - } inline SendManyResponse& operator=(const SendManyResponse& from) { CopyFrom(from); return *this; } - inline SendManyResponse& operator=(SendManyResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SendManyResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SendManyResponse* internal_default_instance() { return reinterpret_cast( &_SendManyResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 31; - friend void swap(SendManyResponse& a, SendManyResponse& b) { - a.Swap(&b); - } - inline void Swap(SendManyResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SendManyResponse* other); // implements Message ---------------------------------------------- - inline SendManyResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SendManyResponse* New() const PROTOBUF_FINAL { return New(NULL); } - SendManyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SendManyResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SendManyResponse& from); void MergeFrom(const SendManyResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SendManyResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SendManyResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendManyResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SendFromManyRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) */ { +class SendFromManyRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) */ { public: SendFromManyRequest(); virtual ~SendFromManyRequest(); SendFromManyRequest(const SendFromManyRequest& from); - SendFromManyRequest(SendFromManyRequest&& from) noexcept - : SendFromManyRequest() { - *this = ::std::move(from); - } inline SendFromManyRequest& operator=(const SendFromManyRequest& from) { CopyFrom(from); return *this; } - inline SendFromManyRequest& operator=(SendFromManyRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SendFromManyRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SendFromManyRequest* internal_default_instance() { return reinterpret_cast( &_SendFromManyRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 32; - friend void swap(SendFromManyRequest& a, SendFromManyRequest& b) { - a.Swap(&b); - } - inline void Swap(SendFromManyRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SendFromManyRequest* other); // implements Message ---------------------------------------------- - inline SendFromManyRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SendFromManyRequest* New() const PROTOBUF_FINAL { return New(NULL); } - SendFromManyRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SendFromManyRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SendFromManyRequest& from); void MergeFrom(const SendFromManyRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SendFromManyRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SendFromManyRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SendFromManyResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) */ { +class SendFromManyResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) */ { public: SendFromManyResponse(); virtual ~SendFromManyResponse(); SendFromManyResponse(const SendFromManyResponse& from); - SendFromManyResponse(SendFromManyResponse&& from) noexcept - : SendFromManyResponse() { - *this = ::std::move(from); - } inline SendFromManyResponse& operator=(const SendFromManyResponse& from) { CopyFrom(from); return *this; } - inline SendFromManyResponse& operator=(SendFromManyResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SendFromManyResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SendFromManyResponse* internal_default_instance() { return reinterpret_cast( &_SendFromManyResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 33; - friend void swap(SendFromManyResponse& a, SendFromManyResponse& b) { - a.Swap(&b); - } - inline void Swap(SendFromManyResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SendFromManyResponse* other); // implements Message ---------------------------------------------- - inline SendFromManyResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SendFromManyResponse* New() const PROTOBUF_FINAL { return New(NULL); } - SendFromManyResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SendFromManyResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SendFromManyResponse& from); void MergeFrom(const SendFromManyResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SendFromManyResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SendFromManyResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class AddNodeRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.AddNodeRequest) */ { +class AddNodeRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.AddNodeRequest) */ { public: AddNodeRequest(); virtual ~AddNodeRequest(); AddNodeRequest(const AddNodeRequest& from); - AddNodeRequest(AddNodeRequest&& from) noexcept - : AddNodeRequest() { - *this = ::std::move(from); - } inline AddNodeRequest& operator=(const AddNodeRequest& from) { CopyFrom(from); return *this; } - inline AddNodeRequest& operator=(AddNodeRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const AddNodeRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AddNodeRequest* internal_default_instance() { return reinterpret_cast( &_AddNodeRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 34; - friend void swap(AddNodeRequest& a, AddNodeRequest& b) { - a.Swap(&b); - } - inline void Swap(AddNodeRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(AddNodeRequest* other); // implements Message ---------------------------------------------- - inline AddNodeRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline AddNodeRequest* New() const PROTOBUF_FINAL { return New(NULL); } - AddNodeRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + AddNodeRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const AddNodeRequest& from); void MergeFrom(const AddNodeRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(AddNodeRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.AddNodeRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.AddNodeRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class AddNodeResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.AddNodeResponse) */ { +class AddNodeResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.AddNodeResponse) */ { public: AddNodeResponse(); virtual ~AddNodeResponse(); AddNodeResponse(const AddNodeResponse& from); - AddNodeResponse(AddNodeResponse&& from) noexcept - : AddNodeResponse() { - *this = ::std::move(from); - } inline AddNodeResponse& operator=(const AddNodeResponse& from) { CopyFrom(from); return *this; } - inline AddNodeResponse& operator=(AddNodeResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const AddNodeResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AddNodeResponse* internal_default_instance() { return reinterpret_cast( &_AddNodeResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 35; - friend void swap(AddNodeResponse& a, AddNodeResponse& b) { - a.Swap(&b); - } - inline void Swap(AddNodeResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(AddNodeResponse* other); // implements Message ---------------------------------------------- - inline AddNodeResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline AddNodeResponse* New() const PROTOBUF_FINAL { return New(NULL); } - AddNodeResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + AddNodeResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const AddNodeResponse& from); void MergeFrom(const AddNodeResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(AddNodeResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.AddNodeResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.AddNodeResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetPeerListRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) */ { +class GetPeerListRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) */ { public: GetPeerListRequest(); virtual ~GetPeerListRequest(); GetPeerListRequest(const GetPeerListRequest& from); - GetPeerListRequest(GetPeerListRequest&& from) noexcept - : GetPeerListRequest() { - *this = ::std::move(from); - } inline GetPeerListRequest& operator=(const GetPeerListRequest& from) { CopyFrom(from); return *this; } - inline GetPeerListRequest& operator=(GetPeerListRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetPeerListRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetPeerListRequest* internal_default_instance() { return reinterpret_cast( &_GetPeerListRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 36; - friend void swap(GetPeerListRequest& a, GetPeerListRequest& b) { - a.Swap(&b); - } - inline void Swap(GetPeerListRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetPeerListRequest* other); // implements Message ---------------------------------------------- - inline GetPeerListRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetPeerListRequest* New() const PROTOBUF_FINAL { return New(NULL); } - GetPeerListRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetPeerListRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetPeerListRequest& from); void MergeFrom(const GetPeerListRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetPeerListRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetPeerListRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -5219,3764 +3549,2534 @@ class GetPeerListRequest : // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetPeerListResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) */ { +class GetPeerListResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) */ { public: GetPeerListResponse(); virtual ~GetPeerListResponse(); GetPeerListResponse(const GetPeerListResponse& from); - GetPeerListResponse(GetPeerListResponse&& from) noexcept - : GetPeerListResponse() { - *this = ::std::move(from); - } inline GetPeerListResponse& operator=(const GetPeerListResponse& from) { CopyFrom(from); return *this; } - inline GetPeerListResponse& operator=(GetPeerListResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetPeerListResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetPeerListResponse* internal_default_instance() { return reinterpret_cast( &_GetPeerListResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 37; - friend void swap(GetPeerListResponse& a, GetPeerListResponse& b) { - a.Swap(&b); - } - inline void Swap(GetPeerListResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetPeerListResponse* other); // implements Message ---------------------------------------------- - inline GetPeerListResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetPeerListResponse* New() const PROTOBUF_FINAL { return New(NULL); } - GetPeerListResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetPeerListResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetPeerListResponse& from); void MergeFrom(const GetPeerListResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetPeerListResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetPeerListResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPeersFieldNumber = 1, - }; // repeated .Catalyst.Protocol.Peer.PeerId peers = 1; int peers_size() const; - private: - int _internal_peers_size() const; - public: void clear_peers(); - ::Catalyst::Protocol::Peer::PeerId* mutable_peers(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >* - mutable_peers(); - private: - const ::Catalyst::Protocol::Peer::PeerId& _internal_peers(int index) const; - ::Catalyst::Protocol::Peer::PeerId* _internal_add_peers(); - public: + static const int kPeersFieldNumber = 1; const ::Catalyst::Protocol::Peer::PeerId& peers(int index) const; + ::Catalyst::Protocol::Peer::PeerId* mutable_peers(int index); ::Catalyst::Protocol::Peer::PeerId* add_peers(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >& + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >* + mutable_peers(); + const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >& peers() const; // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId > peers_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId > peers_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetPeerReputationRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) */ { +class GetPeerReputationRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) */ { public: GetPeerReputationRequest(); virtual ~GetPeerReputationRequest(); GetPeerReputationRequest(const GetPeerReputationRequest& from); - GetPeerReputationRequest(GetPeerReputationRequest&& from) noexcept - : GetPeerReputationRequest() { - *this = ::std::move(from); - } inline GetPeerReputationRequest& operator=(const GetPeerReputationRequest& from) { CopyFrom(from); return *this; } - inline GetPeerReputationRequest& operator=(GetPeerReputationRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetPeerReputationRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetPeerReputationRequest* internal_default_instance() { return reinterpret_cast( &_GetPeerReputationRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 38; - friend void swap(GetPeerReputationRequest& a, GetPeerReputationRequest& b) { - a.Swap(&b); - } - inline void Swap(GetPeerReputationRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetPeerReputationRequest* other); // implements Message ---------------------------------------------- - inline GetPeerReputationRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetPeerReputationRequest* New() const PROTOBUF_FINAL { return New(NULL); } - GetPeerReputationRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetPeerReputationRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetPeerReputationRequest& from); void MergeFrom(const GetPeerReputationRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetPeerReputationRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPublicKeyFieldNumber = 1, - kIpFieldNumber = 2, - }; // bytes public_key = 1; void clear_public_key(); - const std::string& public_key() const; - void set_public_key(const std::string& value); - void set_public_key(std::string&& value); + static const int kPublicKeyFieldNumber = 1; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif void set_public_key(const char* value); void set_public_key(const void* value, size_t size); - std::string* mutable_public_key(); - std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); // bytes ip = 2; void clear_ip(); - const std::string& ip() const; - void set_ip(const std::string& value); - void set_ip(std::string&& value); + static const int kIpFieldNumber = 2; + const ::std::string& ip() const; + void set_ip(const ::std::string& value); + #if LANG_CXX11 + void set_ip(::std::string&& value); + #endif void set_ip(const char* value); void set_ip(const void* value, size_t size); - std::string* mutable_ip(); - std::string* release_ip(); - void set_allocated_ip(std::string* ip); - private: - const std::string& _internal_ip() const; - void _internal_set_ip(const std::string& value); - std::string* _internal_mutable_ip(); - public: + ::std::string* mutable_ip(); + ::std::string* release_ip(); + void set_allocated_ip(::std::string* ip); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr ip_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetPeerReputationResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) */ { +class GetPeerReputationResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) */ { public: GetPeerReputationResponse(); virtual ~GetPeerReputationResponse(); GetPeerReputationResponse(const GetPeerReputationResponse& from); - GetPeerReputationResponse(GetPeerReputationResponse&& from) noexcept - : GetPeerReputationResponse() { - *this = ::std::move(from); - } inline GetPeerReputationResponse& operator=(const GetPeerReputationResponse& from) { CopyFrom(from); return *this; } - inline GetPeerReputationResponse& operator=(GetPeerReputationResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetPeerReputationResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetPeerReputationResponse* internal_default_instance() { return reinterpret_cast( &_GetPeerReputationResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 39; - friend void swap(GetPeerReputationResponse& a, GetPeerReputationResponse& b) { - a.Swap(&b); - } - inline void Swap(GetPeerReputationResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetPeerReputationResponse* other); // implements Message ---------------------------------------------- - inline GetPeerReputationResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetPeerReputationResponse* New() const PROTOBUF_FINAL { return New(NULL); } - GetPeerReputationResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetPeerReputationResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetPeerReputationResponse& from); void MergeFrom(const GetPeerReputationResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetPeerReputationResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kReputationFieldNumber = 1, - }; // int32 reputation = 1; void clear_reputation(); - ::PROTOBUF_NAMESPACE_ID::int32 reputation() const; - void set_reputation(::PROTOBUF_NAMESPACE_ID::int32 value); - private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_reputation() const; - void _internal_set_reputation(::PROTOBUF_NAMESPACE_ID::int32 value); - public: + static const int kReputationFieldNumber = 1; + ::google::protobuf::int32 reputation() const; + void set_reputation(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::int32 reputation_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int32 reputation_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SetPeerBlackListRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) */ { +class SetPeerBlackListRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) */ { public: SetPeerBlackListRequest(); virtual ~SetPeerBlackListRequest(); SetPeerBlackListRequest(const SetPeerBlackListRequest& from); - SetPeerBlackListRequest(SetPeerBlackListRequest&& from) noexcept - : SetPeerBlackListRequest() { - *this = ::std::move(from); - } inline SetPeerBlackListRequest& operator=(const SetPeerBlackListRequest& from) { CopyFrom(from); return *this; } - inline SetPeerBlackListRequest& operator=(SetPeerBlackListRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SetPeerBlackListRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SetPeerBlackListRequest* internal_default_instance() { return reinterpret_cast( &_SetPeerBlackListRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 40; - friend void swap(SetPeerBlackListRequest& a, SetPeerBlackListRequest& b) { - a.Swap(&b); - } - inline void Swap(SetPeerBlackListRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SetPeerBlackListRequest* other); // implements Message ---------------------------------------------- - inline SetPeerBlackListRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SetPeerBlackListRequest* New() const PROTOBUF_FINAL { return New(NULL); } - SetPeerBlackListRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SetPeerBlackListRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SetPeerBlackListRequest& from); void MergeFrom(const SetPeerBlackListRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SetPeerBlackListRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPublicKeyFieldNumber = 1, - kIpFieldNumber = 2, - kBlacklistFieldNumber = 3, - }; // bytes public_key = 1; void clear_public_key(); - const std::string& public_key() const; - void set_public_key(const std::string& value); - void set_public_key(std::string&& value); + static const int kPublicKeyFieldNumber = 1; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif void set_public_key(const char* value); void set_public_key(const void* value, size_t size); - std::string* mutable_public_key(); - std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); // bytes ip = 2; void clear_ip(); - const std::string& ip() const; - void set_ip(const std::string& value); - void set_ip(std::string&& value); + static const int kIpFieldNumber = 2; + const ::std::string& ip() const; + void set_ip(const ::std::string& value); + #if LANG_CXX11 + void set_ip(::std::string&& value); + #endif void set_ip(const char* value); void set_ip(const void* value, size_t size); - std::string* mutable_ip(); - std::string* release_ip(); - void set_allocated_ip(std::string* ip); - private: - const std::string& _internal_ip() const; - void _internal_set_ip(const std::string& value); - std::string* _internal_mutable_ip(); - public: + ::std::string* mutable_ip(); + ::std::string* release_ip(); + void set_allocated_ip(::std::string* ip); // bool blacklist = 3; void clear_blacklist(); + static const int kBlacklistFieldNumber = 3; bool blacklist() const; void set_blacklist(bool value); - private: - bool _internal_blacklist() const; - void _internal_set_blacklist(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr ip_; bool blacklist_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SetPeerBlackListResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) */ { +class SetPeerBlackListResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) */ { public: SetPeerBlackListResponse(); virtual ~SetPeerBlackListResponse(); SetPeerBlackListResponse(const SetPeerBlackListResponse& from); - SetPeerBlackListResponse(SetPeerBlackListResponse&& from) noexcept - : SetPeerBlackListResponse() { - *this = ::std::move(from); - } inline SetPeerBlackListResponse& operator=(const SetPeerBlackListResponse& from) { CopyFrom(from); return *this; } - inline SetPeerBlackListResponse& operator=(SetPeerBlackListResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SetPeerBlackListResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SetPeerBlackListResponse* internal_default_instance() { return reinterpret_cast( &_SetPeerBlackListResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 41; - friend void swap(SetPeerBlackListResponse& a, SetPeerBlackListResponse& b) { - a.Swap(&b); - } - inline void Swap(SetPeerBlackListResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SetPeerBlackListResponse* other); // implements Message ---------------------------------------------- - inline SetPeerBlackListResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SetPeerBlackListResponse* New() const PROTOBUF_FINAL { return New(NULL); } - SetPeerBlackListResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SetPeerBlackListResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SetPeerBlackListResponse& from); void MergeFrom(const SetPeerBlackListResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SetPeerBlackListResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPublicKeyFieldNumber = 1, - kIpFieldNumber = 2, - kBlacklistFieldNumber = 3, - }; // bytes public_key = 1; void clear_public_key(); - const std::string& public_key() const; - void set_public_key(const std::string& value); - void set_public_key(std::string&& value); + static const int kPublicKeyFieldNumber = 1; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif void set_public_key(const char* value); void set_public_key(const void* value, size_t size); - std::string* mutable_public_key(); - std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); // bytes ip = 2; void clear_ip(); - const std::string& ip() const; - void set_ip(const std::string& value); - void set_ip(std::string&& value); + static const int kIpFieldNumber = 2; + const ::std::string& ip() const; + void set_ip(const ::std::string& value); + #if LANG_CXX11 + void set_ip(::std::string&& value); + #endif void set_ip(const char* value); void set_ip(const void* value, size_t size); - std::string* mutable_ip(); - std::string* release_ip(); - void set_allocated_ip(std::string* ip); - private: - const std::string& _internal_ip() const; - void _internal_set_ip(const std::string& value); - std::string* _internal_mutable_ip(); - public: + ::std::string* mutable_ip(); + ::std::string* release_ip(); + void set_allocated_ip(::std::string* ip); // bool blacklist = 3; void clear_blacklist(); + static const int kBlacklistFieldNumber = 3; bool blacklist() const; void set_blacklist(bool value); - private: - bool _internal_blacklist() const; - void _internal_set_blacklist(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr ip_; bool blacklist_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetPeerInfoRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) */ { +class GetPeerInfoRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) */ { public: GetPeerInfoRequest(); virtual ~GetPeerInfoRequest(); GetPeerInfoRequest(const GetPeerInfoRequest& from); - GetPeerInfoRequest(GetPeerInfoRequest&& from) noexcept - : GetPeerInfoRequest() { - *this = ::std::move(from); - } inline GetPeerInfoRequest& operator=(const GetPeerInfoRequest& from) { CopyFrom(from); return *this; } - inline GetPeerInfoRequest& operator=(GetPeerInfoRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetPeerInfoRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetPeerInfoRequest* internal_default_instance() { return reinterpret_cast( &_GetPeerInfoRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 42; - friend void swap(GetPeerInfoRequest& a, GetPeerInfoRequest& b) { - a.Swap(&b); - } - inline void Swap(GetPeerInfoRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetPeerInfoRequest* other); // implements Message ---------------------------------------------- - inline GetPeerInfoRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetPeerInfoRequest* New() const PROTOBUF_FINAL { return New(NULL); } - GetPeerInfoRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetPeerInfoRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetPeerInfoRequest& from); void MergeFrom(const GetPeerInfoRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetPeerInfoRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPublicKeyFieldNumber = 1, - kIpFieldNumber = 2, - }; // bytes public_key = 1; void clear_public_key(); - const std::string& public_key() const; - void set_public_key(const std::string& value); - void set_public_key(std::string&& value); + static const int kPublicKeyFieldNumber = 1; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif void set_public_key(const char* value); void set_public_key(const void* value, size_t size); - std::string* mutable_public_key(); - std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); // bytes ip = 2; void clear_ip(); - const std::string& ip() const; - void set_ip(const std::string& value); - void set_ip(std::string&& value); + static const int kIpFieldNumber = 2; + const ::std::string& ip() const; + void set_ip(const ::std::string& value); + #if LANG_CXX11 + void set_ip(::std::string&& value); + #endif void set_ip(const char* value); void set_ip(const void* value, size_t size); - std::string* mutable_ip(); - std::string* release_ip(); - void set_allocated_ip(std::string* ip); - private: - const std::string& _internal_ip() const; - void _internal_set_ip(const std::string& value); - std::string* _internal_mutable_ip(); - public: + ::std::string* mutable_ip(); + ::std::string* release_ip(); + void set_allocated_ip(::std::string* ip); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr ip_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetPeerInfoResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) */ { +class GetPeerInfoResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) */ { public: GetPeerInfoResponse(); virtual ~GetPeerInfoResponse(); GetPeerInfoResponse(const GetPeerInfoResponse& from); - GetPeerInfoResponse(GetPeerInfoResponse&& from) noexcept - : GetPeerInfoResponse() { - *this = ::std::move(from); - } inline GetPeerInfoResponse& operator=(const GetPeerInfoResponse& from) { CopyFrom(from); return *this; } - inline GetPeerInfoResponse& operator=(GetPeerInfoResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetPeerInfoResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetPeerInfoResponse* internal_default_instance() { return reinterpret_cast( &_GetPeerInfoResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 43; - friend void swap(GetPeerInfoResponse& a, GetPeerInfoResponse& b) { - a.Swap(&b); - } - inline void Swap(GetPeerInfoResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetPeerInfoResponse* other); // implements Message ---------------------------------------------- - inline GetPeerInfoResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetPeerInfoResponse* New() const PROTOBUF_FINAL { return New(NULL); } - GetPeerInfoResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetPeerInfoResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetPeerInfoResponse& from); void MergeFrom(const GetPeerInfoResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetPeerInfoResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPeerInfoFieldNumber = 1, - }; // repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; int peer_info_size() const; - private: - int _internal_peer_info_size() const; - public: void clear_peer_info(); - ::Catalyst::Protocol::Peer::PeerInfo* mutable_peer_info(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerInfo >* - mutable_peer_info(); - private: - const ::Catalyst::Protocol::Peer::PeerInfo& _internal_peer_info(int index) const; - ::Catalyst::Protocol::Peer::PeerInfo* _internal_add_peer_info(); - public: + static const int kPeerInfoFieldNumber = 1; const ::Catalyst::Protocol::Peer::PeerInfo& peer_info(int index) const; + ::Catalyst::Protocol::Peer::PeerInfo* mutable_peer_info(int index); ::Catalyst::Protocol::Peer::PeerInfo* add_peer_info(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerInfo >& + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerInfo >* + mutable_peer_info(); + const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerInfo >& peer_info() const; // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerInfo > peer_info_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerInfo > peer_info_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetConnectionCountRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) */ { +class GetConnectionCountRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) */ { public: GetConnectionCountRequest(); virtual ~GetConnectionCountRequest(); GetConnectionCountRequest(const GetConnectionCountRequest& from); - GetConnectionCountRequest(GetConnectionCountRequest&& from) noexcept - : GetConnectionCountRequest() { - *this = ::std::move(from); - } inline GetConnectionCountRequest& operator=(const GetConnectionCountRequest& from) { CopyFrom(from); return *this; } - inline GetConnectionCountRequest& operator=(GetConnectionCountRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetConnectionCountRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetConnectionCountRequest* internal_default_instance() { return reinterpret_cast( &_GetConnectionCountRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 44; - friend void swap(GetConnectionCountRequest& a, GetConnectionCountRequest& b) { - a.Swap(&b); - } - inline void Swap(GetConnectionCountRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetConnectionCountRequest* other); // implements Message ---------------------------------------------- - inline GetConnectionCountRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetConnectionCountRequest* New() const PROTOBUF_FINAL { return New(NULL); } - GetConnectionCountRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetConnectionCountRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetConnectionCountRequest& from); void MergeFrom(const GetConnectionCountRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetConnectionCountRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetConnectionCountResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) */ { +class GetConnectionCountResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) */ { public: GetConnectionCountResponse(); virtual ~GetConnectionCountResponse(); GetConnectionCountResponse(const GetConnectionCountResponse& from); - GetConnectionCountResponse(GetConnectionCountResponse&& from) noexcept - : GetConnectionCountResponse() { - *this = ::std::move(from); - } inline GetConnectionCountResponse& operator=(const GetConnectionCountResponse& from) { CopyFrom(from); return *this; } - inline GetConnectionCountResponse& operator=(GetConnectionCountResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetConnectionCountResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetConnectionCountResponse* internal_default_instance() { return reinterpret_cast( &_GetConnectionCountResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 45; - friend void swap(GetConnectionCountResponse& a, GetConnectionCountResponse& b) { - a.Swap(&b); - } - inline void Swap(GetConnectionCountResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetConnectionCountResponse* other); // implements Message ---------------------------------------------- - inline GetConnectionCountResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetConnectionCountResponse* New() const PROTOBUF_FINAL { return New(NULL); } - GetConnectionCountResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetConnectionCountResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetConnectionCountResponse& from); void MergeFrom(const GetConnectionCountResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetConnectionCountResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetDeltaRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) */ { +class GetDeltaRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) */ { public: GetDeltaRequest(); virtual ~GetDeltaRequest(); GetDeltaRequest(const GetDeltaRequest& from); - GetDeltaRequest(GetDeltaRequest&& from) noexcept - : GetDeltaRequest() { - *this = ::std::move(from); - } inline GetDeltaRequest& operator=(const GetDeltaRequest& from) { CopyFrom(from); return *this; } - inline GetDeltaRequest& operator=(GetDeltaRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetDeltaRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetDeltaRequest* internal_default_instance() { return reinterpret_cast( &_GetDeltaRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 46; - friend void swap(GetDeltaRequest& a, GetDeltaRequest& b) { - a.Swap(&b); - } - inline void Swap(GetDeltaRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetDeltaRequest* other); // implements Message ---------------------------------------------- - inline GetDeltaRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetDeltaRequest* New() const PROTOBUF_FINAL { return New(NULL); } - GetDeltaRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetDeltaRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetDeltaRequest& from); void MergeFrom(const GetDeltaRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetDeltaRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetDeltaRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kDeltaDfsHashFieldNumber = 1, - }; // bytes delta_dfs_hash = 1; void clear_delta_dfs_hash(); - const std::string& delta_dfs_hash() const; - void set_delta_dfs_hash(const std::string& value); - void set_delta_dfs_hash(std::string&& value); + static const int kDeltaDfsHashFieldNumber = 1; + const ::std::string& delta_dfs_hash() const; + void set_delta_dfs_hash(const ::std::string& value); + #if LANG_CXX11 + void set_delta_dfs_hash(::std::string&& value); + #endif void set_delta_dfs_hash(const char* value); void set_delta_dfs_hash(const void* value, size_t size); - std::string* mutable_delta_dfs_hash(); - std::string* release_delta_dfs_hash(); - void set_allocated_delta_dfs_hash(std::string* delta_dfs_hash); - private: - const std::string& _internal_delta_dfs_hash() const; - void _internal_set_delta_dfs_hash(const std::string& value); - std::string* _internal_mutable_delta_dfs_hash(); - public: + ::std::string* mutable_delta_dfs_hash(); + ::std::string* release_delta_dfs_hash(); + void set_allocated_delta_dfs_hash(::std::string* delta_dfs_hash); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delta_dfs_hash_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr delta_dfs_hash_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetDeltaResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) */ { +class GetDeltaResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) */ { public: GetDeltaResponse(); virtual ~GetDeltaResponse(); GetDeltaResponse(const GetDeltaResponse& from); - GetDeltaResponse(GetDeltaResponse&& from) noexcept - : GetDeltaResponse() { - *this = ::std::move(from); - } inline GetDeltaResponse& operator=(const GetDeltaResponse& from) { CopyFrom(from); return *this; } - inline GetDeltaResponse& operator=(GetDeltaResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetDeltaResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetDeltaResponse* internal_default_instance() { return reinterpret_cast( &_GetDeltaResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 47; - friend void swap(GetDeltaResponse& a, GetDeltaResponse& b) { - a.Swap(&b); - } - inline void Swap(GetDeltaResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetDeltaResponse* other); // implements Message ---------------------------------------------- - inline GetDeltaResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetDeltaResponse* New() const PROTOBUF_FINAL { return New(NULL); } - GetDeltaResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetDeltaResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetDeltaResponse& from); void MergeFrom(const GetDeltaResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetDeltaResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetDeltaResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kDeltaFieldNumber = 1, - }; // .Catalyst.Protocol.Deltas.Delta delta = 1; bool has_delta() const; - private: - bool _internal_has_delta() const; - public: void clear_delta(); + static const int kDeltaFieldNumber = 1; const ::Catalyst::Protocol::Deltas::Delta& delta() const; - ::Catalyst::Protocol::Deltas::Delta* release_delta(); ::Catalyst::Protocol::Deltas::Delta* mutable_delta(); + ::Catalyst::Protocol::Deltas::Delta* release_delta(); void set_allocated_delta(::Catalyst::Protocol::Deltas::Delta* delta); - private: - const ::Catalyst::Protocol::Deltas::Delta& _internal_delta() const; - ::Catalyst::Protocol::Deltas::Delta* _internal_mutable_delta(); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::Catalyst::Protocol::Deltas::Delta* delta_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetMempoolRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) */ { +class GetMempoolRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) */ { public: GetMempoolRequest(); virtual ~GetMempoolRequest(); GetMempoolRequest(const GetMempoolRequest& from); - GetMempoolRequest(GetMempoolRequest&& from) noexcept - : GetMempoolRequest() { - *this = ::std::move(from); - } inline GetMempoolRequest& operator=(const GetMempoolRequest& from) { CopyFrom(from); return *this; } - inline GetMempoolRequest& operator=(GetMempoolRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetMempoolRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetMempoolRequest* internal_default_instance() { return reinterpret_cast( &_GetMempoolRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 48; - friend void swap(GetMempoolRequest& a, GetMempoolRequest& b) { - a.Swap(&b); - } - inline void Swap(GetMempoolRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetMempoolRequest* other); // implements Message ---------------------------------------------- - inline GetMempoolRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetMempoolRequest* New() const PROTOBUF_FINAL { return New(NULL); } - GetMempoolRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetMempoolRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetMempoolRequest& from); void MergeFrom(const GetMempoolRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetMempoolRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetMempoolRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetMempoolResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) */ { +class GetMempoolResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) */ { public: GetMempoolResponse(); virtual ~GetMempoolResponse(); GetMempoolResponse(const GetMempoolResponse& from); - GetMempoolResponse(GetMempoolResponse&& from) noexcept - : GetMempoolResponse() { - *this = ::std::move(from); - } inline GetMempoolResponse& operator=(const GetMempoolResponse& from) { CopyFrom(from); return *this; } - inline GetMempoolResponse& operator=(GetMempoolResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetMempoolResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetMempoolResponse* internal_default_instance() { return reinterpret_cast( &_GetMempoolResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 49; - friend void swap(GetMempoolResponse& a, GetMempoolResponse& b) { - a.Swap(&b); - } - inline void Swap(GetMempoolResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetMempoolResponse* other); // implements Message ---------------------------------------------- - inline GetMempoolResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetMempoolResponse* New() const PROTOBUF_FINAL { return New(NULL); } - GetMempoolResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetMempoolResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetMempoolResponse& from); void MergeFrom(const GetMempoolResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetMempoolResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetMempoolResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kTransactionsFieldNumber = 1, - }; // repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; int transactions_size() const; - private: - int _internal_transactions_size() const; - public: void clear_transactions(); - ::Catalyst::Protocol::Transaction::PublicEntry* mutable_transactions(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >* - mutable_transactions(); - private: - const ::Catalyst::Protocol::Transaction::PublicEntry& _internal_transactions(int index) const; - ::Catalyst::Protocol::Transaction::PublicEntry* _internal_add_transactions(); - public: + static const int kTransactionsFieldNumber = 1; const ::Catalyst::Protocol::Transaction::PublicEntry& transactions(int index) const; + ::Catalyst::Protocol::Transaction::PublicEntry* mutable_transactions(int index); ::Catalyst::Protocol::Transaction::PublicEntry* add_transactions(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >& + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >* + mutable_transactions(); + const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >& transactions() const; // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry > transactions_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry > transactions_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SignMessageRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SignMessageRequest) */ { +class SignMessageRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SignMessageRequest) */ { public: SignMessageRequest(); virtual ~SignMessageRequest(); SignMessageRequest(const SignMessageRequest& from); - SignMessageRequest(SignMessageRequest&& from) noexcept - : SignMessageRequest() { - *this = ::std::move(from); - } inline SignMessageRequest& operator=(const SignMessageRequest& from) { CopyFrom(from); return *this; } - inline SignMessageRequest& operator=(SignMessageRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SignMessageRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SignMessageRequest* internal_default_instance() { return reinterpret_cast( &_SignMessageRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 50; - friend void swap(SignMessageRequest& a, SignMessageRequest& b) { - a.Swap(&b); - } - inline void Swap(SignMessageRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SignMessageRequest* other); // implements Message ---------------------------------------------- - inline SignMessageRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SignMessageRequest* New() const PROTOBUF_FINAL { return New(NULL); } - SignMessageRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SignMessageRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SignMessageRequest& from); void MergeFrom(const SignMessageRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SignMessageRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SignMessageRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kMessageFieldNumber = 1, - kKeyIdFieldNumber = 2, - kSigningContextFieldNumber = 3, - }; // bytes message = 1; void clear_message(); - const std::string& message() const; - void set_message(const std::string& value); - void set_message(std::string&& value); + static const int kMessageFieldNumber = 1; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif void set_message(const char* value); void set_message(const void* value, size_t size); - std::string* mutable_message(); - std::string* release_message(); - void set_allocated_message(std::string* message); - private: - const std::string& _internal_message() const; - void _internal_set_message(const std::string& value); - std::string* _internal_mutable_message(); - public: + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); // string key_id = 2; void clear_key_id(); - const std::string& key_id() const; - void set_key_id(const std::string& value); - void set_key_id(std::string&& value); + static const int kKeyIdFieldNumber = 2; + const ::std::string& key_id() const; + void set_key_id(const ::std::string& value); + #if LANG_CXX11 + void set_key_id(::std::string&& value); + #endif void set_key_id(const char* value); void set_key_id(const char* value, size_t size); - std::string* mutable_key_id(); - std::string* release_key_id(); - void set_allocated_key_id(std::string* key_id); - private: - const std::string& _internal_key_id() const; - void _internal_set_key_id(const std::string& value); - std::string* _internal_mutable_key_id(); - public: + ::std::string* mutable_key_id(); + ::std::string* release_key_id(); + void set_allocated_key_id(::std::string* key_id); // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; bool has_signing_context() const; - private: - bool _internal_has_signing_context() const; - public: void clear_signing_context(); + static const int kSigningContextFieldNumber = 3; const ::Catalyst::Protocol::Cryptography::SigningContext& signing_context() const; - ::Catalyst::Protocol::Cryptography::SigningContext* release_signing_context(); ::Catalyst::Protocol::Cryptography::SigningContext* mutable_signing_context(); + ::Catalyst::Protocol::Cryptography::SigningContext* release_signing_context(); void set_allocated_signing_context(::Catalyst::Protocol::Cryptography::SigningContext* signing_context); - private: - const ::Catalyst::Protocol::Cryptography::SigningContext& _internal_signing_context() const; - ::Catalyst::Protocol::Cryptography::SigningContext* _internal_mutable_signing_context(); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SignMessageRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_id_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr message_; + ::google::protobuf::internal::ArenaStringPtr key_id_; ::Catalyst::Protocol::Cryptography::SigningContext* signing_context_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SignMessageResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SignMessageResponse) */ { +class SignMessageResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SignMessageResponse) */ { public: SignMessageResponse(); virtual ~SignMessageResponse(); SignMessageResponse(const SignMessageResponse& from); - SignMessageResponse(SignMessageResponse&& from) noexcept - : SignMessageResponse() { - *this = ::std::move(from); - } inline SignMessageResponse& operator=(const SignMessageResponse& from) { CopyFrom(from); return *this; } - inline SignMessageResponse& operator=(SignMessageResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SignMessageResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SignMessageResponse* internal_default_instance() { return reinterpret_cast( &_SignMessageResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 51; - friend void swap(SignMessageResponse& a, SignMessageResponse& b) { - a.Swap(&b); - } - inline void Swap(SignMessageResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SignMessageResponse* other); // implements Message ---------------------------------------------- - inline SignMessageResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SignMessageResponse* New() const PROTOBUF_FINAL { return New(NULL); } - SignMessageResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SignMessageResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SignMessageResponse& from); void MergeFrom(const SignMessageResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SignMessageResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SignMessageResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kSignatureFieldNumber = 1, - kPublicKeyFieldNumber = 2, - kOriginalMessageFieldNumber = 3, - }; // bytes signature = 1; void clear_signature(); - const std::string& signature() const; - void set_signature(const std::string& value); - void set_signature(std::string&& value); + static const int kSignatureFieldNumber = 1; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif void set_signature(const char* value); void set_signature(const void* value, size_t size); - std::string* mutable_signature(); - std::string* release_signature(); - void set_allocated_signature(std::string* signature); - private: - const std::string& _internal_signature() const; - void _internal_set_signature(const std::string& value); - std::string* _internal_mutable_signature(); - public: + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); // bytes public_key = 2; void clear_public_key(); - const std::string& public_key() const; - void set_public_key(const std::string& value); - void set_public_key(std::string&& value); + static const int kPublicKeyFieldNumber = 2; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif void set_public_key(const char* value); void set_public_key(const void* value, size_t size); - std::string* mutable_public_key(); - std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); // bytes original_message = 3; void clear_original_message(); - const std::string& original_message() const; - void set_original_message(const std::string& value); - void set_original_message(std::string&& value); + static const int kOriginalMessageFieldNumber = 3; + const ::std::string& original_message() const; + void set_original_message(const ::std::string& value); + #if LANG_CXX11 + void set_original_message(::std::string&& value); + #endif void set_original_message(const char* value); void set_original_message(const void* value, size_t size); - std::string* mutable_original_message(); - std::string* release_original_message(); - void set_allocated_original_message(std::string* original_message); - private: - const std::string& _internal_original_message() const; - void _internal_set_original_message(const std::string& value); - std::string* _internal_mutable_original_message(); - public: + ::std::string* mutable_original_message(); + ::std::string* release_original_message(); + void set_allocated_original_message(::std::string* original_message); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SignMessageResponse) private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signature_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr original_message_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr original_message_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class VerifyMessageRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) */ { +class VerifyMessageRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) */ { public: VerifyMessageRequest(); virtual ~VerifyMessageRequest(); VerifyMessageRequest(const VerifyMessageRequest& from); - VerifyMessageRequest(VerifyMessageRequest&& from) noexcept - : VerifyMessageRequest() { - *this = ::std::move(from); - } inline VerifyMessageRequest& operator=(const VerifyMessageRequest& from) { CopyFrom(from); return *this; } - inline VerifyMessageRequest& operator=(VerifyMessageRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const VerifyMessageRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const VerifyMessageRequest* internal_default_instance() { return reinterpret_cast( &_VerifyMessageRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 52; - friend void swap(VerifyMessageRequest& a, VerifyMessageRequest& b) { - a.Swap(&b); - } - inline void Swap(VerifyMessageRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(VerifyMessageRequest* other); // implements Message ---------------------------------------------- - inline VerifyMessageRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline VerifyMessageRequest* New() const PROTOBUF_FINAL { return New(NULL); } - VerifyMessageRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + VerifyMessageRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const VerifyMessageRequest& from); void MergeFrom(const VerifyMessageRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(VerifyMessageRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.VerifyMessageRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } - inline void* MaybeArenaPtr() const { - return nullptr; - } - public: - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; + inline void* MaybeArenaPtr() const { + return NULL; } - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kSignatureFieldNumber = 1, - kPublicKeyFieldNumber = 2, - kMessageFieldNumber = 3, - kSigningContextFieldNumber = 4, - }; // bytes signature = 1; void clear_signature(); - const std::string& signature() const; - void set_signature(const std::string& value); - void set_signature(std::string&& value); + static const int kSignatureFieldNumber = 1; + const ::std::string& signature() const; + void set_signature(const ::std::string& value); + #if LANG_CXX11 + void set_signature(::std::string&& value); + #endif void set_signature(const char* value); void set_signature(const void* value, size_t size); - std::string* mutable_signature(); - std::string* release_signature(); - void set_allocated_signature(std::string* signature); - private: - const std::string& _internal_signature() const; - void _internal_set_signature(const std::string& value); - std::string* _internal_mutable_signature(); - public: + ::std::string* mutable_signature(); + ::std::string* release_signature(); + void set_allocated_signature(::std::string* signature); // bytes public_key = 2; void clear_public_key(); - const std::string& public_key() const; - void set_public_key(const std::string& value); - void set_public_key(std::string&& value); + static const int kPublicKeyFieldNumber = 2; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif void set_public_key(const char* value); void set_public_key(const void* value, size_t size); - std::string* mutable_public_key(); - std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); // bytes message = 3; void clear_message(); - const std::string& message() const; - void set_message(const std::string& value); - void set_message(std::string&& value); + static const int kMessageFieldNumber = 3; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif void set_message(const char* value); void set_message(const void* value, size_t size); - std::string* mutable_message(); - std::string* release_message(); - void set_allocated_message(std::string* message); - private: - const std::string& _internal_message() const; - void _internal_set_message(const std::string& value); - std::string* _internal_mutable_message(); - public: + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; bool has_signing_context() const; - private: - bool _internal_has_signing_context() const; - public: void clear_signing_context(); + static const int kSigningContextFieldNumber = 4; const ::Catalyst::Protocol::Cryptography::SigningContext& signing_context() const; - ::Catalyst::Protocol::Cryptography::SigningContext* release_signing_context(); ::Catalyst::Protocol::Cryptography::SigningContext* mutable_signing_context(); + ::Catalyst::Protocol::Cryptography::SigningContext* release_signing_context(); void set_allocated_signing_context(::Catalyst::Protocol::Cryptography::SigningContext* signing_context); - private: - const ::Catalyst::Protocol::Cryptography::SigningContext& _internal_signing_context() const; - ::Catalyst::Protocol::Cryptography::SigningContext* _internal_mutable_signing_context(); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signature_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr signature_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + ::google::protobuf::internal::ArenaStringPtr message_; ::Catalyst::Protocol::Cryptography::SigningContext* signing_context_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class VerifyMessageResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) */ { +class VerifyMessageResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) */ { public: VerifyMessageResponse(); virtual ~VerifyMessageResponse(); VerifyMessageResponse(const VerifyMessageResponse& from); - VerifyMessageResponse(VerifyMessageResponse&& from) noexcept - : VerifyMessageResponse() { - *this = ::std::move(from); - } inline VerifyMessageResponse& operator=(const VerifyMessageResponse& from) { CopyFrom(from); return *this; } - inline VerifyMessageResponse& operator=(VerifyMessageResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const VerifyMessageResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const VerifyMessageResponse* internal_default_instance() { return reinterpret_cast( &_VerifyMessageResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 53; - friend void swap(VerifyMessageResponse& a, VerifyMessageResponse& b) { - a.Swap(&b); - } - inline void Swap(VerifyMessageResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(VerifyMessageResponse* other); // implements Message ---------------------------------------------- - inline VerifyMessageResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline VerifyMessageResponse* New() const PROTOBUF_FINAL { return New(NULL); } - VerifyMessageResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + VerifyMessageResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const VerifyMessageResponse& from); void MergeFrom(const VerifyMessageResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(VerifyMessageResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.VerifyMessageResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kIsSignedByKeyFieldNumber = 1, - }; // bool is_signed_by_key = 1; void clear_is_signed_by_key(); + static const int kIsSignedByKeyFieldNumber = 1; bool is_signed_by_key() const; void set_is_signed_by_key(bool value); - private: - bool _internal_is_signed_by_key() const; - void _internal_set_is_signed_by_key(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool is_signed_by_key_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class ServiceStatusRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) */ { +class ServiceStatusRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) */ { public: ServiceStatusRequest(); virtual ~ServiceStatusRequest(); ServiceStatusRequest(const ServiceStatusRequest& from); - ServiceStatusRequest(ServiceStatusRequest&& from) noexcept - : ServiceStatusRequest() { - *this = ::std::move(from); - } inline ServiceStatusRequest& operator=(const ServiceStatusRequest& from) { CopyFrom(from); return *this; } - inline ServiceStatusRequest& operator=(ServiceStatusRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const ServiceStatusRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ServiceStatusRequest* internal_default_instance() { return reinterpret_cast( &_ServiceStatusRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 54; - friend void swap(ServiceStatusRequest& a, ServiceStatusRequest& b) { - a.Swap(&b); - } - inline void Swap(ServiceStatusRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(ServiceStatusRequest* other); // implements Message ---------------------------------------------- - inline ServiceStatusRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline ServiceStatusRequest* New() const PROTOBUF_FINAL { return New(NULL); } - ServiceStatusRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + ServiceStatusRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ServiceStatusRequest& from); void MergeFrom(const ServiceStatusRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ServiceStatusRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.ServiceStatusRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class ServiceStatusResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) */ { +class ServiceStatusResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) */ { public: ServiceStatusResponse(); virtual ~ServiceStatusResponse(); ServiceStatusResponse(const ServiceStatusResponse& from); - ServiceStatusResponse(ServiceStatusResponse&& from) noexcept - : ServiceStatusResponse() { - *this = ::std::move(from); - } inline ServiceStatusResponse& operator=(const ServiceStatusResponse& from) { CopyFrom(from); return *this; } - inline ServiceStatusResponse& operator=(ServiceStatusResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const ServiceStatusResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ServiceStatusResponse* internal_default_instance() { return reinterpret_cast( &_ServiceStatusResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 55; - friend void swap(ServiceStatusResponse& a, ServiceStatusResponse& b) { - a.Swap(&b); - } - inline void Swap(ServiceStatusResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(ServiceStatusResponse* other); // implements Message ---------------------------------------------- - inline ServiceStatusResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline ServiceStatusResponse* New() const PROTOBUF_FINAL { return New(NULL); } - ServiceStatusResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + ServiceStatusResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ServiceStatusResponse& from); void MergeFrom(const ServiceStatusResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ServiceStatusResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.ServiceStatusResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // string query = 1; void clear_query(); - const std::string& query() const; - void set_query(const std::string& value); - void set_query(std::string&& value); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif void set_query(const char* value); void set_query(const char* value, size_t size); - std::string* mutable_query(); - std::string* release_query(); - void set_allocated_query(std::string* query); - private: - const std::string& _internal_query() const; - void _internal_set_query(const std::string& value); - std::string* _internal_mutable_query(); - public: + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class AddFileToDfsRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) */ { +class AddFileToDfsRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) */ { public: AddFileToDfsRequest(); virtual ~AddFileToDfsRequest(); AddFileToDfsRequest(const AddFileToDfsRequest& from); - AddFileToDfsRequest(AddFileToDfsRequest&& from) noexcept - : AddFileToDfsRequest() { - *this = ::std::move(from); - } inline AddFileToDfsRequest& operator=(const AddFileToDfsRequest& from) { CopyFrom(from); return *this; } - inline AddFileToDfsRequest& operator=(AddFileToDfsRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const AddFileToDfsRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AddFileToDfsRequest* internal_default_instance() { return reinterpret_cast( &_AddFileToDfsRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 56; - friend void swap(AddFileToDfsRequest& a, AddFileToDfsRequest& b) { - a.Swap(&b); - } - inline void Swap(AddFileToDfsRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(AddFileToDfsRequest* other); // implements Message ---------------------------------------------- - inline AddFileToDfsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline AddFileToDfsRequest* New() const PROTOBUF_FINAL { return New(NULL); } - AddFileToDfsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + AddFileToDfsRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const AddFileToDfsRequest& from); void MergeFrom(const AddFileToDfsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(AddFileToDfsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kFileNameFieldNumber = 2, - kNodeFieldNumber = 3, - kFileSizeFieldNumber = 1, - }; // string file_name = 2; void clear_file_name(); - const std::string& file_name() const; - void set_file_name(const std::string& value); - void set_file_name(std::string&& value); + static const int kFileNameFieldNumber = 2; + const ::std::string& file_name() const; + void set_file_name(const ::std::string& value); + #if LANG_CXX11 + void set_file_name(::std::string&& value); + #endif void set_file_name(const char* value); void set_file_name(const char* value, size_t size); - std::string* mutable_file_name(); - std::string* release_file_name(); - void set_allocated_file_name(std::string* file_name); - private: - const std::string& _internal_file_name() const; - void _internal_set_file_name(const std::string& value); - std::string* _internal_mutable_file_name(); - public: + ::std::string* mutable_file_name(); + ::std::string* release_file_name(); + void set_allocated_file_name(::std::string* file_name); // string node = 3; void clear_node(); - const std::string& node() const; - void set_node(const std::string& value); - void set_node(std::string&& value); + static const int kNodeFieldNumber = 3; + const ::std::string& node() const; + void set_node(const ::std::string& value); + #if LANG_CXX11 + void set_node(::std::string&& value); + #endif void set_node(const char* value); void set_node(const char* value, size_t size); - std::string* mutable_node(); - std::string* release_node(); - void set_allocated_node(std::string* node); - private: - const std::string& _internal_node() const; - void _internal_set_node(const std::string& value); - std::string* _internal_mutable_node(); - public: + ::std::string* mutable_node(); + ::std::string* release_node(); + void set_allocated_node(::std::string* node); // uint64 file_size = 1; void clear_file_size(); - ::PROTOBUF_NAMESPACE_ID::uint64 file_size() const; - void set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_file_size() const; - void _internal_set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: + static const int kFileSizeFieldNumber = 1; + ::google::protobuf::uint64 file_size() const; + void set_file_size(::google::protobuf::uint64 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_; - ::PROTOBUF_NAMESPACE_ID::uint64 file_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr file_name_; + ::google::protobuf::internal::ArenaStringPtr node_; + ::google::protobuf::uint64 file_size_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class AddFileToDfsResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) */ { +class AddFileToDfsResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) */ { public: AddFileToDfsResponse(); virtual ~AddFileToDfsResponse(); AddFileToDfsResponse(const AddFileToDfsResponse& from); - AddFileToDfsResponse(AddFileToDfsResponse&& from) noexcept - : AddFileToDfsResponse() { - *this = ::std::move(from); - } inline AddFileToDfsResponse& operator=(const AddFileToDfsResponse& from) { CopyFrom(from); return *this; } - inline AddFileToDfsResponse& operator=(AddFileToDfsResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const AddFileToDfsResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AddFileToDfsResponse* internal_default_instance() { return reinterpret_cast( &_AddFileToDfsResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 57; - friend void swap(AddFileToDfsResponse& a, AddFileToDfsResponse& b) { - a.Swap(&b); - } - inline void Swap(AddFileToDfsResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(AddFileToDfsResponse* other); // implements Message ---------------------------------------------- - inline AddFileToDfsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline AddFileToDfsResponse* New() const PROTOBUF_FINAL { return New(NULL); } - AddFileToDfsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + AddFileToDfsResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const AddFileToDfsResponse& from); void MergeFrom(const AddFileToDfsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(AddFileToDfsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kResponseCodeFieldNumber = 1, - kDfsHashFieldNumber = 2, - }; // bytes response_code = 1; void clear_response_code(); - const std::string& response_code() const; - void set_response_code(const std::string& value); - void set_response_code(std::string&& value); + static const int kResponseCodeFieldNumber = 1; + const ::std::string& response_code() const; + void set_response_code(const ::std::string& value); + #if LANG_CXX11 + void set_response_code(::std::string&& value); + #endif void set_response_code(const char* value); void set_response_code(const void* value, size_t size); - std::string* mutable_response_code(); - std::string* release_response_code(); - void set_allocated_response_code(std::string* response_code); - private: - const std::string& _internal_response_code() const; - void _internal_set_response_code(const std::string& value); - std::string* _internal_mutable_response_code(); - public: + ::std::string* mutable_response_code(); + ::std::string* release_response_code(); + void set_allocated_response_code(::std::string* response_code); // string dfs_hash = 2; void clear_dfs_hash(); - const std::string& dfs_hash() const; - void set_dfs_hash(const std::string& value); - void set_dfs_hash(std::string&& value); + static const int kDfsHashFieldNumber = 2; + const ::std::string& dfs_hash() const; + void set_dfs_hash(const ::std::string& value); + #if LANG_CXX11 + void set_dfs_hash(::std::string&& value); + #endif void set_dfs_hash(const char* value); void set_dfs_hash(const char* value, size_t size); - std::string* mutable_dfs_hash(); - std::string* release_dfs_hash(); - void set_allocated_dfs_hash(std::string* dfs_hash); - private: - const std::string& _internal_dfs_hash() const; - void _internal_set_dfs_hash(const std::string& value); - std::string* _internal_mutable_dfs_hash(); - public: + ::std::string* mutable_dfs_hash(); + ::std::string* release_dfs_hash(); + void set_allocated_dfs_hash(::std::string* dfs_hash); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr response_code_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dfs_hash_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr response_code_; + ::google::protobuf::internal::ArenaStringPtr dfs_hash_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class TransferFileBytesRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) */ { +class TransferFileBytesRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) */ { public: TransferFileBytesRequest(); virtual ~TransferFileBytesRequest(); TransferFileBytesRequest(const TransferFileBytesRequest& from); - TransferFileBytesRequest(TransferFileBytesRequest&& from) noexcept - : TransferFileBytesRequest() { - *this = ::std::move(from); - } inline TransferFileBytesRequest& operator=(const TransferFileBytesRequest& from) { CopyFrom(from); return *this; } - inline TransferFileBytesRequest& operator=(TransferFileBytesRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const TransferFileBytesRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const TransferFileBytesRequest* internal_default_instance() { return reinterpret_cast( &_TransferFileBytesRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 58; - friend void swap(TransferFileBytesRequest& a, TransferFileBytesRequest& b) { - a.Swap(&b); - } - inline void Swap(TransferFileBytesRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(TransferFileBytesRequest* other); // implements Message ---------------------------------------------- - inline TransferFileBytesRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline TransferFileBytesRequest* New() const PROTOBUF_FINAL { return New(NULL); } - TransferFileBytesRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + TransferFileBytesRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const TransferFileBytesRequest& from); void MergeFrom(const TransferFileBytesRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(TransferFileBytesRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kChunkBytesFieldNumber = 2, - kCorrelationFileNameFieldNumber = 3, - kChunkIdFieldNumber = 1, - }; // bytes chunk_bytes = 2; void clear_chunk_bytes(); - const std::string& chunk_bytes() const; - void set_chunk_bytes(const std::string& value); - void set_chunk_bytes(std::string&& value); + static const int kChunkBytesFieldNumber = 2; + const ::std::string& chunk_bytes() const; + void set_chunk_bytes(const ::std::string& value); + #if LANG_CXX11 + void set_chunk_bytes(::std::string&& value); + #endif void set_chunk_bytes(const char* value); void set_chunk_bytes(const void* value, size_t size); - std::string* mutable_chunk_bytes(); - std::string* release_chunk_bytes(); - void set_allocated_chunk_bytes(std::string* chunk_bytes); - private: - const std::string& _internal_chunk_bytes() const; - void _internal_set_chunk_bytes(const std::string& value); - std::string* _internal_mutable_chunk_bytes(); - public: + ::std::string* mutable_chunk_bytes(); + ::std::string* release_chunk_bytes(); + void set_allocated_chunk_bytes(::std::string* chunk_bytes); // bytes correlation_file_name = 3; void clear_correlation_file_name(); - const std::string& correlation_file_name() const; - void set_correlation_file_name(const std::string& value); - void set_correlation_file_name(std::string&& value); + static const int kCorrelationFileNameFieldNumber = 3; + const ::std::string& correlation_file_name() const; + void set_correlation_file_name(const ::std::string& value); + #if LANG_CXX11 + void set_correlation_file_name(::std::string&& value); + #endif void set_correlation_file_name(const char* value); void set_correlation_file_name(const void* value, size_t size); - std::string* mutable_correlation_file_name(); - std::string* release_correlation_file_name(); - void set_allocated_correlation_file_name(std::string* correlation_file_name); - private: - const std::string& _internal_correlation_file_name() const; - void _internal_set_correlation_file_name(const std::string& value); - std::string* _internal_mutable_correlation_file_name(); - public: + ::std::string* mutable_correlation_file_name(); + ::std::string* release_correlation_file_name(); + void set_allocated_correlation_file_name(::std::string* correlation_file_name); // uint32 chunk_id = 1; void clear_chunk_id(); - ::PROTOBUF_NAMESPACE_ID::uint32 chunk_id() const; - void set_chunk_id(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_chunk_id() const; - void _internal_set_chunk_id(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: + static const int kChunkIdFieldNumber = 1; + ::google::protobuf::uint32 chunk_id() const; + void set_chunk_id(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chunk_bytes_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr correlation_file_name_; - ::PROTOBUF_NAMESPACE_ID::uint32 chunk_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr chunk_bytes_; + ::google::protobuf::internal::ArenaStringPtr correlation_file_name_; + ::google::protobuf::uint32 chunk_id_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class TransferFileBytesResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) */ { +class TransferFileBytesResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) */ { public: TransferFileBytesResponse(); virtual ~TransferFileBytesResponse(); TransferFileBytesResponse(const TransferFileBytesResponse& from); - TransferFileBytesResponse(TransferFileBytesResponse&& from) noexcept - : TransferFileBytesResponse() { - *this = ::std::move(from); - } inline TransferFileBytesResponse& operator=(const TransferFileBytesResponse& from) { CopyFrom(from); return *this; } - inline TransferFileBytesResponse& operator=(TransferFileBytesResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const TransferFileBytesResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const TransferFileBytesResponse* internal_default_instance() { return reinterpret_cast( &_TransferFileBytesResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 59; - friend void swap(TransferFileBytesResponse& a, TransferFileBytesResponse& b) { - a.Swap(&b); - } - inline void Swap(TransferFileBytesResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(TransferFileBytesResponse* other); // implements Message ---------------------------------------------- - inline TransferFileBytesResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline TransferFileBytesResponse* New() const PROTOBUF_FINAL { return New(NULL); } - TransferFileBytesResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + TransferFileBytesResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const TransferFileBytesResponse& from); void MergeFrom(const TransferFileBytesResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(TransferFileBytesResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kResponseCodeFieldNumber = 1, - }; // bytes response_code = 1; void clear_response_code(); - const std::string& response_code() const; - void set_response_code(const std::string& value); - void set_response_code(std::string&& value); + static const int kResponseCodeFieldNumber = 1; + const ::std::string& response_code() const; + void set_response_code(const ::std::string& value); + #if LANG_CXX11 + void set_response_code(::std::string&& value); + #endif void set_response_code(const char* value); void set_response_code(const void* value, size_t size); - std::string* mutable_response_code(); - std::string* release_response_code(); - void set_allocated_response_code(std::string* response_code); - private: - const std::string& _internal_response_code() const; - void _internal_set_response_code(const std::string& value); - std::string* _internal_mutable_response_code(); - public: + ::std::string* mutable_response_code(); + ::std::string* release_response_code(); + void set_allocated_response_code(::std::string* response_code); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr response_code_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr response_code_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class RemovePeerRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) */ { +class RemovePeerRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) */ { public: RemovePeerRequest(); virtual ~RemovePeerRequest(); RemovePeerRequest(const RemovePeerRequest& from); - RemovePeerRequest(RemovePeerRequest&& from) noexcept - : RemovePeerRequest() { - *this = ::std::move(from); - } inline RemovePeerRequest& operator=(const RemovePeerRequest& from) { CopyFrom(from); return *this; } - inline RemovePeerRequest& operator=(RemovePeerRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const RemovePeerRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RemovePeerRequest* internal_default_instance() { return reinterpret_cast( &_RemovePeerRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 60; - friend void swap(RemovePeerRequest& a, RemovePeerRequest& b) { - a.Swap(&b); - } - inline void Swap(RemovePeerRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(RemovePeerRequest* other); // implements Message ---------------------------------------------- - inline RemovePeerRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline RemovePeerRequest* New() const PROTOBUF_FINAL { return New(NULL); } - RemovePeerRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + RemovePeerRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const RemovePeerRequest& from); void MergeFrom(const RemovePeerRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(RemovePeerRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.RemovePeerRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPeerIpFieldNumber = 1, - kPublicKeyFieldNumber = 2, - }; // bytes peer_ip = 1; void clear_peer_ip(); - const std::string& peer_ip() const; - void set_peer_ip(const std::string& value); - void set_peer_ip(std::string&& value); + static const int kPeerIpFieldNumber = 1; + const ::std::string& peer_ip() const; + void set_peer_ip(const ::std::string& value); + #if LANG_CXX11 + void set_peer_ip(::std::string&& value); + #endif void set_peer_ip(const char* value); void set_peer_ip(const void* value, size_t size); - std::string* mutable_peer_ip(); - std::string* release_peer_ip(); - void set_allocated_peer_ip(std::string* peer_ip); - private: - const std::string& _internal_peer_ip() const; - void _internal_set_peer_ip(const std::string& value); - std::string* _internal_mutable_peer_ip(); - public: + ::std::string* mutable_peer_ip(); + ::std::string* release_peer_ip(); + void set_allocated_peer_ip(::std::string* peer_ip); // bytes public_key = 2; void clear_public_key(); - const std::string& public_key() const; - void set_public_key(const std::string& value); - void set_public_key(std::string&& value); + static const int kPublicKeyFieldNumber = 2; + const ::std::string& public_key() const; + void set_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_public_key(::std::string&& value); + #endif void set_public_key(const char* value); void set_public_key(const void* value, size_t size); - std::string* mutable_public_key(); - std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: + ::std::string* mutable_public_key(); + ::std::string* release_public_key(); + void set_allocated_public_key(::std::string* public_key); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr peer_ip_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr peer_ip_; + ::google::protobuf::internal::ArenaStringPtr public_key_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class RemovePeerResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) */ { +class RemovePeerResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) */ { public: RemovePeerResponse(); virtual ~RemovePeerResponse(); RemovePeerResponse(const RemovePeerResponse& from); - RemovePeerResponse(RemovePeerResponse&& from) noexcept - : RemovePeerResponse() { - *this = ::std::move(from); - } inline RemovePeerResponse& operator=(const RemovePeerResponse& from) { CopyFrom(from); return *this; } - inline RemovePeerResponse& operator=(RemovePeerResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const RemovePeerResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RemovePeerResponse* internal_default_instance() { return reinterpret_cast( &_RemovePeerResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 61; - friend void swap(RemovePeerResponse& a, RemovePeerResponse& b) { - a.Swap(&b); - } - inline void Swap(RemovePeerResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(RemovePeerResponse* other); // implements Message ---------------------------------------------- - inline RemovePeerResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline RemovePeerResponse* New() const PROTOBUF_FINAL { return New(NULL); } - RemovePeerResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + RemovePeerResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const RemovePeerResponse& from); void MergeFrom(const RemovePeerResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(RemovePeerResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.RemovePeerResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kDeletedCountFieldNumber = 1, - }; // uint32 deleted_count = 1; void clear_deleted_count(); - ::PROTOBUF_NAMESPACE_ID::uint32 deleted_count() const; - void set_deleted_count(::PROTOBUF_NAMESPACE_ID::uint32 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_deleted_count() const; - void _internal_set_deleted_count(::PROTOBUF_NAMESPACE_ID::uint32 value); - public: + static const int kDeletedCountFieldNumber = 1; + ::google::protobuf::uint32 deleted_count() const; + void set_deleted_count(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::uint32 deleted_count_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 deleted_count_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetPeerCountRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) */ { +class GetPeerCountRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) */ { public: GetPeerCountRequest(); virtual ~GetPeerCountRequest(); GetPeerCountRequest(const GetPeerCountRequest& from); - GetPeerCountRequest(GetPeerCountRequest&& from) noexcept - : GetPeerCountRequest() { - *this = ::std::move(from); - } inline GetPeerCountRequest& operator=(const GetPeerCountRequest& from) { CopyFrom(from); return *this; } - inline GetPeerCountRequest& operator=(GetPeerCountRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetPeerCountRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetPeerCountRequest* internal_default_instance() { return reinterpret_cast( &_GetPeerCountRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 62; - friend void swap(GetPeerCountRequest& a, GetPeerCountRequest& b) { - a.Swap(&b); - } - inline void Swap(GetPeerCountRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetPeerCountRequest* other); // implements Message ---------------------------------------------- - inline GetPeerCountRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetPeerCountRequest* New() const PROTOBUF_FINAL { return New(NULL); } - GetPeerCountRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetPeerCountRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetPeerCountRequest& from); void MergeFrom(const GetPeerCountRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetPeerCountRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetPeerCountRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- @@ -8984,712 +6084,476 @@ class GetPeerCountRequest : // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetPeerCountResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) */ { +class GetPeerCountResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) */ { public: GetPeerCountResponse(); virtual ~GetPeerCountResponse(); GetPeerCountResponse(const GetPeerCountResponse& from); - GetPeerCountResponse(GetPeerCountResponse&& from) noexcept - : GetPeerCountResponse() { - *this = ::std::move(from); - } inline GetPeerCountResponse& operator=(const GetPeerCountResponse& from) { CopyFrom(from); return *this; } - inline GetPeerCountResponse& operator=(GetPeerCountResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetPeerCountResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetPeerCountResponse* internal_default_instance() { return reinterpret_cast( &_GetPeerCountResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 63; - friend void swap(GetPeerCountResponse& a, GetPeerCountResponse& b) { - a.Swap(&b); - } - inline void Swap(GetPeerCountResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetPeerCountResponse* other); // implements Message ---------------------------------------------- - inline GetPeerCountResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetPeerCountResponse* New() const PROTOBUF_FINAL { return New(NULL); } - GetPeerCountResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetPeerCountResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetPeerCountResponse& from); void MergeFrom(const GetPeerCountResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetPeerCountResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetPeerCountResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPeerCountFieldNumber = 1, - }; // int32 peer_count = 1; void clear_peer_count(); - ::PROTOBUF_NAMESPACE_ID::int32 peer_count() const; - void set_peer_count(::PROTOBUF_NAMESPACE_ID::int32 value); - private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_peer_count() const; - void _internal_set_peer_count(::PROTOBUF_NAMESPACE_ID::int32 value); - public: + static const int kPeerCountFieldNumber = 1; + ::google::protobuf::int32 peer_count() const; + void set_peer_count(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::int32 peer_count_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int32 peer_count_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetFileFromDfsRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) */ { +class GetFileFromDfsRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) */ { public: GetFileFromDfsRequest(); virtual ~GetFileFromDfsRequest(); GetFileFromDfsRequest(const GetFileFromDfsRequest& from); - GetFileFromDfsRequest(GetFileFromDfsRequest&& from) noexcept - : GetFileFromDfsRequest() { - *this = ::std::move(from); - } inline GetFileFromDfsRequest& operator=(const GetFileFromDfsRequest& from) { CopyFrom(from); return *this; } - inline GetFileFromDfsRequest& operator=(GetFileFromDfsRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetFileFromDfsRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetFileFromDfsRequest* internal_default_instance() { return reinterpret_cast( &_GetFileFromDfsRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 64; - friend void swap(GetFileFromDfsRequest& a, GetFileFromDfsRequest& b) { - a.Swap(&b); - } - inline void Swap(GetFileFromDfsRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetFileFromDfsRequest* other); // implements Message ---------------------------------------------- - inline GetFileFromDfsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetFileFromDfsRequest* New() const PROTOBUF_FINAL { return New(NULL); } - GetFileFromDfsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetFileFromDfsRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetFileFromDfsRequest& from); void MergeFrom(const GetFileFromDfsRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetFileFromDfsRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kDfsHashFieldNumber = 1, - }; // string dfs_hash = 1; void clear_dfs_hash(); - const std::string& dfs_hash() const; - void set_dfs_hash(const std::string& value); - void set_dfs_hash(std::string&& value); + static const int kDfsHashFieldNumber = 1; + const ::std::string& dfs_hash() const; + void set_dfs_hash(const ::std::string& value); + #if LANG_CXX11 + void set_dfs_hash(::std::string&& value); + #endif void set_dfs_hash(const char* value); void set_dfs_hash(const char* value, size_t size); - std::string* mutable_dfs_hash(); - std::string* release_dfs_hash(); - void set_allocated_dfs_hash(std::string* dfs_hash); - private: - const std::string& _internal_dfs_hash() const; - void _internal_set_dfs_hash(const std::string& value); - std::string* _internal_mutable_dfs_hash(); - public: + ::std::string* mutable_dfs_hash(); + ::std::string* release_dfs_hash(); + void set_allocated_dfs_hash(::std::string* dfs_hash); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dfs_hash_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr dfs_hash_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class GetFileFromDfsResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) */ { +class GetFileFromDfsResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) */ { public: GetFileFromDfsResponse(); virtual ~GetFileFromDfsResponse(); GetFileFromDfsResponse(const GetFileFromDfsResponse& from); - GetFileFromDfsResponse(GetFileFromDfsResponse&& from) noexcept - : GetFileFromDfsResponse() { - *this = ::std::move(from); - } inline GetFileFromDfsResponse& operator=(const GetFileFromDfsResponse& from) { CopyFrom(from); return *this; } - inline GetFileFromDfsResponse& operator=(GetFileFromDfsResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const GetFileFromDfsResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GetFileFromDfsResponse* internal_default_instance() { return reinterpret_cast( &_GetFileFromDfsResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 65; - friend void swap(GetFileFromDfsResponse& a, GetFileFromDfsResponse& b) { - a.Swap(&b); - } - inline void Swap(GetFileFromDfsResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(GetFileFromDfsResponse* other); // implements Message ---------------------------------------------- - inline GetFileFromDfsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline GetFileFromDfsResponse* New() const PROTOBUF_FINAL { return New(NULL); } - GetFileFromDfsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + GetFileFromDfsResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const GetFileFromDfsResponse& from); void MergeFrom(const GetFileFromDfsResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(GetFileFromDfsResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kResponseCodeFieldNumber = 2, - kFileSizeFieldNumber = 1, - }; // bytes response_code = 2; void clear_response_code(); - const std::string& response_code() const; - void set_response_code(const std::string& value); - void set_response_code(std::string&& value); + static const int kResponseCodeFieldNumber = 2; + const ::std::string& response_code() const; + void set_response_code(const ::std::string& value); + #if LANG_CXX11 + void set_response_code(::std::string&& value); + #endif void set_response_code(const char* value); void set_response_code(const void* value, size_t size); - std::string* mutable_response_code(); - std::string* release_response_code(); - void set_allocated_response_code(std::string* response_code); - private: - const std::string& _internal_response_code() const; - void _internal_set_response_code(const std::string& value); - std::string* _internal_mutable_response_code(); - public: + ::std::string* mutable_response_code(); + ::std::string* release_response_code(); + void set_allocated_response_code(::std::string* response_code); // uint64 file_size = 1; void clear_file_size(); - ::PROTOBUF_NAMESPACE_ID::uint64 file_size() const; - void set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_file_size() const; - void _internal_set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: + static const int kFileSizeFieldNumber = 1; + ::google::protobuf::uint64 file_size() const; + void set_file_size(::google::protobuf::uint64 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr response_code_; - ::PROTOBUF_NAMESPACE_ID::uint64 file_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr response_code_; + ::google::protobuf::uint64 file_size_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SetPeerDataFolderRequest : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) */ { +class SetPeerDataFolderRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) */ { public: SetPeerDataFolderRequest(); virtual ~SetPeerDataFolderRequest(); SetPeerDataFolderRequest(const SetPeerDataFolderRequest& from); - SetPeerDataFolderRequest(SetPeerDataFolderRequest&& from) noexcept - : SetPeerDataFolderRequest() { - *this = ::std::move(from); - } inline SetPeerDataFolderRequest& operator=(const SetPeerDataFolderRequest& from) { CopyFrom(from); return *this; } - inline SetPeerDataFolderRequest& operator=(SetPeerDataFolderRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SetPeerDataFolderRequest& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SetPeerDataFolderRequest* internal_default_instance() { return reinterpret_cast( &_SetPeerDataFolderRequest_default_instance_); } - static constexpr int kIndexInFileMessages = - 66; - friend void swap(SetPeerDataFolderRequest& a, SetPeerDataFolderRequest& b) { - a.Swap(&b); - } - inline void Swap(SetPeerDataFolderRequest* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SetPeerDataFolderRequest* other); // implements Message ---------------------------------------------- - inline SetPeerDataFolderRequest* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SetPeerDataFolderRequest* New() const PROTOBUF_FINAL { return New(NULL); } - SetPeerDataFolderRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SetPeerDataFolderRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SetPeerDataFolderRequest& from); void MergeFrom(const SetPeerDataFolderRequest& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SetPeerDataFolderRequest* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kDataFolderFieldNumber = 1, - }; // string data_folder = 1; void clear_data_folder(); - const std::string& data_folder() const; - void set_data_folder(const std::string& value); - void set_data_folder(std::string&& value); + static const int kDataFolderFieldNumber = 1; + const ::std::string& data_folder() const; + void set_data_folder(const ::std::string& value); + #if LANG_CXX11 + void set_data_folder(::std::string&& value); + #endif void set_data_folder(const char* value); void set_data_folder(const char* value, size_t size); - std::string* mutable_data_folder(); - std::string* release_data_folder(); - void set_allocated_data_folder(std::string* data_folder); - private: - const std::string& _internal_data_folder() const; - void _internal_set_data_folder(const std::string& value); - std::string* _internal_mutable_data_folder(); - public: + ::std::string* mutable_data_folder(); + ::std::string* release_data_folder(); + void set_allocated_data_folder(::std::string* data_folder); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_folder_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr data_folder_; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class SetPeerDataFolderResponse : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) */ { +class SetPeerDataFolderResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) */ { public: SetPeerDataFolderResponse(); virtual ~SetPeerDataFolderResponse(); SetPeerDataFolderResponse(const SetPeerDataFolderResponse& from); - SetPeerDataFolderResponse(SetPeerDataFolderResponse&& from) noexcept - : SetPeerDataFolderResponse() { - *this = ::std::move(from); - } inline SetPeerDataFolderResponse& operator=(const SetPeerDataFolderResponse& from) { CopyFrom(from); return *this; } - inline SetPeerDataFolderResponse& operator=(SetPeerDataFolderResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const SetPeerDataFolderResponse& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SetPeerDataFolderResponse* internal_default_instance() { return reinterpret_cast( &_SetPeerDataFolderResponse_default_instance_); } - static constexpr int kIndexInFileMessages = - 67; - friend void swap(SetPeerDataFolderResponse& a, SetPeerDataFolderResponse& b) { - a.Swap(&b); - } - inline void Swap(SetPeerDataFolderResponse* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(SetPeerDataFolderResponse* other); // implements Message ---------------------------------------------- - inline SetPeerDataFolderResponse* New() const final { - return CreateMaybeMessage(nullptr); - } + inline SetPeerDataFolderResponse* New() const PROTOBUF_FINAL { return New(NULL); } - SetPeerDataFolderResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + SetPeerDataFolderResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const SetPeerDataFolderResponse& from); void MergeFrom(const SetPeerDataFolderResponse& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(SetPeerDataFolderResponse* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Rpc_2eproto); - return ::descriptor_table_Rpc_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kQueryFieldNumber = 1, - }; // bool query = 1; void clear_query(); + static const int kQueryFieldNumber = 1; bool query() const; void set_query(bool value); - private: - bool _internal_query() const; - void _internal_set_query(bool value); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; bool query_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Rpc_2eproto; + mutable int _cached_size_; + friend struct protobuf_Rpc_2eproto::TableStruct; }; // =================================================================== // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +#if !PROTOBUF_INLINE_NOT_IN_HEADERS // VersionRequest // bool query = 1; inline void VersionRequest::clear_query() { query_ = false; } -inline bool VersionRequest::_internal_query() const { - return query_; -} inline bool VersionRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VersionRequest.query) - return _internal_query(); + return query_; } -inline void VersionRequest::_internal_set_query(bool value) { +inline void VersionRequest::set_query(bool value) { query_ = value; -} -inline void VersionRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VersionRequest.query) } @@ -9699,61 +6563,53 @@ inline void VersionRequest::set_query(bool value) { // string version = 1; inline void VersionResponse::clear_version() { - version_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& VersionResponse::version() const { +inline const ::std::string& VersionResponse::version() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VersionResponse.version) - return _internal_version(); -} -inline void VersionResponse::set_version(const std::string& value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VersionResponse.version) -} -inline std::string* VersionResponse::mutable_version() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VersionResponse.version) - return _internal_mutable_version(); -} -inline const std::string& VersionResponse::_internal_version() const { return version_.GetNoArena(); } -inline void VersionResponse::_internal_set_version(const std::string& value) { +inline void VersionResponse::set_version(const ::std::string& value) { - version_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VersionResponse.version) } -inline void VersionResponse::set_version(std::string&& value) { +#if LANG_CXX11 +inline void VersionResponse::set_version(::std::string&& value) { version_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.VersionResponse.version) } +#endif inline void VersionResponse::set_version(const char* value) { - GOOGLE_DCHECK(value != nullptr); - version_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.VersionResponse.version) } inline void VersionResponse::set_version(const char* value, size_t size) { - version_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.VersionResponse.version) } -inline std::string* VersionResponse::_internal_mutable_version() { +inline ::std::string* VersionResponse::mutable_version() { - return version_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VersionResponse.version) + return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* VersionResponse::release_version() { +inline ::std::string* VersionResponse::release_version() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.VersionResponse.version) - return version_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void VersionResponse::set_allocated_version(std::string* version) { - if (version != nullptr) { +inline void VersionResponse::set_allocated_version(::std::string* version) { + if (version != NULL) { } else { } - version_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), version); + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.VersionResponse.version) } @@ -9765,19 +6621,13 @@ inline void VersionResponse::set_allocated_version(std::string* version) { inline void GetInfoRequest::clear_query() { query_ = false; } -inline bool GetInfoRequest::_internal_query() const { - return query_; -} inline bool GetInfoRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetInfoRequest.query) - return _internal_query(); + return query_; } -inline void GetInfoRequest::_internal_set_query(bool value) { +inline void GetInfoRequest::set_query(bool value) { query_ = value; -} -inline void GetInfoRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetInfoRequest.query) } @@ -9787,61 +6637,53 @@ inline void GetInfoRequest::set_query(bool value) { // string query = 1; inline void GetInfoResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& GetInfoResponse::query() const { +inline const ::std::string& GetInfoResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) - return _internal_query(); -} -inline void GetInfoResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) -} -inline std::string* GetInfoResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) - return _internal_mutable_query(); -} -inline const std::string& GetInfoResponse::_internal_query() const { return query_.GetNoArena(); } -inline void GetInfoResponse::_internal_set_query(const std::string& value) { +inline void GetInfoResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) } -inline void GetInfoResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void GetInfoResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) } +#endif inline void GetInfoResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) } inline void GetInfoResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) } -inline std::string* GetInfoResponse::_internal_mutable_query() { +inline ::std::string* GetInfoResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* GetInfoResponse::release_query() { +inline ::std::string* GetInfoResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetInfoResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void GetInfoResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetInfoResponse.query) } @@ -9853,19 +6695,13 @@ inline void GetInfoResponse::set_allocated_query(std::string* query) { inline void CreateWalletRequest::clear_query() { query_ = false; } -inline bool CreateWalletRequest::_internal_query() const { - return query_; -} inline bool CreateWalletRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.CreateWalletRequest.query) - return _internal_query(); + return query_; } -inline void CreateWalletRequest::_internal_set_query(bool value) { +inline void CreateWalletRequest::set_query(bool value) { query_ = value; -} -inline void CreateWalletRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateWalletRequest.query) } @@ -9875,61 +6711,53 @@ inline void CreateWalletRequest::set_query(bool value) { // string query = 1; inline void CreateWalletResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& CreateWalletResponse::query() const { +inline const ::std::string& CreateWalletResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) - return _internal_query(); -} -inline void CreateWalletResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) -} -inline std::string* CreateWalletResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) - return _internal_mutable_query(); -} -inline const std::string& CreateWalletResponse::_internal_query() const { return query_.GetNoArena(); } -inline void CreateWalletResponse::_internal_set_query(const std::string& value) { +inline void CreateWalletResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) } -inline void CreateWalletResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void CreateWalletResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) } +#endif inline void CreateWalletResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) } inline void CreateWalletResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) } -inline std::string* CreateWalletResponse::_internal_mutable_query() { +inline ::std::string* CreateWalletResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* CreateWalletResponse::release_query() { +inline ::std::string* CreateWalletResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void CreateWalletResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void CreateWalletResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query) } @@ -9941,19 +6769,13 @@ inline void CreateWalletResponse::set_allocated_query(std::string* query) { inline void ListWalletRequest::clear_query() { query_ = false; } -inline bool ListWalletRequest::_internal_query() const { - return query_; -} inline bool ListWalletRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ListWalletRequest.query) - return _internal_query(); + return query_; } -inline void ListWalletRequest::_internal_set_query(bool value) { +inline void ListWalletRequest::set_query(bool value) { query_ = value; -} -inline void ListWalletRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ListWalletRequest.query) } @@ -9963,61 +6785,53 @@ inline void ListWalletRequest::set_query(bool value) { // string query = 1; inline void ListWalletResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& ListWalletResponse::query() const { +inline const ::std::string& ListWalletResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) - return _internal_query(); -} -inline void ListWalletResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) -} -inline std::string* ListWalletResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) - return _internal_mutable_query(); -} -inline const std::string& ListWalletResponse::_internal_query() const { return query_.GetNoArena(); } -inline void ListWalletResponse::_internal_set_query(const std::string& value) { +inline void ListWalletResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) } -inline void ListWalletResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void ListWalletResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) } +#endif inline void ListWalletResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) } inline void ListWalletResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) } -inline std::string* ListWalletResponse::_internal_mutable_query() { +inline ::std::string* ListWalletResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ListWalletResponse::release_query() { +inline ::std::string* ListWalletResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ListWalletResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void ListWalletResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.ListWalletResponse.query) } @@ -10029,19 +6843,13 @@ inline void ListWalletResponse::set_allocated_query(std::string* query) { inline void CreateAddressRequest::clear_query() { query_ = false; } -inline bool CreateAddressRequest::_internal_query() const { - return query_; -} inline bool CreateAddressRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.CreateAddressRequest.query) - return _internal_query(); + return query_; } -inline void CreateAddressRequest::_internal_set_query(bool value) { +inline void CreateAddressRequest::set_query(bool value) { query_ = value; -} -inline void CreateAddressRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateAddressRequest.query) } @@ -10051,61 +6859,53 @@ inline void CreateAddressRequest::set_query(bool value) { // string query = 1; inline void CreateAddressResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& CreateAddressResponse::query() const { +inline const ::std::string& CreateAddressResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) - return _internal_query(); -} -inline void CreateAddressResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) -} -inline std::string* CreateAddressResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) - return _internal_mutable_query(); -} -inline const std::string& CreateAddressResponse::_internal_query() const { return query_.GetNoArena(); } -inline void CreateAddressResponse::_internal_set_query(const std::string& value) { +inline void CreateAddressResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) } -inline void CreateAddressResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void CreateAddressResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) } +#endif inline void CreateAddressResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) } inline void CreateAddressResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) } -inline std::string* CreateAddressResponse::_internal_mutable_query() { +inline ::std::string* CreateAddressResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* CreateAddressResponse::release_query() { +inline ::std::string* CreateAddressResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void CreateAddressResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void CreateAddressResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query) } @@ -10117,19 +6917,13 @@ inline void CreateAddressResponse::set_allocated_query(std::string* query) { inline void GetAddressRequest::clear_query() { query_ = false; } -inline bool GetAddressRequest::_internal_query() const { - return query_; -} inline bool GetAddressRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetAddressRequest.query) - return _internal_query(); + return query_; } -inline void GetAddressRequest::_internal_set_query(bool value) { +inline void GetAddressRequest::set_query(bool value) { query_ = value; -} -inline void GetAddressRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetAddressRequest.query) } @@ -10139,61 +6933,53 @@ inline void GetAddressRequest::set_query(bool value) { // string query = 1; inline void GetAddressResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& GetAddressResponse::query() const { +inline const ::std::string& GetAddressResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) - return _internal_query(); -} -inline void GetAddressResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) -} -inline std::string* GetAddressResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) - return _internal_mutable_query(); -} -inline const std::string& GetAddressResponse::_internal_query() const { return query_.GetNoArena(); } -inline void GetAddressResponse::_internal_set_query(const std::string& value) { +inline void GetAddressResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) } -inline void GetAddressResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void GetAddressResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) } +#endif inline void GetAddressResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) } inline void GetAddressResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) } -inline std::string* GetAddressResponse::_internal_mutable_query() { +inline ::std::string* GetAddressResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* GetAddressResponse::release_query() { +inline ::std::string* GetAddressResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetAddressResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void GetAddressResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetAddressResponse.query) } @@ -10205,19 +6991,13 @@ inline void GetAddressResponse::set_allocated_query(std::string* query) { inline void ListAddressRequest::clear_query() { query_ = false; } -inline bool ListAddressRequest::_internal_query() const { - return query_; -} inline bool ListAddressRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ListAddressRequest.query) - return _internal_query(); + return query_; } -inline void ListAddressRequest::_internal_set_query(bool value) { +inline void ListAddressRequest::set_query(bool value) { query_ = value; -} -inline void ListAddressRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ListAddressRequest.query) } @@ -10227,61 +7007,53 @@ inline void ListAddressRequest::set_query(bool value) { // string query = 1; inline void ListAddressResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& ListAddressResponse::query() const { +inline const ::std::string& ListAddressResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) - return _internal_query(); -} -inline void ListAddressResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) -} -inline std::string* ListAddressResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) - return _internal_mutable_query(); -} -inline const std::string& ListAddressResponse::_internal_query() const { return query_.GetNoArena(); } -inline void ListAddressResponse::_internal_set_query(const std::string& value) { +inline void ListAddressResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) } -inline void ListAddressResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void ListAddressResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) } +#endif inline void ListAddressResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) } inline void ListAddressResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) } -inline std::string* ListAddressResponse::_internal_mutable_query() { +inline ::std::string* ListAddressResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ListAddressResponse::release_query() { +inline ::std::string* ListAddressResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ListAddressResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void ListAddressResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.ListAddressResponse.query) } @@ -10293,19 +7065,13 @@ inline void ListAddressResponse::set_allocated_query(std::string* query) { inline void ValidateAddressRequest::clear_query() { query_ = false; } -inline bool ValidateAddressRequest::_internal_query() const { - return query_; -} inline bool ValidateAddressRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.query) - return _internal_query(); + return query_; } -inline void ValidateAddressRequest::_internal_set_query(bool value) { +inline void ValidateAddressRequest::set_query(bool value) { query_ = value; -} -inline void ValidateAddressRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.query) } @@ -10315,61 +7081,53 @@ inline void ValidateAddressRequest::set_query(bool value) { // string query = 1; inline void ValidateAddressResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& ValidateAddressResponse::query() const { +inline const ::std::string& ValidateAddressResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) - return _internal_query(); -} -inline void ValidateAddressResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) -} -inline std::string* ValidateAddressResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) - return _internal_mutable_query(); -} -inline const std::string& ValidateAddressResponse::_internal_query() const { return query_.GetNoArena(); } -inline void ValidateAddressResponse::_internal_set_query(const std::string& value) { +inline void ValidateAddressResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) } -inline void ValidateAddressResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void ValidateAddressResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) } +#endif inline void ValidateAddressResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) } inline void ValidateAddressResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) } -inline std::string* ValidateAddressResponse::_internal_mutable_query() { +inline ::std::string* ValidateAddressResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ValidateAddressResponse::release_query() { +inline ::std::string* ValidateAddressResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ValidateAddressResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void ValidateAddressResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query) } @@ -10381,19 +7139,13 @@ inline void ValidateAddressResponse::set_allocated_query(std::string* query) { inline void GetBalanceRequest::clear_query() { query_ = false; } -inline bool GetBalanceRequest::_internal_query() const { - return query_; -} inline bool GetBalanceRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetBalanceRequest.query) - return _internal_query(); + return query_; } -inline void GetBalanceRequest::_internal_set_query(bool value) { +inline void GetBalanceRequest::set_query(bool value) { query_ = value; -} -inline void GetBalanceRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetBalanceRequest.query) } @@ -10403,61 +7155,53 @@ inline void GetBalanceRequest::set_query(bool value) { // string query = 1; inline void GetBalanceResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& GetBalanceResponse::query() const { +inline const ::std::string& GetBalanceResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) - return _internal_query(); -} -inline void GetBalanceResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) -} -inline std::string* GetBalanceResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) - return _internal_mutable_query(); -} -inline const std::string& GetBalanceResponse::_internal_query() const { return query_.GetNoArena(); } -inline void GetBalanceResponse::_internal_set_query(const std::string& value) { +inline void GetBalanceResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) } -inline void GetBalanceResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void GetBalanceResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) } +#endif inline void GetBalanceResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) } inline void GetBalanceResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) } -inline std::string* GetBalanceResponse::_internal_mutable_query() { +inline ::std::string* GetBalanceResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* GetBalanceResponse::release_query() { +inline ::std::string* GetBalanceResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetBalanceResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void GetBalanceResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query) } @@ -10469,19 +7213,13 @@ inline void GetBalanceResponse::set_allocated_query(std::string* query) { inline void CreateRawTransactionRequest::clear_query() { query_ = false; } -inline bool CreateRawTransactionRequest::_internal_query() const { - return query_; -} inline bool CreateRawTransactionRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.query) - return _internal_query(); + return query_; } -inline void CreateRawTransactionRequest::_internal_set_query(bool value) { +inline void CreateRawTransactionRequest::set_query(bool value) { query_ = value; -} -inline void CreateRawTransactionRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.query) } @@ -10491,61 +7229,53 @@ inline void CreateRawTransactionRequest::set_query(bool value) { // string query = 1; inline void CreateRawTransactionResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& CreateRawTransactionResponse::query() const { +inline const ::std::string& CreateRawTransactionResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) - return _internal_query(); -} -inline void CreateRawTransactionResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) -} -inline std::string* CreateRawTransactionResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) - return _internal_mutable_query(); -} -inline const std::string& CreateRawTransactionResponse::_internal_query() const { return query_.GetNoArena(); } -inline void CreateRawTransactionResponse::_internal_set_query(const std::string& value) { +inline void CreateRawTransactionResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) } -inline void CreateRawTransactionResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void CreateRawTransactionResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) } +#endif inline void CreateRawTransactionResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) } inline void CreateRawTransactionResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) } -inline std::string* CreateRawTransactionResponse::_internal_mutable_query() { +inline ::std::string* CreateRawTransactionResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* CreateRawTransactionResponse::release_query() { +inline ::std::string* CreateRawTransactionResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void CreateRawTransactionResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void CreateRawTransactionResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query) } @@ -10557,19 +7287,13 @@ inline void CreateRawTransactionResponse::set_allocated_query(std::string* query inline void SignRawTransactionRequest::clear_query() { query_ = false; } -inline bool SignRawTransactionRequest::_internal_query() const { - return query_; -} inline bool SignRawTransactionRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.query) - return _internal_query(); + return query_; } -inline void SignRawTransactionRequest::_internal_set_query(bool value) { +inline void SignRawTransactionRequest::set_query(bool value) { query_ = value; -} -inline void SignRawTransactionRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.query) } @@ -10579,61 +7303,53 @@ inline void SignRawTransactionRequest::set_query(bool value) { // string query = 1; inline void SignRawTransactionResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SignRawTransactionResponse::query() const { +inline const ::std::string& SignRawTransactionResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) - return _internal_query(); -} -inline void SignRawTransactionResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) -} -inline std::string* SignRawTransactionResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) - return _internal_mutable_query(); -} -inline const std::string& SignRawTransactionResponse::_internal_query() const { return query_.GetNoArena(); } -inline void SignRawTransactionResponse::_internal_set_query(const std::string& value) { +inline void SignRawTransactionResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) } -inline void SignRawTransactionResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void SignRawTransactionResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) } +#endif inline void SignRawTransactionResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) } inline void SignRawTransactionResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) } -inline std::string* SignRawTransactionResponse::_internal_mutable_query() { +inline ::std::string* SignRawTransactionResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SignRawTransactionResponse::release_query() { +inline ::std::string* SignRawTransactionResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SignRawTransactionResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void SignRawTransactionResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query) } @@ -10645,19 +7361,13 @@ inline void SignRawTransactionResponse::set_allocated_query(std::string* query) inline void DecodeRawTransactionRequest::clear_query() { query_ = false; } -inline bool DecodeRawTransactionRequest::_internal_query() const { - return query_; -} inline bool DecodeRawTransactionRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.query) - return _internal_query(); + return query_; } -inline void DecodeRawTransactionRequest::_internal_set_query(bool value) { +inline void DecodeRawTransactionRequest::set_query(bool value) { query_ = value; -} -inline void DecodeRawTransactionRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.query) } @@ -10667,61 +7377,53 @@ inline void DecodeRawTransactionRequest::set_query(bool value) { // string query = 1; inline void DecodeRawTransactionResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& DecodeRawTransactionResponse::query() const { +inline const ::std::string& DecodeRawTransactionResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) - return _internal_query(); -} -inline void DecodeRawTransactionResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) -} -inline std::string* DecodeRawTransactionResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) - return _internal_mutable_query(); -} -inline const std::string& DecodeRawTransactionResponse::_internal_query() const { return query_.GetNoArena(); } -inline void DecodeRawTransactionResponse::_internal_set_query(const std::string& value) { +inline void DecodeRawTransactionResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) } -inline void DecodeRawTransactionResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void DecodeRawTransactionResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) } +#endif inline void DecodeRawTransactionResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) } inline void DecodeRawTransactionResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) } -inline std::string* DecodeRawTransactionResponse::_internal_mutable_query() { +inline ::std::string* DecodeRawTransactionResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* DecodeRawTransactionResponse::release_query() { +inline ::std::string* DecodeRawTransactionResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void DecodeRawTransactionResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void DecodeRawTransactionResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query) } @@ -10730,56 +7432,41 @@ inline void DecodeRawTransactionResponse::set_allocated_query(std::string* query // BroadcastRawTransactionRequest // .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; -inline bool BroadcastRawTransactionRequest::_internal_has_transaction() const { - return this != internal_default_instance() && transaction_ != nullptr; -} inline bool BroadcastRawTransactionRequest::has_transaction() const { - return _internal_has_transaction(); + return this != internal_default_instance() && transaction_ != NULL; } -inline const ::Catalyst::Protocol::Wire::TransactionBroadcast& BroadcastRawTransactionRequest::_internal_transaction() const { - const ::Catalyst::Protocol::Wire::TransactionBroadcast* p = transaction_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Wire::_TransactionBroadcast_default_instance_); +inline void BroadcastRawTransactionRequest::clear_transaction() { + if (GetArenaNoVirtual() == NULL && transaction_ != NULL) delete transaction_; + transaction_ = NULL; } inline const ::Catalyst::Protocol::Wire::TransactionBroadcast& BroadcastRawTransactionRequest::transaction() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.transaction) - return _internal_transaction(); + return transaction_ != NULL ? *transaction_ + : *::Catalyst::Protocol::Wire::TransactionBroadcast::internal_default_instance(); +} +inline ::Catalyst::Protocol::Wire::TransactionBroadcast* BroadcastRawTransactionRequest::mutable_transaction() { + + if (transaction_ == NULL) { + transaction_ = new ::Catalyst::Protocol::Wire::TransactionBroadcast; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.transaction) + return transaction_; } inline ::Catalyst::Protocol::Wire::TransactionBroadcast* BroadcastRawTransactionRequest::release_transaction() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.transaction) ::Catalyst::Protocol::Wire::TransactionBroadcast* temp = transaction_; - transaction_ = nullptr; + transaction_ = NULL; return temp; } -inline ::Catalyst::Protocol::Wire::TransactionBroadcast* BroadcastRawTransactionRequest::_internal_mutable_transaction() { - - if (transaction_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Wire::TransactionBroadcast>(GetArenaNoVirtual()); - transaction_ = p; - } - return transaction_; -} -inline ::Catalyst::Protocol::Wire::TransactionBroadcast* BroadcastRawTransactionRequest::mutable_transaction() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.transaction) - return _internal_mutable_transaction(); -} inline void BroadcastRawTransactionRequest::set_allocated_transaction(::Catalyst::Protocol::Wire::TransactionBroadcast* transaction) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(transaction_); - } + delete transaction_; + transaction_ = transaction; if (transaction) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - transaction = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, transaction, submessage_arena); - } } else { } - transaction_ = transaction; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.transaction) } @@ -10791,19 +7478,13 @@ inline void BroadcastRawTransactionRequest::set_allocated_transaction(::Catalyst inline void BroadcastRawTransactionResponse::clear_response_code() { response_code_ = 0; } -inline ::Catalyst::Protocol::Rpc::Node::ResponseCode BroadcastRawTransactionResponse::_internal_response_code() const { - return static_cast< ::Catalyst::Protocol::Rpc::Node::ResponseCode >(response_code_); -} inline ::Catalyst::Protocol::Rpc::Node::ResponseCode BroadcastRawTransactionResponse::response_code() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.response_code) - return _internal_response_code(); + return static_cast< ::Catalyst::Protocol::Rpc::Node::ResponseCode >(response_code_); } -inline void BroadcastRawTransactionResponse::_internal_set_response_code(::Catalyst::Protocol::Rpc::Node::ResponseCode value) { +inline void BroadcastRawTransactionResponse::set_response_code(::Catalyst::Protocol::Rpc::Node::ResponseCode value) { response_code_ = value; -} -inline void BroadcastRawTransactionResponse::set_response_code(::Catalyst::Protocol::Rpc::Node::ResponseCode value) { - _internal_set_response_code(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.response_code) } @@ -10815,19 +7496,13 @@ inline void BroadcastRawTransactionResponse::set_response_code(::Catalyst::Proto inline void SendToRequest::clear_query() { query_ = false; } -inline bool SendToRequest::_internal_query() const { - return query_; -} inline bool SendToRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendToRequest.query) - return _internal_query(); + return query_; } -inline void SendToRequest::_internal_set_query(bool value) { +inline void SendToRequest::set_query(bool value) { query_ = value; -} -inline void SendToRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendToRequest.query) } @@ -10837,61 +7512,53 @@ inline void SendToRequest::set_query(bool value) { // string query = 1; inline void SendToResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SendToResponse::query() const { +inline const ::std::string& SendToResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendToResponse.query) - return _internal_query(); -} -inline void SendToResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendToResponse.query) -} -inline std::string* SendToResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SendToResponse.query) - return _internal_mutable_query(); -} -inline const std::string& SendToResponse::_internal_query() const { return query_.GetNoArena(); } -inline void SendToResponse::_internal_set_query(const std::string& value) { +inline void SendToResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendToResponse.query) } -inline void SendToResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void SendToResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SendToResponse.query) } +#endif inline void SendToResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SendToResponse.query) } inline void SendToResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SendToResponse.query) } -inline std::string* SendToResponse::_internal_mutable_query() { +inline ::std::string* SendToResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SendToResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SendToResponse::release_query() { +inline ::std::string* SendToResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SendToResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SendToResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void SendToResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SendToResponse.query) } @@ -10903,19 +7570,13 @@ inline void SendToResponse::set_allocated_query(std::string* query) { inline void SendToFromRequest::clear_query() { query_ = false; } -inline bool SendToFromRequest::_internal_query() const { - return query_; -} inline bool SendToFromRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendToFromRequest.query) - return _internal_query(); + return query_; } -inline void SendToFromRequest::_internal_set_query(bool value) { +inline void SendToFromRequest::set_query(bool value) { query_ = value; -} -inline void SendToFromRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendToFromRequest.query) } @@ -10925,61 +7586,53 @@ inline void SendToFromRequest::set_query(bool value) { // string query = 1; inline void SendToFromResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SendToFromResponse::query() const { +inline const ::std::string& SendToFromResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) - return _internal_query(); -} -inline void SendToFromResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) -} -inline std::string* SendToFromResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) - return _internal_mutable_query(); -} -inline const std::string& SendToFromResponse::_internal_query() const { return query_.GetNoArena(); } -inline void SendToFromResponse::_internal_set_query(const std::string& value) { +inline void SendToFromResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) } -inline void SendToFromResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void SendToFromResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) } +#endif inline void SendToFromResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) } inline void SendToFromResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) } -inline std::string* SendToFromResponse::_internal_mutable_query() { +inline ::std::string* SendToFromResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SendToFromResponse::release_query() { +inline ::std::string* SendToFromResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SendToFromResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void SendToFromResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SendToFromResponse.query) } @@ -10991,19 +7644,13 @@ inline void SendToFromResponse::set_allocated_query(std::string* query) { inline void SendManyRequest::clear_query() { query_ = false; } -inline bool SendManyRequest::_internal_query() const { - return query_; -} inline bool SendManyRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendManyRequest.query) - return _internal_query(); + return query_; } -inline void SendManyRequest::_internal_set_query(bool value) { +inline void SendManyRequest::set_query(bool value) { query_ = value; -} -inline void SendManyRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendManyRequest.query) } @@ -11013,61 +7660,53 @@ inline void SendManyRequest::set_query(bool value) { // string query = 1; inline void SendManyResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SendManyResponse::query() const { +inline const ::std::string& SendManyResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) - return _internal_query(); -} -inline void SendManyResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) -} -inline std::string* SendManyResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) - return _internal_mutable_query(); -} -inline const std::string& SendManyResponse::_internal_query() const { return query_.GetNoArena(); } -inline void SendManyResponse::_internal_set_query(const std::string& value) { +inline void SendManyResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) } -inline void SendManyResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void SendManyResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) } +#endif inline void SendManyResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) } inline void SendManyResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) } -inline std::string* SendManyResponse::_internal_mutable_query() { +inline ::std::string* SendManyResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SendManyResponse::release_query() { +inline ::std::string* SendManyResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SendManyResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void SendManyResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SendManyResponse.query) } @@ -11079,19 +7718,13 @@ inline void SendManyResponse::set_allocated_query(std::string* query) { inline void SendFromManyRequest::clear_query() { query_ = false; } -inline bool SendFromManyRequest::_internal_query() const { - return query_; -} inline bool SendFromManyRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendFromManyRequest.query) - return _internal_query(); + return query_; } -inline void SendFromManyRequest::_internal_set_query(bool value) { +inline void SendFromManyRequest::set_query(bool value) { query_ = value; -} -inline void SendFromManyRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendFromManyRequest.query) } @@ -11101,61 +7734,53 @@ inline void SendFromManyRequest::set_query(bool value) { // string query = 1; inline void SendFromManyResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SendFromManyResponse::query() const { +inline const ::std::string& SendFromManyResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) - return _internal_query(); -} -inline void SendFromManyResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) -} -inline std::string* SendFromManyResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) - return _internal_mutable_query(); -} -inline const std::string& SendFromManyResponse::_internal_query() const { return query_.GetNoArena(); } -inline void SendFromManyResponse::_internal_set_query(const std::string& value) { +inline void SendFromManyResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) } -inline void SendFromManyResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void SendFromManyResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) } +#endif inline void SendFromManyResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) } inline void SendFromManyResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) } -inline std::string* SendFromManyResponse::_internal_mutable_query() { +inline ::std::string* SendFromManyResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SendFromManyResponse::release_query() { +inline ::std::string* SendFromManyResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SendFromManyResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void SendFromManyResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query) } @@ -11167,19 +7792,13 @@ inline void SendFromManyResponse::set_allocated_query(std::string* query) { inline void AddNodeRequest::clear_query() { query_ = false; } -inline bool AddNodeRequest::_internal_query() const { - return query_; -} inline bool AddNodeRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddNodeRequest.query) - return _internal_query(); + return query_; } -inline void AddNodeRequest::_internal_set_query(bool value) { +inline void AddNodeRequest::set_query(bool value) { query_ = value; -} -inline void AddNodeRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddNodeRequest.query) } @@ -11189,61 +7808,53 @@ inline void AddNodeRequest::set_query(bool value) { // string query = 1; inline void AddNodeResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& AddNodeResponse::query() const { +inline const ::std::string& AddNodeResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) - return _internal_query(); -} -inline void AddNodeResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) -} -inline std::string* AddNodeResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) - return _internal_mutable_query(); -} -inline const std::string& AddNodeResponse::_internal_query() const { return query_.GetNoArena(); } -inline void AddNodeResponse::_internal_set_query(const std::string& value) { +inline void AddNodeResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) } -inline void AddNodeResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void AddNodeResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) } +#endif inline void AddNodeResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) } inline void AddNodeResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) } -inline std::string* AddNodeResponse::_internal_mutable_query() { +inline ::std::string* AddNodeResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* AddNodeResponse::release_query() { +inline ::std::string* AddNodeResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void AddNodeResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void AddNodeResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.AddNodeResponse.query) } @@ -11256,36 +7867,30 @@ inline void AddNodeResponse::set_allocated_query(std::string* query) { // GetPeerListResponse // repeated .Catalyst.Protocol.Peer.PeerId peers = 1; -inline int GetPeerListResponse::_internal_peers_size() const { +inline int GetPeerListResponse::peers_size() const { return peers_.size(); } -inline int GetPeerListResponse::peers_size() const { - return _internal_peers_size(); +inline void GetPeerListResponse::clear_peers() { + peers_.Clear(); +} +inline const ::Catalyst::Protocol::Peer::PeerId& GetPeerListResponse::peers(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerListResponse.peers) + return peers_.Get(index); } inline ::Catalyst::Protocol::Peer::PeerId* GetPeerListResponse::mutable_peers(int index) { // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerListResponse.peers) return peers_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >* +inline ::Catalyst::Protocol::Peer::PeerId* GetPeerListResponse::add_peers() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Rpc.Node.GetPeerListResponse.peers) + return peers_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >* GetPeerListResponse::mutable_peers() { // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Rpc.Node.GetPeerListResponse.peers) return &peers_; } -inline const ::Catalyst::Protocol::Peer::PeerId& GetPeerListResponse::_internal_peers(int index) const { - return peers_.Get(index); -} -inline const ::Catalyst::Protocol::Peer::PeerId& GetPeerListResponse::peers(int index) const { - // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerListResponse.peers) - return _internal_peers(index); -} -inline ::Catalyst::Protocol::Peer::PeerId* GetPeerListResponse::_internal_add_peers() { - return peers_.Add(); -} -inline ::Catalyst::Protocol::Peer::PeerId* GetPeerListResponse::add_peers() { - // @@protoc_insertion_point(field_add:Catalyst.Protocol.Rpc.Node.GetPeerListResponse.peers) - return _internal_add_peers(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >& +inline const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerId >& GetPeerListResponse::peers() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.Rpc.Node.GetPeerListResponse.peers) return peers_; @@ -11297,121 +7902,105 @@ GetPeerListResponse::peers() const { // bytes public_key = 1; inline void GetPeerReputationRequest::clear_public_key() { - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& GetPeerReputationRequest::public_key() const { +inline const ::std::string& GetPeerReputationRequest::public_key() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) - return _internal_public_key(); -} -inline void GetPeerReputationRequest::set_public_key(const std::string& value) { - _internal_set_public_key(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) -} -inline std::string* GetPeerReputationRequest::mutable_public_key() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) - return _internal_mutable_public_key(); -} -inline const std::string& GetPeerReputationRequest::_internal_public_key() const { return public_key_.GetNoArena(); } -inline void GetPeerReputationRequest::_internal_set_public_key(const std::string& value) { +inline void GetPeerReputationRequest::set_public_key(const ::std::string& value) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) } -inline void GetPeerReputationRequest::set_public_key(std::string&& value) { +#if LANG_CXX11 +inline void GetPeerReputationRequest::set_public_key(::std::string&& value) { public_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) } +#endif inline void GetPeerReputationRequest::set_public_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) } inline void GetPeerReputationRequest::set_public_key(const void* value, size_t size) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) } -inline std::string* GetPeerReputationRequest::_internal_mutable_public_key() { +inline ::std::string* GetPeerReputationRequest::mutable_public_key() { - return public_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* GetPeerReputationRequest::release_public_key() { +inline ::std::string* GetPeerReputationRequest::release_public_key() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) - return public_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetPeerReputationRequest::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { +inline void GetPeerReputationRequest::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { } else { } - public_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key); + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key) } // bytes ip = 2; inline void GetPeerReputationRequest::clear_ip() { - ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& GetPeerReputationRequest::ip() const { +inline const ::std::string& GetPeerReputationRequest::ip() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) - return _internal_ip(); -} -inline void GetPeerReputationRequest::set_ip(const std::string& value) { - _internal_set_ip(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) -} -inline std::string* GetPeerReputationRequest::mutable_ip() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) - return _internal_mutable_ip(); -} -inline const std::string& GetPeerReputationRequest::_internal_ip() const { return ip_.GetNoArena(); } -inline void GetPeerReputationRequest::_internal_set_ip(const std::string& value) { +inline void GetPeerReputationRequest::set_ip(const ::std::string& value) { - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) } -inline void GetPeerReputationRequest::set_ip(std::string&& value) { +#if LANG_CXX11 +inline void GetPeerReputationRequest::set_ip(::std::string&& value) { ip_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) } +#endif inline void GetPeerReputationRequest::set_ip(const char* value) { - GOOGLE_DCHECK(value != nullptr); - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) } inline void GetPeerReputationRequest::set_ip(const void* value, size_t size) { - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) } -inline std::string* GetPeerReputationRequest::_internal_mutable_ip() { +inline ::std::string* GetPeerReputationRequest::mutable_ip() { - return ip_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) + return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* GetPeerReputationRequest::release_ip() { +inline ::std::string* GetPeerReputationRequest::release_ip() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) - return ip_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetPeerReputationRequest::set_allocated_ip(std::string* ip) { - if (ip != nullptr) { +inline void GetPeerReputationRequest::set_allocated_ip(::std::string* ip) { + if (ip != NULL) { } else { } - ip_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip); + ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip) } @@ -11423,19 +8012,13 @@ inline void GetPeerReputationRequest::set_allocated_ip(std::string* ip) { inline void GetPeerReputationResponse::clear_reputation() { reputation_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::int32 GetPeerReputationResponse::_internal_reputation() const { - return reputation_; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 GetPeerReputationResponse::reputation() const { +inline ::google::protobuf::int32 GetPeerReputationResponse::reputation() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.reputation) - return _internal_reputation(); + return reputation_; } -inline void GetPeerReputationResponse::_internal_set_reputation(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void GetPeerReputationResponse::set_reputation(::google::protobuf::int32 value) { reputation_ = value; -} -inline void GetPeerReputationResponse::set_reputation(::PROTOBUF_NAMESPACE_ID::int32 value) { - _internal_set_reputation(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.reputation) } @@ -11445,121 +8028,105 @@ inline void GetPeerReputationResponse::set_reputation(::PROTOBUF_NAMESPACE_ID::i // bytes public_key = 1; inline void SetPeerBlackListRequest::clear_public_key() { - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SetPeerBlackListRequest::public_key() const { +inline const ::std::string& SetPeerBlackListRequest::public_key() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) - return _internal_public_key(); -} -inline void SetPeerBlackListRequest::set_public_key(const std::string& value) { - _internal_set_public_key(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) -} -inline std::string* SetPeerBlackListRequest::mutable_public_key() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) - return _internal_mutable_public_key(); -} -inline const std::string& SetPeerBlackListRequest::_internal_public_key() const { return public_key_.GetNoArena(); } -inline void SetPeerBlackListRequest::_internal_set_public_key(const std::string& value) { +inline void SetPeerBlackListRequest::set_public_key(const ::std::string& value) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) } -inline void SetPeerBlackListRequest::set_public_key(std::string&& value) { +#if LANG_CXX11 +inline void SetPeerBlackListRequest::set_public_key(::std::string&& value) { public_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) } +#endif inline void SetPeerBlackListRequest::set_public_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) } inline void SetPeerBlackListRequest::set_public_key(const void* value, size_t size) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) } -inline std::string* SetPeerBlackListRequest::_internal_mutable_public_key() { +inline ::std::string* SetPeerBlackListRequest::mutable_public_key() { - return public_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SetPeerBlackListRequest::release_public_key() { +inline ::std::string* SetPeerBlackListRequest::release_public_key() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) - return public_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SetPeerBlackListRequest::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { +inline void SetPeerBlackListRequest::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { } else { } - public_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key); + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key) } // bytes ip = 2; inline void SetPeerBlackListRequest::clear_ip() { - ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SetPeerBlackListRequest::ip() const { +inline const ::std::string& SetPeerBlackListRequest::ip() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) - return _internal_ip(); -} -inline void SetPeerBlackListRequest::set_ip(const std::string& value) { - _internal_set_ip(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) -} -inline std::string* SetPeerBlackListRequest::mutable_ip() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) - return _internal_mutable_ip(); -} -inline const std::string& SetPeerBlackListRequest::_internal_ip() const { return ip_.GetNoArena(); } -inline void SetPeerBlackListRequest::_internal_set_ip(const std::string& value) { +inline void SetPeerBlackListRequest::set_ip(const ::std::string& value) { - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) } -inline void SetPeerBlackListRequest::set_ip(std::string&& value) { +#if LANG_CXX11 +inline void SetPeerBlackListRequest::set_ip(::std::string&& value) { ip_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) } +#endif inline void SetPeerBlackListRequest::set_ip(const char* value) { - GOOGLE_DCHECK(value != nullptr); - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) } inline void SetPeerBlackListRequest::set_ip(const void* value, size_t size) { - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) } -inline std::string* SetPeerBlackListRequest::_internal_mutable_ip() { +inline ::std::string* SetPeerBlackListRequest::mutable_ip() { - return ip_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) + return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SetPeerBlackListRequest::release_ip() { +inline ::std::string* SetPeerBlackListRequest::release_ip() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) - return ip_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SetPeerBlackListRequest::set_allocated_ip(std::string* ip) { - if (ip != nullptr) { +inline void SetPeerBlackListRequest::set_allocated_ip(::std::string* ip) { + if (ip != NULL) { } else { } - ip_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip); + ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip) } @@ -11567,19 +8134,13 @@ inline void SetPeerBlackListRequest::set_allocated_ip(std::string* ip) { inline void SetPeerBlackListRequest::clear_blacklist() { blacklist_ = false; } -inline bool SetPeerBlackListRequest::_internal_blacklist() const { - return blacklist_; -} inline bool SetPeerBlackListRequest::blacklist() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.blacklist) - return _internal_blacklist(); + return blacklist_; } -inline void SetPeerBlackListRequest::_internal_set_blacklist(bool value) { +inline void SetPeerBlackListRequest::set_blacklist(bool value) { blacklist_ = value; -} -inline void SetPeerBlackListRequest::set_blacklist(bool value) { - _internal_set_blacklist(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.blacklist) } @@ -11589,121 +8150,105 @@ inline void SetPeerBlackListRequest::set_blacklist(bool value) { // bytes public_key = 1; inline void SetPeerBlackListResponse::clear_public_key() { - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SetPeerBlackListResponse::public_key() const { +inline const ::std::string& SetPeerBlackListResponse::public_key() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) - return _internal_public_key(); -} -inline void SetPeerBlackListResponse::set_public_key(const std::string& value) { - _internal_set_public_key(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) -} -inline std::string* SetPeerBlackListResponse::mutable_public_key() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) - return _internal_mutable_public_key(); -} -inline const std::string& SetPeerBlackListResponse::_internal_public_key() const { return public_key_.GetNoArena(); } -inline void SetPeerBlackListResponse::_internal_set_public_key(const std::string& value) { +inline void SetPeerBlackListResponse::set_public_key(const ::std::string& value) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) } -inline void SetPeerBlackListResponse::set_public_key(std::string&& value) { +#if LANG_CXX11 +inline void SetPeerBlackListResponse::set_public_key(::std::string&& value) { public_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) } +#endif inline void SetPeerBlackListResponse::set_public_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) } inline void SetPeerBlackListResponse::set_public_key(const void* value, size_t size) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) } -inline std::string* SetPeerBlackListResponse::_internal_mutable_public_key() { +inline ::std::string* SetPeerBlackListResponse::mutable_public_key() { - return public_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SetPeerBlackListResponse::release_public_key() { +inline ::std::string* SetPeerBlackListResponse::release_public_key() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) - return public_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SetPeerBlackListResponse::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { +inline void SetPeerBlackListResponse::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { } else { } - public_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key); + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key) } // bytes ip = 2; inline void SetPeerBlackListResponse::clear_ip() { - ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SetPeerBlackListResponse::ip() const { +inline const ::std::string& SetPeerBlackListResponse::ip() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) - return _internal_ip(); -} -inline void SetPeerBlackListResponse::set_ip(const std::string& value) { - _internal_set_ip(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) -} -inline std::string* SetPeerBlackListResponse::mutable_ip() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) - return _internal_mutable_ip(); -} -inline const std::string& SetPeerBlackListResponse::_internal_ip() const { return ip_.GetNoArena(); } -inline void SetPeerBlackListResponse::_internal_set_ip(const std::string& value) { +inline void SetPeerBlackListResponse::set_ip(const ::std::string& value) { - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) } -inline void SetPeerBlackListResponse::set_ip(std::string&& value) { +#if LANG_CXX11 +inline void SetPeerBlackListResponse::set_ip(::std::string&& value) { ip_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) } +#endif inline void SetPeerBlackListResponse::set_ip(const char* value) { - GOOGLE_DCHECK(value != nullptr); - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) } inline void SetPeerBlackListResponse::set_ip(const void* value, size_t size) { - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) } -inline std::string* SetPeerBlackListResponse::_internal_mutable_ip() { +inline ::std::string* SetPeerBlackListResponse::mutable_ip() { - return ip_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) + return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SetPeerBlackListResponse::release_ip() { +inline ::std::string* SetPeerBlackListResponse::release_ip() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) - return ip_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SetPeerBlackListResponse::set_allocated_ip(std::string* ip) { - if (ip != nullptr) { +inline void SetPeerBlackListResponse::set_allocated_ip(::std::string* ip) { + if (ip != NULL) { } else { } - ip_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip); + ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip) } @@ -11711,19 +8256,13 @@ inline void SetPeerBlackListResponse::set_allocated_ip(std::string* ip) { inline void SetPeerBlackListResponse::clear_blacklist() { blacklist_ = false; } -inline bool SetPeerBlackListResponse::_internal_blacklist() const { - return blacklist_; -} inline bool SetPeerBlackListResponse::blacklist() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.blacklist) - return _internal_blacklist(); + return blacklist_; } -inline void SetPeerBlackListResponse::_internal_set_blacklist(bool value) { +inline void SetPeerBlackListResponse::set_blacklist(bool value) { blacklist_ = value; -} -inline void SetPeerBlackListResponse::set_blacklist(bool value) { - _internal_set_blacklist(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.blacklist) } @@ -11733,121 +8272,105 @@ inline void SetPeerBlackListResponse::set_blacklist(bool value) { // bytes public_key = 1; inline void GetPeerInfoRequest::clear_public_key() { - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& GetPeerInfoRequest::public_key() const { +inline const ::std::string& GetPeerInfoRequest::public_key() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) - return _internal_public_key(); -} -inline void GetPeerInfoRequest::set_public_key(const std::string& value) { - _internal_set_public_key(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) -} -inline std::string* GetPeerInfoRequest::mutable_public_key() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) - return _internal_mutable_public_key(); -} -inline const std::string& GetPeerInfoRequest::_internal_public_key() const { return public_key_.GetNoArena(); } -inline void GetPeerInfoRequest::_internal_set_public_key(const std::string& value) { +inline void GetPeerInfoRequest::set_public_key(const ::std::string& value) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) } -inline void GetPeerInfoRequest::set_public_key(std::string&& value) { +#if LANG_CXX11 +inline void GetPeerInfoRequest::set_public_key(::std::string&& value) { public_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) } +#endif inline void GetPeerInfoRequest::set_public_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) } inline void GetPeerInfoRequest::set_public_key(const void* value, size_t size) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) } -inline std::string* GetPeerInfoRequest::_internal_mutable_public_key() { +inline ::std::string* GetPeerInfoRequest::mutable_public_key() { - return public_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* GetPeerInfoRequest::release_public_key() { +inline ::std::string* GetPeerInfoRequest::release_public_key() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) - return public_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetPeerInfoRequest::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { +inline void GetPeerInfoRequest::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { } else { } - public_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key); + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key) } // bytes ip = 2; inline void GetPeerInfoRequest::clear_ip() { - ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& GetPeerInfoRequest::ip() const { +inline const ::std::string& GetPeerInfoRequest::ip() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) - return _internal_ip(); -} -inline void GetPeerInfoRequest::set_ip(const std::string& value) { - _internal_set_ip(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) -} -inline std::string* GetPeerInfoRequest::mutable_ip() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) - return _internal_mutable_ip(); -} -inline const std::string& GetPeerInfoRequest::_internal_ip() const { return ip_.GetNoArena(); } -inline void GetPeerInfoRequest::_internal_set_ip(const std::string& value) { +inline void GetPeerInfoRequest::set_ip(const ::std::string& value) { - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) } -inline void GetPeerInfoRequest::set_ip(std::string&& value) { +#if LANG_CXX11 +inline void GetPeerInfoRequest::set_ip(::std::string&& value) { ip_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) } +#endif inline void GetPeerInfoRequest::set_ip(const char* value) { - GOOGLE_DCHECK(value != nullptr); - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) } inline void GetPeerInfoRequest::set_ip(const void* value, size_t size) { - ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) } -inline std::string* GetPeerInfoRequest::_internal_mutable_ip() { +inline ::std::string* GetPeerInfoRequest::mutable_ip() { - return ip_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) + return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* GetPeerInfoRequest::release_ip() { +inline ::std::string* GetPeerInfoRequest::release_ip() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) - return ip_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetPeerInfoRequest::set_allocated_ip(std::string* ip) { - if (ip != nullptr) { +inline void GetPeerInfoRequest::set_allocated_ip(::std::string* ip) { + if (ip != NULL) { } else { } - ip_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip); + ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip) } @@ -11856,36 +8379,30 @@ inline void GetPeerInfoRequest::set_allocated_ip(std::string* ip) { // GetPeerInfoResponse // repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; -inline int GetPeerInfoResponse::_internal_peer_info_size() const { +inline int GetPeerInfoResponse::peer_info_size() const { return peer_info_.size(); } -inline int GetPeerInfoResponse::peer_info_size() const { - return _internal_peer_info_size(); +inline void GetPeerInfoResponse::clear_peer_info() { + peer_info_.Clear(); +} +inline const ::Catalyst::Protocol::Peer::PeerInfo& GetPeerInfoResponse::peer_info(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.peer_info) + return peer_info_.Get(index); } inline ::Catalyst::Protocol::Peer::PeerInfo* GetPeerInfoResponse::mutable_peer_info(int index) { // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.peer_info) return peer_info_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerInfo >* +inline ::Catalyst::Protocol::Peer::PeerInfo* GetPeerInfoResponse::add_peer_info() { + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.peer_info) + return peer_info_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerInfo >* GetPeerInfoResponse::mutable_peer_info() { // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.peer_info) return &peer_info_; } -inline const ::Catalyst::Protocol::Peer::PeerInfo& GetPeerInfoResponse::_internal_peer_info(int index) const { - return peer_info_.Get(index); -} -inline const ::Catalyst::Protocol::Peer::PeerInfo& GetPeerInfoResponse::peer_info(int index) const { - // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.peer_info) - return _internal_peer_info(index); -} -inline ::Catalyst::Protocol::Peer::PeerInfo* GetPeerInfoResponse::_internal_add_peer_info() { - return peer_info_.Add(); -} -inline ::Catalyst::Protocol::Peer::PeerInfo* GetPeerInfoResponse::add_peer_info() { - // @@protoc_insertion_point(field_add:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.peer_info) - return _internal_add_peer_info(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerInfo >& +inline const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Peer::PeerInfo >& GetPeerInfoResponse::peer_info() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.peer_info) return peer_info_; @@ -11899,19 +8416,13 @@ GetPeerInfoResponse::peer_info() const { inline void GetConnectionCountRequest::clear_query() { query_ = false; } -inline bool GetConnectionCountRequest::_internal_query() const { - return query_; -} inline bool GetConnectionCountRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.query) - return _internal_query(); + return query_; } -inline void GetConnectionCountRequest::_internal_set_query(bool value) { +inline void GetConnectionCountRequest::set_query(bool value) { query_ = value; -} -inline void GetConnectionCountRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.query) } @@ -11921,61 +8432,53 @@ inline void GetConnectionCountRequest::set_query(bool value) { // string query = 1; inline void GetConnectionCountResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& GetConnectionCountResponse::query() const { +inline const ::std::string& GetConnectionCountResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) - return _internal_query(); -} -inline void GetConnectionCountResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) -} -inline std::string* GetConnectionCountResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) - return _internal_mutable_query(); -} -inline const std::string& GetConnectionCountResponse::_internal_query() const { return query_.GetNoArena(); } -inline void GetConnectionCountResponse::_internal_set_query(const std::string& value) { +inline void GetConnectionCountResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) } -inline void GetConnectionCountResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void GetConnectionCountResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) } +#endif inline void GetConnectionCountResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) } inline void GetConnectionCountResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) } -inline std::string* GetConnectionCountResponse::_internal_mutable_query() { +inline ::std::string* GetConnectionCountResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* GetConnectionCountResponse::release_query() { +inline ::std::string* GetConnectionCountResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetConnectionCountResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void GetConnectionCountResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query) } @@ -11985,61 +8488,53 @@ inline void GetConnectionCountResponse::set_allocated_query(std::string* query) // bytes delta_dfs_hash = 1; inline void GetDeltaRequest::clear_delta_dfs_hash() { - delta_dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& GetDeltaRequest::delta_dfs_hash() const { +inline const ::std::string& GetDeltaRequest::delta_dfs_hash() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) - return _internal_delta_dfs_hash(); -} -inline void GetDeltaRequest::set_delta_dfs_hash(const std::string& value) { - _internal_set_delta_dfs_hash(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) -} -inline std::string* GetDeltaRequest::mutable_delta_dfs_hash() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) - return _internal_mutable_delta_dfs_hash(); -} -inline const std::string& GetDeltaRequest::_internal_delta_dfs_hash() const { return delta_dfs_hash_.GetNoArena(); } -inline void GetDeltaRequest::_internal_set_delta_dfs_hash(const std::string& value) { +inline void GetDeltaRequest::set_delta_dfs_hash(const ::std::string& value) { - delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) } -inline void GetDeltaRequest::set_delta_dfs_hash(std::string&& value) { +#if LANG_CXX11 +inline void GetDeltaRequest::set_delta_dfs_hash(::std::string&& value) { delta_dfs_hash_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) } +#endif inline void GetDeltaRequest::set_delta_dfs_hash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) } inline void GetDeltaRequest::set_delta_dfs_hash(const void* value, size_t size) { - delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) } -inline std::string* GetDeltaRequest::_internal_mutable_delta_dfs_hash() { +inline ::std::string* GetDeltaRequest::mutable_delta_dfs_hash() { - return delta_dfs_hash_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) + return delta_dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* GetDeltaRequest::release_delta_dfs_hash() { +inline ::std::string* GetDeltaRequest::release_delta_dfs_hash() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) - return delta_dfs_hash_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return delta_dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetDeltaRequest::set_allocated_delta_dfs_hash(std::string* delta_dfs_hash) { - if (delta_dfs_hash != nullptr) { +inline void GetDeltaRequest::set_allocated_delta_dfs_hash(::std::string* delta_dfs_hash) { + if (delta_dfs_hash != NULL) { } else { } - delta_dfs_hash_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), delta_dfs_hash); + delta_dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delta_dfs_hash); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash) } @@ -12048,56 +8543,41 @@ inline void GetDeltaRequest::set_allocated_delta_dfs_hash(std::string* delta_dfs // GetDeltaResponse // .Catalyst.Protocol.Deltas.Delta delta = 1; -inline bool GetDeltaResponse::_internal_has_delta() const { - return this != internal_default_instance() && delta_ != nullptr; -} inline bool GetDeltaResponse::has_delta() const { - return _internal_has_delta(); + return this != internal_default_instance() && delta_ != NULL; } -inline const ::Catalyst::Protocol::Deltas::Delta& GetDeltaResponse::_internal_delta() const { - const ::Catalyst::Protocol::Deltas::Delta* p = delta_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Deltas::_Delta_default_instance_); +inline void GetDeltaResponse::clear_delta() { + if (GetArenaNoVirtual() == NULL && delta_ != NULL) delete delta_; + delta_ = NULL; } inline const ::Catalyst::Protocol::Deltas::Delta& GetDeltaResponse::delta() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetDeltaResponse.delta) - return _internal_delta(); + return delta_ != NULL ? *delta_ + : *::Catalyst::Protocol::Deltas::Delta::internal_default_instance(); +} +inline ::Catalyst::Protocol::Deltas::Delta* GetDeltaResponse::mutable_delta() { + + if (delta_ == NULL) { + delta_ = new ::Catalyst::Protocol::Deltas::Delta; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetDeltaResponse.delta) + return delta_; } inline ::Catalyst::Protocol::Deltas::Delta* GetDeltaResponse::release_delta() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetDeltaResponse.delta) ::Catalyst::Protocol::Deltas::Delta* temp = delta_; - delta_ = nullptr; + delta_ = NULL; return temp; } -inline ::Catalyst::Protocol::Deltas::Delta* GetDeltaResponse::_internal_mutable_delta() { - - if (delta_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Deltas::Delta>(GetArenaNoVirtual()); - delta_ = p; - } - return delta_; -} -inline ::Catalyst::Protocol::Deltas::Delta* GetDeltaResponse::mutable_delta() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetDeltaResponse.delta) - return _internal_mutable_delta(); -} inline void GetDeltaResponse::set_allocated_delta(::Catalyst::Protocol::Deltas::Delta* delta) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(delta_); - } + delete delta_; + delta_ = delta; if (delta) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - delta = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, delta, submessage_arena); - } } else { } - delta_ = delta; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetDeltaResponse.delta) } @@ -12109,57 +8589,45 @@ inline void GetDeltaResponse::set_allocated_delta(::Catalyst::Protocol::Deltas:: inline void GetMempoolRequest::clear_query() { query_ = false; } -inline bool GetMempoolRequest::_internal_query() const { - return query_; -} inline bool GetMempoolRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetMempoolRequest.query) - return _internal_query(); + return query_; } -inline void GetMempoolRequest::_internal_set_query(bool value) { +inline void GetMempoolRequest::set_query(bool value) { query_ = value; -} -inline void GetMempoolRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetMempoolRequest.query) } // ------------------------------------------------------------------- // GetMempoolResponse - -// repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; -inline int GetMempoolResponse::_internal_transactions_size() const { - return transactions_.size(); -} -inline int GetMempoolResponse::transactions_size() const { - return _internal_transactions_size(); -} -inline ::Catalyst::Protocol::Transaction::PublicEntry* GetMempoolResponse::mutable_transactions(int index) { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetMempoolResponse.transactions) - return transactions_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >* -GetMempoolResponse::mutable_transactions() { - // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Rpc.Node.GetMempoolResponse.transactions) - return &transactions_; + +// repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; +inline int GetMempoolResponse::transactions_size() const { + return transactions_.size(); } -inline const ::Catalyst::Protocol::Transaction::PublicEntry& GetMempoolResponse::_internal_transactions(int index) const { - return transactions_.Get(index); +inline void GetMempoolResponse::clear_transactions() { + transactions_.Clear(); } inline const ::Catalyst::Protocol::Transaction::PublicEntry& GetMempoolResponse::transactions(int index) const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetMempoolResponse.transactions) - return _internal_transactions(index); + return transactions_.Get(index); } -inline ::Catalyst::Protocol::Transaction::PublicEntry* GetMempoolResponse::_internal_add_transactions() { - return transactions_.Add(); +inline ::Catalyst::Protocol::Transaction::PublicEntry* GetMempoolResponse::mutable_transactions(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetMempoolResponse.transactions) + return transactions_.Mutable(index); } inline ::Catalyst::Protocol::Transaction::PublicEntry* GetMempoolResponse::add_transactions() { // @@protoc_insertion_point(field_add:Catalyst.Protocol.Rpc.Node.GetMempoolResponse.transactions) - return _internal_add_transactions(); + return transactions_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >* +GetMempoolResponse::mutable_transactions() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Rpc.Node.GetMempoolResponse.transactions) + return &transactions_; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >& +inline const ::google::protobuf::RepeatedPtrField< ::Catalyst::Protocol::Transaction::PublicEntry >& GetMempoolResponse::transactions() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.Rpc.Node.GetMempoolResponse.transactions) return transactions_; @@ -12171,175 +8639,144 @@ GetMempoolResponse::transactions() const { // bytes message = 1; inline void SignMessageRequest::clear_message() { - message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SignMessageRequest::message() const { +inline const ::std::string& SignMessageRequest::message() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) - return _internal_message(); -} -inline void SignMessageRequest::set_message(const std::string& value) { - _internal_set_message(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) -} -inline std::string* SignMessageRequest::mutable_message() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) - return _internal_mutable_message(); -} -inline const std::string& SignMessageRequest::_internal_message() const { return message_.GetNoArena(); } -inline void SignMessageRequest::_internal_set_message(const std::string& value) { +inline void SignMessageRequest::set_message(const ::std::string& value) { - message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) } -inline void SignMessageRequest::set_message(std::string&& value) { +#if LANG_CXX11 +inline void SignMessageRequest::set_message(::std::string&& value) { message_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) } +#endif inline void SignMessageRequest::set_message(const char* value) { - GOOGLE_DCHECK(value != nullptr); - message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) } inline void SignMessageRequest::set_message(const void* value, size_t size) { - message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) } -inline std::string* SignMessageRequest::_internal_mutable_message() { +inline ::std::string* SignMessageRequest::mutable_message() { - return message_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SignMessageRequest::release_message() { +inline ::std::string* SignMessageRequest::release_message() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) - return message_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SignMessageRequest::set_allocated_message(std::string* message) { - if (message != nullptr) { +inline void SignMessageRequest::set_allocated_message(::std::string* message) { + if (message != NULL) { } else { } - message_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message); + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignMessageRequest.message) } // string key_id = 2; inline void SignMessageRequest::clear_key_id() { - key_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + key_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SignMessageRequest::key_id() const { +inline const ::std::string& SignMessageRequest::key_id() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) - return _internal_key_id(); -} -inline void SignMessageRequest::set_key_id(const std::string& value) { - _internal_set_key_id(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) -} -inline std::string* SignMessageRequest::mutable_key_id() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) - return _internal_mutable_key_id(); -} -inline const std::string& SignMessageRequest::_internal_key_id() const { return key_id_.GetNoArena(); } -inline void SignMessageRequest::_internal_set_key_id(const std::string& value) { +inline void SignMessageRequest::set_key_id(const ::std::string& value) { - key_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) } -inline void SignMessageRequest::set_key_id(std::string&& value) { +#if LANG_CXX11 +inline void SignMessageRequest::set_key_id(::std::string&& value) { key_id_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) } +#endif inline void SignMessageRequest::set_key_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - key_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) } inline void SignMessageRequest::set_key_id(const char* value, size_t size) { - key_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) } -inline std::string* SignMessageRequest::_internal_mutable_key_id() { +inline ::std::string* SignMessageRequest::mutable_key_id() { - return key_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) + return key_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SignMessageRequest::release_key_id() { +inline ::std::string* SignMessageRequest::release_key_id() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) - return key_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return key_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SignMessageRequest::set_allocated_key_id(std::string* key_id) { - if (key_id != nullptr) { +inline void SignMessageRequest::set_allocated_key_id(::std::string* key_id) { + if (key_id != NULL) { } else { } - key_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key_id); + key_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key_id); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id) } // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; -inline bool SignMessageRequest::_internal_has_signing_context() const { - return this != internal_default_instance() && signing_context_ != nullptr; -} inline bool SignMessageRequest::has_signing_context() const { - return _internal_has_signing_context(); + return this != internal_default_instance() && signing_context_ != NULL; } -inline const ::Catalyst::Protocol::Cryptography::SigningContext& SignMessageRequest::_internal_signing_context() const { - const ::Catalyst::Protocol::Cryptography::SigningContext* p = signing_context_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Cryptography::_SigningContext_default_instance_); +inline void SignMessageRequest::clear_signing_context() { + if (GetArenaNoVirtual() == NULL && signing_context_ != NULL) delete signing_context_; + signing_context_ = NULL; } inline const ::Catalyst::Protocol::Cryptography::SigningContext& SignMessageRequest::signing_context() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignMessageRequest.signing_context) - return _internal_signing_context(); + return signing_context_ != NULL ? *signing_context_ + : *::Catalyst::Protocol::Cryptography::SigningContext::internal_default_instance(); +} +inline ::Catalyst::Protocol::Cryptography::SigningContext* SignMessageRequest::mutable_signing_context() { + + if (signing_context_ == NULL) { + signing_context_ = new ::Catalyst::Protocol::Cryptography::SigningContext; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageRequest.signing_context) + return signing_context_; } inline ::Catalyst::Protocol::Cryptography::SigningContext* SignMessageRequest::release_signing_context() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignMessageRequest.signing_context) ::Catalyst::Protocol::Cryptography::SigningContext* temp = signing_context_; - signing_context_ = nullptr; + signing_context_ = NULL; return temp; } -inline ::Catalyst::Protocol::Cryptography::SigningContext* SignMessageRequest::_internal_mutable_signing_context() { - - if (signing_context_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Cryptography::SigningContext>(GetArenaNoVirtual()); - signing_context_ = p; - } - return signing_context_; -} -inline ::Catalyst::Protocol::Cryptography::SigningContext* SignMessageRequest::mutable_signing_context() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageRequest.signing_context) - return _internal_mutable_signing_context(); -} inline void SignMessageRequest::set_allocated_signing_context(::Catalyst::Protocol::Cryptography::SigningContext* signing_context) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(signing_context_); - } + delete signing_context_; + signing_context_ = signing_context; if (signing_context) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - signing_context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, signing_context, submessage_arena); - } } else { } - signing_context_ = signing_context; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignMessageRequest.signing_context) } @@ -12349,181 +8786,157 @@ inline void SignMessageRequest::set_allocated_signing_context(::Catalyst::Protoc // bytes signature = 1; inline void SignMessageResponse::clear_signature() { - signature_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SignMessageResponse::signature() const { +inline const ::std::string& SignMessageResponse::signature() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) - return _internal_signature(); -} -inline void SignMessageResponse::set_signature(const std::string& value) { - _internal_set_signature(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) -} -inline std::string* SignMessageResponse::mutable_signature() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) - return _internal_mutable_signature(); -} -inline const std::string& SignMessageResponse::_internal_signature() const { return signature_.GetNoArena(); } -inline void SignMessageResponse::_internal_set_signature(const std::string& value) { +inline void SignMessageResponse::set_signature(const ::std::string& value) { - signature_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) } -inline void SignMessageResponse::set_signature(std::string&& value) { +#if LANG_CXX11 +inline void SignMessageResponse::set_signature(::std::string&& value) { signature_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) } +#endif inline void SignMessageResponse::set_signature(const char* value) { - GOOGLE_DCHECK(value != nullptr); - signature_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) } inline void SignMessageResponse::set_signature(const void* value, size_t size) { - signature_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) } -inline std::string* SignMessageResponse::_internal_mutable_signature() { +inline ::std::string* SignMessageResponse::mutable_signature() { - return signature_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SignMessageResponse::release_signature() { +inline ::std::string* SignMessageResponse::release_signature() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) - return signature_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return signature_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SignMessageResponse::set_allocated_signature(std::string* signature) { - if (signature != nullptr) { +inline void SignMessageResponse::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { } else { } - signature_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signature); + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature) } // bytes public_key = 2; inline void SignMessageResponse::clear_public_key() { - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SignMessageResponse::public_key() const { +inline const ::std::string& SignMessageResponse::public_key() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) - return _internal_public_key(); -} -inline void SignMessageResponse::set_public_key(const std::string& value) { - _internal_set_public_key(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) -} -inline std::string* SignMessageResponse::mutable_public_key() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) - return _internal_mutable_public_key(); -} -inline const std::string& SignMessageResponse::_internal_public_key() const { return public_key_.GetNoArena(); } -inline void SignMessageResponse::_internal_set_public_key(const std::string& value) { +inline void SignMessageResponse::set_public_key(const ::std::string& value) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) } -inline void SignMessageResponse::set_public_key(std::string&& value) { +#if LANG_CXX11 +inline void SignMessageResponse::set_public_key(::std::string&& value) { public_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) } +#endif inline void SignMessageResponse::set_public_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) } inline void SignMessageResponse::set_public_key(const void* value, size_t size) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) } -inline std::string* SignMessageResponse::_internal_mutable_public_key() { +inline ::std::string* SignMessageResponse::mutable_public_key() { - return public_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SignMessageResponse::release_public_key() { +inline ::std::string* SignMessageResponse::release_public_key() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) - return public_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SignMessageResponse::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { +inline void SignMessageResponse::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { } else { } - public_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key); + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key) } // bytes original_message = 3; inline void SignMessageResponse::clear_original_message() { - original_message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + original_message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SignMessageResponse::original_message() const { +inline const ::std::string& SignMessageResponse::original_message() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) - return _internal_original_message(); -} -inline void SignMessageResponse::set_original_message(const std::string& value) { - _internal_set_original_message(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) -} -inline std::string* SignMessageResponse::mutable_original_message() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) - return _internal_mutable_original_message(); -} -inline const std::string& SignMessageResponse::_internal_original_message() const { return original_message_.GetNoArena(); } -inline void SignMessageResponse::_internal_set_original_message(const std::string& value) { +inline void SignMessageResponse::set_original_message(const ::std::string& value) { - original_message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + original_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) } -inline void SignMessageResponse::set_original_message(std::string&& value) { +#if LANG_CXX11 +inline void SignMessageResponse::set_original_message(::std::string&& value) { original_message_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) } +#endif inline void SignMessageResponse::set_original_message(const char* value) { - GOOGLE_DCHECK(value != nullptr); - original_message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + original_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) } inline void SignMessageResponse::set_original_message(const void* value, size_t size) { - original_message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + original_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) } -inline std::string* SignMessageResponse::_internal_mutable_original_message() { +inline ::std::string* SignMessageResponse::mutable_original_message() { - return original_message_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) + return original_message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SignMessageResponse::release_original_message() { +inline ::std::string* SignMessageResponse::release_original_message() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) - return original_message_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return original_message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SignMessageResponse::set_allocated_original_message(std::string* original_message) { - if (original_message != nullptr) { +inline void SignMessageResponse::set_allocated_original_message(::std::string* original_message) { + if (original_message != NULL) { } else { } - original_message_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), original_message); + original_message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), original_message); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message) } @@ -12533,235 +8946,196 @@ inline void SignMessageResponse::set_allocated_original_message(std::string* ori // bytes signature = 1; inline void VerifyMessageRequest::clear_signature() { - signature_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + signature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& VerifyMessageRequest::signature() const { +inline const ::std::string& VerifyMessageRequest::signature() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) - return _internal_signature(); -} -inline void VerifyMessageRequest::set_signature(const std::string& value) { - _internal_set_signature(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) -} -inline std::string* VerifyMessageRequest::mutable_signature() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) - return _internal_mutable_signature(); -} -inline const std::string& VerifyMessageRequest::_internal_signature() const { return signature_.GetNoArena(); } -inline void VerifyMessageRequest::_internal_set_signature(const std::string& value) { +inline void VerifyMessageRequest::set_signature(const ::std::string& value) { - signature_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) } -inline void VerifyMessageRequest::set_signature(std::string&& value) { +#if LANG_CXX11 +inline void VerifyMessageRequest::set_signature(::std::string&& value) { signature_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) } +#endif inline void VerifyMessageRequest::set_signature(const char* value) { - GOOGLE_DCHECK(value != nullptr); - signature_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) } inline void VerifyMessageRequest::set_signature(const void* value, size_t size) { - signature_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + signature_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) } -inline std::string* VerifyMessageRequest::_internal_mutable_signature() { +inline ::std::string* VerifyMessageRequest::mutable_signature() { - return signature_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) + return signature_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* VerifyMessageRequest::release_signature() { +inline ::std::string* VerifyMessageRequest::release_signature() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) - return signature_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return signature_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void VerifyMessageRequest::set_allocated_signature(std::string* signature) { - if (signature != nullptr) { +inline void VerifyMessageRequest::set_allocated_signature(::std::string* signature) { + if (signature != NULL) { } else { } - signature_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signature); + signature_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signature); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature) } // bytes public_key = 2; inline void VerifyMessageRequest::clear_public_key() { - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& VerifyMessageRequest::public_key() const { +inline const ::std::string& VerifyMessageRequest::public_key() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) - return _internal_public_key(); -} -inline void VerifyMessageRequest::set_public_key(const std::string& value) { - _internal_set_public_key(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) -} -inline std::string* VerifyMessageRequest::mutable_public_key() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) - return _internal_mutable_public_key(); -} -inline const std::string& VerifyMessageRequest::_internal_public_key() const { return public_key_.GetNoArena(); } -inline void VerifyMessageRequest::_internal_set_public_key(const std::string& value) { +inline void VerifyMessageRequest::set_public_key(const ::std::string& value) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) } -inline void VerifyMessageRequest::set_public_key(std::string&& value) { +#if LANG_CXX11 +inline void VerifyMessageRequest::set_public_key(::std::string&& value) { public_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) } +#endif inline void VerifyMessageRequest::set_public_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) } inline void VerifyMessageRequest::set_public_key(const void* value, size_t size) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) } -inline std::string* VerifyMessageRequest::_internal_mutable_public_key() { +inline ::std::string* VerifyMessageRequest::mutable_public_key() { - return public_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* VerifyMessageRequest::release_public_key() { +inline ::std::string* VerifyMessageRequest::release_public_key() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) - return public_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void VerifyMessageRequest::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { +inline void VerifyMessageRequest::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { } else { } - public_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key); + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key) } // bytes message = 3; inline void VerifyMessageRequest::clear_message() { - message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& VerifyMessageRequest::message() const { +inline const ::std::string& VerifyMessageRequest::message() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) - return _internal_message(); -} -inline void VerifyMessageRequest::set_message(const std::string& value) { - _internal_set_message(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) -} -inline std::string* VerifyMessageRequest::mutable_message() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) - return _internal_mutable_message(); -} -inline const std::string& VerifyMessageRequest::_internal_message() const { return message_.GetNoArena(); } -inline void VerifyMessageRequest::_internal_set_message(const std::string& value) { +inline void VerifyMessageRequest::set_message(const ::std::string& value) { - message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) } -inline void VerifyMessageRequest::set_message(std::string&& value) { +#if LANG_CXX11 +inline void VerifyMessageRequest::set_message(::std::string&& value) { message_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) } +#endif inline void VerifyMessageRequest::set_message(const char* value) { - GOOGLE_DCHECK(value != nullptr); - message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) } inline void VerifyMessageRequest::set_message(const void* value, size_t size) { - message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) } -inline std::string* VerifyMessageRequest::_internal_mutable_message() { +inline ::std::string* VerifyMessageRequest::mutable_message() { - return message_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* VerifyMessageRequest::release_message() { +inline ::std::string* VerifyMessageRequest::release_message() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) - return message_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void VerifyMessageRequest::set_allocated_message(std::string* message) { - if (message != nullptr) { +inline void VerifyMessageRequest::set_allocated_message(::std::string* message) { + if (message != NULL) { } else { } - message_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message); + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message) } // .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; -inline bool VerifyMessageRequest::_internal_has_signing_context() const { - return this != internal_default_instance() && signing_context_ != nullptr; -} inline bool VerifyMessageRequest::has_signing_context() const { - return _internal_has_signing_context(); + return this != internal_default_instance() && signing_context_ != NULL; } -inline const ::Catalyst::Protocol::Cryptography::SigningContext& VerifyMessageRequest::_internal_signing_context() const { - const ::Catalyst::Protocol::Cryptography::SigningContext* p = signing_context_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Cryptography::_SigningContext_default_instance_); +inline void VerifyMessageRequest::clear_signing_context() { + if (GetArenaNoVirtual() == NULL && signing_context_ != NULL) delete signing_context_; + signing_context_ = NULL; } inline const ::Catalyst::Protocol::Cryptography::SigningContext& VerifyMessageRequest::signing_context() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signing_context) - return _internal_signing_context(); + return signing_context_ != NULL ? *signing_context_ + : *::Catalyst::Protocol::Cryptography::SigningContext::internal_default_instance(); +} +inline ::Catalyst::Protocol::Cryptography::SigningContext* VerifyMessageRequest::mutable_signing_context() { + + if (signing_context_ == NULL) { + signing_context_ = new ::Catalyst::Protocol::Cryptography::SigningContext; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signing_context) + return signing_context_; } inline ::Catalyst::Protocol::Cryptography::SigningContext* VerifyMessageRequest::release_signing_context() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signing_context) ::Catalyst::Protocol::Cryptography::SigningContext* temp = signing_context_; - signing_context_ = nullptr; + signing_context_ = NULL; return temp; } -inline ::Catalyst::Protocol::Cryptography::SigningContext* VerifyMessageRequest::_internal_mutable_signing_context() { - - if (signing_context_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Cryptography::SigningContext>(GetArenaNoVirtual()); - signing_context_ = p; - } - return signing_context_; -} -inline ::Catalyst::Protocol::Cryptography::SigningContext* VerifyMessageRequest::mutable_signing_context() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signing_context) - return _internal_mutable_signing_context(); -} inline void VerifyMessageRequest::set_allocated_signing_context(::Catalyst::Protocol::Cryptography::SigningContext* signing_context) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(signing_context_); - } + delete signing_context_; + signing_context_ = signing_context; if (signing_context) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - signing_context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, signing_context, submessage_arena); - } } else { } - signing_context_ = signing_context; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signing_context) } @@ -12773,19 +9147,13 @@ inline void VerifyMessageRequest::set_allocated_signing_context(::Catalyst::Prot inline void VerifyMessageResponse::clear_is_signed_by_key() { is_signed_by_key_ = false; } -inline bool VerifyMessageResponse::_internal_is_signed_by_key() const { - return is_signed_by_key_; -} inline bool VerifyMessageResponse::is_signed_by_key() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.is_signed_by_key) - return _internal_is_signed_by_key(); + return is_signed_by_key_; } -inline void VerifyMessageResponse::_internal_set_is_signed_by_key(bool value) { +inline void VerifyMessageResponse::set_is_signed_by_key(bool value) { is_signed_by_key_ = value; -} -inline void VerifyMessageResponse::set_is_signed_by_key(bool value) { - _internal_set_is_signed_by_key(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.is_signed_by_key) } @@ -12797,19 +9165,13 @@ inline void VerifyMessageResponse::set_is_signed_by_key(bool value) { inline void ServiceStatusRequest::clear_query() { query_ = false; } -inline bool ServiceStatusRequest::_internal_query() const { - return query_; -} inline bool ServiceStatusRequest::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.query) - return _internal_query(); + return query_; } -inline void ServiceStatusRequest::_internal_set_query(bool value) { +inline void ServiceStatusRequest::set_query(bool value) { query_ = value; -} -inline void ServiceStatusRequest::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.query) } @@ -12819,61 +9181,53 @@ inline void ServiceStatusRequest::set_query(bool value) { // string query = 1; inline void ServiceStatusResponse::clear_query() { - query_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& ServiceStatusResponse::query() const { +inline const ::std::string& ServiceStatusResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) - return _internal_query(); -} -inline void ServiceStatusResponse::set_query(const std::string& value) { - _internal_set_query(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) -} -inline std::string* ServiceStatusResponse::mutable_query() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) - return _internal_mutable_query(); -} -inline const std::string& ServiceStatusResponse::_internal_query() const { return query_.GetNoArena(); } -inline void ServiceStatusResponse::_internal_set_query(const std::string& value) { +inline void ServiceStatusResponse::set_query(const ::std::string& value) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) } -inline void ServiceStatusResponse::set_query(std::string&& value) { +#if LANG_CXX11 +inline void ServiceStatusResponse::set_query(::std::string&& value) { query_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) } +#endif inline void ServiceStatusResponse::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) } inline void ServiceStatusResponse::set_query(const char* value, size_t size) { - query_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) } -inline std::string* ServiceStatusResponse::_internal_mutable_query() { +inline ::std::string* ServiceStatusResponse::mutable_query() { - return query_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ServiceStatusResponse::release_query() { +inline ::std::string* ServiceStatusResponse::release_query() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) - return query_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ServiceStatusResponse::set_allocated_query(std::string* query) { - if (query != nullptr) { +inline void ServiceStatusResponse::set_allocated_query(::std::string* query) { + if (query != NULL) { } else { } - query_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query); + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query) } @@ -12883,141 +9237,119 @@ inline void ServiceStatusResponse::set_allocated_query(std::string* query) { // uint64 file_size = 1; inline void AddFileToDfsRequest::clear_file_size() { - file_size_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 AddFileToDfsRequest::_internal_file_size() const { - return file_size_; + file_size_ = GOOGLE_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 AddFileToDfsRequest::file_size() const { +inline ::google::protobuf::uint64 AddFileToDfsRequest::file_size() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_size) - return _internal_file_size(); + return file_size_; } -inline void AddFileToDfsRequest::_internal_set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void AddFileToDfsRequest::set_file_size(::google::protobuf::uint64 value) { file_size_ = value; -} -inline void AddFileToDfsRequest::set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_file_size(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_size) } // string file_name = 2; inline void AddFileToDfsRequest::clear_file_name() { - file_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& AddFileToDfsRequest::file_name() const { +inline const ::std::string& AddFileToDfsRequest::file_name() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) - return _internal_file_name(); -} -inline void AddFileToDfsRequest::set_file_name(const std::string& value) { - _internal_set_file_name(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) -} -inline std::string* AddFileToDfsRequest::mutable_file_name() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) - return _internal_mutable_file_name(); -} -inline const std::string& AddFileToDfsRequest::_internal_file_name() const { return file_name_.GetNoArena(); } -inline void AddFileToDfsRequest::_internal_set_file_name(const std::string& value) { +inline void AddFileToDfsRequest::set_file_name(const ::std::string& value) { - file_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) } -inline void AddFileToDfsRequest::set_file_name(std::string&& value) { +#if LANG_CXX11 +inline void AddFileToDfsRequest::set_file_name(::std::string&& value) { file_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) } +#endif inline void AddFileToDfsRequest::set_file_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - file_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) } inline void AddFileToDfsRequest::set_file_name(const char* value, size_t size) { - file_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) } -inline std::string* AddFileToDfsRequest::_internal_mutable_file_name() { +inline ::std::string* AddFileToDfsRequest::mutable_file_name() { - return file_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) + return file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* AddFileToDfsRequest::release_file_name() { +inline ::std::string* AddFileToDfsRequest::release_file_name() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) - return file_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void AddFileToDfsRequest::set_allocated_file_name(std::string* file_name) { - if (file_name != nullptr) { +inline void AddFileToDfsRequest::set_allocated_file_name(::std::string* file_name) { + if (file_name != NULL) { } else { } - file_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_name); + file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), file_name); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name) } // string node = 3; inline void AddFileToDfsRequest::clear_node() { - node_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + node_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& AddFileToDfsRequest::node() const { +inline const ::std::string& AddFileToDfsRequest::node() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) - return _internal_node(); -} -inline void AddFileToDfsRequest::set_node(const std::string& value) { - _internal_set_node(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) -} -inline std::string* AddFileToDfsRequest::mutable_node() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) - return _internal_mutable_node(); -} -inline const std::string& AddFileToDfsRequest::_internal_node() const { return node_.GetNoArena(); } -inline void AddFileToDfsRequest::_internal_set_node(const std::string& value) { +inline void AddFileToDfsRequest::set_node(const ::std::string& value) { - node_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + node_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) } -inline void AddFileToDfsRequest::set_node(std::string&& value) { +#if LANG_CXX11 +inline void AddFileToDfsRequest::set_node(::std::string&& value) { node_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) } +#endif inline void AddFileToDfsRequest::set_node(const char* value) { - GOOGLE_DCHECK(value != nullptr); - node_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + node_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) } inline void AddFileToDfsRequest::set_node(const char* value, size_t size) { - node_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + node_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) } -inline std::string* AddFileToDfsRequest::_internal_mutable_node() { +inline ::std::string* AddFileToDfsRequest::mutable_node() { - return node_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) + return node_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* AddFileToDfsRequest::release_node() { +inline ::std::string* AddFileToDfsRequest::release_node() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) - return node_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return node_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void AddFileToDfsRequest::set_allocated_node(std::string* node) { - if (node != nullptr) { +inline void AddFileToDfsRequest::set_allocated_node(::std::string* node) { + if (node != NULL) { } else { } - node_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), node); + node_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node) } @@ -13027,121 +9359,105 @@ inline void AddFileToDfsRequest::set_allocated_node(std::string* node) { // bytes response_code = 1; inline void AddFileToDfsResponse::clear_response_code() { - response_code_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + response_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& AddFileToDfsResponse::response_code() const { +inline const ::std::string& AddFileToDfsResponse::response_code() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) - return _internal_response_code(); -} -inline void AddFileToDfsResponse::set_response_code(const std::string& value) { - _internal_set_response_code(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) -} -inline std::string* AddFileToDfsResponse::mutable_response_code() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) - return _internal_mutable_response_code(); -} -inline const std::string& AddFileToDfsResponse::_internal_response_code() const { return response_code_.GetNoArena(); } -inline void AddFileToDfsResponse::_internal_set_response_code(const std::string& value) { +inline void AddFileToDfsResponse::set_response_code(const ::std::string& value) { - response_code_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) } -inline void AddFileToDfsResponse::set_response_code(std::string&& value) { +#if LANG_CXX11 +inline void AddFileToDfsResponse::set_response_code(::std::string&& value) { response_code_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) } +#endif inline void AddFileToDfsResponse::set_response_code(const char* value) { - GOOGLE_DCHECK(value != nullptr); - response_code_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) } inline void AddFileToDfsResponse::set_response_code(const void* value, size_t size) { - response_code_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) } -inline std::string* AddFileToDfsResponse::_internal_mutable_response_code() { +inline ::std::string* AddFileToDfsResponse::mutable_response_code() { - return response_code_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) + return response_code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* AddFileToDfsResponse::release_response_code() { +inline ::std::string* AddFileToDfsResponse::release_response_code() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) - return response_code_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return response_code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void AddFileToDfsResponse::set_allocated_response_code(std::string* response_code) { - if (response_code != nullptr) { +inline void AddFileToDfsResponse::set_allocated_response_code(::std::string* response_code) { + if (response_code != NULL) { } else { } - response_code_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), response_code); + response_code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_code); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code) } // string dfs_hash = 2; inline void AddFileToDfsResponse::clear_dfs_hash() { - dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& AddFileToDfsResponse::dfs_hash() const { +inline const ::std::string& AddFileToDfsResponse::dfs_hash() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) - return _internal_dfs_hash(); -} -inline void AddFileToDfsResponse::set_dfs_hash(const std::string& value) { - _internal_set_dfs_hash(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) -} -inline std::string* AddFileToDfsResponse::mutable_dfs_hash() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) - return _internal_mutable_dfs_hash(); -} -inline const std::string& AddFileToDfsResponse::_internal_dfs_hash() const { return dfs_hash_.GetNoArena(); } -inline void AddFileToDfsResponse::_internal_set_dfs_hash(const std::string& value) { +inline void AddFileToDfsResponse::set_dfs_hash(const ::std::string& value) { - dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) } -inline void AddFileToDfsResponse::set_dfs_hash(std::string&& value) { +#if LANG_CXX11 +inline void AddFileToDfsResponse::set_dfs_hash(::std::string&& value) { dfs_hash_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) } +#endif inline void AddFileToDfsResponse::set_dfs_hash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) } inline void AddFileToDfsResponse::set_dfs_hash(const char* value, size_t size) { - dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) } -inline std::string* AddFileToDfsResponse::_internal_mutable_dfs_hash() { +inline ::std::string* AddFileToDfsResponse::mutable_dfs_hash() { - return dfs_hash_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) + return dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* AddFileToDfsResponse::release_dfs_hash() { +inline ::std::string* AddFileToDfsResponse::release_dfs_hash() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) - return dfs_hash_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void AddFileToDfsResponse::set_allocated_dfs_hash(std::string* dfs_hash) { - if (dfs_hash != nullptr) { +inline void AddFileToDfsResponse::set_allocated_dfs_hash(::std::string* dfs_hash) { + if (dfs_hash != NULL) { } else { } - dfs_hash_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), dfs_hash); + dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dfs_hash); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash) } @@ -13153,139 +9469,117 @@ inline void AddFileToDfsResponse::set_allocated_dfs_hash(std::string* dfs_hash) inline void TransferFileBytesRequest::clear_chunk_id() { chunk_id_ = 0u; } -inline ::PROTOBUF_NAMESPACE_ID::uint32 TransferFileBytesRequest::_internal_chunk_id() const { - return chunk_id_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 TransferFileBytesRequest::chunk_id() const { +inline ::google::protobuf::uint32 TransferFileBytesRequest::chunk_id() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_id) - return _internal_chunk_id(); + return chunk_id_; } -inline void TransferFileBytesRequest::_internal_set_chunk_id(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void TransferFileBytesRequest::set_chunk_id(::google::protobuf::uint32 value) { chunk_id_ = value; -} -inline void TransferFileBytesRequest::set_chunk_id(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_chunk_id(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_id) } // bytes chunk_bytes = 2; inline void TransferFileBytesRequest::clear_chunk_bytes() { - chunk_bytes_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + chunk_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& TransferFileBytesRequest::chunk_bytes() const { +inline const ::std::string& TransferFileBytesRequest::chunk_bytes() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) - return _internal_chunk_bytes(); -} -inline void TransferFileBytesRequest::set_chunk_bytes(const std::string& value) { - _internal_set_chunk_bytes(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) -} -inline std::string* TransferFileBytesRequest::mutable_chunk_bytes() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) - return _internal_mutable_chunk_bytes(); -} -inline const std::string& TransferFileBytesRequest::_internal_chunk_bytes() const { return chunk_bytes_.GetNoArena(); } -inline void TransferFileBytesRequest::_internal_set_chunk_bytes(const std::string& value) { +inline void TransferFileBytesRequest::set_chunk_bytes(const ::std::string& value) { - chunk_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + chunk_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) } -inline void TransferFileBytesRequest::set_chunk_bytes(std::string&& value) { +#if LANG_CXX11 +inline void TransferFileBytesRequest::set_chunk_bytes(::std::string&& value) { chunk_bytes_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) } +#endif inline void TransferFileBytesRequest::set_chunk_bytes(const char* value) { - GOOGLE_DCHECK(value != nullptr); - chunk_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + chunk_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) } inline void TransferFileBytesRequest::set_chunk_bytes(const void* value, size_t size) { - chunk_bytes_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + chunk_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) } -inline std::string* TransferFileBytesRequest::_internal_mutable_chunk_bytes() { +inline ::std::string* TransferFileBytesRequest::mutable_chunk_bytes() { - return chunk_bytes_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) + return chunk_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* TransferFileBytesRequest::release_chunk_bytes() { +inline ::std::string* TransferFileBytesRequest::release_chunk_bytes() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) - return chunk_bytes_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return chunk_bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void TransferFileBytesRequest::set_allocated_chunk_bytes(std::string* chunk_bytes) { - if (chunk_bytes != nullptr) { +inline void TransferFileBytesRequest::set_allocated_chunk_bytes(::std::string* chunk_bytes) { + if (chunk_bytes != NULL) { } else { } - chunk_bytes_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chunk_bytes); + chunk_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chunk_bytes); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes) } // bytes correlation_file_name = 3; inline void TransferFileBytesRequest::clear_correlation_file_name() { - correlation_file_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + correlation_file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& TransferFileBytesRequest::correlation_file_name() const { +inline const ::std::string& TransferFileBytesRequest::correlation_file_name() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) - return _internal_correlation_file_name(); -} -inline void TransferFileBytesRequest::set_correlation_file_name(const std::string& value) { - _internal_set_correlation_file_name(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) -} -inline std::string* TransferFileBytesRequest::mutable_correlation_file_name() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) - return _internal_mutable_correlation_file_name(); -} -inline const std::string& TransferFileBytesRequest::_internal_correlation_file_name() const { return correlation_file_name_.GetNoArena(); } -inline void TransferFileBytesRequest::_internal_set_correlation_file_name(const std::string& value) { +inline void TransferFileBytesRequest::set_correlation_file_name(const ::std::string& value) { - correlation_file_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + correlation_file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) } -inline void TransferFileBytesRequest::set_correlation_file_name(std::string&& value) { +#if LANG_CXX11 +inline void TransferFileBytesRequest::set_correlation_file_name(::std::string&& value) { correlation_file_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) } +#endif inline void TransferFileBytesRequest::set_correlation_file_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - correlation_file_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + correlation_file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) } inline void TransferFileBytesRequest::set_correlation_file_name(const void* value, size_t size) { - correlation_file_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + correlation_file_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) } -inline std::string* TransferFileBytesRequest::_internal_mutable_correlation_file_name() { +inline ::std::string* TransferFileBytesRequest::mutable_correlation_file_name() { - return correlation_file_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) + return correlation_file_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* TransferFileBytesRequest::release_correlation_file_name() { +inline ::std::string* TransferFileBytesRequest::release_correlation_file_name() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) - return correlation_file_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return correlation_file_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void TransferFileBytesRequest::set_allocated_correlation_file_name(std::string* correlation_file_name) { - if (correlation_file_name != nullptr) { +inline void TransferFileBytesRequest::set_allocated_correlation_file_name(::std::string* correlation_file_name) { + if (correlation_file_name != NULL) { } else { } - correlation_file_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), correlation_file_name); + correlation_file_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), correlation_file_name); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name) } @@ -13295,61 +9589,53 @@ inline void TransferFileBytesRequest::set_allocated_correlation_file_name(std::s // bytes response_code = 1; inline void TransferFileBytesResponse::clear_response_code() { - response_code_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + response_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& TransferFileBytesResponse::response_code() const { +inline const ::std::string& TransferFileBytesResponse::response_code() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) - return _internal_response_code(); -} -inline void TransferFileBytesResponse::set_response_code(const std::string& value) { - _internal_set_response_code(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) -} -inline std::string* TransferFileBytesResponse::mutable_response_code() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) - return _internal_mutable_response_code(); -} -inline const std::string& TransferFileBytesResponse::_internal_response_code() const { return response_code_.GetNoArena(); } -inline void TransferFileBytesResponse::_internal_set_response_code(const std::string& value) { +inline void TransferFileBytesResponse::set_response_code(const ::std::string& value) { - response_code_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) } -inline void TransferFileBytesResponse::set_response_code(std::string&& value) { +#if LANG_CXX11 +inline void TransferFileBytesResponse::set_response_code(::std::string&& value) { response_code_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) } +#endif inline void TransferFileBytesResponse::set_response_code(const char* value) { - GOOGLE_DCHECK(value != nullptr); - response_code_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) } inline void TransferFileBytesResponse::set_response_code(const void* value, size_t size) { - response_code_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) } -inline std::string* TransferFileBytesResponse::_internal_mutable_response_code() { +inline ::std::string* TransferFileBytesResponse::mutable_response_code() { - return response_code_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) + return response_code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* TransferFileBytesResponse::release_response_code() { +inline ::std::string* TransferFileBytesResponse::release_response_code() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) - return response_code_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return response_code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void TransferFileBytesResponse::set_allocated_response_code(std::string* response_code) { - if (response_code != nullptr) { +inline void TransferFileBytesResponse::set_allocated_response_code(::std::string* response_code) { + if (response_code != NULL) { } else { } - response_code_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), response_code); + response_code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_code); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code) } @@ -13359,121 +9645,105 @@ inline void TransferFileBytesResponse::set_allocated_response_code(std::string* // bytes peer_ip = 1; inline void RemovePeerRequest::clear_peer_ip() { - peer_ip_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + peer_ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& RemovePeerRequest::peer_ip() const { +inline const ::std::string& RemovePeerRequest::peer_ip() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) - return _internal_peer_ip(); -} -inline void RemovePeerRequest::set_peer_ip(const std::string& value) { - _internal_set_peer_ip(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) -} -inline std::string* RemovePeerRequest::mutable_peer_ip() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) - return _internal_mutable_peer_ip(); -} -inline const std::string& RemovePeerRequest::_internal_peer_ip() const { return peer_ip_.GetNoArena(); } -inline void RemovePeerRequest::_internal_set_peer_ip(const std::string& value) { +inline void RemovePeerRequest::set_peer_ip(const ::std::string& value) { - peer_ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + peer_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) } -inline void RemovePeerRequest::set_peer_ip(std::string&& value) { +#if LANG_CXX11 +inline void RemovePeerRequest::set_peer_ip(::std::string&& value) { peer_ip_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) } +#endif inline void RemovePeerRequest::set_peer_ip(const char* value) { - GOOGLE_DCHECK(value != nullptr); - peer_ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + peer_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) } inline void RemovePeerRequest::set_peer_ip(const void* value, size_t size) { - peer_ip_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + peer_ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) } -inline std::string* RemovePeerRequest::_internal_mutable_peer_ip() { +inline ::std::string* RemovePeerRequest::mutable_peer_ip() { - return peer_ip_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) + return peer_ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* RemovePeerRequest::release_peer_ip() { +inline ::std::string* RemovePeerRequest::release_peer_ip() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) - return peer_ip_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return peer_ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void RemovePeerRequest::set_allocated_peer_ip(std::string* peer_ip) { - if (peer_ip != nullptr) { +inline void RemovePeerRequest::set_allocated_peer_ip(::std::string* peer_ip) { + if (peer_ip != NULL) { } else { } - peer_ip_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), peer_ip); + peer_ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), peer_ip); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip) } // bytes public_key = 2; inline void RemovePeerRequest::clear_public_key() { - public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& RemovePeerRequest::public_key() const { +inline const ::std::string& RemovePeerRequest::public_key() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) - return _internal_public_key(); -} -inline void RemovePeerRequest::set_public_key(const std::string& value) { - _internal_set_public_key(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) -} -inline std::string* RemovePeerRequest::mutable_public_key() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) - return _internal_mutable_public_key(); -} -inline const std::string& RemovePeerRequest::_internal_public_key() const { return public_key_.GetNoArena(); } -inline void RemovePeerRequest::_internal_set_public_key(const std::string& value) { +inline void RemovePeerRequest::set_public_key(const ::std::string& value) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) } -inline void RemovePeerRequest::set_public_key(std::string&& value) { +#if LANG_CXX11 +inline void RemovePeerRequest::set_public_key(::std::string&& value) { public_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) } +#endif inline void RemovePeerRequest::set_public_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) } inline void RemovePeerRequest::set_public_key(const void* value, size_t size) { - public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) } -inline std::string* RemovePeerRequest::_internal_mutable_public_key() { +inline ::std::string* RemovePeerRequest::mutable_public_key() { - return public_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) + return public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* RemovePeerRequest::release_public_key() { +inline ::std::string* RemovePeerRequest::release_public_key() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) - return public_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void RemovePeerRequest::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { +inline void RemovePeerRequest::set_allocated_public_key(::std::string* public_key) { + if (public_key != NULL) { } else { } - public_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key); + public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), public_key); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key) } @@ -13485,19 +9755,13 @@ inline void RemovePeerRequest::set_allocated_public_key(std::string* public_key) inline void RemovePeerResponse::clear_deleted_count() { deleted_count_ = 0u; } -inline ::PROTOBUF_NAMESPACE_ID::uint32 RemovePeerResponse::_internal_deleted_count() const { - return deleted_count_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint32 RemovePeerResponse::deleted_count() const { +inline ::google::protobuf::uint32 RemovePeerResponse::deleted_count() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.RemovePeerResponse.deleted_count) - return _internal_deleted_count(); + return deleted_count_; } -inline void RemovePeerResponse::_internal_set_deleted_count(::PROTOBUF_NAMESPACE_ID::uint32 value) { +inline void RemovePeerResponse::set_deleted_count(::google::protobuf::uint32 value) { deleted_count_ = value; -} -inline void RemovePeerResponse::set_deleted_count(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _internal_set_deleted_count(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.RemovePeerResponse.deleted_count) } @@ -13513,19 +9777,13 @@ inline void RemovePeerResponse::set_deleted_count(::PROTOBUF_NAMESPACE_ID::uint3 inline void GetPeerCountResponse::clear_peer_count() { peer_count_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::int32 GetPeerCountResponse::_internal_peer_count() const { - return peer_count_; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 GetPeerCountResponse::peer_count() const { +inline ::google::protobuf::int32 GetPeerCountResponse::peer_count() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.peer_count) - return _internal_peer_count(); + return peer_count_; } -inline void GetPeerCountResponse::_internal_set_peer_count(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void GetPeerCountResponse::set_peer_count(::google::protobuf::int32 value) { peer_count_ = value; -} -inline void GetPeerCountResponse::set_peer_count(::PROTOBUF_NAMESPACE_ID::int32 value) { - _internal_set_peer_count(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.peer_count) } @@ -13535,61 +9793,53 @@ inline void GetPeerCountResponse::set_peer_count(::PROTOBUF_NAMESPACE_ID::int32 // string dfs_hash = 1; inline void GetFileFromDfsRequest::clear_dfs_hash() { - dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& GetFileFromDfsRequest::dfs_hash() const { +inline const ::std::string& GetFileFromDfsRequest::dfs_hash() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) - return _internal_dfs_hash(); -} -inline void GetFileFromDfsRequest::set_dfs_hash(const std::string& value) { - _internal_set_dfs_hash(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) -} -inline std::string* GetFileFromDfsRequest::mutable_dfs_hash() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) - return _internal_mutable_dfs_hash(); -} -inline const std::string& GetFileFromDfsRequest::_internal_dfs_hash() const { return dfs_hash_.GetNoArena(); } -inline void GetFileFromDfsRequest::_internal_set_dfs_hash(const std::string& value) { +inline void GetFileFromDfsRequest::set_dfs_hash(const ::std::string& value) { - dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) } -inline void GetFileFromDfsRequest::set_dfs_hash(std::string&& value) { +#if LANG_CXX11 +inline void GetFileFromDfsRequest::set_dfs_hash(::std::string&& value) { dfs_hash_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) } +#endif inline void GetFileFromDfsRequest::set_dfs_hash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) } inline void GetFileFromDfsRequest::set_dfs_hash(const char* value, size_t size) { - dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) } -inline std::string* GetFileFromDfsRequest::_internal_mutable_dfs_hash() { +inline ::std::string* GetFileFromDfsRequest::mutable_dfs_hash() { - return dfs_hash_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) + return dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* GetFileFromDfsRequest::release_dfs_hash() { +inline ::std::string* GetFileFromDfsRequest::release_dfs_hash() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) - return dfs_hash_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetFileFromDfsRequest::set_allocated_dfs_hash(std::string* dfs_hash) { - if (dfs_hash != nullptr) { +inline void GetFileFromDfsRequest::set_allocated_dfs_hash(::std::string* dfs_hash) { + if (dfs_hash != NULL) { } else { } - dfs_hash_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), dfs_hash); + dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dfs_hash); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash) } @@ -13599,81 +9849,67 @@ inline void GetFileFromDfsRequest::set_allocated_dfs_hash(std::string* dfs_hash) // uint64 file_size = 1; inline void GetFileFromDfsResponse::clear_file_size() { - file_size_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 GetFileFromDfsResponse::_internal_file_size() const { - return file_size_; + file_size_ = GOOGLE_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 GetFileFromDfsResponse::file_size() const { +inline ::google::protobuf::uint64 GetFileFromDfsResponse::file_size() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.file_size) - return _internal_file_size(); + return file_size_; } -inline void GetFileFromDfsResponse::_internal_set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void GetFileFromDfsResponse::set_file_size(::google::protobuf::uint64 value) { file_size_ = value; -} -inline void GetFileFromDfsResponse::set_file_size(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_file_size(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.file_size) } // bytes response_code = 2; inline void GetFileFromDfsResponse::clear_response_code() { - response_code_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + response_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& GetFileFromDfsResponse::response_code() const { +inline const ::std::string& GetFileFromDfsResponse::response_code() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) - return _internal_response_code(); -} -inline void GetFileFromDfsResponse::set_response_code(const std::string& value) { - _internal_set_response_code(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) -} -inline std::string* GetFileFromDfsResponse::mutable_response_code() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) - return _internal_mutable_response_code(); -} -inline const std::string& GetFileFromDfsResponse::_internal_response_code() const { return response_code_.GetNoArena(); } -inline void GetFileFromDfsResponse::_internal_set_response_code(const std::string& value) { +inline void GetFileFromDfsResponse::set_response_code(const ::std::string& value) { - response_code_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) } -inline void GetFileFromDfsResponse::set_response_code(std::string&& value) { +#if LANG_CXX11 +inline void GetFileFromDfsResponse::set_response_code(::std::string&& value) { response_code_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) } +#endif inline void GetFileFromDfsResponse::set_response_code(const char* value) { - GOOGLE_DCHECK(value != nullptr); - response_code_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) } inline void GetFileFromDfsResponse::set_response_code(const void* value, size_t size) { - response_code_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + response_code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) } -inline std::string* GetFileFromDfsResponse::_internal_mutable_response_code() { +inline ::std::string* GetFileFromDfsResponse::mutable_response_code() { - return response_code_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) + return response_code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* GetFileFromDfsResponse::release_response_code() { +inline ::std::string* GetFileFromDfsResponse::release_response_code() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) - return response_code_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return response_code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void GetFileFromDfsResponse::set_allocated_response_code(std::string* response_code) { - if (response_code != nullptr) { +inline void GetFileFromDfsResponse::set_allocated_response_code(::std::string* response_code) { + if (response_code != NULL) { } else { } - response_code_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), response_code); + response_code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_code); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code) } @@ -13683,61 +9919,53 @@ inline void GetFileFromDfsResponse::set_allocated_response_code(std::string* res // string data_folder = 1; inline void SetPeerDataFolderRequest::clear_data_folder() { - data_folder_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + data_folder_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SetPeerDataFolderRequest::data_folder() const { +inline const ::std::string& SetPeerDataFolderRequest::data_folder() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) - return _internal_data_folder(); -} -inline void SetPeerDataFolderRequest::set_data_folder(const std::string& value) { - _internal_set_data_folder(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) -} -inline std::string* SetPeerDataFolderRequest::mutable_data_folder() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) - return _internal_mutable_data_folder(); -} -inline const std::string& SetPeerDataFolderRequest::_internal_data_folder() const { return data_folder_.GetNoArena(); } -inline void SetPeerDataFolderRequest::_internal_set_data_folder(const std::string& value) { +inline void SetPeerDataFolderRequest::set_data_folder(const ::std::string& value) { - data_folder_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + data_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) } -inline void SetPeerDataFolderRequest::set_data_folder(std::string&& value) { +#if LANG_CXX11 +inline void SetPeerDataFolderRequest::set_data_folder(::std::string&& value) { data_folder_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) } +#endif inline void SetPeerDataFolderRequest::set_data_folder(const char* value) { - GOOGLE_DCHECK(value != nullptr); - data_folder_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + data_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) } inline void SetPeerDataFolderRequest::set_data_folder(const char* value, size_t size) { - data_folder_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + data_folder_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) } -inline std::string* SetPeerDataFolderRequest::_internal_mutable_data_folder() { +inline ::std::string* SetPeerDataFolderRequest::mutable_data_folder() { - return data_folder_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) + return data_folder_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SetPeerDataFolderRequest::release_data_folder() { +inline ::std::string* SetPeerDataFolderRequest::release_data_folder() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) - return data_folder_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return data_folder_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void SetPeerDataFolderRequest::set_allocated_data_folder(std::string* data_folder) { - if (data_folder != nullptr) { +inline void SetPeerDataFolderRequest::set_allocated_data_folder(::std::string* data_folder) { + if (data_folder != NULL) { } else { } - data_folder_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data_folder); + data_folder_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_folder); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder) } @@ -13749,25 +9977,17 @@ inline void SetPeerDataFolderRequest::set_allocated_data_folder(std::string* dat inline void SetPeerDataFolderResponse::clear_query() { query_ = false; } -inline bool SetPeerDataFolderResponse::_internal_query() const { - return query_; -} inline bool SetPeerDataFolderResponse::query() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.query) - return _internal_query(); + return query_; } -inline void SetPeerDataFolderResponse::_internal_set_query(bool value) { +inline void SetPeerDataFolderResponse::set_query(bool value) { query_ = value; -} -inline void SetPeerDataFolderResponse::set_query(bool value) { - _internal_set_query(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.query) } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -13905,22 +10125,26 @@ inline void SetPeerDataFolderResponse::set_query(bool value) { // @@protoc_insertion_point(namespace_scope) + } // namespace Node } // namespace Rpc } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN +#ifndef SWIG +namespace google { +namespace protobuf { -template <> struct is_proto_enum< ::Catalyst::Protocol::Rpc::Node::ResponseCode> : ::std::true_type {}; +template <> struct is_proto_enum< ::Catalyst::Protocol::Rpc::Node::ResponseCode> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::Catalyst::Protocol::Rpc::Node::ResponseCode>() { return ::Catalyst::Protocol::Rpc::Node::ResponseCode_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google +#endif // SWIG // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Rpc_2eproto +#endif // PROTOBUF_Rpc_2eproto__INCLUDED diff --git a/packages/sdk-cpp/src/Transaction.pb.cc b/packages/sdk-cpp/src/Transaction.pb.cc index ed2a848..982aa19 100644 --- a/packages/sdk-cpp/src/Transaction.pb.cc +++ b/packages/sdk-cpp/src/Transaction.pb.cc @@ -1,228 +1,211 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Transaction.proto +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "Transaction.pb.h" #include +#include +#include +#include #include -#include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_Cryptography_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Signature_Cryptography_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Transaction_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RangeProof_Transaction_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; + namespace Catalyst { namespace Protocol { namespace Transaction { -class PublicEntryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class PublicEntryDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _PublicEntry_default_instance_; -class ConfidentialEntryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class ConfidentialEntryDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _ConfidentialEntry_default_instance_; -class CoinbaseEntryDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class CoinbaseEntryDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _CoinbaseEntry_default_instance_; -class RangeProofDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class RangeProofDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _RangeProof_default_instance_; -} // namespace Transaction -} // namespace Protocol -} // namespace Catalyst -static void InitDefaultsscc_info_CoinbaseEntry_Transaction_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Transaction::_CoinbaseEntry_default_instance_; - new (ptr) ::Catalyst::Protocol::Transaction::CoinbaseEntry(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Transaction::CoinbaseEntry::InitAsDefaultInstance(); -} -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CoinbaseEntry_Transaction_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CoinbaseEntry_Transaction_2eproto}, {}}; +namespace protobuf_Transaction_2eproto { -static void InitDefaultsscc_info_ConfidentialEntry_Transaction_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - { - void* ptr = &::Catalyst::Protocol::Transaction::_ConfidentialEntry_default_instance_; - new (ptr) ::Catalyst::Protocol::Transaction::ConfidentialEntry(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Transaction::ConfidentialEntry::InitAsDefaultInstance(); -} +namespace { -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ConfidentialEntry_Transaction_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_ConfidentialEntry_Transaction_2eproto}, { - &scc_info_RangeProof_Transaction_2eproto.base,}}; +::google::protobuf::Metadata file_level_metadata[4]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; -static void InitDefaultsscc_info_PublicEntry_Transaction_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +} // namespace - { - void* ptr = &::Catalyst::Protocol::Transaction::_PublicEntry_default_instance_; - new (ptr) ::Catalyst::Protocol::Transaction::PublicEntry(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Transaction::PublicEntry::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_PublicEntry_Transaction_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_PublicEntry_Transaction_2eproto}, { - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_Signature_Cryptography_2eproto.base,}}; - -static void InitDefaultsscc_info_RangeProof_Transaction_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Transaction::_RangeProof_default_instance_; - new (ptr) ::Catalyst::Protocol::Transaction::RangeProof(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Transaction::RangeProof::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RangeProof_Transaction_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_RangeProof_Transaction_2eproto}, {}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Transaction_2eproto[4]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_Transaction_2eproto[1]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Transaction_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Transaction_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct::offsets[] = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::PublicEntry, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PublicEntry, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::PublicEntry, receiver_address_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::PublicEntry, sender_address_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::PublicEntry, amount_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::PublicEntry, data_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::PublicEntry, timestamp_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::PublicEntry, gas_price_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::PublicEntry, gas_limit_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::PublicEntry, nonce_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::PublicEntry, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PublicEntry, receiver_address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PublicEntry, sender_address_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PublicEntry, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PublicEntry, data_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PublicEntry, gas_price_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PublicEntry, gas_limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PublicEntry, nonce_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PublicEntry, signature_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::ConfidentialEntry, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfidentialEntry, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::ConfidentialEntry, receiver_public_key_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::ConfidentialEntry, sender_public_key_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::ConfidentialEntry, pedersen_commitment_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::ConfidentialEntry, range_proof_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::ConfidentialEntry, transaction_fees_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::ConfidentialEntry, nonce_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfidentialEntry, receiver_public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfidentialEntry, sender_public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfidentialEntry, pedersen_commitment_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfidentialEntry, range_proof_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfidentialEntry, transaction_fees_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ConfidentialEntry, nonce_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::CoinbaseEntry, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoinbaseEntry, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::CoinbaseEntry, receiver_public_key_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::CoinbaseEntry, amount_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoinbaseEntry, receiver_public_key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoinbaseEntry, amount_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, value_commitment_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, bit_commitment_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, per_bit_blinding_factor_commitment_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, poly_commitment_t1_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, poly_commitment_t2_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, proof_of_share_tau_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, proof_of_share_mu_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, aggregated_vector_polynomial_l_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, aggregated_vector_polynomial_r_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, a_prime_0_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, b_prime_0_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Transaction::RangeProof, t_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::Catalyst::Protocol::Transaction::PublicEntry)}, - { 14, -1, sizeof(::Catalyst::Protocol::Transaction::ConfidentialEntry)}, - { 25, -1, sizeof(::Catalyst::Protocol::Transaction::CoinbaseEntry)}, - { 32, -1, sizeof(::Catalyst::Protocol::Transaction::RangeProof)}, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, value_commitment_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, bit_commitment_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, per_bit_blinding_factor_commitment_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, poly_commitment_t1_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, poly_commitment_t2_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, proof_of_share_tau_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, proof_of_share_mu_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, aggregated_vector_polynomial_l_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, aggregated_vector_polynomial_r_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, a_prime_0_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, b_prime_0_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RangeProof, t_), }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::Catalyst::Protocol::Transaction::_PublicEntry_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Transaction::_ConfidentialEntry_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Transaction::_CoinbaseEntry_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Transaction::_RangeProof_default_instance_), +static const ::google::protobuf::internal::MigrationSchema schemas[] = { + { 0, -1, sizeof(PublicEntry)}, + { 12, -1, sizeof(ConfidentialEntry)}, + { 22, -1, sizeof(CoinbaseEntry)}, + { 28, -1, sizeof(RangeProof)}, }; -const char descriptor_table_protodef_Transaction_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\021Transaction.proto\022\035Catalyst.Protocol.T" - "ransaction\032\022Cryptography.proto\032\037google/p" - "rotobuf/timestamp.proto\"\377\001\n\013PublicEntry\022" - "\030\n\020receiver_address\030\001 \001(\014\022\026\n\016sender_addr" - "ess\030\002 \001(\014\022\016\n\006amount\030\003 \001(\014\022\014\n\004data\030\004 \001(\014\022" - "-\n\ttimestamp\030\005 \001(\0132\032.google.protobuf.Tim" - "estamp\022\021\n\tgas_price\030\006 \001(\014\022\021\n\tgas_limit\030\007" - " \001(\004\022\r\n\005nonce\030\t \001(\004\022<\n\tsignature\030\n \001(\0132)" - ".Catalyst.Protocol.Cryptography.Signatur" - "e\"\321\001\n\021ConfidentialEntry\022\033\n\023receiver_publ" - "ic_key\030\001 \001(\014\022\031\n\021sender_public_key\030\002 \001(\014\022" - "\033\n\023pedersen_commitment\030\003 \001(\014\022>\n\013range_pr" - "oof\030\004 \001(\0132).Catalyst.Protocol.Transactio" - "n.RangeProof\022\030\n\020transaction_fees\030\005 \001(\014\022\r" - "\n\005nonce\030\006 \001(\004\"<\n\rCoinbaseEntry\022\033\n\023receiv" - "er_public_key\030\001 \001(\014\022\016\n\006amount\030\002 \001(\014\"\332\002\n\n" - "RangeProof\022\030\n\020value_commitment\030\001 \003(\014\022\026\n\016" - "bit_commitment\030\002 \001(\014\022*\n\"per_bit_blinding" - "_factor_commitment\030\003 \001(\014\022\032\n\022poly_commitm" - "ent_t1\030\004 \001(\014\022\032\n\022poly_commitment_t2\030\005 \001(\014" - "\022\032\n\022proof_of_share_tau\030\006 \001(\014\022\031\n\021proof_of" - "_share_mu\030\007 \001(\014\022&\n\036aggregated_vector_pol" - "ynomial_l\030\010 \003(\014\022&\n\036aggregated_vector_pol" - "ynomial_r\030\t \003(\014\022\021\n\ta_prime_0\030\n \001(\014\022\021\n\tb_" - "prime_0\030\013 \001(\014\022\t\n\001t\030\014 \001(\014*M\n\017TransactionT" - "ype\022\034\n\030TRANSACTION_TYPE_UNKNOWN\020\000\022\n\n\006PUB" - "LIC\020\001\022\020\n\014CONFIDENTIAL\020\002B\002P\001b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Transaction_2eproto_deps[2] = { - &::descriptor_table_Cryptography_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Transaction_2eproto_sccs[4] = { - &scc_info_CoinbaseEntry_Transaction_2eproto.base, - &scc_info_ConfidentialEntry_Transaction_2eproto.base, - &scc_info_PublicEntry_Transaction_2eproto.base, - &scc_info_RangeProof_Transaction_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Transaction_2eproto_once; -static bool descriptor_table_Transaction_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Transaction_2eproto = { - &descriptor_table_Transaction_2eproto_initialized, descriptor_table_protodef_Transaction_2eproto, "Transaction.proto", 1075, - &descriptor_table_Transaction_2eproto_once, descriptor_table_Transaction_2eproto_sccs, descriptor_table_Transaction_2eproto_deps, 4, 2, - schemas, file_default_instances, TableStruct_Transaction_2eproto::offsets, - file_level_metadata_Transaction_2eproto, 4, file_level_enum_descriptors_Transaction_2eproto, file_level_service_descriptors_Transaction_2eproto, +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&_PublicEntry_default_instance_), + reinterpret_cast(&_ConfidentialEntry_default_instance_), + reinterpret_cast(&_CoinbaseEntry_default_instance_), + reinterpret_cast(&_RangeProof_default_instance_), }; -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_Transaction_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Transaction_2eproto), true); -namespace Catalyst { -namespace Protocol { -namespace Transaction { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TransactionType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_Transaction_2eproto); - return file_level_enum_descriptors_Transaction_2eproto[0]; +namespace { + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "Transaction.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4); +} + +} // namespace + +void TableStruct::Shutdown() { + _PublicEntry_default_instance_.Shutdown(); + delete file_level_metadata[0].reflection; + _ConfidentialEntry_default_instance_.Shutdown(); + delete file_level_metadata[1].reflection; + _CoinbaseEntry_default_instance_.Shutdown(); + delete file_level_metadata[2].reflection; + _RangeProof_default_instance_.Shutdown(); + delete file_level_metadata[3].reflection; +} + +void TableStruct::InitDefaultsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::internal::InitProtobufDefaults(); + ::Catalyst::Protocol::Cryptography::protobuf_Cryptography_2eproto::InitDefaults(); + _PublicEntry_default_instance_.DefaultConstruct(); + _ConfidentialEntry_default_instance_.DefaultConstruct(); + _CoinbaseEntry_default_instance_.DefaultConstruct(); + _RangeProof_default_instance_.DefaultConstruct(); + _PublicEntry_default_instance_.get_mutable()->signature_ = const_cast< ::Catalyst::Protocol::Cryptography::Signature*>( + ::Catalyst::Protocol::Cryptography::Signature::internal_default_instance()); + _ConfidentialEntry_default_instance_.get_mutable()->range_proof_ = const_cast< ::Catalyst::Protocol::Transaction::RangeProof*>( + ::Catalyst::Protocol::Transaction::RangeProof::internal_default_instance()); +} + +void InitDefaults() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); +} +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] = { + "\n\021Transaction.proto\022\035Catalyst.Protocol.T" + "ransaction\032\022Cryptography.proto\"\320\001\n\013Publi" + "cEntry\022\030\n\020receiver_address\030\001 \001(\014\022\026\n\016send" + "er_address\030\002 \001(\014\022\016\n\006amount\030\003 \001(\014\022\014\n\004data" + "\030\004 \001(\014\022\021\n\tgas_price\030\005 \001(\014\022\021\n\tgas_limit\030\006" + " \001(\004\022\r\n\005nonce\030\007 \001(\004\022<\n\tsignature\030\010 \001(\0132)" + ".Catalyst.Protocol.Cryptography.Signatur" + "e\"\321\001\n\021ConfidentialEntry\022\033\n\023receiver_publ" + "ic_key\030\001 \001(\014\022\031\n\021sender_public_key\030\002 \001(\014\022" + "\033\n\023pedersen_commitment\030\003 \001(\014\022>\n\013range_pr" + "oof\030\004 \001(\0132).Catalyst.Protocol.Transactio" + "n.RangeProof\022\030\n\020transaction_fees\030\005 \001(\014\022\r" + "\n\005nonce\030\006 \001(\004\"<\n\rCoinbaseEntry\022\033\n\023receiv" + "er_public_key\030\001 \001(\014\022\016\n\006amount\030\002 \001(\014\"\332\002\n\n" + "RangeProof\022\030\n\020value_commitment\030\001 \003(\014\022\026\n\016" + "bit_commitment\030\002 \001(\014\022*\n\"per_bit_blinding" + "_factor_commitment\030\003 \001(\014\022\032\n\022poly_commitm" + "ent_t1\030\004 \001(\014\022\032\n\022poly_commitment_t2\030\005 \001(\014" + "\022\032\n\022proof_of_share_tau\030\006 \001(\014\022\031\n\021proof_of" + "_share_mu\030\007 \001(\014\022&\n\036aggregated_vector_pol" + "ynomial_l\030\010 \003(\014\022&\n\036aggregated_vector_pol" + "ynomial_r\030\t \003(\014\022\021\n\ta_prime_0\030\n \001(\014\022\021\n\tb_" + "prime_0\030\013 \001(\014\022\t\n\001t\030\014 \001(\014*M\n\017TransactionT" + "ype\022\034\n\030TRANSACTION_TYPE_UNKNOWN\020\000\022\n\n\006PUB" + "LIC\020\001\022\020\n\014CONFIDENTIAL\020\002B\002P\001b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 995); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Transaction.proto", &protobuf_RegisterTypes); + ::Catalyst::Protocol::Cryptography::protobuf_Cryptography_2eproto::AddDescriptors(); + ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; + +} // namespace protobuf_Transaction_2eproto + +const ::google::protobuf::EnumDescriptor* TransactionType_descriptor() { + protobuf_Transaction_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Transaction_2eproto::file_level_enum_descriptors[0]; } bool TransactionType_IsValid(int value) { switch (value) { @@ -238,93 +221,70 @@ bool TransactionType_IsValid(int value) { // =================================================================== -void PublicEntry::InitAsDefaultInstance() { - ::Catalyst::Protocol::Transaction::_PublicEntry_default_instance_._instance.get_mutable()->timestamp_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>( - PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance()); - ::Catalyst::Protocol::Transaction::_PublicEntry_default_instance_._instance.get_mutable()->signature_ = const_cast< ::Catalyst::Protocol::Cryptography::Signature*>( - ::Catalyst::Protocol::Cryptography::Signature::internal_default_instance()); -} -class PublicEntry::_Internal { - public: - static const PROTOBUF_NAMESPACE_ID::Timestamp& timestamp(const PublicEntry* msg); - static const ::Catalyst::Protocol::Cryptography::Signature& signature(const PublicEntry* msg); -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PublicEntry::kReceiverAddressFieldNumber; +const int PublicEntry::kSenderAddressFieldNumber; +const int PublicEntry::kAmountFieldNumber; +const int PublicEntry::kDataFieldNumber; +const int PublicEntry::kGasPriceFieldNumber; +const int PublicEntry::kGasLimitFieldNumber; +const int PublicEntry::kNonceFieldNumber; +const int PublicEntry::kSignatureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const PROTOBUF_NAMESPACE_ID::Timestamp& -PublicEntry::_Internal::timestamp(const PublicEntry* msg) { - return *msg->timestamp_; -} -const ::Catalyst::Protocol::Cryptography::Signature& -PublicEntry::_Internal::signature(const PublicEntry* msg) { - return *msg->signature_; -} -void PublicEntry::clear_timestamp() { - if (GetArenaNoVirtual() == nullptr && timestamp_ != nullptr) { - delete timestamp_; - } - timestamp_ = nullptr; -} -void PublicEntry::clear_signature() { - if (GetArenaNoVirtual() == nullptr && signature_ != nullptr) { - delete signature_; - } - signature_ = nullptr; -} PublicEntry::PublicEntry() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Transaction_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Transaction.PublicEntry) } PublicEntry::PublicEntry(const PublicEntry& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - receiver_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_receiver_address().empty()) { - receiver_address_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.receiver_address_); - } - sender_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_sender_address().empty()) { - sender_address_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.sender_address_); + receiver_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.receiver_address().size() > 0) { + receiver_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.receiver_address_); } - amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_amount().empty()) { - amount_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.amount_); + sender_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.sender_address().size() > 0) { + sender_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sender_address_); } - data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_data().empty()) { - data_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.data_); + amount_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.amount().size() > 0) { + amount_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.amount_); } - gas_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_gas_price().empty()) { - gas_price_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.gas_price_); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.data().size() > 0) { + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); } - if (from._internal_has_timestamp()) { - timestamp_ = new PROTOBUF_NAMESPACE_ID::Timestamp(*from.timestamp_); - } else { - timestamp_ = nullptr; + gas_price_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.gas_price().size() > 0) { + gas_price_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gas_price_); } - if (from._internal_has_signature()) { + if (from.has_signature()) { signature_ = new ::Catalyst::Protocol::Cryptography::Signature(*from.signature_); } else { - signature_ = nullptr; + signature_ = NULL; } ::memcpy(&gas_limit_, &from.gas_limit_, - static_cast(reinterpret_cast(&nonce_) - - reinterpret_cast(&gas_limit_)) + sizeof(nonce_)); + reinterpret_cast(&nonce_) - + reinterpret_cast(&gas_limit_) + sizeof(nonce_)); // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Transaction.PublicEntry) } void PublicEntry::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_PublicEntry_Transaction_2eproto.base); - receiver_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sender_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - gas_price_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(×tamp_, 0, static_cast( - reinterpret_cast(&nonce_) - - reinterpret_cast(×tamp_)) + sizeof(nonce_)); + receiver_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sender_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + gas_price_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&signature_, 0, reinterpret_cast(&nonce_) - + reinterpret_cast(&signature_) + sizeof(nonce_)); + _cached_size_ = 0; } PublicEntry::~PublicEntry() { @@ -333,212 +293,285 @@ PublicEntry::~PublicEntry() { } void PublicEntry::SharedDtor() { - receiver_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sender_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - gas_price_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete timestamp_; - if (this != internal_default_instance()) delete signature_; + receiver_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sender_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + gas_price_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) { + delete signature_; + } } void PublicEntry::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PublicEntry::descriptor() { + protobuf_Transaction_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Transaction_2eproto::file_level_metadata[0].descriptor; } + const PublicEntry& PublicEntry::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_PublicEntry_Transaction_2eproto.base); + protobuf_Transaction_2eproto::InitDefaults(); return *internal_default_instance(); } +PublicEntry* PublicEntry::New(::google::protobuf::Arena* arena) const { + PublicEntry* n = new PublicEntry; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void PublicEntry::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Transaction.PublicEntry) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - receiver_address_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sender_address_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - data_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - gas_price_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && timestamp_ != nullptr) { - delete timestamp_; - } - timestamp_ = nullptr; - if (GetArenaNoVirtual() == nullptr && signature_ != nullptr) { + receiver_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sender_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + gas_price_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && signature_ != NULL) { delete signature_; } - signature_ = nullptr; - ::memset(&gas_limit_, 0, static_cast( - reinterpret_cast(&nonce_) - - reinterpret_cast(&gas_limit_)) + sizeof(nonce_)); - _internal_metadata_.Clear(); -} - -const char* PublicEntry::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + signature_ = NULL; + ::memset(&gas_limit_, 0, reinterpret_cast(&nonce_) - + reinterpret_cast(&gas_limit_) + sizeof(nonce_)); +} + +bool PublicEntry::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Transaction.PublicEntry) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes receiver_address = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_receiver_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_receiver_address())); + } else { + goto handle_unusual; + } + break; + } + // bytes sender_address = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_sender_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_sender_address())); + } else { + goto handle_unusual; + } + break; + } + // bytes amount = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_amount(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_amount())); + } else { + goto handle_unusual; + } + break; + } + // bytes data = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_data(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .google.protobuf.Timestamp timestamp = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_timestamp(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bytes gas_price = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - auto str = _internal_mutable_gas_price(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 gas_limit = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - gas_limit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 nonce = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { - nonce_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .Catalyst.Protocol.Cryptography.Signature signature = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_signature(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 4: { + if (tag == 34u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_data())); + } else { + goto handle_unusual; + } + break; + } + + // bytes gas_price = 5; + case 5: { + if (tag == 42u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_gas_price())); + } else { + goto handle_unusual; + } + break; + } + + // uint64 gas_limit = 6; + case 6: { + if (tag == 48u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &gas_limit_))); + } else { + goto handle_unusual; + } + break; + } + + // uint64 nonce = 7; + case 7: { + if (tag == 56u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + } else { + goto handle_unusual; + } + break; + } + + // .Catalyst.Protocol.Cryptography.Signature signature = 8; + case 8: { + if (tag == 66u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Transaction.PublicEntry) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Transaction.PublicEntry) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* PublicEntry::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Transaction.PublicEntry) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void PublicEntry::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Transaction.PublicEntry) // bytes receiver_address = 1; if (this->receiver_address().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_receiver_address(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->receiver_address(), output); } // bytes sender_address = 2; if (this->sender_address().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_sender_address(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->sender_address(), output); } // bytes amount = 3; if (this->amount().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_amount(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->amount(), output); } // bytes data = 4; if (this->data().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_data(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->data(), output); + } + + // bytes gas_price = 5; + if (this->gas_price().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->gas_price(), output); + } + + // uint64 gas_limit = 6; + if (this->gas_limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->gas_limit(), output); + } + + // uint64 nonce = 7; + if (this->nonce() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt64(7, this->nonce(), output); + } + + // .Catalyst.Protocol.Cryptography.Signature signature = 8; + if (this->has_signature()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, *this->signature_, output); } - // .google.protobuf.Timestamp timestamp = 5; - if (this->has_timestamp()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::timestamp(this), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Transaction.PublicEntry) +} + +::google::protobuf::uint8* PublicEntry::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Transaction.PublicEntry) + // bytes receiver_address = 1; + if (this->receiver_address().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->receiver_address(), target); } - // bytes gas_price = 6; + // bytes sender_address = 2; + if (this->sender_address().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->sender_address(), target); + } + + // bytes amount = 3; + if (this->amount().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->amount(), target); + } + + // bytes data = 4; + if (this->data().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->data(), target); + } + + // bytes gas_price = 5; if (this->gas_price().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 6, this->_internal_gas_price(), target); + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->gas_price(), target); } - // uint64 gas_limit = 7; + // uint64 gas_limit = 6; if (this->gas_limit() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(7, this->_internal_gas_limit(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->gas_limit(), target); } - // uint64 nonce = 9; + // uint64 nonce = 7; if (this->nonce() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(9, this->_internal_nonce(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(7, this->nonce(), target); } - // .Catalyst.Protocol.Cryptography.Signature signature = 10; + // .Catalyst.Protocol.Cryptography.Signature signature = 8; if (this->has_signature()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::signature(this), target, stream); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 8, *this->signature_, false, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); - } // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Transaction.PublicEntry) return target; } @@ -547,91 +580,78 @@ size_t PublicEntry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Transaction.PublicEntry) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes receiver_address = 1; if (this->receiver_address().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_receiver_address()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->receiver_address()); } // bytes sender_address = 2; if (this->sender_address().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_sender_address()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->sender_address()); } // bytes amount = 3; if (this->amount().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_amount()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->amount()); } // bytes data = 4; if (this->data().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_data()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->data()); } - // bytes gas_price = 6; + // bytes gas_price = 5; if (this->gas_price().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_gas_price()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->gas_price()); } - // .google.protobuf.Timestamp timestamp = 5; - if (this->has_timestamp()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *timestamp_); - } - - // .Catalyst.Protocol.Cryptography.Signature signature = 10; + // .Catalyst.Protocol.Cryptography.Signature signature = 8; if (this->has_signature()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *signature_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->signature_); } - // uint64 gas_limit = 7; + // uint64 gas_limit = 6; if (this->gas_limit() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_gas_limit()); + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->gas_limit()); } - // uint64 nonce = 9; + // uint64 nonce = 7; if (this->nonce() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_nonce()); + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void PublicEntry::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PublicEntry::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Transaction.PublicEntry) GOOGLE_DCHECK_NE(&from, this); const PublicEntry* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Transaction.PublicEntry) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Transaction.PublicEntry) MergeFrom(*source); @@ -642,44 +662,38 @@ void PublicEntry::MergeFrom(const PublicEntry& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Transaction.PublicEntry) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.receiver_address().size() > 0) { - receiver_address_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.receiver_address_); + receiver_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.receiver_address_); } if (from.sender_address().size() > 0) { - sender_address_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.sender_address_); + sender_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sender_address_); } if (from.amount().size() > 0) { - amount_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.amount_); + amount_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.amount_); } if (from.data().size() > 0) { - data_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.data_); + data_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_); } if (from.gas_price().size() > 0) { - gas_price_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.gas_price_); - } - if (from.has_timestamp()) { - _internal_mutable_timestamp()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from._internal_timestamp()); + gas_price_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gas_price_); } if (from.has_signature()) { - _internal_mutable_signature()->::Catalyst::Protocol::Cryptography::Signature::MergeFrom(from._internal_signature()); + mutable_signature()->::Catalyst::Protocol::Cryptography::Signature::MergeFrom(from.signature()); } if (from.gas_limit() != 0) { - _internal_set_gas_limit(from._internal_gas_limit()); + set_gas_limit(from.gas_limit()); } if (from.nonce() != 0) { - _internal_set_nonce(from._internal_nonce()); + set_nonce(from.nonce()); } } -void PublicEntry::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void PublicEntry::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Transaction.PublicEntry) if (&from == this) return; Clear(); @@ -697,88 +711,416 @@ bool PublicEntry::IsInitialized() const { return true; } +void PublicEntry::Swap(PublicEntry* other) { + if (other == this) return; + InternalSwap(other); +} void PublicEntry::InternalSwap(PublicEntry* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - receiver_address_.Swap(&other->receiver_address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - sender_address_.Swap(&other->sender_address_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - data_.Swap(&other->data_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - gas_price_.Swap(&other->gas_price_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(timestamp_, other->timestamp_); - swap(signature_, other->signature_); - swap(gas_limit_, other->gas_limit_); - swap(nonce_, other->nonce_); + receiver_address_.Swap(&other->receiver_address_); + sender_address_.Swap(&other->sender_address_); + amount_.Swap(&other->amount_); + data_.Swap(&other->data_); + gas_price_.Swap(&other->gas_price_); + std::swap(signature_, other->signature_); + std::swap(gas_limit_, other->gas_limit_); + std::swap(nonce_, other->nonce_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata PublicEntry::GetMetadata() const { + protobuf_Transaction_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Transaction_2eproto::file_level_metadata[0]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// PublicEntry + +// bytes receiver_address = 1; +void PublicEntry::clear_receiver_address() { + receiver_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& PublicEntry::receiver_address() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) + return receiver_address_.GetNoArena(); +} +void PublicEntry::set_receiver_address(const ::std::string& value) { + + receiver_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) +} +#if LANG_CXX11 +void PublicEntry::set_receiver_address(::std::string&& value) { + + receiver_address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) +} +#endif +void PublicEntry::set_receiver_address(const char* value) { + + receiver_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) +} +void PublicEntry::set_receiver_address(const void* value, size_t size) { + + receiver_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) +} +::std::string* PublicEntry::mutable_receiver_address() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) + return receiver_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* PublicEntry::release_receiver_address() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) + + return receiver_address_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void PublicEntry::set_allocated_receiver_address(::std::string* receiver_address) { + if (receiver_address != NULL) { + + } else { + + } + receiver_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), receiver_address); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) +} + +// bytes sender_address = 2; +void PublicEntry::clear_sender_address() { + sender_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& PublicEntry::sender_address() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.sender_address) + return sender_address_.GetNoArena(); +} +void PublicEntry::set_sender_address(const ::std::string& value) { + + sender_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.sender_address) +} +#if LANG_CXX11 +void PublicEntry::set_sender_address(::std::string&& value) { + + sender_address_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.PublicEntry.sender_address) +} +#endif +void PublicEntry::set_sender_address(const char* value) { + + sender_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.PublicEntry.sender_address) +} +void PublicEntry::set_sender_address(const void* value, size_t size) { + + sender_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.PublicEntry.sender_address) +} +::std::string* PublicEntry::mutable_sender_address() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.sender_address) + return sender_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* PublicEntry::release_sender_address() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.sender_address) + + return sender_address_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void PublicEntry::set_allocated_sender_address(::std::string* sender_address) { + if (sender_address != NULL) { + + } else { + + } + sender_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sender_address); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.sender_address) +} + +// bytes amount = 3; +void PublicEntry::clear_amount() { + amount_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& PublicEntry::amount() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.amount) + return amount_.GetNoArena(); +} +void PublicEntry::set_amount(const ::std::string& value) { + + amount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.amount) +} +#if LANG_CXX11 +void PublicEntry::set_amount(::std::string&& value) { + + amount_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.PublicEntry.amount) +} +#endif +void PublicEntry::set_amount(const char* value) { + + amount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.PublicEntry.amount) +} +void PublicEntry::set_amount(const void* value, size_t size) { + + amount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.PublicEntry.amount) +} +::std::string* PublicEntry::mutable_amount() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.amount) + return amount_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* PublicEntry::release_amount() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.amount) + + return amount_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void PublicEntry::set_allocated_amount(::std::string* amount) { + if (amount != NULL) { + + } else { + + } + amount_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), amount); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.amount) +} + +// bytes data = 4; +void PublicEntry::clear_data() { + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& PublicEntry::data() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.data) + return data_.GetNoArena(); +} +void PublicEntry::set_data(const ::std::string& value) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.data) +} +#if LANG_CXX11 +void PublicEntry::set_data(::std::string&& value) { + + data_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.PublicEntry.data) +} +#endif +void PublicEntry::set_data(const char* value) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.PublicEntry.data) +} +void PublicEntry::set_data(const void* value, size_t size) { + + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.PublicEntry.data) +} +::std::string* PublicEntry::mutable_data() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* PublicEntry::release_data() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.data) + + return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void PublicEntry::set_allocated_data(::std::string* data) { + if (data != NULL) { + + } else { + + } + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.data) +} + +// bytes gas_price = 5; +void PublicEntry::clear_gas_price() { + gas_price_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& PublicEntry::gas_price() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.gas_price) + return gas_price_.GetNoArena(); +} +void PublicEntry::set_gas_price(const ::std::string& value) { + + gas_price_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.gas_price) +} +#if LANG_CXX11 +void PublicEntry::set_gas_price(::std::string&& value) { + + gas_price_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.PublicEntry.gas_price) +} +#endif +void PublicEntry::set_gas_price(const char* value) { + + gas_price_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.PublicEntry.gas_price) +} +void PublicEntry::set_gas_price(const void* value, size_t size) { + + gas_price_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.PublicEntry.gas_price) +} +::std::string* PublicEntry::mutable_gas_price() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.gas_price) + return gas_price_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* PublicEntry::release_gas_price() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.gas_price) + + return gas_price_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void PublicEntry::set_allocated_gas_price(::std::string* gas_price) { + if (gas_price != NULL) { + + } else { + + } + gas_price_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gas_price); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.gas_price) } -::PROTOBUF_NAMESPACE_ID::Metadata PublicEntry::GetMetadata() const { - return GetMetadataStatic(); +// uint64 gas_limit = 6; +void PublicEntry::clear_gas_limit() { + gas_limit_ = GOOGLE_ULONGLONG(0); +} +::google::protobuf::uint64 PublicEntry::gas_limit() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.gas_limit) + return gas_limit_; +} +void PublicEntry::set_gas_limit(::google::protobuf::uint64 value) { + + gas_limit_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.gas_limit) } +// uint64 nonce = 7; +void PublicEntry::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); +} +::google::protobuf::uint64 PublicEntry::nonce() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.nonce) + return nonce_; +} +void PublicEntry::set_nonce(::google::protobuf::uint64 value) { + + nonce_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.nonce) +} + +// .Catalyst.Protocol.Cryptography.Signature signature = 8; +bool PublicEntry::has_signature() const { + return this != internal_default_instance() && signature_ != NULL; +} +void PublicEntry::clear_signature() { + if (GetArenaNoVirtual() == NULL && signature_ != NULL) delete signature_; + signature_ = NULL; +} +const ::Catalyst::Protocol::Cryptography::Signature& PublicEntry::signature() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.signature) + return signature_ != NULL ? *signature_ + : *::Catalyst::Protocol::Cryptography::Signature::internal_default_instance(); +} +::Catalyst::Protocol::Cryptography::Signature* PublicEntry::mutable_signature() { + + if (signature_ == NULL) { + signature_ = new ::Catalyst::Protocol::Cryptography::Signature; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.signature) + return signature_; +} +::Catalyst::Protocol::Cryptography::Signature* PublicEntry::release_signature() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.signature) + + ::Catalyst::Protocol::Cryptography::Signature* temp = signature_; + signature_ = NULL; + return temp; +} +void PublicEntry::set_allocated_signature(::Catalyst::Protocol::Cryptography::Signature* signature) { + delete signature_; + signature_ = signature; + if (signature) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.signature) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void ConfidentialEntry::InitAsDefaultInstance() { - ::Catalyst::Protocol::Transaction::_ConfidentialEntry_default_instance_._instance.get_mutable()->range_proof_ = const_cast< ::Catalyst::Protocol::Transaction::RangeProof*>( - ::Catalyst::Protocol::Transaction::RangeProof::internal_default_instance()); -} -class ConfidentialEntry::_Internal { - public: - static const ::Catalyst::Protocol::Transaction::RangeProof& range_proof(const ConfidentialEntry* msg); -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ConfidentialEntry::kReceiverPublicKeyFieldNumber; +const int ConfidentialEntry::kSenderPublicKeyFieldNumber; +const int ConfidentialEntry::kPedersenCommitmentFieldNumber; +const int ConfidentialEntry::kRangeProofFieldNumber; +const int ConfidentialEntry::kTransactionFeesFieldNumber; +const int ConfidentialEntry::kNonceFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::Catalyst::Protocol::Transaction::RangeProof& -ConfidentialEntry::_Internal::range_proof(const ConfidentialEntry* msg) { - return *msg->range_proof_; -} ConfidentialEntry::ConfidentialEntry() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Transaction_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Transaction.ConfidentialEntry) } ConfidentialEntry::ConfidentialEntry(const ConfidentialEntry& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - receiver_public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_receiver_public_key().empty()) { - receiver_public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.receiver_public_key_); + receiver_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.receiver_public_key().size() > 0) { + receiver_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.receiver_public_key_); } - sender_public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_sender_public_key().empty()) { - sender_public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.sender_public_key_); + sender_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.sender_public_key().size() > 0) { + sender_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sender_public_key_); } - pedersen_commitment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_pedersen_commitment().empty()) { - pedersen_commitment_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.pedersen_commitment_); + pedersen_commitment_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.pedersen_commitment().size() > 0) { + pedersen_commitment_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pedersen_commitment_); } - transaction_fees_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_transaction_fees().empty()) { - transaction_fees_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.transaction_fees_); + transaction_fees_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.transaction_fees().size() > 0) { + transaction_fees_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_fees_); } - if (from._internal_has_range_proof()) { + if (from.has_range_proof()) { range_proof_ = new ::Catalyst::Protocol::Transaction::RangeProof(*from.range_proof_); } else { - range_proof_ = nullptr; + range_proof_ = NULL; } nonce_ = from.nonce_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Transaction.ConfidentialEntry) } void ConfidentialEntry::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ConfidentialEntry_Transaction_2eproto.base); - receiver_public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sender_public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - pedersen_commitment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - transaction_fees_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&range_proof_, 0, static_cast( - reinterpret_cast(&nonce_) - - reinterpret_cast(&range_proof_)) + sizeof(nonce_)); + receiver_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sender_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pedersen_commitment_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + transaction_fees_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&range_proof_, 0, reinterpret_cast(&nonce_) - + reinterpret_cast(&range_proof_) + sizeof(nonce_)); + _cached_size_ = 0; } ConfidentialEntry::~ConfidentialEntry() { @@ -787,161 +1129,235 @@ ConfidentialEntry::~ConfidentialEntry() { } void ConfidentialEntry::SharedDtor() { - receiver_public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sender_public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - pedersen_commitment_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - transaction_fees_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete range_proof_; + receiver_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sender_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pedersen_commitment_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + transaction_fees_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) { + delete range_proof_; + } } void ConfidentialEntry::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ConfidentialEntry::descriptor() { + protobuf_Transaction_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Transaction_2eproto::file_level_metadata[1].descriptor; } + const ConfidentialEntry& ConfidentialEntry::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ConfidentialEntry_Transaction_2eproto.base); + protobuf_Transaction_2eproto::InitDefaults(); return *internal_default_instance(); } +ConfidentialEntry* ConfidentialEntry::New(::google::protobuf::Arena* arena) const { + ConfidentialEntry* n = new ConfidentialEntry; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void ConfidentialEntry::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Transaction.ConfidentialEntry) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - receiver_public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sender_public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - pedersen_commitment_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - transaction_fees_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && range_proof_ != nullptr) { + receiver_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + sender_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pedersen_commitment_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + transaction_fees_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && range_proof_ != NULL) { delete range_proof_; } - range_proof_ = nullptr; - nonce_ = PROTOBUF_ULONGLONG(0); - _internal_metadata_.Clear(); + range_proof_ = NULL; + nonce_ = GOOGLE_ULONGLONG(0); } -const char* ConfidentialEntry::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool ConfidentialEntry::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Transaction.ConfidentialEntry) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes receiver_public_key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_receiver_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_receiver_public_key())); + } else { + goto handle_unusual; + } + break; + } + // bytes sender_public_key = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_sender_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_sender_public_key())); + } else { + goto handle_unusual; + } + break; + } + // bytes pedersen_commitment = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_pedersen_commitment(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_pedersen_commitment())); + } else { + goto handle_unusual; + } + break; + } + // .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_range_proof(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 4: { + if (tag == 34u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_range_proof())); + } else { + goto handle_unusual; + } + break; + } + // bytes transaction_fees = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - auto str = _internal_mutable_transaction_fees(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 5: { + if (tag == 42u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_transaction_fees())); + } else { + goto handle_unusual; + } + break; + } + // uint64 nonce = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - nonce_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 6: { + if (tag == 48u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( + input, &nonce_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Transaction.ConfidentialEntry) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Transaction.ConfidentialEntry) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* ConfidentialEntry::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Transaction.ConfidentialEntry) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void ConfidentialEntry::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Transaction.ConfidentialEntry) // bytes receiver_public_key = 1; if (this->receiver_public_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_receiver_public_key(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->receiver_public_key(), output); } // bytes sender_public_key = 2; if (this->sender_public_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_sender_public_key(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->sender_public_key(), output); } // bytes pedersen_commitment = 3; if (this->pedersen_commitment().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_pedersen_commitment(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->pedersen_commitment(), output); } // .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; if (this->has_range_proof()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::range_proof(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->range_proof_, output); } // bytes transaction_fees = 5; if (this->transaction_fees().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 5, this->_internal_transaction_fees(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->transaction_fees(), output); } // uint64 nonce = 6; if (this->nonce() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(6, this->_internal_nonce(), target); + ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->nonce(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Transaction.ConfidentialEntry) +} + +::google::protobuf::uint8* ConfidentialEntry::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Transaction.ConfidentialEntry) + // bytes receiver_public_key = 1; + if (this->receiver_public_key().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->receiver_public_key(), target); + } + + // bytes sender_public_key = 2; + if (this->sender_public_key().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->sender_public_key(), target); + } + + // bytes pedersen_commitment = 3; + if (this->pedersen_commitment().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->pedersen_commitment(), target); + } + + // .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; + if (this->has_range_proof()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 4, *this->range_proof_, false, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // bytes transaction_fees = 5; + if (this->transaction_fees().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->transaction_fees(), target); + } + + // uint64 nonce = 6; + if (this->nonce() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->nonce(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Transaction.ConfidentialEntry) return target; } @@ -950,70 +1366,64 @@ size_t ConfidentialEntry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Transaction.ConfidentialEntry) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes receiver_public_key = 1; if (this->receiver_public_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_receiver_public_key()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->receiver_public_key()); } // bytes sender_public_key = 2; if (this->sender_public_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_sender_public_key()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->sender_public_key()); } // bytes pedersen_commitment = 3; if (this->pedersen_commitment().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_pedersen_commitment()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->pedersen_commitment()); } // bytes transaction_fees = 5; if (this->transaction_fees().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_transaction_fees()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->transaction_fees()); } // .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; if (this->has_range_proof()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *range_proof_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->range_proof_); } // uint64 nonce = 6; if (this->nonce() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_nonce()); + ::google::protobuf::internal::WireFormatLite::UInt64Size( + this->nonce()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ConfidentialEntry::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ConfidentialEntry::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Transaction.ConfidentialEntry) GOOGLE_DCHECK_NE(&from, this); const ConfidentialEntry* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Transaction.ConfidentialEntry) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Transaction.ConfidentialEntry) MergeFrom(*source); @@ -1024,34 +1434,31 @@ void ConfidentialEntry::MergeFrom(const ConfidentialEntry& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Transaction.ConfidentialEntry) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.receiver_public_key().size() > 0) { - receiver_public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.receiver_public_key_); + receiver_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.receiver_public_key_); } if (from.sender_public_key().size() > 0) { - sender_public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.sender_public_key_); + sender_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sender_public_key_); } if (from.pedersen_commitment().size() > 0) { - pedersen_commitment_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.pedersen_commitment_); + pedersen_commitment_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pedersen_commitment_); } if (from.transaction_fees().size() > 0) { - transaction_fees_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.transaction_fees_); + transaction_fees_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transaction_fees_); } if (from.has_range_proof()) { - _internal_mutable_range_proof()->::Catalyst::Protocol::Transaction::RangeProof::MergeFrom(from._internal_range_proof()); + mutable_range_proof()->::Catalyst::Protocol::Transaction::RangeProof::MergeFrom(from.range_proof()); } if (from.nonce() != 0) { - _internal_set_nonce(from._internal_nonce()); + set_nonce(from.nonce()); } } -void ConfidentialEntry::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ConfidentialEntry::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Transaction.ConfidentialEntry) if (&from == this) return; Clear(); @@ -1069,58 +1476,326 @@ bool ConfidentialEntry::IsInitialized() const { return true; } +void ConfidentialEntry::Swap(ConfidentialEntry* other) { + if (other == this) return; + InternalSwap(other); +} void ConfidentialEntry::InternalSwap(ConfidentialEntry* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - receiver_public_key_.Swap(&other->receiver_public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - sender_public_key_.Swap(&other->sender_public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - pedersen_commitment_.Swap(&other->pedersen_commitment_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - transaction_fees_.Swap(&other->transaction_fees_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(range_proof_, other->range_proof_); - swap(nonce_, other->nonce_); + receiver_public_key_.Swap(&other->receiver_public_key_); + sender_public_key_.Swap(&other->sender_public_key_); + pedersen_commitment_.Swap(&other->pedersen_commitment_); + transaction_fees_.Swap(&other->transaction_fees_); + std::swap(range_proof_, other->range_proof_); + std::swap(nonce_, other->nonce_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ConfidentialEntry::GetMetadata() const { + protobuf_Transaction_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Transaction_2eproto::file_level_metadata[1]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// ConfidentialEntry + +// bytes receiver_public_key = 1; +void ConfidentialEntry::clear_receiver_public_key() { + receiver_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& ConfidentialEntry::receiver_public_key() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) + return receiver_public_key_.GetNoArena(); +} +void ConfidentialEntry::set_receiver_public_key(const ::std::string& value) { + + receiver_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) +} +#if LANG_CXX11 +void ConfidentialEntry::set_receiver_public_key(::std::string&& value) { + + receiver_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) +} +#endif +void ConfidentialEntry::set_receiver_public_key(const char* value) { + + receiver_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) +} +void ConfidentialEntry::set_receiver_public_key(const void* value, size_t size) { + + receiver_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) +} +::std::string* ConfidentialEntry::mutable_receiver_public_key() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) + return receiver_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* ConfidentialEntry::release_receiver_public_key() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) + + return receiver_public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void ConfidentialEntry::set_allocated_receiver_public_key(::std::string* receiver_public_key) { + if (receiver_public_key != NULL) { + + } else { + + } + receiver_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), receiver_public_key); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) +} + +// bytes sender_public_key = 2; +void ConfidentialEntry::clear_sender_public_key() { + sender_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& ConfidentialEntry::sender_public_key() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) + return sender_public_key_.GetNoArena(); +} +void ConfidentialEntry::set_sender_public_key(const ::std::string& value) { + + sender_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) +} +#if LANG_CXX11 +void ConfidentialEntry::set_sender_public_key(::std::string&& value) { + + sender_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) +} +#endif +void ConfidentialEntry::set_sender_public_key(const char* value) { + + sender_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) +} +void ConfidentialEntry::set_sender_public_key(const void* value, size_t size) { + + sender_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) +} +::std::string* ConfidentialEntry::mutable_sender_public_key() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) + return sender_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* ConfidentialEntry::release_sender_public_key() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) + + return sender_public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void ConfidentialEntry::set_allocated_sender_public_key(::std::string* sender_public_key) { + if (sender_public_key != NULL) { + + } else { + + } + sender_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sender_public_key); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) +} + +// bytes pedersen_commitment = 3; +void ConfidentialEntry::clear_pedersen_commitment() { + pedersen_commitment_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& ConfidentialEntry::pedersen_commitment() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) + return pedersen_commitment_.GetNoArena(); +} +void ConfidentialEntry::set_pedersen_commitment(const ::std::string& value) { + + pedersen_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) +} +#if LANG_CXX11 +void ConfidentialEntry::set_pedersen_commitment(::std::string&& value) { + + pedersen_commitment_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) +} +#endif +void ConfidentialEntry::set_pedersen_commitment(const char* value) { + + pedersen_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) +} +void ConfidentialEntry::set_pedersen_commitment(const void* value, size_t size) { + + pedersen_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) +} +::std::string* ConfidentialEntry::mutable_pedersen_commitment() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) + return pedersen_commitment_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* ConfidentialEntry::release_pedersen_commitment() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) + + return pedersen_commitment_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void ConfidentialEntry::set_allocated_pedersen_commitment(::std::string* pedersen_commitment) { + if (pedersen_commitment != NULL) { + + } else { + + } + pedersen_commitment_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pedersen_commitment); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) +} + +// .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; +bool ConfidentialEntry::has_range_proof() const { + return this != internal_default_instance() && range_proof_ != NULL; +} +void ConfidentialEntry::clear_range_proof() { + if (GetArenaNoVirtual() == NULL && range_proof_ != NULL) delete range_proof_; + range_proof_ = NULL; +} +const ::Catalyst::Protocol::Transaction::RangeProof& ConfidentialEntry::range_proof() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.ConfidentialEntry.range_proof) + return range_proof_ != NULL ? *range_proof_ + : *::Catalyst::Protocol::Transaction::RangeProof::internal_default_instance(); +} +::Catalyst::Protocol::Transaction::RangeProof* ConfidentialEntry::mutable_range_proof() { + + if (range_proof_ == NULL) { + range_proof_ = new ::Catalyst::Protocol::Transaction::RangeProof; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.range_proof) + return range_proof_; +} +::Catalyst::Protocol::Transaction::RangeProof* ConfidentialEntry::release_range_proof() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.ConfidentialEntry.range_proof) + + ::Catalyst::Protocol::Transaction::RangeProof* temp = range_proof_; + range_proof_ = NULL; + return temp; +} +void ConfidentialEntry::set_allocated_range_proof(::Catalyst::Protocol::Transaction::RangeProof* range_proof) { + delete range_proof_; + range_proof_ = range_proof; + if (range_proof) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.ConfidentialEntry.range_proof) +} + +// bytes transaction_fees = 5; +void ConfidentialEntry::clear_transaction_fees() { + transaction_fees_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& ConfidentialEntry::transaction_fees() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) + return transaction_fees_.GetNoArena(); +} +void ConfidentialEntry::set_transaction_fees(const ::std::string& value) { + + transaction_fees_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) +} +#if LANG_CXX11 +void ConfidentialEntry::set_transaction_fees(::std::string&& value) { + + transaction_fees_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) +} +#endif +void ConfidentialEntry::set_transaction_fees(const char* value) { + + transaction_fees_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) +} +void ConfidentialEntry::set_transaction_fees(const void* value, size_t size) { + + transaction_fees_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) +} +::std::string* ConfidentialEntry::mutable_transaction_fees() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) + return transaction_fees_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* ConfidentialEntry::release_transaction_fees() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) + + return transaction_fees_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void ConfidentialEntry::set_allocated_transaction_fees(::std::string* transaction_fees) { + if (transaction_fees != NULL) { + + } else { + + } + transaction_fees_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transaction_fees); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) } -::PROTOBUF_NAMESPACE_ID::Metadata ConfidentialEntry::GetMetadata() const { - return GetMetadataStatic(); +// uint64 nonce = 6; +void ConfidentialEntry::clear_nonce() { + nonce_ = GOOGLE_ULONGLONG(0); +} +::google::protobuf::uint64 ConfidentialEntry::nonce() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.ConfidentialEntry.nonce) + return nonce_; +} +void ConfidentialEntry::set_nonce(::google::protobuf::uint64 value) { + + nonce_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.nonce) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void CoinbaseEntry::InitAsDefaultInstance() { -} -class CoinbaseEntry::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CoinbaseEntry::kReceiverPublicKeyFieldNumber; +const int CoinbaseEntry::kAmountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CoinbaseEntry::CoinbaseEntry() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Transaction_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Transaction.CoinbaseEntry) } CoinbaseEntry::CoinbaseEntry(const CoinbaseEntry& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - receiver_public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_receiver_public_key().empty()) { - receiver_public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.receiver_public_key_); + receiver_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.receiver_public_key().size() > 0) { + receiver_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.receiver_public_key_); } - amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_amount().empty()) { - amount_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.amount_); + amount_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.amount().size() > 0) { + amount_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.amount_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Transaction.CoinbaseEntry) } void CoinbaseEntry::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CoinbaseEntry_Transaction_2eproto.base); - receiver_public_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + receiver_public_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } CoinbaseEntry::~CoinbaseEntry() { @@ -1129,95 +1804,128 @@ CoinbaseEntry::~CoinbaseEntry() { } void CoinbaseEntry::SharedDtor() { - receiver_public_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + receiver_public_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void CoinbaseEntry::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CoinbaseEntry::descriptor() { + protobuf_Transaction_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Transaction_2eproto::file_level_metadata[2].descriptor; } + const CoinbaseEntry& CoinbaseEntry::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CoinbaseEntry_Transaction_2eproto.base); + protobuf_Transaction_2eproto::InitDefaults(); return *internal_default_instance(); } +CoinbaseEntry* CoinbaseEntry::New(::google::protobuf::Arena* arena) const { + CoinbaseEntry* n = new CoinbaseEntry; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void CoinbaseEntry::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Transaction.CoinbaseEntry) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - receiver_public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - amount_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* CoinbaseEntry::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + receiver_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + amount_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool CoinbaseEntry::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Transaction.CoinbaseEntry) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes receiver_public_key = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_receiver_public_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_receiver_public_key())); + } else { + goto handle_unusual; + } + break; + } + // bytes amount = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_amount(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_amount())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Transaction.CoinbaseEntry) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Transaction.CoinbaseEntry) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* CoinbaseEntry::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Transaction.CoinbaseEntry) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void CoinbaseEntry::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Transaction.CoinbaseEntry) // bytes receiver_public_key = 1; if (this->receiver_public_key().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_receiver_public_key(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->receiver_public_key(), output); } // bytes amount = 2; if (this->amount().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_amount(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->amount(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Transaction.CoinbaseEntry) +} + +::google::protobuf::uint8* CoinbaseEntry::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Transaction.CoinbaseEntry) + // bytes receiver_public_key = 1; + if (this->receiver_public_key().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->receiver_public_key(), target); } + + // bytes amount = 2; + if (this->amount().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->amount(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Transaction.CoinbaseEntry) return target; } @@ -1226,42 +1934,36 @@ size_t CoinbaseEntry::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Transaction.CoinbaseEntry) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes receiver_public_key = 1; if (this->receiver_public_key().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_receiver_public_key()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->receiver_public_key()); } // bytes amount = 2; if (this->amount().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_amount()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->amount()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void CoinbaseEntry::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CoinbaseEntry::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Transaction.CoinbaseEntry) GOOGLE_DCHECK_NE(&from, this); const CoinbaseEntry* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Transaction.CoinbaseEntry) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Transaction.CoinbaseEntry) MergeFrom(*source); @@ -1272,20 +1974,17 @@ void CoinbaseEntry::MergeFrom(const CoinbaseEntry& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Transaction.CoinbaseEntry) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.receiver_public_key().size() > 0) { - receiver_public_key_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.receiver_public_key_); + receiver_public_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.receiver_public_key_); } if (from.amount().size() > 0) { - amount_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.amount_); + amount_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.amount_); } } -void CoinbaseEntry::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CoinbaseEntry::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Transaction.CoinbaseEntry) if (&from == this) return; Clear(); @@ -1303,90 +2002,213 @@ bool CoinbaseEntry::IsInitialized() const { return true; } -void CoinbaseEntry::InternalSwap(CoinbaseEntry* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - receiver_public_key_.Swap(&other->receiver_public_key_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - amount_.Swap(&other->amount_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void CoinbaseEntry::Swap(CoinbaseEntry* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata CoinbaseEntry::GetMetadata() const { - return GetMetadataStatic(); +void CoinbaseEntry::InternalSwap(CoinbaseEntry* other) { + receiver_public_key_.Swap(&other->receiver_public_key_); + amount_.Swap(&other->amount_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata CoinbaseEntry::GetMetadata() const { + protobuf_Transaction_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Transaction_2eproto::file_level_metadata[2]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// CoinbaseEntry + +// bytes receiver_public_key = 1; +void CoinbaseEntry::clear_receiver_public_key() { + receiver_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& CoinbaseEntry::receiver_public_key() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) + return receiver_public_key_.GetNoArena(); +} +void CoinbaseEntry::set_receiver_public_key(const ::std::string& value) { + + receiver_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) +} +#if LANG_CXX11 +void CoinbaseEntry::set_receiver_public_key(::std::string&& value) { + + receiver_public_key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) +} +#endif +void CoinbaseEntry::set_receiver_public_key(const char* value) { + + receiver_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) +} +void CoinbaseEntry::set_receiver_public_key(const void* value, size_t size) { + + receiver_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) +} +::std::string* CoinbaseEntry::mutable_receiver_public_key() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) + return receiver_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* CoinbaseEntry::release_receiver_public_key() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) + + return receiver_public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void CoinbaseEntry::set_allocated_receiver_public_key(::std::string* receiver_public_key) { + if (receiver_public_key != NULL) { + + } else { + + } + receiver_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), receiver_public_key); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) +} + +// bytes amount = 2; +void CoinbaseEntry::clear_amount() { + amount_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& CoinbaseEntry::amount() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) + return amount_.GetNoArena(); +} +void CoinbaseEntry::set_amount(const ::std::string& value) { + + amount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) +} +#if LANG_CXX11 +void CoinbaseEntry::set_amount(::std::string&& value) { + + amount_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) +} +#endif +void CoinbaseEntry::set_amount(const char* value) { + + amount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) +} +void CoinbaseEntry::set_amount(const void* value, size_t size) { + + amount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) +} +::std::string* CoinbaseEntry::mutable_amount() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) + return amount_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* CoinbaseEntry::release_amount() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) + + return amount_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void CoinbaseEntry::set_allocated_amount(::std::string* amount) { + if (amount != NULL) { + + } else { + + } + amount_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), amount); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void RangeProof::InitAsDefaultInstance() { -} -class RangeProof::_Internal { - public: -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RangeProof::kValueCommitmentFieldNumber; +const int RangeProof::kBitCommitmentFieldNumber; +const int RangeProof::kPerBitBlindingFactorCommitmentFieldNumber; +const int RangeProof::kPolyCommitmentT1FieldNumber; +const int RangeProof::kPolyCommitmentT2FieldNumber; +const int RangeProof::kProofOfShareTauFieldNumber; +const int RangeProof::kProofOfShareMuFieldNumber; +const int RangeProof::kAggregatedVectorPolynomialLFieldNumber; +const int RangeProof::kAggregatedVectorPolynomialRFieldNumber; +const int RangeProof::kAPrime0FieldNumber; +const int RangeProof::kBPrime0FieldNumber; +const int RangeProof::kTFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RangeProof::RangeProof() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Transaction_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Transaction.RangeProof) } RangeProof::RangeProof(const RangeProof& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), + : ::google::protobuf::Message(), + _internal_metadata_(NULL), value_commitment_(from.value_commitment_), aggregated_vector_polynomial_l_(from.aggregated_vector_polynomial_l_), - aggregated_vector_polynomial_r_(from.aggregated_vector_polynomial_r_) { + aggregated_vector_polynomial_r_(from.aggregated_vector_polynomial_r_), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - bit_commitment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_bit_commitment().empty()) { - bit_commitment_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.bit_commitment_); + bit_commitment_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.bit_commitment().size() > 0) { + bit_commitment_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bit_commitment_); } - per_bit_blinding_factor_commitment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_per_bit_blinding_factor_commitment().empty()) { - per_bit_blinding_factor_commitment_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.per_bit_blinding_factor_commitment_); + per_bit_blinding_factor_commitment_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.per_bit_blinding_factor_commitment().size() > 0) { + per_bit_blinding_factor_commitment_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.per_bit_blinding_factor_commitment_); } - poly_commitment_t1_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_poly_commitment_t1().empty()) { - poly_commitment_t1_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.poly_commitment_t1_); + poly_commitment_t1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.poly_commitment_t1().size() > 0) { + poly_commitment_t1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.poly_commitment_t1_); } - poly_commitment_t2_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_poly_commitment_t2().empty()) { - poly_commitment_t2_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.poly_commitment_t2_); + poly_commitment_t2_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.poly_commitment_t2().size() > 0) { + poly_commitment_t2_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.poly_commitment_t2_); } - proof_of_share_tau_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_proof_of_share_tau().empty()) { - proof_of_share_tau_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.proof_of_share_tau_); + proof_of_share_tau_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.proof_of_share_tau().size() > 0) { + proof_of_share_tau_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.proof_of_share_tau_); } - proof_of_share_mu_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_proof_of_share_mu().empty()) { - proof_of_share_mu_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.proof_of_share_mu_); + proof_of_share_mu_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.proof_of_share_mu().size() > 0) { + proof_of_share_mu_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.proof_of_share_mu_); } - a_prime_0_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_a_prime_0().empty()) { - a_prime_0_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.a_prime_0_); + a_prime_0_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.a_prime_0().size() > 0) { + a_prime_0_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.a_prime_0_); } - b_prime_0_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_b_prime_0().empty()) { - b_prime_0_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.b_prime_0_); + b_prime_0_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.b_prime_0().size() > 0) { + b_prime_0_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.b_prime_0_); } - t_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_t().empty()) { - t_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.t_); + t_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.t().size() > 0) { + t_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.t_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Transaction.RangeProof) } void RangeProof::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_RangeProof_Transaction_2eproto.base); - bit_commitment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - per_bit_blinding_factor_commitment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - poly_commitment_t1_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - poly_commitment_t2_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - proof_of_share_tau_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - proof_of_share_mu_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - a_prime_0_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - b_prime_0_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - t_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + bit_commitment_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + per_bit_blinding_factor_commitment_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + poly_commitment_t1_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + poly_commitment_t2_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + proof_of_share_tau_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + proof_of_share_mu_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + a_prime_0_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + b_prime_0_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + t_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } RangeProof::~RangeProof() { @@ -1395,267 +2217,382 @@ RangeProof::~RangeProof() { } void RangeProof::SharedDtor() { - bit_commitment_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - per_bit_blinding_factor_commitment_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - poly_commitment_t1_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - poly_commitment_t2_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - proof_of_share_tau_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - proof_of_share_mu_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - a_prime_0_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - b_prime_0_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - t_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + bit_commitment_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + per_bit_blinding_factor_commitment_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + poly_commitment_t1_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + poly_commitment_t2_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + proof_of_share_tau_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + proof_of_share_mu_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + a_prime_0_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + b_prime_0_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + t_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void RangeProof::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RangeProof::descriptor() { + protobuf_Transaction_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Transaction_2eproto::file_level_metadata[3].descriptor; } + const RangeProof& RangeProof::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RangeProof_Transaction_2eproto.base); + protobuf_Transaction_2eproto::InitDefaults(); return *internal_default_instance(); } +RangeProof* RangeProof::New(::google::protobuf::Arena* arena) const { + RangeProof* n = new RangeProof; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void RangeProof::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Transaction.RangeProof) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - value_commitment_.Clear(); aggregated_vector_polynomial_l_.Clear(); aggregated_vector_polynomial_r_.Clear(); - bit_commitment_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - per_bit_blinding_factor_commitment_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - poly_commitment_t1_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - poly_commitment_t2_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - proof_of_share_tau_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - proof_of_share_mu_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - a_prime_0_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - b_prime_0_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - t_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* RangeProof::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + bit_commitment_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + per_bit_blinding_factor_commitment_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + poly_commitment_t1_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + poly_commitment_t2_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + proof_of_share_tau_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + proof_of_share_mu_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + a_prime_0_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + b_prime_0_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + t_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool RangeProof::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Transaction.RangeProof) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated bytes value_commitment = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_value_commitment(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_value_commitment())); + } else { + goto handle_unusual; + } + break; + } + // bytes bit_commitment = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_bit_commitment(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_bit_commitment())); + } else { + goto handle_unusual; + } + break; + } + // bytes per_bit_blinding_factor_commitment = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_per_bit_blinding_factor_commitment(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_per_bit_blinding_factor_commitment())); + } else { + goto handle_unusual; + } + break; + } + // bytes poly_commitment_t1 = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_poly_commitment_t1(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 4: { + if (tag == 34u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_poly_commitment_t1())); + } else { + goto handle_unusual; + } + break; + } + // bytes poly_commitment_t2 = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - auto str = _internal_mutable_poly_commitment_t2(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 5: { + if (tag == 42u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_poly_commitment_t2())); + } else { + goto handle_unusual; + } + break; + } + // bytes proof_of_share_tau = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - auto str = _internal_mutable_proof_of_share_tau(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 6: { + if (tag == 50u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_proof_of_share_tau())); + } else { + goto handle_unusual; + } + break; + } + // bytes proof_of_share_mu = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - auto str = _internal_mutable_proof_of_share_mu(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 7: { + if (tag == 58u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_proof_of_share_mu())); + } else { + goto handle_unusual; + } + break; + } + // repeated bytes aggregated_vector_polynomial_l = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_aggregated_vector_polynomial_l(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); - } else goto handle_unusual; - continue; + case 8: { + if (tag == 66u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_aggregated_vector_polynomial_l())); + } else { + goto handle_unusual; + } + break; + } + // repeated bytes aggregated_vector_polynomial_r = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_add_aggregated_vector_polynomial_r(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else goto handle_unusual; - continue; + case 9: { + if (tag == 74u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->add_aggregated_vector_polynomial_r())); + } else { + goto handle_unusual; + } + break; + } + // bytes a_prime_0 = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { - auto str = _internal_mutable_a_prime_0(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 10: { + if (tag == 82u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_a_prime_0())); + } else { + goto handle_unusual; + } + break; + } + // bytes b_prime_0 = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { - auto str = _internal_mutable_b_prime_0(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 11: { + if (tag == 90u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_b_prime_0())); + } else { + goto handle_unusual; + } + break; + } + // bytes t = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { - auto str = _internal_mutable_t(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 12: { + if (tag == 98u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_t())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Transaction.RangeProof) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Transaction.RangeProof) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* RangeProof::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Transaction.RangeProof) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void RangeProof::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Transaction.RangeProof) // repeated bytes value_commitment = 1; - for (int i = 0, n = this->_internal_value_commitment_size(); i < n; i++) { - const auto& s = this->_internal_value_commitment(i); - target = stream->WriteBytes(1, s, target); + for (int i = 0; i < this->value_commitment_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->value_commitment(i), output); } // bytes bit_commitment = 2; if (this->bit_commitment().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_bit_commitment(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->bit_commitment(), output); } // bytes per_bit_blinding_factor_commitment = 3; if (this->per_bit_blinding_factor_commitment().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_per_bit_blinding_factor_commitment(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->per_bit_blinding_factor_commitment(), output); } // bytes poly_commitment_t1 = 4; if (this->poly_commitment_t1().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_poly_commitment_t1(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->poly_commitment_t1(), output); } // bytes poly_commitment_t2 = 5; if (this->poly_commitment_t2().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 5, this->_internal_poly_commitment_t2(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 5, this->poly_commitment_t2(), output); } // bytes proof_of_share_tau = 6; if (this->proof_of_share_tau().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 6, this->_internal_proof_of_share_tau(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 6, this->proof_of_share_tau(), output); } // bytes proof_of_share_mu = 7; if (this->proof_of_share_mu().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 7, this->_internal_proof_of_share_mu(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 7, this->proof_of_share_mu(), output); } // repeated bytes aggregated_vector_polynomial_l = 8; - for (int i = 0, n = this->_internal_aggregated_vector_polynomial_l_size(); i < n; i++) { - const auto& s = this->_internal_aggregated_vector_polynomial_l(i); - target = stream->WriteBytes(8, s, target); + for (int i = 0; i < this->aggregated_vector_polynomial_l_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 8, this->aggregated_vector_polynomial_l(i), output); } // repeated bytes aggregated_vector_polynomial_r = 9; - for (int i = 0, n = this->_internal_aggregated_vector_polynomial_r_size(); i < n; i++) { - const auto& s = this->_internal_aggregated_vector_polynomial_r(i); - target = stream->WriteBytes(9, s, target); + for (int i = 0; i < this->aggregated_vector_polynomial_r_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 9, this->aggregated_vector_polynomial_r(i), output); } // bytes a_prime_0 = 10; if (this->a_prime_0().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 10, this->_internal_a_prime_0(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 10, this->a_prime_0(), output); } // bytes b_prime_0 = 11; if (this->b_prime_0().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 11, this->_internal_b_prime_0(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 11, this->b_prime_0(), output); } // bytes t = 12; if (this->t().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 12, this->_internal_t(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 12, this->t(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Transaction.RangeProof) +} + +::google::protobuf::uint8* RangeProof::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Transaction.RangeProof) + // repeated bytes value_commitment = 1; + for (int i = 0; i < this->value_commitment_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(1, this->value_commitment(i), target); + } + + // bytes bit_commitment = 2; + if (this->bit_commitment().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->bit_commitment(), target); + } + + // bytes per_bit_blinding_factor_commitment = 3; + if (this->per_bit_blinding_factor_commitment().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->per_bit_blinding_factor_commitment(), target); + } + + // bytes poly_commitment_t1 = 4; + if (this->poly_commitment_t1().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->poly_commitment_t1(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // bytes poly_commitment_t2 = 5; + if (this->poly_commitment_t2().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 5, this->poly_commitment_t2(), target); } + + // bytes proof_of_share_tau = 6; + if (this->proof_of_share_tau().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 6, this->proof_of_share_tau(), target); + } + + // bytes proof_of_share_mu = 7; + if (this->proof_of_share_mu().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 7, this->proof_of_share_mu(), target); + } + + // repeated bytes aggregated_vector_polynomial_l = 8; + for (int i = 0; i < this->aggregated_vector_polynomial_l_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(8, this->aggregated_vector_polynomial_l(i), target); + } + + // repeated bytes aggregated_vector_polynomial_r = 9; + for (int i = 0; i < this->aggregated_vector_polynomial_r_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteBytesToArray(9, this->aggregated_vector_polynomial_r(i), target); + } + + // bytes a_prime_0 = 10; + if (this->a_prime_0().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 10, this->a_prime_0(), target); + } + + // bytes b_prime_0 = 11; + if (this->b_prime_0().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 11, this->b_prime_0(), target); + } + + // bytes t = 12; + if (this->t().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 12, this->t(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Transaction.RangeProof) return target; } @@ -1664,115 +2601,109 @@ size_t RangeProof::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Transaction.RangeProof) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // repeated bytes value_commitment = 1; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(value_commitment_.size()); - for (int i = 0, n = value_commitment_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - value_commitment_.Get(i)); + ::google::protobuf::internal::FromIntSize(this->value_commitment_size()); + for (int i = 0; i < this->value_commitment_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value_commitment(i)); } // repeated bytes aggregated_vector_polynomial_l = 8; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(aggregated_vector_polynomial_l_.size()); - for (int i = 0, n = aggregated_vector_polynomial_l_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - aggregated_vector_polynomial_l_.Get(i)); + ::google::protobuf::internal::FromIntSize(this->aggregated_vector_polynomial_l_size()); + for (int i = 0; i < this->aggregated_vector_polynomial_l_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->aggregated_vector_polynomial_l(i)); } // repeated bytes aggregated_vector_polynomial_r = 9; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(aggregated_vector_polynomial_r_.size()); - for (int i = 0, n = aggregated_vector_polynomial_r_.size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - aggregated_vector_polynomial_r_.Get(i)); + ::google::protobuf::internal::FromIntSize(this->aggregated_vector_polynomial_r_size()); + for (int i = 0; i < this->aggregated_vector_polynomial_r_size(); i++) { + total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( + this->aggregated_vector_polynomial_r(i)); } // bytes bit_commitment = 2; if (this->bit_commitment().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_bit_commitment()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->bit_commitment()); } // bytes per_bit_blinding_factor_commitment = 3; if (this->per_bit_blinding_factor_commitment().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_per_bit_blinding_factor_commitment()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->per_bit_blinding_factor_commitment()); } // bytes poly_commitment_t1 = 4; if (this->poly_commitment_t1().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_poly_commitment_t1()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->poly_commitment_t1()); } // bytes poly_commitment_t2 = 5; if (this->poly_commitment_t2().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_poly_commitment_t2()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->poly_commitment_t2()); } // bytes proof_of_share_tau = 6; if (this->proof_of_share_tau().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_proof_of_share_tau()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->proof_of_share_tau()); } // bytes proof_of_share_mu = 7; if (this->proof_of_share_mu().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_proof_of_share_mu()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->proof_of_share_mu()); } // bytes a_prime_0 = 10; if (this->a_prime_0().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_a_prime_0()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->a_prime_0()); } // bytes b_prime_0 = 11; if (this->b_prime_0().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_b_prime_0()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->b_prime_0()); } // bytes t = 12; if (this->t().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_t()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->t()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void RangeProof::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void RangeProof::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Transaction.RangeProof) GOOGLE_DCHECK_NE(&from, this); const RangeProof* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Transaction.RangeProof) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Transaction.RangeProof) MergeFrom(*source); @@ -1783,51 +2714,48 @@ void RangeProof::MergeFrom(const RangeProof& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Transaction.RangeProof) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - value_commitment_.MergeFrom(from.value_commitment_); aggregated_vector_polynomial_l_.MergeFrom(from.aggregated_vector_polynomial_l_); aggregated_vector_polynomial_r_.MergeFrom(from.aggregated_vector_polynomial_r_); if (from.bit_commitment().size() > 0) { - bit_commitment_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.bit_commitment_); + bit_commitment_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.bit_commitment_); } if (from.per_bit_blinding_factor_commitment().size() > 0) { - per_bit_blinding_factor_commitment_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.per_bit_blinding_factor_commitment_); + per_bit_blinding_factor_commitment_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.per_bit_blinding_factor_commitment_); } if (from.poly_commitment_t1().size() > 0) { - poly_commitment_t1_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.poly_commitment_t1_); + poly_commitment_t1_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.poly_commitment_t1_); } if (from.poly_commitment_t2().size() > 0) { - poly_commitment_t2_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.poly_commitment_t2_); + poly_commitment_t2_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.poly_commitment_t2_); } if (from.proof_of_share_tau().size() > 0) { - proof_of_share_tau_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.proof_of_share_tau_); + proof_of_share_tau_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.proof_of_share_tau_); } if (from.proof_of_share_mu().size() > 0) { - proof_of_share_mu_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.proof_of_share_mu_); + proof_of_share_mu_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.proof_of_share_mu_); } if (from.a_prime_0().size() > 0) { - a_prime_0_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.a_prime_0_); + a_prime_0_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.a_prime_0_); } if (from.b_prime_0().size() > 0) { - b_prime_0_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.b_prime_0_); + b_prime_0_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.b_prime_0_); } if (from.t().size() > 0) { - t_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.t_); + t_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.t_); } } -void RangeProof::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void RangeProof::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Transaction.RangeProof) if (&from == this) return; Clear(); @@ -1845,55 +2773,673 @@ bool RangeProof::IsInitialized() const { return true; } +void RangeProof::Swap(RangeProof* other) { + if (other == this) return; + InternalSwap(other); +} void RangeProof::InternalSwap(RangeProof* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - value_commitment_.InternalSwap(&other->value_commitment_); - aggregated_vector_polynomial_l_.InternalSwap(&other->aggregated_vector_polynomial_l_); - aggregated_vector_polynomial_r_.InternalSwap(&other->aggregated_vector_polynomial_r_); - bit_commitment_.Swap(&other->bit_commitment_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - per_bit_blinding_factor_commitment_.Swap(&other->per_bit_blinding_factor_commitment_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - poly_commitment_t1_.Swap(&other->poly_commitment_t1_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - poly_commitment_t2_.Swap(&other->poly_commitment_t2_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - proof_of_share_tau_.Swap(&other->proof_of_share_tau_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - proof_of_share_mu_.Swap(&other->proof_of_share_mu_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - a_prime_0_.Swap(&other->a_prime_0_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - b_prime_0_.Swap(&other->b_prime_0_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - t_.Swap(&other->t_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata RangeProof::GetMetadata() const { - return GetMetadataStatic(); + value_commitment_.UnsafeArenaSwap(&other->value_commitment_); + aggregated_vector_polynomial_l_.UnsafeArenaSwap(&other->aggregated_vector_polynomial_l_); + aggregated_vector_polynomial_r_.UnsafeArenaSwap(&other->aggregated_vector_polynomial_r_); + bit_commitment_.Swap(&other->bit_commitment_); + per_bit_blinding_factor_commitment_.Swap(&other->per_bit_blinding_factor_commitment_); + poly_commitment_t1_.Swap(&other->poly_commitment_t1_); + poly_commitment_t2_.Swap(&other->poly_commitment_t2_); + proof_of_share_tau_.Swap(&other->proof_of_share_tau_); + proof_of_share_mu_.Swap(&other->proof_of_share_mu_); + a_prime_0_.Swap(&other->a_prime_0_); + b_prime_0_.Swap(&other->b_prime_0_); + t_.Swap(&other->t_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata RangeProof::GetMetadata() const { + protobuf_Transaction_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Transaction_2eproto::file_level_metadata[3]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// RangeProof + +// repeated bytes value_commitment = 1; +int RangeProof::value_commitment_size() const { + return value_commitment_.size(); +} +void RangeProof::clear_value_commitment() { + value_commitment_.Clear(); +} +const ::std::string& RangeProof::value_commitment(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.value_commitment) + return value_commitment_.Get(index); +} +::std::string* RangeProof::mutable_value_commitment(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.value_commitment) + return value_commitment_.Mutable(index); +} +void RangeProof::set_value_commitment(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.value_commitment) + value_commitment_.Mutable(index)->assign(value); +} +void RangeProof::set_value_commitment(int index, const char* value) { + value_commitment_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.value_commitment) +} +void RangeProof::set_value_commitment(int index, const void* value, size_t size) { + value_commitment_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.value_commitment) +} +::std::string* RangeProof::add_value_commitment() { + // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Transaction.RangeProof.value_commitment) + return value_commitment_.Add(); +} +void RangeProof::add_value_commitment(const ::std::string& value) { + value_commitment_.Add()->assign(value); + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Transaction.RangeProof.value_commitment) +} +void RangeProof::add_value_commitment(const char* value) { + value_commitment_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:Catalyst.Protocol.Transaction.RangeProof.value_commitment) +} +void RangeProof::add_value_commitment(const void* value, size_t size) { + value_commitment_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:Catalyst.Protocol.Transaction.RangeProof.value_commitment) +} +const ::google::protobuf::RepeatedPtrField< ::std::string>& +RangeProof::value_commitment() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.Transaction.RangeProof.value_commitment) + return value_commitment_; +} +::google::protobuf::RepeatedPtrField< ::std::string>* +RangeProof::mutable_value_commitment() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Transaction.RangeProof.value_commitment) + return &value_commitment_; +} + +// bytes bit_commitment = 2; +void RangeProof::clear_bit_commitment() { + bit_commitment_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& RangeProof::bit_commitment() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) + return bit_commitment_.GetNoArena(); +} +void RangeProof::set_bit_commitment(const ::std::string& value) { + + bit_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) +} +#if LANG_CXX11 +void RangeProof::set_bit_commitment(::std::string&& value) { + + bit_commitment_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) +} +#endif +void RangeProof::set_bit_commitment(const char* value) { + + bit_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) +} +void RangeProof::set_bit_commitment(const void* value, size_t size) { + + bit_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) +} +::std::string* RangeProof::mutable_bit_commitment() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) + return bit_commitment_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* RangeProof::release_bit_commitment() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) + + return bit_commitment_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void RangeProof::set_allocated_bit_commitment(::std::string* bit_commitment) { + if (bit_commitment != NULL) { + + } else { + + } + bit_commitment_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bit_commitment); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) +} + +// bytes per_bit_blinding_factor_commitment = 3; +void RangeProof::clear_per_bit_blinding_factor_commitment() { + per_bit_blinding_factor_commitment_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& RangeProof::per_bit_blinding_factor_commitment() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) + return per_bit_blinding_factor_commitment_.GetNoArena(); +} +void RangeProof::set_per_bit_blinding_factor_commitment(const ::std::string& value) { + + per_bit_blinding_factor_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) +} +#if LANG_CXX11 +void RangeProof::set_per_bit_blinding_factor_commitment(::std::string&& value) { + + per_bit_blinding_factor_commitment_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) +} +#endif +void RangeProof::set_per_bit_blinding_factor_commitment(const char* value) { + + per_bit_blinding_factor_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) +} +void RangeProof::set_per_bit_blinding_factor_commitment(const void* value, size_t size) { + + per_bit_blinding_factor_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) +} +::std::string* RangeProof::mutable_per_bit_blinding_factor_commitment() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) + return per_bit_blinding_factor_commitment_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* RangeProof::release_per_bit_blinding_factor_commitment() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) + + return per_bit_blinding_factor_commitment_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void RangeProof::set_allocated_per_bit_blinding_factor_commitment(::std::string* per_bit_blinding_factor_commitment) { + if (per_bit_blinding_factor_commitment != NULL) { + + } else { + + } + per_bit_blinding_factor_commitment_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), per_bit_blinding_factor_commitment); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) +} + +// bytes poly_commitment_t1 = 4; +void RangeProof::clear_poly_commitment_t1() { + poly_commitment_t1_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& RangeProof::poly_commitment_t1() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) + return poly_commitment_t1_.GetNoArena(); +} +void RangeProof::set_poly_commitment_t1(const ::std::string& value) { + + poly_commitment_t1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) +} +#if LANG_CXX11 +void RangeProof::set_poly_commitment_t1(::std::string&& value) { + + poly_commitment_t1_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) +} +#endif +void RangeProof::set_poly_commitment_t1(const char* value) { + + poly_commitment_t1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) +} +void RangeProof::set_poly_commitment_t1(const void* value, size_t size) { + + poly_commitment_t1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) +} +::std::string* RangeProof::mutable_poly_commitment_t1() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) + return poly_commitment_t1_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* RangeProof::release_poly_commitment_t1() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) + + return poly_commitment_t1_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void RangeProof::set_allocated_poly_commitment_t1(::std::string* poly_commitment_t1) { + if (poly_commitment_t1 != NULL) { + + } else { + + } + poly_commitment_t1_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), poly_commitment_t1); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) +} + +// bytes poly_commitment_t2 = 5; +void RangeProof::clear_poly_commitment_t2() { + poly_commitment_t2_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& RangeProof::poly_commitment_t2() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) + return poly_commitment_t2_.GetNoArena(); +} +void RangeProof::set_poly_commitment_t2(const ::std::string& value) { + + poly_commitment_t2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) +} +#if LANG_CXX11 +void RangeProof::set_poly_commitment_t2(::std::string&& value) { + + poly_commitment_t2_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) +} +#endif +void RangeProof::set_poly_commitment_t2(const char* value) { + + poly_commitment_t2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) +} +void RangeProof::set_poly_commitment_t2(const void* value, size_t size) { + + poly_commitment_t2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) +} +::std::string* RangeProof::mutable_poly_commitment_t2() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) + return poly_commitment_t2_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* RangeProof::release_poly_commitment_t2() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) + + return poly_commitment_t2_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void RangeProof::set_allocated_poly_commitment_t2(::std::string* poly_commitment_t2) { + if (poly_commitment_t2 != NULL) { + + } else { + + } + poly_commitment_t2_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), poly_commitment_t2); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) +} + +// bytes proof_of_share_tau = 6; +void RangeProof::clear_proof_of_share_tau() { + proof_of_share_tau_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& RangeProof::proof_of_share_tau() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) + return proof_of_share_tau_.GetNoArena(); +} +void RangeProof::set_proof_of_share_tau(const ::std::string& value) { + + proof_of_share_tau_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) +} +#if LANG_CXX11 +void RangeProof::set_proof_of_share_tau(::std::string&& value) { + + proof_of_share_tau_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) +} +#endif +void RangeProof::set_proof_of_share_tau(const char* value) { + + proof_of_share_tau_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) +} +void RangeProof::set_proof_of_share_tau(const void* value, size_t size) { + + proof_of_share_tau_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) +} +::std::string* RangeProof::mutable_proof_of_share_tau() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) + return proof_of_share_tau_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* RangeProof::release_proof_of_share_tau() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) + + return proof_of_share_tau_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void RangeProof::set_allocated_proof_of_share_tau(::std::string* proof_of_share_tau) { + if (proof_of_share_tau != NULL) { + + } else { + + } + proof_of_share_tau_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), proof_of_share_tau); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) +} + +// bytes proof_of_share_mu = 7; +void RangeProof::clear_proof_of_share_mu() { + proof_of_share_mu_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& RangeProof::proof_of_share_mu() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) + return proof_of_share_mu_.GetNoArena(); +} +void RangeProof::set_proof_of_share_mu(const ::std::string& value) { + + proof_of_share_mu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) +} +#if LANG_CXX11 +void RangeProof::set_proof_of_share_mu(::std::string&& value) { + + proof_of_share_mu_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) +} +#endif +void RangeProof::set_proof_of_share_mu(const char* value) { + + proof_of_share_mu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) +} +void RangeProof::set_proof_of_share_mu(const void* value, size_t size) { + + proof_of_share_mu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) +} +::std::string* RangeProof::mutable_proof_of_share_mu() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) + return proof_of_share_mu_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* RangeProof::release_proof_of_share_mu() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) + + return proof_of_share_mu_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void RangeProof::set_allocated_proof_of_share_mu(::std::string* proof_of_share_mu) { + if (proof_of_share_mu != NULL) { + + } else { + + } + proof_of_share_mu_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), proof_of_share_mu); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) } +// repeated bytes aggregated_vector_polynomial_l = 8; +int RangeProof::aggregated_vector_polynomial_l_size() const { + return aggregated_vector_polynomial_l_.size(); +} +void RangeProof::clear_aggregated_vector_polynomial_l() { + aggregated_vector_polynomial_l_.Clear(); +} +const ::std::string& RangeProof::aggregated_vector_polynomial_l(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) + return aggregated_vector_polynomial_l_.Get(index); +} +::std::string* RangeProof::mutable_aggregated_vector_polynomial_l(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) + return aggregated_vector_polynomial_l_.Mutable(index); +} +void RangeProof::set_aggregated_vector_polynomial_l(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) + aggregated_vector_polynomial_l_.Mutable(index)->assign(value); +} +void RangeProof::set_aggregated_vector_polynomial_l(int index, const char* value) { + aggregated_vector_polynomial_l_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) +} +void RangeProof::set_aggregated_vector_polynomial_l(int index, const void* value, size_t size) { + aggregated_vector_polynomial_l_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) +} +::std::string* RangeProof::add_aggregated_vector_polynomial_l() { + // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) + return aggregated_vector_polynomial_l_.Add(); +} +void RangeProof::add_aggregated_vector_polynomial_l(const ::std::string& value) { + aggregated_vector_polynomial_l_.Add()->assign(value); + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) +} +void RangeProof::add_aggregated_vector_polynomial_l(const char* value) { + aggregated_vector_polynomial_l_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) +} +void RangeProof::add_aggregated_vector_polynomial_l(const void* value, size_t size) { + aggregated_vector_polynomial_l_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) +} +const ::google::protobuf::RepeatedPtrField< ::std::string>& +RangeProof::aggregated_vector_polynomial_l() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) + return aggregated_vector_polynomial_l_; +} +::google::protobuf::RepeatedPtrField< ::std::string>* +RangeProof::mutable_aggregated_vector_polynomial_l() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) + return &aggregated_vector_polynomial_l_; +} + +// repeated bytes aggregated_vector_polynomial_r = 9; +int RangeProof::aggregated_vector_polynomial_r_size() const { + return aggregated_vector_polynomial_r_.size(); +} +void RangeProof::clear_aggregated_vector_polynomial_r() { + aggregated_vector_polynomial_r_.Clear(); +} +const ::std::string& RangeProof::aggregated_vector_polynomial_r(int index) const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) + return aggregated_vector_polynomial_r_.Get(index); +} +::std::string* RangeProof::mutable_aggregated_vector_polynomial_r(int index) { + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) + return aggregated_vector_polynomial_r_.Mutable(index); +} +void RangeProof::set_aggregated_vector_polynomial_r(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) + aggregated_vector_polynomial_r_.Mutable(index)->assign(value); +} +void RangeProof::set_aggregated_vector_polynomial_r(int index, const char* value) { + aggregated_vector_polynomial_r_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) +} +void RangeProof::set_aggregated_vector_polynomial_r(int index, const void* value, size_t size) { + aggregated_vector_polynomial_r_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) +} +::std::string* RangeProof::add_aggregated_vector_polynomial_r() { + // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) + return aggregated_vector_polynomial_r_.Add(); +} +void RangeProof::add_aggregated_vector_polynomial_r(const ::std::string& value) { + aggregated_vector_polynomial_r_.Add()->assign(value); + // @@protoc_insertion_point(field_add:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) +} +void RangeProof::add_aggregated_vector_polynomial_r(const char* value) { + aggregated_vector_polynomial_r_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) +} +void RangeProof::add_aggregated_vector_polynomial_r(const void* value, size_t size) { + aggregated_vector_polynomial_r_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) +} +const ::google::protobuf::RepeatedPtrField< ::std::string>& +RangeProof::aggregated_vector_polynomial_r() const { + // @@protoc_insertion_point(field_list:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) + return aggregated_vector_polynomial_r_; +} +::google::protobuf::RepeatedPtrField< ::std::string>* +RangeProof::mutable_aggregated_vector_polynomial_r() { + // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) + return &aggregated_vector_polynomial_r_; +} + +// bytes a_prime_0 = 10; +void RangeProof::clear_a_prime_0() { + a_prime_0_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& RangeProof::a_prime_0() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) + return a_prime_0_.GetNoArena(); +} +void RangeProof::set_a_prime_0(const ::std::string& value) { + + a_prime_0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) +} +#if LANG_CXX11 +void RangeProof::set_a_prime_0(::std::string&& value) { + + a_prime_0_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) +} +#endif +void RangeProof::set_a_prime_0(const char* value) { + + a_prime_0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) +} +void RangeProof::set_a_prime_0(const void* value, size_t size) { + + a_prime_0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) +} +::std::string* RangeProof::mutable_a_prime_0() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) + return a_prime_0_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* RangeProof::release_a_prime_0() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) + + return a_prime_0_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void RangeProof::set_allocated_a_prime_0(::std::string* a_prime_0) { + if (a_prime_0 != NULL) { + + } else { + + } + a_prime_0_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), a_prime_0); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) +} + +// bytes b_prime_0 = 11; +void RangeProof::clear_b_prime_0() { + b_prime_0_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& RangeProof::b_prime_0() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) + return b_prime_0_.GetNoArena(); +} +void RangeProof::set_b_prime_0(const ::std::string& value) { + + b_prime_0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) +} +#if LANG_CXX11 +void RangeProof::set_b_prime_0(::std::string&& value) { + + b_prime_0_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) +} +#endif +void RangeProof::set_b_prime_0(const char* value) { + + b_prime_0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) +} +void RangeProof::set_b_prime_0(const void* value, size_t size) { + + b_prime_0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) +} +::std::string* RangeProof::mutable_b_prime_0() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) + return b_prime_0_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* RangeProof::release_b_prime_0() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) + + return b_prime_0_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void RangeProof::set_allocated_b_prime_0(::std::string* b_prime_0) { + if (b_prime_0 != NULL) { + + } else { + + } + b_prime_0_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), b_prime_0); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) +} + +// bytes t = 12; +void RangeProof::clear_t() { + t_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& RangeProof::t() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.t) + return t_.GetNoArena(); +} +void RangeProof::set_t(const ::std::string& value) { + + t_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.t) +} +#if LANG_CXX11 +void RangeProof::set_t(::std::string&& value) { + + t_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.t) +} +#endif +void RangeProof::set_t(const char* value) { + + t_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.t) +} +void RangeProof::set_t(const void* value, size_t size) { + + t_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.t) +} +::std::string* RangeProof::mutable_t() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.t) + return t_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* RangeProof::release_t() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.t) + + return t_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void RangeProof::set_allocated_t(::std::string* t) { + if (t != NULL) { + + } else { + + } + t_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), t); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.t) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) + } // namespace Transaction } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Transaction::PublicEntry* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Transaction::PublicEntry >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Transaction::PublicEntry >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Transaction::ConfidentialEntry* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Transaction::ConfidentialEntry >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Transaction::ConfidentialEntry >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Transaction::CoinbaseEntry* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Transaction::CoinbaseEntry >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Transaction::CoinbaseEntry >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Transaction::RangeProof* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Transaction::RangeProof >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Transaction::RangeProof >(arena); -} -PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include diff --git a/packages/sdk-cpp/src/Transaction.pb.h b/packages/sdk-cpp/src/Transaction.pb.h index 0dc842d..cc22b8f 100644 --- a/packages/sdk-cpp/src/Transaction.pb.h +++ b/packages/sdk-cpp/src/Transaction.pb.h @@ -1,64 +1,49 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Transaction.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_Transaction_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_Transaction_2eproto +#ifndef PROTOBUF_Transaction_2eproto__INCLUDED +#define PROTOBUF_Transaction_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3011000 +#include + +#if GOOGLE_PROTOBUF_VERSION < 3002000 #error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update +#error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3002000 < GOOGLE_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 incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif -#include #include #include #include -#include #include -#include #include -#include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include #include "Cryptography.pb.h" -#include // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_Transaction_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_Transaction_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Transaction_2eproto; namespace Catalyst { namespace Protocol { +namespace Cryptography { +class Signature; +class SignatureDefaultTypeInternal; +extern SignatureDefaultTypeInternal _Signature_default_instance_; +class SignatureBatch; +class SignatureBatchDefaultTypeInternal; +extern SignatureBatchDefaultTypeInternal _SignatureBatch_default_instance_; +class SigningContext; +class SigningContextDefaultTypeInternal; +extern SigningContextDefaultTypeInternal _SigningContext_default_instance_; +} // namespace Cryptography namespace Transaction { class CoinbaseEntry; class CoinbaseEntryDefaultTypeInternal; @@ -75,1489 +60,1072 @@ extern RangeProofDefaultTypeInternal _RangeProof_default_instance_; } // namespace Transaction } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> ::Catalyst::Protocol::Transaction::CoinbaseEntry* Arena::CreateMaybeMessage<::Catalyst::Protocol::Transaction::CoinbaseEntry>(Arena*); -template<> ::Catalyst::Protocol::Transaction::ConfidentialEntry* Arena::CreateMaybeMessage<::Catalyst::Protocol::Transaction::ConfidentialEntry>(Arena*); -template<> ::Catalyst::Protocol::Transaction::PublicEntry* Arena::CreateMaybeMessage<::Catalyst::Protocol::Transaction::PublicEntry>(Arena*); -template<> ::Catalyst::Protocol::Transaction::RangeProof* Arena::CreateMaybeMessage<::Catalyst::Protocol::Transaction::RangeProof>(Arena*); -PROTOBUF_NAMESPACE_CLOSE + namespace Catalyst { namespace Protocol { namespace Transaction { -enum TransactionType : int { +namespace protobuf_Transaction_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::uint32 offsets[]; + static void InitDefaultsImpl(); + static void Shutdown(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_Transaction_2eproto + +enum TransactionType { TRANSACTION_TYPE_UNKNOWN = 0, PUBLIC = 1, CONFIDENTIAL = 2, - TransactionType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - TransactionType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + TransactionType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + TransactionType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max }; bool TransactionType_IsValid(int value); -constexpr TransactionType TransactionType_MIN = TRANSACTION_TYPE_UNKNOWN; -constexpr TransactionType TransactionType_MAX = CONFIDENTIAL; -constexpr int TransactionType_ARRAYSIZE = TransactionType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TransactionType_descriptor(); -template -inline const std::string& TransactionType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function TransactionType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - TransactionType_descriptor(), enum_t_value); +const TransactionType TransactionType_MIN = TRANSACTION_TYPE_UNKNOWN; +const TransactionType TransactionType_MAX = CONFIDENTIAL; +const int TransactionType_ARRAYSIZE = TransactionType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TransactionType_descriptor(); +inline const ::std::string& TransactionType_Name(TransactionType value) { + return ::google::protobuf::internal::NameOfEnum( + TransactionType_descriptor(), value); } inline bool TransactionType_Parse( - const std::string& name, TransactionType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + const ::std::string& name, TransactionType* value) { + return ::google::protobuf::internal::ParseNamedEnum( TransactionType_descriptor(), name, value); } // =================================================================== -class PublicEntry : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Transaction.PublicEntry) */ { +class PublicEntry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Transaction.PublicEntry) */ { public: PublicEntry(); virtual ~PublicEntry(); PublicEntry(const PublicEntry& from); - PublicEntry(PublicEntry&& from) noexcept - : PublicEntry() { - *this = ::std::move(from); - } inline PublicEntry& operator=(const PublicEntry& from) { CopyFrom(from); return *this; } - inline PublicEntry& operator=(PublicEntry&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const PublicEntry& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PublicEntry* internal_default_instance() { return reinterpret_cast( &_PublicEntry_default_instance_); } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(PublicEntry& a, PublicEntry& b) { - a.Swap(&b); - } - inline void Swap(PublicEntry* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(PublicEntry* other); // implements Message ---------------------------------------------- - inline PublicEntry* New() const final { - return CreateMaybeMessage(nullptr); - } + inline PublicEntry* New() const PROTOBUF_FINAL { return New(NULL); } - PublicEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + PublicEntry* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const PublicEntry& from); void MergeFrom(const PublicEntry& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(PublicEntry* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Transaction.PublicEntry"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Transaction_2eproto); - return ::descriptor_table_Transaction_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kReceiverAddressFieldNumber = 1, - kSenderAddressFieldNumber = 2, - kAmountFieldNumber = 3, - kDataFieldNumber = 4, - kGasPriceFieldNumber = 6, - kTimestampFieldNumber = 5, - kSignatureFieldNumber = 10, - kGasLimitFieldNumber = 7, - kNonceFieldNumber = 9, - }; // bytes receiver_address = 1; void clear_receiver_address(); - const std::string& receiver_address() const; - void set_receiver_address(const std::string& value); - void set_receiver_address(std::string&& value); + static const int kReceiverAddressFieldNumber = 1; + const ::std::string& receiver_address() const; + void set_receiver_address(const ::std::string& value); + #if LANG_CXX11 + void set_receiver_address(::std::string&& value); + #endif void set_receiver_address(const char* value); void set_receiver_address(const void* value, size_t size); - std::string* mutable_receiver_address(); - std::string* release_receiver_address(); - void set_allocated_receiver_address(std::string* receiver_address); - private: - const std::string& _internal_receiver_address() const; - void _internal_set_receiver_address(const std::string& value); - std::string* _internal_mutable_receiver_address(); - public: + ::std::string* mutable_receiver_address(); + ::std::string* release_receiver_address(); + void set_allocated_receiver_address(::std::string* receiver_address); // bytes sender_address = 2; void clear_sender_address(); - const std::string& sender_address() const; - void set_sender_address(const std::string& value); - void set_sender_address(std::string&& value); + static const int kSenderAddressFieldNumber = 2; + const ::std::string& sender_address() const; + void set_sender_address(const ::std::string& value); + #if LANG_CXX11 + void set_sender_address(::std::string&& value); + #endif void set_sender_address(const char* value); void set_sender_address(const void* value, size_t size); - std::string* mutable_sender_address(); - std::string* release_sender_address(); - void set_allocated_sender_address(std::string* sender_address); - private: - const std::string& _internal_sender_address() const; - void _internal_set_sender_address(const std::string& value); - std::string* _internal_mutable_sender_address(); - public: + ::std::string* mutable_sender_address(); + ::std::string* release_sender_address(); + void set_allocated_sender_address(::std::string* sender_address); // bytes amount = 3; void clear_amount(); - const std::string& amount() const; - void set_amount(const std::string& value); - void set_amount(std::string&& value); + static const int kAmountFieldNumber = 3; + const ::std::string& amount() const; + void set_amount(const ::std::string& value); + #if LANG_CXX11 + void set_amount(::std::string&& value); + #endif void set_amount(const char* value); void set_amount(const void* value, size_t size); - std::string* mutable_amount(); - std::string* release_amount(); - void set_allocated_amount(std::string* amount); - private: - const std::string& _internal_amount() const; - void _internal_set_amount(const std::string& value); - std::string* _internal_mutable_amount(); - public: + ::std::string* mutable_amount(); + ::std::string* release_amount(); + void set_allocated_amount(::std::string* amount); // bytes data = 4; void clear_data(); - const std::string& data() const; - void set_data(const std::string& value); - void set_data(std::string&& value); + static const int kDataFieldNumber = 4; + const ::std::string& data() const; + void set_data(const ::std::string& value); + #if LANG_CXX11 + void set_data(::std::string&& value); + #endif void set_data(const char* value); void set_data(const void* value, size_t size); - std::string* mutable_data(); - std::string* release_data(); - void set_allocated_data(std::string* data); - private: - const std::string& _internal_data() const; - void _internal_set_data(const std::string& value); - std::string* _internal_mutable_data(); - public: + ::std::string* mutable_data(); + ::std::string* release_data(); + void set_allocated_data(::std::string* data); - // bytes gas_price = 6; + // bytes gas_price = 5; void clear_gas_price(); - const std::string& gas_price() const; - void set_gas_price(const std::string& value); - void set_gas_price(std::string&& value); + static const int kGasPriceFieldNumber = 5; + const ::std::string& gas_price() const; + void set_gas_price(const ::std::string& value); + #if LANG_CXX11 + void set_gas_price(::std::string&& value); + #endif void set_gas_price(const char* value); void set_gas_price(const void* value, size_t size); - std::string* mutable_gas_price(); - std::string* release_gas_price(); - void set_allocated_gas_price(std::string* gas_price); - private: - const std::string& _internal_gas_price() const; - void _internal_set_gas_price(const std::string& value); - std::string* _internal_mutable_gas_price(); - public: + ::std::string* mutable_gas_price(); + ::std::string* release_gas_price(); + void set_allocated_gas_price(::std::string* gas_price); - // .google.protobuf.Timestamp timestamp = 5; - bool has_timestamp() const; - private: - bool _internal_has_timestamp() const; - public: - void clear_timestamp(); - const PROTOBUF_NAMESPACE_ID::Timestamp& timestamp() const; - PROTOBUF_NAMESPACE_ID::Timestamp* release_timestamp(); - PROTOBUF_NAMESPACE_ID::Timestamp* mutable_timestamp(); - void set_allocated_timestamp(PROTOBUF_NAMESPACE_ID::Timestamp* timestamp); - private: - const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_timestamp() const; - PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_timestamp(); - public: - - // .Catalyst.Protocol.Cryptography.Signature signature = 10; + // .Catalyst.Protocol.Cryptography.Signature signature = 8; bool has_signature() const; - private: - bool _internal_has_signature() const; - public: void clear_signature(); + static const int kSignatureFieldNumber = 8; const ::Catalyst::Protocol::Cryptography::Signature& signature() const; - ::Catalyst::Protocol::Cryptography::Signature* release_signature(); ::Catalyst::Protocol::Cryptography::Signature* mutable_signature(); + ::Catalyst::Protocol::Cryptography::Signature* release_signature(); void set_allocated_signature(::Catalyst::Protocol::Cryptography::Signature* signature); - private: - const ::Catalyst::Protocol::Cryptography::Signature& _internal_signature() const; - ::Catalyst::Protocol::Cryptography::Signature* _internal_mutable_signature(); - public: - // uint64 gas_limit = 7; + // uint64 gas_limit = 6; void clear_gas_limit(); - ::PROTOBUF_NAMESPACE_ID::uint64 gas_limit() const; - void set_gas_limit(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_gas_limit() const; - void _internal_set_gas_limit(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: + static const int kGasLimitFieldNumber = 6; + ::google::protobuf::uint64 gas_limit() const; + void set_gas_limit(::google::protobuf::uint64 value); - // uint64 nonce = 9; + // uint64 nonce = 7; void clear_nonce(); - ::PROTOBUF_NAMESPACE_ID::uint64 nonce() const; - void set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_nonce() const; - void _internal_set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: + static const int kNonceFieldNumber = 7; + ::google::protobuf::uint64 nonce() const; + void set_nonce(::google::protobuf::uint64 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Transaction.PublicEntry) private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr receiver_address_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sender_address_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr gas_price_; - PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr receiver_address_; + ::google::protobuf::internal::ArenaStringPtr sender_address_; + ::google::protobuf::internal::ArenaStringPtr amount_; + ::google::protobuf::internal::ArenaStringPtr data_; + ::google::protobuf::internal::ArenaStringPtr gas_price_; ::Catalyst::Protocol::Cryptography::Signature* signature_; - ::PROTOBUF_NAMESPACE_ID::uint64 gas_limit_; - ::PROTOBUF_NAMESPACE_ID::uint64 nonce_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Transaction_2eproto; + ::google::protobuf::uint64 gas_limit_; + ::google::protobuf::uint64 nonce_; + mutable int _cached_size_; + friend struct protobuf_Transaction_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class ConfidentialEntry : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Transaction.ConfidentialEntry) */ { +class ConfidentialEntry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Transaction.ConfidentialEntry) */ { public: ConfidentialEntry(); virtual ~ConfidentialEntry(); ConfidentialEntry(const ConfidentialEntry& from); - ConfidentialEntry(ConfidentialEntry&& from) noexcept - : ConfidentialEntry() { - *this = ::std::move(from); - } inline ConfidentialEntry& operator=(const ConfidentialEntry& from) { CopyFrom(from); return *this; } - inline ConfidentialEntry& operator=(ConfidentialEntry&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const ConfidentialEntry& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ConfidentialEntry* internal_default_instance() { return reinterpret_cast( &_ConfidentialEntry_default_instance_); } - static constexpr int kIndexInFileMessages = - 1; - friend void swap(ConfidentialEntry& a, ConfidentialEntry& b) { - a.Swap(&b); - } - inline void Swap(ConfidentialEntry* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(ConfidentialEntry* other); // implements Message ---------------------------------------------- - inline ConfidentialEntry* New() const final { - return CreateMaybeMessage(nullptr); - } + inline ConfidentialEntry* New() const PROTOBUF_FINAL { return New(NULL); } - ConfidentialEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + ConfidentialEntry* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ConfidentialEntry& from); void MergeFrom(const ConfidentialEntry& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ConfidentialEntry* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Transaction.ConfidentialEntry"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Transaction_2eproto); - return ::descriptor_table_Transaction_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kReceiverPublicKeyFieldNumber = 1, - kSenderPublicKeyFieldNumber = 2, - kPedersenCommitmentFieldNumber = 3, - kTransactionFeesFieldNumber = 5, - kRangeProofFieldNumber = 4, - kNonceFieldNumber = 6, - }; // bytes receiver_public_key = 1; void clear_receiver_public_key(); - const std::string& receiver_public_key() const; - void set_receiver_public_key(const std::string& value); - void set_receiver_public_key(std::string&& value); + static const int kReceiverPublicKeyFieldNumber = 1; + const ::std::string& receiver_public_key() const; + void set_receiver_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_receiver_public_key(::std::string&& value); + #endif void set_receiver_public_key(const char* value); void set_receiver_public_key(const void* value, size_t size); - std::string* mutable_receiver_public_key(); - std::string* release_receiver_public_key(); - void set_allocated_receiver_public_key(std::string* receiver_public_key); - private: - const std::string& _internal_receiver_public_key() const; - void _internal_set_receiver_public_key(const std::string& value); - std::string* _internal_mutable_receiver_public_key(); - public: + ::std::string* mutable_receiver_public_key(); + ::std::string* release_receiver_public_key(); + void set_allocated_receiver_public_key(::std::string* receiver_public_key); // bytes sender_public_key = 2; void clear_sender_public_key(); - const std::string& sender_public_key() const; - void set_sender_public_key(const std::string& value); - void set_sender_public_key(std::string&& value); + static const int kSenderPublicKeyFieldNumber = 2; + const ::std::string& sender_public_key() const; + void set_sender_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_sender_public_key(::std::string&& value); + #endif void set_sender_public_key(const char* value); void set_sender_public_key(const void* value, size_t size); - std::string* mutable_sender_public_key(); - std::string* release_sender_public_key(); - void set_allocated_sender_public_key(std::string* sender_public_key); - private: - const std::string& _internal_sender_public_key() const; - void _internal_set_sender_public_key(const std::string& value); - std::string* _internal_mutable_sender_public_key(); - public: + ::std::string* mutable_sender_public_key(); + ::std::string* release_sender_public_key(); + void set_allocated_sender_public_key(::std::string* sender_public_key); // bytes pedersen_commitment = 3; void clear_pedersen_commitment(); - const std::string& pedersen_commitment() const; - void set_pedersen_commitment(const std::string& value); - void set_pedersen_commitment(std::string&& value); + static const int kPedersenCommitmentFieldNumber = 3; + const ::std::string& pedersen_commitment() const; + void set_pedersen_commitment(const ::std::string& value); + #if LANG_CXX11 + void set_pedersen_commitment(::std::string&& value); + #endif void set_pedersen_commitment(const char* value); void set_pedersen_commitment(const void* value, size_t size); - std::string* mutable_pedersen_commitment(); - std::string* release_pedersen_commitment(); - void set_allocated_pedersen_commitment(std::string* pedersen_commitment); - private: - const std::string& _internal_pedersen_commitment() const; - void _internal_set_pedersen_commitment(const std::string& value); - std::string* _internal_mutable_pedersen_commitment(); - public: + ::std::string* mutable_pedersen_commitment(); + ::std::string* release_pedersen_commitment(); + void set_allocated_pedersen_commitment(::std::string* pedersen_commitment); // bytes transaction_fees = 5; void clear_transaction_fees(); - const std::string& transaction_fees() const; - void set_transaction_fees(const std::string& value); - void set_transaction_fees(std::string&& value); + static const int kTransactionFeesFieldNumber = 5; + const ::std::string& transaction_fees() const; + void set_transaction_fees(const ::std::string& value); + #if LANG_CXX11 + void set_transaction_fees(::std::string&& value); + #endif void set_transaction_fees(const char* value); void set_transaction_fees(const void* value, size_t size); - std::string* mutable_transaction_fees(); - std::string* release_transaction_fees(); - void set_allocated_transaction_fees(std::string* transaction_fees); - private: - const std::string& _internal_transaction_fees() const; - void _internal_set_transaction_fees(const std::string& value); - std::string* _internal_mutable_transaction_fees(); - public: + ::std::string* mutable_transaction_fees(); + ::std::string* release_transaction_fees(); + void set_allocated_transaction_fees(::std::string* transaction_fees); // .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; bool has_range_proof() const; - private: - bool _internal_has_range_proof() const; - public: void clear_range_proof(); + static const int kRangeProofFieldNumber = 4; const ::Catalyst::Protocol::Transaction::RangeProof& range_proof() const; - ::Catalyst::Protocol::Transaction::RangeProof* release_range_proof(); ::Catalyst::Protocol::Transaction::RangeProof* mutable_range_proof(); + ::Catalyst::Protocol::Transaction::RangeProof* release_range_proof(); void set_allocated_range_proof(::Catalyst::Protocol::Transaction::RangeProof* range_proof); - private: - const ::Catalyst::Protocol::Transaction::RangeProof& _internal_range_proof() const; - ::Catalyst::Protocol::Transaction::RangeProof* _internal_mutable_range_proof(); - public: // uint64 nonce = 6; void clear_nonce(); - ::PROTOBUF_NAMESPACE_ID::uint64 nonce() const; - void set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value); - private: - ::PROTOBUF_NAMESPACE_ID::uint64 _internal_nonce() const; - void _internal_set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value); - public: + static const int kNonceFieldNumber = 6; + ::google::protobuf::uint64 nonce() const; + void set_nonce(::google::protobuf::uint64 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Transaction.ConfidentialEntry) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr receiver_public_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sender_public_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pedersen_commitment_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr transaction_fees_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr receiver_public_key_; + ::google::protobuf::internal::ArenaStringPtr sender_public_key_; + ::google::protobuf::internal::ArenaStringPtr pedersen_commitment_; + ::google::protobuf::internal::ArenaStringPtr transaction_fees_; ::Catalyst::Protocol::Transaction::RangeProof* range_proof_; - ::PROTOBUF_NAMESPACE_ID::uint64 nonce_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Transaction_2eproto; + ::google::protobuf::uint64 nonce_; + mutable int _cached_size_; + friend struct protobuf_Transaction_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class CoinbaseEntry : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Transaction.CoinbaseEntry) */ { +class CoinbaseEntry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Transaction.CoinbaseEntry) */ { public: CoinbaseEntry(); virtual ~CoinbaseEntry(); CoinbaseEntry(const CoinbaseEntry& from); - CoinbaseEntry(CoinbaseEntry&& from) noexcept - : CoinbaseEntry() { - *this = ::std::move(from); - } inline CoinbaseEntry& operator=(const CoinbaseEntry& from) { CopyFrom(from); return *this; } - inline CoinbaseEntry& operator=(CoinbaseEntry&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const CoinbaseEntry& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CoinbaseEntry* internal_default_instance() { return reinterpret_cast( &_CoinbaseEntry_default_instance_); } - static constexpr int kIndexInFileMessages = - 2; - friend void swap(CoinbaseEntry& a, CoinbaseEntry& b) { - a.Swap(&b); - } - inline void Swap(CoinbaseEntry* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(CoinbaseEntry* other); // implements Message ---------------------------------------------- - inline CoinbaseEntry* New() const final { - return CreateMaybeMessage(nullptr); - } + inline CoinbaseEntry* New() const PROTOBUF_FINAL { return New(NULL); } - CoinbaseEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + CoinbaseEntry* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const CoinbaseEntry& from); void MergeFrom(const CoinbaseEntry& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(CoinbaseEntry* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Transaction.CoinbaseEntry"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Transaction_2eproto); - return ::descriptor_table_Transaction_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kReceiverPublicKeyFieldNumber = 1, - kAmountFieldNumber = 2, - }; // bytes receiver_public_key = 1; void clear_receiver_public_key(); - const std::string& receiver_public_key() const; - void set_receiver_public_key(const std::string& value); - void set_receiver_public_key(std::string&& value); + static const int kReceiverPublicKeyFieldNumber = 1; + const ::std::string& receiver_public_key() const; + void set_receiver_public_key(const ::std::string& value); + #if LANG_CXX11 + void set_receiver_public_key(::std::string&& value); + #endif void set_receiver_public_key(const char* value); void set_receiver_public_key(const void* value, size_t size); - std::string* mutable_receiver_public_key(); - std::string* release_receiver_public_key(); - void set_allocated_receiver_public_key(std::string* receiver_public_key); - private: - const std::string& _internal_receiver_public_key() const; - void _internal_set_receiver_public_key(const std::string& value); - std::string* _internal_mutable_receiver_public_key(); - public: + ::std::string* mutable_receiver_public_key(); + ::std::string* release_receiver_public_key(); + void set_allocated_receiver_public_key(::std::string* receiver_public_key); // bytes amount = 2; void clear_amount(); - const std::string& amount() const; - void set_amount(const std::string& value); - void set_amount(std::string&& value); + static const int kAmountFieldNumber = 2; + const ::std::string& amount() const; + void set_amount(const ::std::string& value); + #if LANG_CXX11 + void set_amount(::std::string&& value); + #endif void set_amount(const char* value); void set_amount(const void* value, size_t size); - std::string* mutable_amount(); - std::string* release_amount(); - void set_allocated_amount(std::string* amount); - private: - const std::string& _internal_amount() const; - void _internal_set_amount(const std::string& value); - std::string* _internal_mutable_amount(); - public: + ::std::string* mutable_amount(); + ::std::string* release_amount(); + void set_allocated_amount(::std::string* amount); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Transaction.CoinbaseEntry) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr receiver_public_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr amount_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Transaction_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr receiver_public_key_; + ::google::protobuf::internal::ArenaStringPtr amount_; + mutable int _cached_size_; + friend struct protobuf_Transaction_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class RangeProof : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Transaction.RangeProof) */ { +class RangeProof : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Transaction.RangeProof) */ { public: RangeProof(); virtual ~RangeProof(); RangeProof(const RangeProof& 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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const RangeProof& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RangeProof* internal_default_instance() { return reinterpret_cast( &_RangeProof_default_instance_); } - static constexpr int kIndexInFileMessages = - 3; - friend void swap(RangeProof& a, RangeProof& b) { - a.Swap(&b); - } - inline void Swap(RangeProof* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(RangeProof* other); // implements Message ---------------------------------------------- - inline RangeProof* New() const final { - return CreateMaybeMessage(nullptr); - } + inline RangeProof* New() const PROTOBUF_FINAL { return New(NULL); } - RangeProof* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + RangeProof* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const RangeProof& from); void MergeFrom(const RangeProof& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(RangeProof* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Transaction.RangeProof"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Transaction_2eproto); - return ::descriptor_table_Transaction_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kValueCommitmentFieldNumber = 1, - kAggregatedVectorPolynomialLFieldNumber = 8, - kAggregatedVectorPolynomialRFieldNumber = 9, - kBitCommitmentFieldNumber = 2, - kPerBitBlindingFactorCommitmentFieldNumber = 3, - kPolyCommitmentT1FieldNumber = 4, - kPolyCommitmentT2FieldNumber = 5, - kProofOfShareTauFieldNumber = 6, - kProofOfShareMuFieldNumber = 7, - kAPrime0FieldNumber = 10, - kBPrime0FieldNumber = 11, - kTFieldNumber = 12, - }; // repeated bytes value_commitment = 1; int value_commitment_size() const; - private: - int _internal_value_commitment_size() const; - public: void clear_value_commitment(); - const std::string& value_commitment(int index) const; - std::string* mutable_value_commitment(int index); - void set_value_commitment(int index, const std::string& value); - void set_value_commitment(int index, std::string&& value); + static const int kValueCommitmentFieldNumber = 1; + const ::std::string& value_commitment(int index) const; + ::std::string* mutable_value_commitment(int index); + void set_value_commitment(int index, const ::std::string& value); void set_value_commitment(int index, const char* value); void set_value_commitment(int index, const void* value, size_t size); - std::string* add_value_commitment(); - void add_value_commitment(const std::string& value); - void add_value_commitment(std::string&& value); + ::std::string* add_value_commitment(); + void add_value_commitment(const ::std::string& value); void add_value_commitment(const char* value); void add_value_commitment(const void* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& value_commitment() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_value_commitment(); - private: - const std::string& _internal_value_commitment(int index) const; - std::string* _internal_add_value_commitment(); - public: + const ::google::protobuf::RepeatedPtrField< ::std::string>& value_commitment() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_value_commitment(); // repeated bytes aggregated_vector_polynomial_l = 8; int aggregated_vector_polynomial_l_size() const; - private: - int _internal_aggregated_vector_polynomial_l_size() const; - public: void clear_aggregated_vector_polynomial_l(); - const std::string& aggregated_vector_polynomial_l(int index) const; - std::string* mutable_aggregated_vector_polynomial_l(int index); - void set_aggregated_vector_polynomial_l(int index, const std::string& value); - void set_aggregated_vector_polynomial_l(int index, std::string&& value); + static const int kAggregatedVectorPolynomialLFieldNumber = 8; + const ::std::string& aggregated_vector_polynomial_l(int index) const; + ::std::string* mutable_aggregated_vector_polynomial_l(int index); + void set_aggregated_vector_polynomial_l(int index, const ::std::string& value); void set_aggregated_vector_polynomial_l(int index, const char* value); void set_aggregated_vector_polynomial_l(int index, const void* value, size_t size); - std::string* add_aggregated_vector_polynomial_l(); - void add_aggregated_vector_polynomial_l(const std::string& value); - void add_aggregated_vector_polynomial_l(std::string&& value); + ::std::string* add_aggregated_vector_polynomial_l(); + void add_aggregated_vector_polynomial_l(const ::std::string& value); void add_aggregated_vector_polynomial_l(const char* value); void add_aggregated_vector_polynomial_l(const void* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& aggregated_vector_polynomial_l() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_aggregated_vector_polynomial_l(); - private: - const std::string& _internal_aggregated_vector_polynomial_l(int index) const; - std::string* _internal_add_aggregated_vector_polynomial_l(); - public: + const ::google::protobuf::RepeatedPtrField< ::std::string>& aggregated_vector_polynomial_l() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_aggregated_vector_polynomial_l(); // repeated bytes aggregated_vector_polynomial_r = 9; int aggregated_vector_polynomial_r_size() const; - private: - int _internal_aggregated_vector_polynomial_r_size() const; - public: void clear_aggregated_vector_polynomial_r(); - const std::string& aggregated_vector_polynomial_r(int index) const; - std::string* mutable_aggregated_vector_polynomial_r(int index); - void set_aggregated_vector_polynomial_r(int index, const std::string& value); - void set_aggregated_vector_polynomial_r(int index, std::string&& value); + static const int kAggregatedVectorPolynomialRFieldNumber = 9; + const ::std::string& aggregated_vector_polynomial_r(int index) const; + ::std::string* mutable_aggregated_vector_polynomial_r(int index); + void set_aggregated_vector_polynomial_r(int index, const ::std::string& value); void set_aggregated_vector_polynomial_r(int index, const char* value); void set_aggregated_vector_polynomial_r(int index, const void* value, size_t size); - std::string* add_aggregated_vector_polynomial_r(); - void add_aggregated_vector_polynomial_r(const std::string& value); - void add_aggregated_vector_polynomial_r(std::string&& value); + ::std::string* add_aggregated_vector_polynomial_r(); + void add_aggregated_vector_polynomial_r(const ::std::string& value); void add_aggregated_vector_polynomial_r(const char* value); void add_aggregated_vector_polynomial_r(const void* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& aggregated_vector_polynomial_r() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_aggregated_vector_polynomial_r(); - private: - const std::string& _internal_aggregated_vector_polynomial_r(int index) const; - std::string* _internal_add_aggregated_vector_polynomial_r(); - public: + const ::google::protobuf::RepeatedPtrField< ::std::string>& aggregated_vector_polynomial_r() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_aggregated_vector_polynomial_r(); // bytes bit_commitment = 2; void clear_bit_commitment(); - const std::string& bit_commitment() const; - void set_bit_commitment(const std::string& value); - void set_bit_commitment(std::string&& value); + static const int kBitCommitmentFieldNumber = 2; + const ::std::string& bit_commitment() const; + void set_bit_commitment(const ::std::string& value); + #if LANG_CXX11 + void set_bit_commitment(::std::string&& value); + #endif void set_bit_commitment(const char* value); void set_bit_commitment(const void* value, size_t size); - std::string* mutable_bit_commitment(); - std::string* release_bit_commitment(); - void set_allocated_bit_commitment(std::string* bit_commitment); - private: - const std::string& _internal_bit_commitment() const; - void _internal_set_bit_commitment(const std::string& value); - std::string* _internal_mutable_bit_commitment(); - public: + ::std::string* mutable_bit_commitment(); + ::std::string* release_bit_commitment(); + void set_allocated_bit_commitment(::std::string* bit_commitment); // bytes per_bit_blinding_factor_commitment = 3; void clear_per_bit_blinding_factor_commitment(); - const std::string& per_bit_blinding_factor_commitment() const; - void set_per_bit_blinding_factor_commitment(const std::string& value); - void set_per_bit_blinding_factor_commitment(std::string&& value); + static const int kPerBitBlindingFactorCommitmentFieldNumber = 3; + const ::std::string& per_bit_blinding_factor_commitment() const; + void set_per_bit_blinding_factor_commitment(const ::std::string& value); + #if LANG_CXX11 + void set_per_bit_blinding_factor_commitment(::std::string&& value); + #endif void set_per_bit_blinding_factor_commitment(const char* value); void set_per_bit_blinding_factor_commitment(const void* value, size_t size); - std::string* mutable_per_bit_blinding_factor_commitment(); - std::string* release_per_bit_blinding_factor_commitment(); - void set_allocated_per_bit_blinding_factor_commitment(std::string* per_bit_blinding_factor_commitment); - private: - const std::string& _internal_per_bit_blinding_factor_commitment() const; - void _internal_set_per_bit_blinding_factor_commitment(const std::string& value); - std::string* _internal_mutable_per_bit_blinding_factor_commitment(); - public: + ::std::string* mutable_per_bit_blinding_factor_commitment(); + ::std::string* release_per_bit_blinding_factor_commitment(); + void set_allocated_per_bit_blinding_factor_commitment(::std::string* per_bit_blinding_factor_commitment); // bytes poly_commitment_t1 = 4; void clear_poly_commitment_t1(); - const std::string& poly_commitment_t1() const; - void set_poly_commitment_t1(const std::string& value); - void set_poly_commitment_t1(std::string&& value); + static const int kPolyCommitmentT1FieldNumber = 4; + const ::std::string& poly_commitment_t1() const; + void set_poly_commitment_t1(const ::std::string& value); + #if LANG_CXX11 + void set_poly_commitment_t1(::std::string&& value); + #endif void set_poly_commitment_t1(const char* value); void set_poly_commitment_t1(const void* value, size_t size); - std::string* mutable_poly_commitment_t1(); - std::string* release_poly_commitment_t1(); - void set_allocated_poly_commitment_t1(std::string* poly_commitment_t1); - private: - const std::string& _internal_poly_commitment_t1() const; - void _internal_set_poly_commitment_t1(const std::string& value); - std::string* _internal_mutable_poly_commitment_t1(); - public: + ::std::string* mutable_poly_commitment_t1(); + ::std::string* release_poly_commitment_t1(); + void set_allocated_poly_commitment_t1(::std::string* poly_commitment_t1); // bytes poly_commitment_t2 = 5; void clear_poly_commitment_t2(); - const std::string& poly_commitment_t2() const; - void set_poly_commitment_t2(const std::string& value); - void set_poly_commitment_t2(std::string&& value); + static const int kPolyCommitmentT2FieldNumber = 5; + const ::std::string& poly_commitment_t2() const; + void set_poly_commitment_t2(const ::std::string& value); + #if LANG_CXX11 + void set_poly_commitment_t2(::std::string&& value); + #endif void set_poly_commitment_t2(const char* value); void set_poly_commitment_t2(const void* value, size_t size); - std::string* mutable_poly_commitment_t2(); - std::string* release_poly_commitment_t2(); - void set_allocated_poly_commitment_t2(std::string* poly_commitment_t2); - private: - const std::string& _internal_poly_commitment_t2() const; - void _internal_set_poly_commitment_t2(const std::string& value); - std::string* _internal_mutable_poly_commitment_t2(); - public: + ::std::string* mutable_poly_commitment_t2(); + ::std::string* release_poly_commitment_t2(); + void set_allocated_poly_commitment_t2(::std::string* poly_commitment_t2); // bytes proof_of_share_tau = 6; void clear_proof_of_share_tau(); - const std::string& proof_of_share_tau() const; - void set_proof_of_share_tau(const std::string& value); - void set_proof_of_share_tau(std::string&& value); + static const int kProofOfShareTauFieldNumber = 6; + const ::std::string& proof_of_share_tau() const; + void set_proof_of_share_tau(const ::std::string& value); + #if LANG_CXX11 + void set_proof_of_share_tau(::std::string&& value); + #endif void set_proof_of_share_tau(const char* value); void set_proof_of_share_tau(const void* value, size_t size); - std::string* mutable_proof_of_share_tau(); - std::string* release_proof_of_share_tau(); - void set_allocated_proof_of_share_tau(std::string* proof_of_share_tau); - private: - const std::string& _internal_proof_of_share_tau() const; - void _internal_set_proof_of_share_tau(const std::string& value); - std::string* _internal_mutable_proof_of_share_tau(); - public: + ::std::string* mutable_proof_of_share_tau(); + ::std::string* release_proof_of_share_tau(); + void set_allocated_proof_of_share_tau(::std::string* proof_of_share_tau); // bytes proof_of_share_mu = 7; void clear_proof_of_share_mu(); - const std::string& proof_of_share_mu() const; - void set_proof_of_share_mu(const std::string& value); - void set_proof_of_share_mu(std::string&& value); + static const int kProofOfShareMuFieldNumber = 7; + const ::std::string& proof_of_share_mu() const; + void set_proof_of_share_mu(const ::std::string& value); + #if LANG_CXX11 + void set_proof_of_share_mu(::std::string&& value); + #endif void set_proof_of_share_mu(const char* value); void set_proof_of_share_mu(const void* value, size_t size); - std::string* mutable_proof_of_share_mu(); - std::string* release_proof_of_share_mu(); - void set_allocated_proof_of_share_mu(std::string* proof_of_share_mu); - private: - const std::string& _internal_proof_of_share_mu() const; - void _internal_set_proof_of_share_mu(const std::string& value); - std::string* _internal_mutable_proof_of_share_mu(); - public: + ::std::string* mutable_proof_of_share_mu(); + ::std::string* release_proof_of_share_mu(); + void set_allocated_proof_of_share_mu(::std::string* proof_of_share_mu); // bytes a_prime_0 = 10; void clear_a_prime_0(); - const std::string& a_prime_0() const; - void set_a_prime_0(const std::string& value); - void set_a_prime_0(std::string&& value); + static const int kAPrime0FieldNumber = 10; + const ::std::string& a_prime_0() const; + void set_a_prime_0(const ::std::string& value); + #if LANG_CXX11 + void set_a_prime_0(::std::string&& value); + #endif void set_a_prime_0(const char* value); void set_a_prime_0(const void* value, size_t size); - std::string* mutable_a_prime_0(); - std::string* release_a_prime_0(); - void set_allocated_a_prime_0(std::string* a_prime_0); - private: - const std::string& _internal_a_prime_0() const; - void _internal_set_a_prime_0(const std::string& value); - std::string* _internal_mutable_a_prime_0(); - public: + ::std::string* mutable_a_prime_0(); + ::std::string* release_a_prime_0(); + void set_allocated_a_prime_0(::std::string* a_prime_0); // bytes b_prime_0 = 11; void clear_b_prime_0(); - const std::string& b_prime_0() const; - void set_b_prime_0(const std::string& value); - void set_b_prime_0(std::string&& value); + static const int kBPrime0FieldNumber = 11; + const ::std::string& b_prime_0() const; + void set_b_prime_0(const ::std::string& value); + #if LANG_CXX11 + void set_b_prime_0(::std::string&& value); + #endif void set_b_prime_0(const char* value); void set_b_prime_0(const void* value, size_t size); - std::string* mutable_b_prime_0(); - std::string* release_b_prime_0(); - void set_allocated_b_prime_0(std::string* b_prime_0); - private: - const std::string& _internal_b_prime_0() const; - void _internal_set_b_prime_0(const std::string& value); - std::string* _internal_mutable_b_prime_0(); - public: + ::std::string* mutable_b_prime_0(); + ::std::string* release_b_prime_0(); + void set_allocated_b_prime_0(::std::string* b_prime_0); // bytes t = 12; void clear_t(); - const std::string& t() const; - void set_t(const std::string& value); - void set_t(std::string&& value); + static const int kTFieldNumber = 12; + const ::std::string& t() const; + void set_t(const ::std::string& value); + #if LANG_CXX11 + void set_t(::std::string&& value); + #endif void set_t(const char* value); void set_t(const void* value, size_t size); - std::string* mutable_t(); - std::string* release_t(); - void set_allocated_t(std::string* t); - private: - const std::string& _internal_t() const; - void _internal_set_t(const std::string& value); - std::string* _internal_mutable_t(); - public: + ::std::string* mutable_t(); + ::std::string* release_t(); + void set_allocated_t(::std::string* t); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Transaction.RangeProof) private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField value_commitment_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField aggregated_vector_polynomial_l_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField aggregated_vector_polynomial_r_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bit_commitment_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr per_bit_blinding_factor_commitment_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr poly_commitment_t1_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr poly_commitment_t2_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proof_of_share_tau_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr proof_of_share_mu_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr a_prime_0_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr b_prime_0_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr t_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Transaction_2eproto; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::std::string> value_commitment_; + ::google::protobuf::RepeatedPtrField< ::std::string> aggregated_vector_polynomial_l_; + ::google::protobuf::RepeatedPtrField< ::std::string> aggregated_vector_polynomial_r_; + ::google::protobuf::internal::ArenaStringPtr bit_commitment_; + ::google::protobuf::internal::ArenaStringPtr per_bit_blinding_factor_commitment_; + ::google::protobuf::internal::ArenaStringPtr poly_commitment_t1_; + ::google::protobuf::internal::ArenaStringPtr poly_commitment_t2_; + ::google::protobuf::internal::ArenaStringPtr proof_of_share_tau_; + ::google::protobuf::internal::ArenaStringPtr proof_of_share_mu_; + ::google::protobuf::internal::ArenaStringPtr a_prime_0_; + ::google::protobuf::internal::ArenaStringPtr b_prime_0_; + ::google::protobuf::internal::ArenaStringPtr t_; + mutable int _cached_size_; + friend struct protobuf_Transaction_2eproto::TableStruct; }; // =================================================================== // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +#if !PROTOBUF_INLINE_NOT_IN_HEADERS // PublicEntry // bytes receiver_address = 1; inline void PublicEntry::clear_receiver_address() { - receiver_address_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + receiver_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& PublicEntry::receiver_address() const { +inline const ::std::string& PublicEntry::receiver_address() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) - return _internal_receiver_address(); -} -inline void PublicEntry::set_receiver_address(const std::string& value) { - _internal_set_receiver_address(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) -} -inline std::string* PublicEntry::mutable_receiver_address() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) - return _internal_mutable_receiver_address(); -} -inline const std::string& PublicEntry::_internal_receiver_address() const { return receiver_address_.GetNoArena(); } -inline void PublicEntry::_internal_set_receiver_address(const std::string& value) { +inline void PublicEntry::set_receiver_address(const ::std::string& value) { - receiver_address_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + receiver_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) } -inline void PublicEntry::set_receiver_address(std::string&& value) { +#if LANG_CXX11 +inline void PublicEntry::set_receiver_address(::std::string&& value) { receiver_address_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) } +#endif inline void PublicEntry::set_receiver_address(const char* value) { - GOOGLE_DCHECK(value != nullptr); - receiver_address_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + receiver_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) } inline void PublicEntry::set_receiver_address(const void* value, size_t size) { - receiver_address_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + receiver_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) } -inline std::string* PublicEntry::_internal_mutable_receiver_address() { +inline ::std::string* PublicEntry::mutable_receiver_address() { - return receiver_address_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) + return receiver_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* PublicEntry::release_receiver_address() { +inline ::std::string* PublicEntry::release_receiver_address() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) - return receiver_address_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return receiver_address_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PublicEntry::set_allocated_receiver_address(std::string* receiver_address) { - if (receiver_address != nullptr) { +inline void PublicEntry::set_allocated_receiver_address(::std::string* receiver_address) { + if (receiver_address != NULL) { } else { } - receiver_address_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), receiver_address); + receiver_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), receiver_address); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.receiver_address) } // bytes sender_address = 2; inline void PublicEntry::clear_sender_address() { - sender_address_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + sender_address_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& PublicEntry::sender_address() const { +inline const ::std::string& PublicEntry::sender_address() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.sender_address) - return _internal_sender_address(); -} -inline void PublicEntry::set_sender_address(const std::string& value) { - _internal_set_sender_address(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.sender_address) -} -inline std::string* PublicEntry::mutable_sender_address() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.sender_address) - return _internal_mutable_sender_address(); -} -inline const std::string& PublicEntry::_internal_sender_address() const { return sender_address_.GetNoArena(); } -inline void PublicEntry::_internal_set_sender_address(const std::string& value) { +inline void PublicEntry::set_sender_address(const ::std::string& value) { - sender_address_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + sender_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.sender_address) } -inline void PublicEntry::set_sender_address(std::string&& value) { +#if LANG_CXX11 +inline void PublicEntry::set_sender_address(::std::string&& value) { sender_address_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.PublicEntry.sender_address) } +#endif inline void PublicEntry::set_sender_address(const char* value) { - GOOGLE_DCHECK(value != nullptr); - sender_address_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + sender_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.PublicEntry.sender_address) } inline void PublicEntry::set_sender_address(const void* value, size_t size) { - sender_address_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + sender_address_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.PublicEntry.sender_address) } -inline std::string* PublicEntry::_internal_mutable_sender_address() { +inline ::std::string* PublicEntry::mutable_sender_address() { - return sender_address_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.sender_address) + return sender_address_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* PublicEntry::release_sender_address() { +inline ::std::string* PublicEntry::release_sender_address() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.sender_address) - return sender_address_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return sender_address_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PublicEntry::set_allocated_sender_address(std::string* sender_address) { - if (sender_address != nullptr) { +inline void PublicEntry::set_allocated_sender_address(::std::string* sender_address) { + if (sender_address != NULL) { } else { } - sender_address_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sender_address); + sender_address_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sender_address); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.sender_address) } // bytes amount = 3; inline void PublicEntry::clear_amount() { - amount_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& PublicEntry::amount() const { +inline const ::std::string& PublicEntry::amount() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.amount) - return _internal_amount(); -} -inline void PublicEntry::set_amount(const std::string& value) { - _internal_set_amount(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.amount) -} -inline std::string* PublicEntry::mutable_amount() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.amount) - return _internal_mutable_amount(); -} -inline const std::string& PublicEntry::_internal_amount() const { return amount_.GetNoArena(); } -inline void PublicEntry::_internal_set_amount(const std::string& value) { +inline void PublicEntry::set_amount(const ::std::string& value) { - amount_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + amount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.amount) } -inline void PublicEntry::set_amount(std::string&& value) { +#if LANG_CXX11 +inline void PublicEntry::set_amount(::std::string&& value) { amount_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.PublicEntry.amount) } +#endif inline void PublicEntry::set_amount(const char* value) { - GOOGLE_DCHECK(value != nullptr); - amount_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + amount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.PublicEntry.amount) } inline void PublicEntry::set_amount(const void* value, size_t size) { - amount_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + amount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.PublicEntry.amount) } -inline std::string* PublicEntry::_internal_mutable_amount() { +inline ::std::string* PublicEntry::mutable_amount() { - return amount_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.amount) + return amount_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* PublicEntry::release_amount() { +inline ::std::string* PublicEntry::release_amount() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.amount) - return amount_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return amount_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PublicEntry::set_allocated_amount(std::string* amount) { - if (amount != nullptr) { +inline void PublicEntry::set_allocated_amount(::std::string* amount) { + if (amount != NULL) { } else { } - amount_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount); + amount_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), amount); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.amount) } // bytes data = 4; inline void PublicEntry::clear_data() { - data_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& PublicEntry::data() const { +inline const ::std::string& PublicEntry::data() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.data) - return _internal_data(); -} -inline void PublicEntry::set_data(const std::string& value) { - _internal_set_data(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.data) -} -inline std::string* PublicEntry::mutable_data() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.data) - return _internal_mutable_data(); -} -inline const std::string& PublicEntry::_internal_data() const { return data_.GetNoArena(); } -inline void PublicEntry::_internal_set_data(const std::string& value) { +inline void PublicEntry::set_data(const ::std::string& value) { - data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.data) } -inline void PublicEntry::set_data(std::string&& value) { +#if LANG_CXX11 +inline void PublicEntry::set_data(::std::string&& value) { data_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.PublicEntry.data) } +#endif inline void PublicEntry::set_data(const char* value) { - GOOGLE_DCHECK(value != nullptr); - data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.PublicEntry.data) } inline void PublicEntry::set_data(const void* value, size_t size) { - data_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.PublicEntry.data) } -inline std::string* PublicEntry::_internal_mutable_data() { +inline ::std::string* PublicEntry::mutable_data() { - return data_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.data) + return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* PublicEntry::release_data() { +inline ::std::string* PublicEntry::release_data() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.data) - return data_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PublicEntry::set_allocated_data(std::string* data) { - if (data != nullptr) { +inline void PublicEntry::set_allocated_data(::std::string* data) { + if (data != NULL) { } else { } - data_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data); + data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.data) } -// .google.protobuf.Timestamp timestamp = 5; -inline bool PublicEntry::_internal_has_timestamp() const { - return this != internal_default_instance() && timestamp_ != nullptr; -} -inline bool PublicEntry::has_timestamp() const { - return _internal_has_timestamp(); -} -inline const PROTOBUF_NAMESPACE_ID::Timestamp& PublicEntry::_internal_timestamp() const { - const PROTOBUF_NAMESPACE_ID::Timestamp* p = timestamp_; - return p != nullptr ? *p : *reinterpret_cast( - &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_); -} -inline const PROTOBUF_NAMESPACE_ID::Timestamp& PublicEntry::timestamp() const { - // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.timestamp) - return _internal_timestamp(); -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* PublicEntry::release_timestamp() { - // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.timestamp) - - PROTOBUF_NAMESPACE_ID::Timestamp* temp = timestamp_; - timestamp_ = nullptr; - return temp; -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* PublicEntry::_internal_mutable_timestamp() { - - if (timestamp_ == nullptr) { - auto* p = CreateMaybeMessage(GetArenaNoVirtual()); - timestamp_ = p; - } - return timestamp_; -} -inline PROTOBUF_NAMESPACE_ID::Timestamp* PublicEntry::mutable_timestamp() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.timestamp) - return _internal_mutable_timestamp(); -} -inline void PublicEntry::set_allocated_timestamp(PROTOBUF_NAMESPACE_ID::Timestamp* timestamp) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(timestamp_); - } - if (timestamp) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(timestamp)->GetArena(); - if (message_arena != submessage_arena) { - timestamp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, timestamp, submessage_arena); - } - - } else { - - } - timestamp_ = timestamp; - // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.timestamp) -} - -// bytes gas_price = 6; +// bytes gas_price = 5; inline void PublicEntry::clear_gas_price() { - gas_price_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + gas_price_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& PublicEntry::gas_price() const { +inline const ::std::string& PublicEntry::gas_price() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.gas_price) - return _internal_gas_price(); -} -inline void PublicEntry::set_gas_price(const std::string& value) { - _internal_set_gas_price(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.gas_price) -} -inline std::string* PublicEntry::mutable_gas_price() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.gas_price) - return _internal_mutable_gas_price(); -} -inline const std::string& PublicEntry::_internal_gas_price() const { return gas_price_.GetNoArena(); } -inline void PublicEntry::_internal_set_gas_price(const std::string& value) { +inline void PublicEntry::set_gas_price(const ::std::string& value) { - gas_price_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + gas_price_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.gas_price) } -inline void PublicEntry::set_gas_price(std::string&& value) { +#if LANG_CXX11 +inline void PublicEntry::set_gas_price(::std::string&& value) { gas_price_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.PublicEntry.gas_price) } +#endif inline void PublicEntry::set_gas_price(const char* value) { - GOOGLE_DCHECK(value != nullptr); - gas_price_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + gas_price_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.PublicEntry.gas_price) } inline void PublicEntry::set_gas_price(const void* value, size_t size) { - gas_price_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + gas_price_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.PublicEntry.gas_price) } -inline std::string* PublicEntry::_internal_mutable_gas_price() { +inline ::std::string* PublicEntry::mutable_gas_price() { - return gas_price_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.gas_price) + return gas_price_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* PublicEntry::release_gas_price() { +inline ::std::string* PublicEntry::release_gas_price() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.gas_price) - return gas_price_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return gas_price_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void PublicEntry::set_allocated_gas_price(std::string* gas_price) { - if (gas_price != nullptr) { +inline void PublicEntry::set_allocated_gas_price(::std::string* gas_price) { + if (gas_price != NULL) { } else { } - gas_price_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), gas_price); + gas_price_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gas_price); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.gas_price) } -// uint64 gas_limit = 7; +// uint64 gas_limit = 6; inline void PublicEntry::clear_gas_limit() { - gas_limit_ = PROTOBUF_ULONGLONG(0); + gas_limit_ = GOOGLE_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PublicEntry::_internal_gas_limit() const { - return gas_limit_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 PublicEntry::gas_limit() const { +inline ::google::protobuf::uint64 PublicEntry::gas_limit() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.gas_limit) - return _internal_gas_limit(); + return gas_limit_; } -inline void PublicEntry::_internal_set_gas_limit(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void PublicEntry::set_gas_limit(::google::protobuf::uint64 value) { gas_limit_ = value; -} -inline void PublicEntry::set_gas_limit(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_gas_limit(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.gas_limit) } -// uint64 nonce = 9; +// uint64 nonce = 7; inline void PublicEntry::clear_nonce() { - nonce_ = PROTOBUF_ULONGLONG(0); + nonce_ = GOOGLE_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 PublicEntry::_internal_nonce() const { - return nonce_; -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 PublicEntry::nonce() const { +inline ::google::protobuf::uint64 PublicEntry::nonce() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.nonce) - return _internal_nonce(); + return nonce_; } -inline void PublicEntry::_internal_set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void PublicEntry::set_nonce(::google::protobuf::uint64 value) { nonce_ = value; -} -inline void PublicEntry::set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_nonce(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.PublicEntry.nonce) } -// .Catalyst.Protocol.Cryptography.Signature signature = 10; -inline bool PublicEntry::_internal_has_signature() const { - return this != internal_default_instance() && signature_ != nullptr; -} +// .Catalyst.Protocol.Cryptography.Signature signature = 8; inline bool PublicEntry::has_signature() const { - return _internal_has_signature(); + return this != internal_default_instance() && signature_ != NULL; } -inline const ::Catalyst::Protocol::Cryptography::Signature& PublicEntry::_internal_signature() const { - const ::Catalyst::Protocol::Cryptography::Signature* p = signature_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Cryptography::_Signature_default_instance_); +inline void PublicEntry::clear_signature() { + if (GetArenaNoVirtual() == NULL && signature_ != NULL) delete signature_; + signature_ = NULL; } inline const ::Catalyst::Protocol::Cryptography::Signature& PublicEntry::signature() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.PublicEntry.signature) - return _internal_signature(); + return signature_ != NULL ? *signature_ + : *::Catalyst::Protocol::Cryptography::Signature::internal_default_instance(); +} +inline ::Catalyst::Protocol::Cryptography::Signature* PublicEntry::mutable_signature() { + + if (signature_ == NULL) { + signature_ = new ::Catalyst::Protocol::Cryptography::Signature; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.signature) + return signature_; } inline ::Catalyst::Protocol::Cryptography::Signature* PublicEntry::release_signature() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.PublicEntry.signature) ::Catalyst::Protocol::Cryptography::Signature* temp = signature_; - signature_ = nullptr; + signature_ = NULL; return temp; } -inline ::Catalyst::Protocol::Cryptography::Signature* PublicEntry::_internal_mutable_signature() { - - if (signature_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Cryptography::Signature>(GetArenaNoVirtual()); - signature_ = p; - } - return signature_; -} -inline ::Catalyst::Protocol::Cryptography::Signature* PublicEntry::mutable_signature() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.PublicEntry.signature) - return _internal_mutable_signature(); -} inline void PublicEntry::set_allocated_signature(::Catalyst::Protocol::Cryptography::Signature* signature) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(signature_); - } + delete signature_; + signature_ = signature; if (signature) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - signature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, signature, submessage_arena); - } } else { } - signature_ = signature; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.PublicEntry.signature) } @@ -1567,321 +1135,262 @@ inline void PublicEntry::set_allocated_signature(::Catalyst::Protocol::Cryptogra // bytes receiver_public_key = 1; inline void ConfidentialEntry::clear_receiver_public_key() { - receiver_public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + receiver_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& ConfidentialEntry::receiver_public_key() const { +inline const ::std::string& ConfidentialEntry::receiver_public_key() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) - return _internal_receiver_public_key(); -} -inline void ConfidentialEntry::set_receiver_public_key(const std::string& value) { - _internal_set_receiver_public_key(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) -} -inline std::string* ConfidentialEntry::mutable_receiver_public_key() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) - return _internal_mutable_receiver_public_key(); -} -inline const std::string& ConfidentialEntry::_internal_receiver_public_key() const { return receiver_public_key_.GetNoArena(); } -inline void ConfidentialEntry::_internal_set_receiver_public_key(const std::string& value) { +inline void ConfidentialEntry::set_receiver_public_key(const ::std::string& value) { - receiver_public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + receiver_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) } -inline void ConfidentialEntry::set_receiver_public_key(std::string&& value) { +#if LANG_CXX11 +inline void ConfidentialEntry::set_receiver_public_key(::std::string&& value) { receiver_public_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) } +#endif inline void ConfidentialEntry::set_receiver_public_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - receiver_public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + receiver_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) } inline void ConfidentialEntry::set_receiver_public_key(const void* value, size_t size) { - receiver_public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + receiver_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) } -inline std::string* ConfidentialEntry::_internal_mutable_receiver_public_key() { +inline ::std::string* ConfidentialEntry::mutable_receiver_public_key() { - return receiver_public_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) + return receiver_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ConfidentialEntry::release_receiver_public_key() { +inline ::std::string* ConfidentialEntry::release_receiver_public_key() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) - return receiver_public_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return receiver_public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ConfidentialEntry::set_allocated_receiver_public_key(std::string* receiver_public_key) { - if (receiver_public_key != nullptr) { +inline void ConfidentialEntry::set_allocated_receiver_public_key(::std::string* receiver_public_key) { + if (receiver_public_key != NULL) { } else { } - receiver_public_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), receiver_public_key); + receiver_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), receiver_public_key); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key) } // bytes sender_public_key = 2; inline void ConfidentialEntry::clear_sender_public_key() { - sender_public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + sender_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& ConfidentialEntry::sender_public_key() const { +inline const ::std::string& ConfidentialEntry::sender_public_key() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) - return _internal_sender_public_key(); -} -inline void ConfidentialEntry::set_sender_public_key(const std::string& value) { - _internal_set_sender_public_key(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) -} -inline std::string* ConfidentialEntry::mutable_sender_public_key() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) - return _internal_mutable_sender_public_key(); -} -inline const std::string& ConfidentialEntry::_internal_sender_public_key() const { return sender_public_key_.GetNoArena(); } -inline void ConfidentialEntry::_internal_set_sender_public_key(const std::string& value) { +inline void ConfidentialEntry::set_sender_public_key(const ::std::string& value) { - sender_public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + sender_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) } -inline void ConfidentialEntry::set_sender_public_key(std::string&& value) { +#if LANG_CXX11 +inline void ConfidentialEntry::set_sender_public_key(::std::string&& value) { sender_public_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) } +#endif inline void ConfidentialEntry::set_sender_public_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - sender_public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + sender_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) } inline void ConfidentialEntry::set_sender_public_key(const void* value, size_t size) { - sender_public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + sender_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) } -inline std::string* ConfidentialEntry::_internal_mutable_sender_public_key() { +inline ::std::string* ConfidentialEntry::mutable_sender_public_key() { - return sender_public_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) + return sender_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ConfidentialEntry::release_sender_public_key() { +inline ::std::string* ConfidentialEntry::release_sender_public_key() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) - return sender_public_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return sender_public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ConfidentialEntry::set_allocated_sender_public_key(std::string* sender_public_key) { - if (sender_public_key != nullptr) { +inline void ConfidentialEntry::set_allocated_sender_public_key(::std::string* sender_public_key) { + if (sender_public_key != NULL) { } else { } - sender_public_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sender_public_key); + sender_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sender_public_key); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key) } // bytes pedersen_commitment = 3; inline void ConfidentialEntry::clear_pedersen_commitment() { - pedersen_commitment_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + pedersen_commitment_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& ConfidentialEntry::pedersen_commitment() const { +inline const ::std::string& ConfidentialEntry::pedersen_commitment() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) - return _internal_pedersen_commitment(); -} -inline void ConfidentialEntry::set_pedersen_commitment(const std::string& value) { - _internal_set_pedersen_commitment(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) -} -inline std::string* ConfidentialEntry::mutable_pedersen_commitment() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) - return _internal_mutable_pedersen_commitment(); -} -inline const std::string& ConfidentialEntry::_internal_pedersen_commitment() const { return pedersen_commitment_.GetNoArena(); } -inline void ConfidentialEntry::_internal_set_pedersen_commitment(const std::string& value) { +inline void ConfidentialEntry::set_pedersen_commitment(const ::std::string& value) { - pedersen_commitment_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + pedersen_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) } -inline void ConfidentialEntry::set_pedersen_commitment(std::string&& value) { +#if LANG_CXX11 +inline void ConfidentialEntry::set_pedersen_commitment(::std::string&& value) { pedersen_commitment_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) } +#endif inline void ConfidentialEntry::set_pedersen_commitment(const char* value) { - GOOGLE_DCHECK(value != nullptr); - pedersen_commitment_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + pedersen_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) } inline void ConfidentialEntry::set_pedersen_commitment(const void* value, size_t size) { - pedersen_commitment_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + pedersen_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) } -inline std::string* ConfidentialEntry::_internal_mutable_pedersen_commitment() { +inline ::std::string* ConfidentialEntry::mutable_pedersen_commitment() { - return pedersen_commitment_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) + return pedersen_commitment_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ConfidentialEntry::release_pedersen_commitment() { +inline ::std::string* ConfidentialEntry::release_pedersen_commitment() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) - return pedersen_commitment_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return pedersen_commitment_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ConfidentialEntry::set_allocated_pedersen_commitment(std::string* pedersen_commitment) { - if (pedersen_commitment != nullptr) { +inline void ConfidentialEntry::set_allocated_pedersen_commitment(::std::string* pedersen_commitment) { + if (pedersen_commitment != NULL) { } else { } - pedersen_commitment_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pedersen_commitment); + pedersen_commitment_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pedersen_commitment); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment) } // .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; -inline bool ConfidentialEntry::_internal_has_range_proof() const { - return this != internal_default_instance() && range_proof_ != nullptr; -} inline bool ConfidentialEntry::has_range_proof() const { - return _internal_has_range_proof(); + return this != internal_default_instance() && range_proof_ != NULL; } inline void ConfidentialEntry::clear_range_proof() { - if (GetArenaNoVirtual() == nullptr && range_proof_ != nullptr) { - delete range_proof_; - } - range_proof_ = nullptr; -} -inline const ::Catalyst::Protocol::Transaction::RangeProof& ConfidentialEntry::_internal_range_proof() const { - const ::Catalyst::Protocol::Transaction::RangeProof* p = range_proof_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Transaction::_RangeProof_default_instance_); + if (GetArenaNoVirtual() == NULL && range_proof_ != NULL) delete range_proof_; + range_proof_ = NULL; } inline const ::Catalyst::Protocol::Transaction::RangeProof& ConfidentialEntry::range_proof() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.ConfidentialEntry.range_proof) - return _internal_range_proof(); + return range_proof_ != NULL ? *range_proof_ + : *::Catalyst::Protocol::Transaction::RangeProof::internal_default_instance(); +} +inline ::Catalyst::Protocol::Transaction::RangeProof* ConfidentialEntry::mutable_range_proof() { + + if (range_proof_ == NULL) { + range_proof_ = new ::Catalyst::Protocol::Transaction::RangeProof; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.range_proof) + return range_proof_; } inline ::Catalyst::Protocol::Transaction::RangeProof* ConfidentialEntry::release_range_proof() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.ConfidentialEntry.range_proof) ::Catalyst::Protocol::Transaction::RangeProof* temp = range_proof_; - range_proof_ = nullptr; + range_proof_ = NULL; return temp; } -inline ::Catalyst::Protocol::Transaction::RangeProof* ConfidentialEntry::_internal_mutable_range_proof() { - - if (range_proof_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Transaction::RangeProof>(GetArenaNoVirtual()); - range_proof_ = p; - } - return range_proof_; -} -inline ::Catalyst::Protocol::Transaction::RangeProof* ConfidentialEntry::mutable_range_proof() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.range_proof) - return _internal_mutable_range_proof(); -} inline void ConfidentialEntry::set_allocated_range_proof(::Catalyst::Protocol::Transaction::RangeProof* range_proof) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete range_proof_; - } + delete range_proof_; + range_proof_ = range_proof; if (range_proof) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - range_proof = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, range_proof, submessage_arena); - } } else { } - range_proof_ = range_proof; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.ConfidentialEntry.range_proof) } // bytes transaction_fees = 5; inline void ConfidentialEntry::clear_transaction_fees() { - transaction_fees_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + transaction_fees_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& ConfidentialEntry::transaction_fees() const { +inline const ::std::string& ConfidentialEntry::transaction_fees() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) - return _internal_transaction_fees(); -} -inline void ConfidentialEntry::set_transaction_fees(const std::string& value) { - _internal_set_transaction_fees(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) -} -inline std::string* ConfidentialEntry::mutable_transaction_fees() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) - return _internal_mutable_transaction_fees(); -} -inline const std::string& ConfidentialEntry::_internal_transaction_fees() const { return transaction_fees_.GetNoArena(); } -inline void ConfidentialEntry::_internal_set_transaction_fees(const std::string& value) { +inline void ConfidentialEntry::set_transaction_fees(const ::std::string& value) { - transaction_fees_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + transaction_fees_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) } -inline void ConfidentialEntry::set_transaction_fees(std::string&& value) { +#if LANG_CXX11 +inline void ConfidentialEntry::set_transaction_fees(::std::string&& value) { transaction_fees_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) } +#endif inline void ConfidentialEntry::set_transaction_fees(const char* value) { - GOOGLE_DCHECK(value != nullptr); - transaction_fees_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + transaction_fees_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) } inline void ConfidentialEntry::set_transaction_fees(const void* value, size_t size) { - transaction_fees_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + transaction_fees_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) } -inline std::string* ConfidentialEntry::_internal_mutable_transaction_fees() { +inline ::std::string* ConfidentialEntry::mutable_transaction_fees() { - return transaction_fees_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) + return transaction_fees_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ConfidentialEntry::release_transaction_fees() { +inline ::std::string* ConfidentialEntry::release_transaction_fees() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) - return transaction_fees_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return transaction_fees_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ConfidentialEntry::set_allocated_transaction_fees(std::string* transaction_fees) { - if (transaction_fees != nullptr) { +inline void ConfidentialEntry::set_allocated_transaction_fees(::std::string* transaction_fees) { + if (transaction_fees != NULL) { } else { } - transaction_fees_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), transaction_fees); + transaction_fees_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transaction_fees); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees) } // uint64 nonce = 6; inline void ConfidentialEntry::clear_nonce() { - nonce_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 ConfidentialEntry::_internal_nonce() const { - return nonce_; + nonce_ = GOOGLE_ULONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::uint64 ConfidentialEntry::nonce() const { +inline ::google::protobuf::uint64 ConfidentialEntry::nonce() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.ConfidentialEntry.nonce) - return _internal_nonce(); + return nonce_; } -inline void ConfidentialEntry::_internal_set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value) { +inline void ConfidentialEntry::set_nonce(::google::protobuf::uint64 value) { nonce_ = value; -} -inline void ConfidentialEntry::set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value) { - _internal_set_nonce(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.ConfidentialEntry.nonce) } @@ -1891,121 +1400,105 @@ inline void ConfidentialEntry::set_nonce(::PROTOBUF_NAMESPACE_ID::uint64 value) // bytes receiver_public_key = 1; inline void CoinbaseEntry::clear_receiver_public_key() { - receiver_public_key_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + receiver_public_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& CoinbaseEntry::receiver_public_key() const { +inline const ::std::string& CoinbaseEntry::receiver_public_key() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) - return _internal_receiver_public_key(); -} -inline void CoinbaseEntry::set_receiver_public_key(const std::string& value) { - _internal_set_receiver_public_key(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) -} -inline std::string* CoinbaseEntry::mutable_receiver_public_key() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) - return _internal_mutable_receiver_public_key(); -} -inline const std::string& CoinbaseEntry::_internal_receiver_public_key() const { return receiver_public_key_.GetNoArena(); } -inline void CoinbaseEntry::_internal_set_receiver_public_key(const std::string& value) { +inline void CoinbaseEntry::set_receiver_public_key(const ::std::string& value) { - receiver_public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + receiver_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) } -inline void CoinbaseEntry::set_receiver_public_key(std::string&& value) { +#if LANG_CXX11 +inline void CoinbaseEntry::set_receiver_public_key(::std::string&& value) { receiver_public_key_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) } +#endif inline void CoinbaseEntry::set_receiver_public_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - receiver_public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + receiver_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) } inline void CoinbaseEntry::set_receiver_public_key(const void* value, size_t size) { - receiver_public_key_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + receiver_public_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) } -inline std::string* CoinbaseEntry::_internal_mutable_receiver_public_key() { +inline ::std::string* CoinbaseEntry::mutable_receiver_public_key() { - return receiver_public_key_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) + return receiver_public_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* CoinbaseEntry::release_receiver_public_key() { +inline ::std::string* CoinbaseEntry::release_receiver_public_key() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) - return receiver_public_key_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return receiver_public_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void CoinbaseEntry::set_allocated_receiver_public_key(std::string* receiver_public_key) { - if (receiver_public_key != nullptr) { +inline void CoinbaseEntry::set_allocated_receiver_public_key(::std::string* receiver_public_key) { + if (receiver_public_key != NULL) { } else { } - receiver_public_key_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), receiver_public_key); + receiver_public_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), receiver_public_key); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key) } // bytes amount = 2; inline void CoinbaseEntry::clear_amount() { - amount_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + amount_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& CoinbaseEntry::amount() const { +inline const ::std::string& CoinbaseEntry::amount() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) - return _internal_amount(); -} -inline void CoinbaseEntry::set_amount(const std::string& value) { - _internal_set_amount(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) -} -inline std::string* CoinbaseEntry::mutable_amount() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) - return _internal_mutable_amount(); -} -inline const std::string& CoinbaseEntry::_internal_amount() const { return amount_.GetNoArena(); } -inline void CoinbaseEntry::_internal_set_amount(const std::string& value) { +inline void CoinbaseEntry::set_amount(const ::std::string& value) { - amount_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + amount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) } -inline void CoinbaseEntry::set_amount(std::string&& value) { +#if LANG_CXX11 +inline void CoinbaseEntry::set_amount(::std::string&& value) { amount_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) } +#endif inline void CoinbaseEntry::set_amount(const char* value) { - GOOGLE_DCHECK(value != nullptr); - amount_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + amount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) } inline void CoinbaseEntry::set_amount(const void* value, size_t size) { - amount_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + amount_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) } -inline std::string* CoinbaseEntry::_internal_mutable_amount() { +inline ::std::string* CoinbaseEntry::mutable_amount() { - return amount_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) + return amount_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* CoinbaseEntry::release_amount() { +inline ::std::string* CoinbaseEntry::release_amount() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) - return amount_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return amount_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void CoinbaseEntry::set_allocated_amount(std::string* amount) { - if (amount != nullptr) { +inline void CoinbaseEntry::set_allocated_amount(::std::string* amount) { + if (amount != NULL) { } else { } - amount_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), amount); + amount_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), amount); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.CoinbaseEntry.amount) } @@ -2014,40 +1507,25 @@ inline void CoinbaseEntry::set_allocated_amount(std::string* amount) { // RangeProof // repeated bytes value_commitment = 1; -inline int RangeProof::_internal_value_commitment_size() const { - return value_commitment_.size(); -} inline int RangeProof::value_commitment_size() const { - return _internal_value_commitment_size(); + return value_commitment_.size(); } inline void RangeProof::clear_value_commitment() { value_commitment_.Clear(); } -inline std::string* RangeProof::add_value_commitment() { - // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Transaction.RangeProof.value_commitment) - return _internal_add_value_commitment(); -} -inline const std::string& RangeProof::_internal_value_commitment(int index) const { - return value_commitment_.Get(index); -} -inline const std::string& RangeProof::value_commitment(int index) const { +inline const ::std::string& RangeProof::value_commitment(int index) const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.value_commitment) - return _internal_value_commitment(index); + return value_commitment_.Get(index); } -inline std::string* RangeProof::mutable_value_commitment(int index) { +inline ::std::string* RangeProof::mutable_value_commitment(int index) { // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.value_commitment) return value_commitment_.Mutable(index); } -inline void RangeProof::set_value_commitment(int index, const std::string& value) { +inline void RangeProof::set_value_commitment(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.value_commitment) value_commitment_.Mutable(index)->assign(value); } -inline void RangeProof::set_value_commitment(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.value_commitment) - value_commitment_.Mutable(index)->assign(std::move(value)); -} inline void RangeProof::set_value_commitment(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); value_commitment_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.value_commitment) } @@ -2056,19 +1534,15 @@ inline void RangeProof::set_value_commitment(int index, const void* value, size_ reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.value_commitment) } -inline std::string* RangeProof::_internal_add_value_commitment() { +inline ::std::string* RangeProof::add_value_commitment() { + // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Transaction.RangeProof.value_commitment) return value_commitment_.Add(); } -inline void RangeProof::add_value_commitment(const std::string& value) { +inline void RangeProof::add_value_commitment(const ::std::string& value) { value_commitment_.Add()->assign(value); // @@protoc_insertion_point(field_add:Catalyst.Protocol.Transaction.RangeProof.value_commitment) } -inline void RangeProof::add_value_commitment(std::string&& value) { - value_commitment_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:Catalyst.Protocol.Transaction.RangeProof.value_commitment) -} inline void RangeProof::add_value_commitment(const char* value) { - GOOGLE_DCHECK(value != nullptr); value_commitment_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:Catalyst.Protocol.Transaction.RangeProof.value_commitment) } @@ -2076,12 +1550,12 @@ inline void RangeProof::add_value_commitment(const void* value, size_t size) { value_commitment_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:Catalyst.Protocol.Transaction.RangeProof.value_commitment) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& RangeProof::value_commitment() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.Transaction.RangeProof.value_commitment) return value_commitment_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField< ::std::string>* RangeProof::mutable_value_commitment() { // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Transaction.RangeProof.value_commitment) return &value_commitment_; @@ -2089,399 +1563,336 @@ RangeProof::mutable_value_commitment() { // bytes bit_commitment = 2; inline void RangeProof::clear_bit_commitment() { - bit_commitment_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + bit_commitment_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& RangeProof::bit_commitment() const { +inline const ::std::string& RangeProof::bit_commitment() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) - return _internal_bit_commitment(); -} -inline void RangeProof::set_bit_commitment(const std::string& value) { - _internal_set_bit_commitment(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) -} -inline std::string* RangeProof::mutable_bit_commitment() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) - return _internal_mutable_bit_commitment(); -} -inline const std::string& RangeProof::_internal_bit_commitment() const { return bit_commitment_.GetNoArena(); } -inline void RangeProof::_internal_set_bit_commitment(const std::string& value) { +inline void RangeProof::set_bit_commitment(const ::std::string& value) { - bit_commitment_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + bit_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) } -inline void RangeProof::set_bit_commitment(std::string&& value) { +#if LANG_CXX11 +inline void RangeProof::set_bit_commitment(::std::string&& value) { bit_commitment_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) } +#endif inline void RangeProof::set_bit_commitment(const char* value) { - GOOGLE_DCHECK(value != nullptr); - bit_commitment_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + bit_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) } inline void RangeProof::set_bit_commitment(const void* value, size_t size) { - bit_commitment_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + bit_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) } -inline std::string* RangeProof::_internal_mutable_bit_commitment() { +inline ::std::string* RangeProof::mutable_bit_commitment() { - return bit_commitment_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) + return bit_commitment_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* RangeProof::release_bit_commitment() { +inline ::std::string* RangeProof::release_bit_commitment() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) - return bit_commitment_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return bit_commitment_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void RangeProof::set_allocated_bit_commitment(std::string* bit_commitment) { - if (bit_commitment != nullptr) { +inline void RangeProof::set_allocated_bit_commitment(::std::string* bit_commitment) { + if (bit_commitment != NULL) { } else { } - bit_commitment_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bit_commitment); + bit_commitment_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bit_commitment); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.bit_commitment) } // bytes per_bit_blinding_factor_commitment = 3; inline void RangeProof::clear_per_bit_blinding_factor_commitment() { - per_bit_blinding_factor_commitment_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + per_bit_blinding_factor_commitment_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& RangeProof::per_bit_blinding_factor_commitment() const { +inline const ::std::string& RangeProof::per_bit_blinding_factor_commitment() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) - return _internal_per_bit_blinding_factor_commitment(); -} -inline void RangeProof::set_per_bit_blinding_factor_commitment(const std::string& value) { - _internal_set_per_bit_blinding_factor_commitment(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) -} -inline std::string* RangeProof::mutable_per_bit_blinding_factor_commitment() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) - return _internal_mutable_per_bit_blinding_factor_commitment(); -} -inline const std::string& RangeProof::_internal_per_bit_blinding_factor_commitment() const { return per_bit_blinding_factor_commitment_.GetNoArena(); } -inline void RangeProof::_internal_set_per_bit_blinding_factor_commitment(const std::string& value) { +inline void RangeProof::set_per_bit_blinding_factor_commitment(const ::std::string& value) { - per_bit_blinding_factor_commitment_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + per_bit_blinding_factor_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) } -inline void RangeProof::set_per_bit_blinding_factor_commitment(std::string&& value) { +#if LANG_CXX11 +inline void RangeProof::set_per_bit_blinding_factor_commitment(::std::string&& value) { per_bit_blinding_factor_commitment_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) } +#endif inline void RangeProof::set_per_bit_blinding_factor_commitment(const char* value) { - GOOGLE_DCHECK(value != nullptr); - per_bit_blinding_factor_commitment_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + per_bit_blinding_factor_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) } inline void RangeProof::set_per_bit_blinding_factor_commitment(const void* value, size_t size) { - per_bit_blinding_factor_commitment_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + per_bit_blinding_factor_commitment_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) } -inline std::string* RangeProof::_internal_mutable_per_bit_blinding_factor_commitment() { +inline ::std::string* RangeProof::mutable_per_bit_blinding_factor_commitment() { - return per_bit_blinding_factor_commitment_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) + return per_bit_blinding_factor_commitment_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* RangeProof::release_per_bit_blinding_factor_commitment() { +inline ::std::string* RangeProof::release_per_bit_blinding_factor_commitment() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) - return per_bit_blinding_factor_commitment_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return per_bit_blinding_factor_commitment_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void RangeProof::set_allocated_per_bit_blinding_factor_commitment(std::string* per_bit_blinding_factor_commitment) { - if (per_bit_blinding_factor_commitment != nullptr) { +inline void RangeProof::set_allocated_per_bit_blinding_factor_commitment(::std::string* per_bit_blinding_factor_commitment) { + if (per_bit_blinding_factor_commitment != NULL) { } else { } - per_bit_blinding_factor_commitment_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), per_bit_blinding_factor_commitment); + per_bit_blinding_factor_commitment_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), per_bit_blinding_factor_commitment); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment) } // bytes poly_commitment_t1 = 4; inline void RangeProof::clear_poly_commitment_t1() { - poly_commitment_t1_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + poly_commitment_t1_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& RangeProof::poly_commitment_t1() const { +inline const ::std::string& RangeProof::poly_commitment_t1() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) - return _internal_poly_commitment_t1(); -} -inline void RangeProof::set_poly_commitment_t1(const std::string& value) { - _internal_set_poly_commitment_t1(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) -} -inline std::string* RangeProof::mutable_poly_commitment_t1() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) - return _internal_mutable_poly_commitment_t1(); -} -inline const std::string& RangeProof::_internal_poly_commitment_t1() const { return poly_commitment_t1_.GetNoArena(); } -inline void RangeProof::_internal_set_poly_commitment_t1(const std::string& value) { +inline void RangeProof::set_poly_commitment_t1(const ::std::string& value) { - poly_commitment_t1_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + poly_commitment_t1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) } -inline void RangeProof::set_poly_commitment_t1(std::string&& value) { +#if LANG_CXX11 +inline void RangeProof::set_poly_commitment_t1(::std::string&& value) { poly_commitment_t1_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) } +#endif inline void RangeProof::set_poly_commitment_t1(const char* value) { - GOOGLE_DCHECK(value != nullptr); - poly_commitment_t1_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + poly_commitment_t1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) } inline void RangeProof::set_poly_commitment_t1(const void* value, size_t size) { - poly_commitment_t1_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + poly_commitment_t1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) } -inline std::string* RangeProof::_internal_mutable_poly_commitment_t1() { +inline ::std::string* RangeProof::mutable_poly_commitment_t1() { - return poly_commitment_t1_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) + return poly_commitment_t1_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* RangeProof::release_poly_commitment_t1() { +inline ::std::string* RangeProof::release_poly_commitment_t1() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) - return poly_commitment_t1_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return poly_commitment_t1_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void RangeProof::set_allocated_poly_commitment_t1(std::string* poly_commitment_t1) { - if (poly_commitment_t1 != nullptr) { +inline void RangeProof::set_allocated_poly_commitment_t1(::std::string* poly_commitment_t1) { + if (poly_commitment_t1 != NULL) { } else { } - poly_commitment_t1_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), poly_commitment_t1); + poly_commitment_t1_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), poly_commitment_t1); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1) } // bytes poly_commitment_t2 = 5; inline void RangeProof::clear_poly_commitment_t2() { - poly_commitment_t2_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + poly_commitment_t2_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& RangeProof::poly_commitment_t2() const { +inline const ::std::string& RangeProof::poly_commitment_t2() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) - return _internal_poly_commitment_t2(); -} -inline void RangeProof::set_poly_commitment_t2(const std::string& value) { - _internal_set_poly_commitment_t2(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) -} -inline std::string* RangeProof::mutable_poly_commitment_t2() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) - return _internal_mutable_poly_commitment_t2(); -} -inline const std::string& RangeProof::_internal_poly_commitment_t2() const { return poly_commitment_t2_.GetNoArena(); } -inline void RangeProof::_internal_set_poly_commitment_t2(const std::string& value) { +inline void RangeProof::set_poly_commitment_t2(const ::std::string& value) { - poly_commitment_t2_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + poly_commitment_t2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) } -inline void RangeProof::set_poly_commitment_t2(std::string&& value) { +#if LANG_CXX11 +inline void RangeProof::set_poly_commitment_t2(::std::string&& value) { poly_commitment_t2_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) } +#endif inline void RangeProof::set_poly_commitment_t2(const char* value) { - GOOGLE_DCHECK(value != nullptr); - poly_commitment_t2_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + poly_commitment_t2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) } inline void RangeProof::set_poly_commitment_t2(const void* value, size_t size) { - poly_commitment_t2_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + poly_commitment_t2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) } -inline std::string* RangeProof::_internal_mutable_poly_commitment_t2() { +inline ::std::string* RangeProof::mutable_poly_commitment_t2() { - return poly_commitment_t2_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) + return poly_commitment_t2_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* RangeProof::release_poly_commitment_t2() { +inline ::std::string* RangeProof::release_poly_commitment_t2() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) - return poly_commitment_t2_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return poly_commitment_t2_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void RangeProof::set_allocated_poly_commitment_t2(std::string* poly_commitment_t2) { - if (poly_commitment_t2 != nullptr) { +inline void RangeProof::set_allocated_poly_commitment_t2(::std::string* poly_commitment_t2) { + if (poly_commitment_t2 != NULL) { } else { } - poly_commitment_t2_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), poly_commitment_t2); + poly_commitment_t2_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), poly_commitment_t2); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2) } // bytes proof_of_share_tau = 6; inline void RangeProof::clear_proof_of_share_tau() { - proof_of_share_tau_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + proof_of_share_tau_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& RangeProof::proof_of_share_tau() const { +inline const ::std::string& RangeProof::proof_of_share_tau() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) - return _internal_proof_of_share_tau(); -} -inline void RangeProof::set_proof_of_share_tau(const std::string& value) { - _internal_set_proof_of_share_tau(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) -} -inline std::string* RangeProof::mutable_proof_of_share_tau() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) - return _internal_mutable_proof_of_share_tau(); -} -inline const std::string& RangeProof::_internal_proof_of_share_tau() const { return proof_of_share_tau_.GetNoArena(); } -inline void RangeProof::_internal_set_proof_of_share_tau(const std::string& value) { +inline void RangeProof::set_proof_of_share_tau(const ::std::string& value) { - proof_of_share_tau_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + proof_of_share_tau_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) } -inline void RangeProof::set_proof_of_share_tau(std::string&& value) { +#if LANG_CXX11 +inline void RangeProof::set_proof_of_share_tau(::std::string&& value) { proof_of_share_tau_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) } +#endif inline void RangeProof::set_proof_of_share_tau(const char* value) { - GOOGLE_DCHECK(value != nullptr); - proof_of_share_tau_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + proof_of_share_tau_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) } inline void RangeProof::set_proof_of_share_tau(const void* value, size_t size) { - proof_of_share_tau_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + proof_of_share_tau_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) } -inline std::string* RangeProof::_internal_mutable_proof_of_share_tau() { +inline ::std::string* RangeProof::mutable_proof_of_share_tau() { - return proof_of_share_tau_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) + return proof_of_share_tau_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* RangeProof::release_proof_of_share_tau() { +inline ::std::string* RangeProof::release_proof_of_share_tau() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) - return proof_of_share_tau_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return proof_of_share_tau_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void RangeProof::set_allocated_proof_of_share_tau(std::string* proof_of_share_tau) { - if (proof_of_share_tau != nullptr) { +inline void RangeProof::set_allocated_proof_of_share_tau(::std::string* proof_of_share_tau) { + if (proof_of_share_tau != NULL) { } else { } - proof_of_share_tau_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), proof_of_share_tau); + proof_of_share_tau_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), proof_of_share_tau); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau) } // bytes proof_of_share_mu = 7; inline void RangeProof::clear_proof_of_share_mu() { - proof_of_share_mu_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + proof_of_share_mu_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& RangeProof::proof_of_share_mu() const { +inline const ::std::string& RangeProof::proof_of_share_mu() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) - return _internal_proof_of_share_mu(); -} -inline void RangeProof::set_proof_of_share_mu(const std::string& value) { - _internal_set_proof_of_share_mu(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) -} -inline std::string* RangeProof::mutable_proof_of_share_mu() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) - return _internal_mutable_proof_of_share_mu(); -} -inline const std::string& RangeProof::_internal_proof_of_share_mu() const { return proof_of_share_mu_.GetNoArena(); } -inline void RangeProof::_internal_set_proof_of_share_mu(const std::string& value) { +inline void RangeProof::set_proof_of_share_mu(const ::std::string& value) { - proof_of_share_mu_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + proof_of_share_mu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) } -inline void RangeProof::set_proof_of_share_mu(std::string&& value) { +#if LANG_CXX11 +inline void RangeProof::set_proof_of_share_mu(::std::string&& value) { proof_of_share_mu_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) } +#endif inline void RangeProof::set_proof_of_share_mu(const char* value) { - GOOGLE_DCHECK(value != nullptr); - proof_of_share_mu_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + proof_of_share_mu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) } inline void RangeProof::set_proof_of_share_mu(const void* value, size_t size) { - proof_of_share_mu_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + proof_of_share_mu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) } -inline std::string* RangeProof::_internal_mutable_proof_of_share_mu() { +inline ::std::string* RangeProof::mutable_proof_of_share_mu() { - return proof_of_share_mu_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) + return proof_of_share_mu_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* RangeProof::release_proof_of_share_mu() { +inline ::std::string* RangeProof::release_proof_of_share_mu() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) - return proof_of_share_mu_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return proof_of_share_mu_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void RangeProof::set_allocated_proof_of_share_mu(std::string* proof_of_share_mu) { - if (proof_of_share_mu != nullptr) { +inline void RangeProof::set_allocated_proof_of_share_mu(::std::string* proof_of_share_mu) { + if (proof_of_share_mu != NULL) { } else { } - proof_of_share_mu_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), proof_of_share_mu); + proof_of_share_mu_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), proof_of_share_mu); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu) } // repeated bytes aggregated_vector_polynomial_l = 8; -inline int RangeProof::_internal_aggregated_vector_polynomial_l_size() const { - return aggregated_vector_polynomial_l_.size(); -} inline int RangeProof::aggregated_vector_polynomial_l_size() const { - return _internal_aggregated_vector_polynomial_l_size(); + return aggregated_vector_polynomial_l_.size(); } inline void RangeProof::clear_aggregated_vector_polynomial_l() { aggregated_vector_polynomial_l_.Clear(); } -inline std::string* RangeProof::add_aggregated_vector_polynomial_l() { - // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) - return _internal_add_aggregated_vector_polynomial_l(); -} -inline const std::string& RangeProof::_internal_aggregated_vector_polynomial_l(int index) const { - return aggregated_vector_polynomial_l_.Get(index); -} -inline const std::string& RangeProof::aggregated_vector_polynomial_l(int index) const { +inline const ::std::string& RangeProof::aggregated_vector_polynomial_l(int index) const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) - return _internal_aggregated_vector_polynomial_l(index); + return aggregated_vector_polynomial_l_.Get(index); } -inline std::string* RangeProof::mutable_aggregated_vector_polynomial_l(int index) { +inline ::std::string* RangeProof::mutable_aggregated_vector_polynomial_l(int index) { // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) return aggregated_vector_polynomial_l_.Mutable(index); } -inline void RangeProof::set_aggregated_vector_polynomial_l(int index, const std::string& value) { +inline void RangeProof::set_aggregated_vector_polynomial_l(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) aggregated_vector_polynomial_l_.Mutable(index)->assign(value); } -inline void RangeProof::set_aggregated_vector_polynomial_l(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) - aggregated_vector_polynomial_l_.Mutable(index)->assign(std::move(value)); -} inline void RangeProof::set_aggregated_vector_polynomial_l(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); aggregated_vector_polynomial_l_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) } @@ -2490,19 +1901,15 @@ inline void RangeProof::set_aggregated_vector_polynomial_l(int index, const void reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) } -inline std::string* RangeProof::_internal_add_aggregated_vector_polynomial_l() { +inline ::std::string* RangeProof::add_aggregated_vector_polynomial_l() { + // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) return aggregated_vector_polynomial_l_.Add(); } -inline void RangeProof::add_aggregated_vector_polynomial_l(const std::string& value) { +inline void RangeProof::add_aggregated_vector_polynomial_l(const ::std::string& value) { aggregated_vector_polynomial_l_.Add()->assign(value); // @@protoc_insertion_point(field_add:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) } -inline void RangeProof::add_aggregated_vector_polynomial_l(std::string&& value) { - aggregated_vector_polynomial_l_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) -} inline void RangeProof::add_aggregated_vector_polynomial_l(const char* value) { - GOOGLE_DCHECK(value != nullptr); aggregated_vector_polynomial_l_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) } @@ -2510,52 +1917,37 @@ inline void RangeProof::add_aggregated_vector_polynomial_l(const void* value, si aggregated_vector_polynomial_l_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& RangeProof::aggregated_vector_polynomial_l() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) return aggregated_vector_polynomial_l_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField< ::std::string>* RangeProof::mutable_aggregated_vector_polynomial_l() { // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l) return &aggregated_vector_polynomial_l_; } // repeated bytes aggregated_vector_polynomial_r = 9; -inline int RangeProof::_internal_aggregated_vector_polynomial_r_size() const { - return aggregated_vector_polynomial_r_.size(); -} inline int RangeProof::aggregated_vector_polynomial_r_size() const { - return _internal_aggregated_vector_polynomial_r_size(); + return aggregated_vector_polynomial_r_.size(); } inline void RangeProof::clear_aggregated_vector_polynomial_r() { aggregated_vector_polynomial_r_.Clear(); } -inline std::string* RangeProof::add_aggregated_vector_polynomial_r() { - // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) - return _internal_add_aggregated_vector_polynomial_r(); -} -inline const std::string& RangeProof::_internal_aggregated_vector_polynomial_r(int index) const { - return aggregated_vector_polynomial_r_.Get(index); -} -inline const std::string& RangeProof::aggregated_vector_polynomial_r(int index) const { +inline const ::std::string& RangeProof::aggregated_vector_polynomial_r(int index) const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) - return _internal_aggregated_vector_polynomial_r(index); + return aggregated_vector_polynomial_r_.Get(index); } -inline std::string* RangeProof::mutable_aggregated_vector_polynomial_r(int index) { +inline ::std::string* RangeProof::mutable_aggregated_vector_polynomial_r(int index) { // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) return aggregated_vector_polynomial_r_.Mutable(index); } -inline void RangeProof::set_aggregated_vector_polynomial_r(int index, const std::string& value) { +inline void RangeProof::set_aggregated_vector_polynomial_r(int index, const ::std::string& value) { // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) aggregated_vector_polynomial_r_.Mutable(index)->assign(value); } -inline void RangeProof::set_aggregated_vector_polynomial_r(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) - aggregated_vector_polynomial_r_.Mutable(index)->assign(std::move(value)); -} inline void RangeProof::set_aggregated_vector_polynomial_r(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); aggregated_vector_polynomial_r_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) } @@ -2564,19 +1956,15 @@ inline void RangeProof::set_aggregated_vector_polynomial_r(int index, const void reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) } -inline std::string* RangeProof::_internal_add_aggregated_vector_polynomial_r() { +inline ::std::string* RangeProof::add_aggregated_vector_polynomial_r() { + // @@protoc_insertion_point(field_add_mutable:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) return aggregated_vector_polynomial_r_.Add(); } -inline void RangeProof::add_aggregated_vector_polynomial_r(const std::string& value) { +inline void RangeProof::add_aggregated_vector_polynomial_r(const ::std::string& value) { aggregated_vector_polynomial_r_.Add()->assign(value); // @@protoc_insertion_point(field_add:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) } -inline void RangeProof::add_aggregated_vector_polynomial_r(std::string&& value) { - aggregated_vector_polynomial_r_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) -} inline void RangeProof::add_aggregated_vector_polynomial_r(const char* value) { - GOOGLE_DCHECK(value != nullptr); aggregated_vector_polynomial_r_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) } @@ -2584,12 +1972,12 @@ inline void RangeProof::add_aggregated_vector_polynomial_r(const void* value, si aggregated_vector_polynomial_r_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& RangeProof::aggregated_vector_polynomial_r() const { // @@protoc_insertion_point(field_list:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) return aggregated_vector_polynomial_r_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField< ::std::string>* RangeProof::mutable_aggregated_vector_polynomial_r() { // @@protoc_insertion_point(field_mutable_list:Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r) return &aggregated_vector_polynomial_r_; @@ -2597,187 +1985,161 @@ RangeProof::mutable_aggregated_vector_polynomial_r() { // bytes a_prime_0 = 10; inline void RangeProof::clear_a_prime_0() { - a_prime_0_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + a_prime_0_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& RangeProof::a_prime_0() const { +inline const ::std::string& RangeProof::a_prime_0() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) - return _internal_a_prime_0(); -} -inline void RangeProof::set_a_prime_0(const std::string& value) { - _internal_set_a_prime_0(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) -} -inline std::string* RangeProof::mutable_a_prime_0() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) - return _internal_mutable_a_prime_0(); -} -inline const std::string& RangeProof::_internal_a_prime_0() const { return a_prime_0_.GetNoArena(); } -inline void RangeProof::_internal_set_a_prime_0(const std::string& value) { +inline void RangeProof::set_a_prime_0(const ::std::string& value) { - a_prime_0_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + a_prime_0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) } -inline void RangeProof::set_a_prime_0(std::string&& value) { +#if LANG_CXX11 +inline void RangeProof::set_a_prime_0(::std::string&& value) { a_prime_0_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) } +#endif inline void RangeProof::set_a_prime_0(const char* value) { - GOOGLE_DCHECK(value != nullptr); - a_prime_0_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + a_prime_0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) } inline void RangeProof::set_a_prime_0(const void* value, size_t size) { - a_prime_0_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + a_prime_0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) } -inline std::string* RangeProof::_internal_mutable_a_prime_0() { +inline ::std::string* RangeProof::mutable_a_prime_0() { - return a_prime_0_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) + return a_prime_0_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* RangeProof::release_a_prime_0() { +inline ::std::string* RangeProof::release_a_prime_0() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) - return a_prime_0_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return a_prime_0_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void RangeProof::set_allocated_a_prime_0(std::string* a_prime_0) { - if (a_prime_0 != nullptr) { +inline void RangeProof::set_allocated_a_prime_0(::std::string* a_prime_0) { + if (a_prime_0 != NULL) { } else { } - a_prime_0_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), a_prime_0); + a_prime_0_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), a_prime_0); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.a_prime_0) } // bytes b_prime_0 = 11; inline void RangeProof::clear_b_prime_0() { - b_prime_0_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + b_prime_0_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& RangeProof::b_prime_0() const { +inline const ::std::string& RangeProof::b_prime_0() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) - return _internal_b_prime_0(); -} -inline void RangeProof::set_b_prime_0(const std::string& value) { - _internal_set_b_prime_0(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) -} -inline std::string* RangeProof::mutable_b_prime_0() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) - return _internal_mutable_b_prime_0(); -} -inline const std::string& RangeProof::_internal_b_prime_0() const { return b_prime_0_.GetNoArena(); } -inline void RangeProof::_internal_set_b_prime_0(const std::string& value) { +inline void RangeProof::set_b_prime_0(const ::std::string& value) { - b_prime_0_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + b_prime_0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) } -inline void RangeProof::set_b_prime_0(std::string&& value) { +#if LANG_CXX11 +inline void RangeProof::set_b_prime_0(::std::string&& value) { b_prime_0_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) } +#endif inline void RangeProof::set_b_prime_0(const char* value) { - GOOGLE_DCHECK(value != nullptr); - b_prime_0_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + b_prime_0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) } inline void RangeProof::set_b_prime_0(const void* value, size_t size) { - b_prime_0_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + b_prime_0_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) } -inline std::string* RangeProof::_internal_mutable_b_prime_0() { +inline ::std::string* RangeProof::mutable_b_prime_0() { - return b_prime_0_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) + return b_prime_0_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* RangeProof::release_b_prime_0() { +inline ::std::string* RangeProof::release_b_prime_0() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) - return b_prime_0_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return b_prime_0_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void RangeProof::set_allocated_b_prime_0(std::string* b_prime_0) { - if (b_prime_0 != nullptr) { +inline void RangeProof::set_allocated_b_prime_0(::std::string* b_prime_0) { + if (b_prime_0 != NULL) { } else { } - b_prime_0_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), b_prime_0); + b_prime_0_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), b_prime_0); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.b_prime_0) } // bytes t = 12; inline void RangeProof::clear_t() { - t_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + t_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& RangeProof::t() const { +inline const ::std::string& RangeProof::t() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Transaction.RangeProof.t) - return _internal_t(); -} -inline void RangeProof::set_t(const std::string& value) { - _internal_set_t(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.t) -} -inline std::string* RangeProof::mutable_t() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.t) - return _internal_mutable_t(); -} -inline const std::string& RangeProof::_internal_t() const { return t_.GetNoArena(); } -inline void RangeProof::_internal_set_t(const std::string& value) { +inline void RangeProof::set_t(const ::std::string& value) { - t_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + t_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Transaction.RangeProof.t) } -inline void RangeProof::set_t(std::string&& value) { +#if LANG_CXX11 +inline void RangeProof::set_t(::std::string&& value) { t_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Transaction.RangeProof.t) } +#endif inline void RangeProof::set_t(const char* value) { - GOOGLE_DCHECK(value != nullptr); - t_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + t_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Transaction.RangeProof.t) } inline void RangeProof::set_t(const void* value, size_t size) { - t_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + t_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Transaction.RangeProof.t) } -inline std::string* RangeProof::_internal_mutable_t() { +inline ::std::string* RangeProof::mutable_t() { - return t_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Transaction.RangeProof.t) + return t_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* RangeProof::release_t() { +inline ::std::string* RangeProof::release_t() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Transaction.RangeProof.t) - return t_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return t_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void RangeProof::set_allocated_t(std::string* t) { - if (t != nullptr) { +inline void RangeProof::set_allocated_t(::std::string* t) { + if (t != NULL) { } else { } - t_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), t); + t_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), t); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Transaction.RangeProof.t) } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -2787,21 +2149,25 @@ inline void RangeProof::set_allocated_t(std::string* t) { // @@protoc_insertion_point(namespace_scope) + } // namespace Transaction } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN +#ifndef SWIG +namespace google { +namespace protobuf { -template <> struct is_proto_enum< ::Catalyst::Protocol::Transaction::TransactionType> : ::std::true_type {}; +template <> struct is_proto_enum< ::Catalyst::Protocol::Transaction::TransactionType> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::Catalyst::Protocol::Transaction::TransactionType>() { return ::Catalyst::Protocol::Transaction::TransactionType_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google +#endif // SWIG // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Transaction_2eproto +#endif // PROTOBUF_Transaction_2eproto__INCLUDED diff --git a/packages/sdk-cpp/src/Wire.pb.cc b/packages/sdk-cpp/src/Wire.pb.cc index 6378be1..86de15b 100644 --- a/packages/sdk-cpp/src/Wire.pb.cc +++ b/packages/sdk-cpp/src/Wire.pb.cc @@ -1,338 +1,281 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Wire.proto +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "Wire.pb.h" #include +#include +#include +#include #include -#include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_Cryptography_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Signature_Cryptography_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Peer_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_PeerId_Peer_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Transaction_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_PublicEntry_Transaction_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_Wire_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CandidateDeltaBroadcast_Wire_2eproto; + namespace Catalyst { namespace Protocol { namespace Wire { -class ProtocolErrorMessageDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class ProtocolErrorMessageDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _ProtocolErrorMessage_default_instance_; -class ProtocolMessageDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class ProtocolMessageDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _ProtocolMessage_default_instance_; -class TransactionBroadcastDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class TransactionBroadcastDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _TransactionBroadcast_default_instance_; -class CandidateDeltaBroadcastDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class CandidateDeltaBroadcastDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _CandidateDeltaBroadcast_default_instance_; -class FavouriteDeltaBroadcastDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class FavouriteDeltaBroadcastDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _FavouriteDeltaBroadcast_default_instance_; -class DeltaDfsHashBroadcastDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +class DeltaDfsHashBroadcastDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _DeltaDfsHashBroadcast_default_instance_; -} // namespace Wire -} // namespace Protocol -} // namespace Catalyst -static void InitDefaultsscc_info_CandidateDeltaBroadcast_Wire_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Wire::_CandidateDeltaBroadcast_default_instance_; - new (ptr) ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CandidateDeltaBroadcast_Wire_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_CandidateDeltaBroadcast_Wire_2eproto}, { - &scc_info_PeerId_Peer_2eproto.base,}}; - -static void InitDefaultsscc_info_DeltaDfsHashBroadcast_Wire_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Wire::_DeltaDfsHashBroadcast_default_instance_; - new (ptr) ::Catalyst::Protocol::Wire::DeltaDfsHashBroadcast(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Wire::DeltaDfsHashBroadcast::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DeltaDfsHashBroadcast_Wire_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_DeltaDfsHashBroadcast_Wire_2eproto}, {}}; - -static void InitDefaultsscc_info_FavouriteDeltaBroadcast_Wire_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Wire::_FavouriteDeltaBroadcast_default_instance_; - new (ptr) ::Catalyst::Protocol::Wire::FavouriteDeltaBroadcast(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Wire::FavouriteDeltaBroadcast::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FavouriteDeltaBroadcast_Wire_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_FavouriteDeltaBroadcast_Wire_2eproto}, { - &scc_info_CandidateDeltaBroadcast_Wire_2eproto.base, - &scc_info_PeerId_Peer_2eproto.base,}}; - -static void InitDefaultsscc_info_ProtocolErrorMessage_Wire_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Wire::_ProtocolErrorMessage_default_instance_; - new (ptr) ::Catalyst::Protocol::Wire::ProtocolErrorMessage(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Wire::ProtocolErrorMessage::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ProtocolErrorMessage_Wire_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_ProtocolErrorMessage_Wire_2eproto}, { - &scc_info_Signature_Cryptography_2eproto.base, - &scc_info_PeerId_Peer_2eproto.base,}}; -static void InitDefaultsscc_info_ProtocolMessage_Wire_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Wire::_ProtocolMessage_default_instance_; - new (ptr) ::Catalyst::Protocol::Wire::ProtocolMessage(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Wire::ProtocolMessage::InitAsDefaultInstance(); -} +namespace protobuf_Wire_2eproto { -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ProtocolMessage_Wire_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_ProtocolMessage_Wire_2eproto}, { - &scc_info_PeerId_Peer_2eproto.base, - &scc_info_Signature_Cryptography_2eproto.base,}}; -static void InitDefaultsscc_info_TransactionBroadcast_Wire_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::Catalyst::Protocol::Wire::_TransactionBroadcast_default_instance_; - new (ptr) ::Catalyst::Protocol::Wire::TransactionBroadcast(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::Catalyst::Protocol::Wire::TransactionBroadcast::InitAsDefaultInstance(); -} +namespace { -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TransactionBroadcast_Wire_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_TransactionBroadcast_Wire_2eproto}, { - &scc_info_PublicEntry_Transaction_2eproto.base,}}; +::google::protobuf::Metadata file_level_metadata[6]; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Wire_2eproto[6]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Wire_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Wire_2eproto = nullptr; +} // namespace -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_Wire_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct::offsets[] = { ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::ProtocolErrorMessage, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProtocolErrorMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::ProtocolErrorMessage, signature_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::ProtocolErrorMessage, peer_id_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::ProtocolErrorMessage, correlation_id_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::ProtocolErrorMessage, code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProtocolErrorMessage, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProtocolErrorMessage, peer_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProtocolErrorMessage, correlation_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProtocolErrorMessage, code_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::ProtocolMessage, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProtocolMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::ProtocolMessage, peer_id_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::ProtocolMessage, correlation_id_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::ProtocolMessage, type_url_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::ProtocolMessage, value_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::ProtocolMessage, signature_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProtocolMessage, peer_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProtocolMessage, correlation_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProtocolMessage, type_url_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProtocolMessage, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProtocolMessage, signature_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::TransactionBroadcast, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransactionBroadcast, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::TransactionBroadcast, public_entry_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TransactionBroadcast, public_entry_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::CandidateDeltaBroadcast, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CandidateDeltaBroadcast, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::CandidateDeltaBroadcast, hash_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::CandidateDeltaBroadcast, producer_id_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::CandidateDeltaBroadcast, previous_delta_dfs_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CandidateDeltaBroadcast, hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CandidateDeltaBroadcast, producer_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CandidateDeltaBroadcast, previous_delta_dfs_hash_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::FavouriteDeltaBroadcast, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FavouriteDeltaBroadcast, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::FavouriteDeltaBroadcast, candidate_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::FavouriteDeltaBroadcast, voter_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FavouriteDeltaBroadcast, candidate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FavouriteDeltaBroadcast, voter_id_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::DeltaDfsHashBroadcast, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeltaDfsHashBroadcast, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::DeltaDfsHashBroadcast, delta_dfs_hash_), - PROTOBUF_FIELD_OFFSET(::Catalyst::Protocol::Wire::DeltaDfsHashBroadcast, previous_delta_dfs_hash_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::Catalyst::Protocol::Wire::ProtocolErrorMessage)}, - { 9, -1, sizeof(::Catalyst::Protocol::Wire::ProtocolMessage)}, - { 19, -1, sizeof(::Catalyst::Protocol::Wire::TransactionBroadcast)}, - { 25, -1, sizeof(::Catalyst::Protocol::Wire::CandidateDeltaBroadcast)}, - { 33, -1, sizeof(::Catalyst::Protocol::Wire::FavouriteDeltaBroadcast)}, - { 40, -1, sizeof(::Catalyst::Protocol::Wire::DeltaDfsHashBroadcast)}, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeltaDfsHashBroadcast, delta_dfs_hash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DeltaDfsHashBroadcast, previous_delta_dfs_hash_), }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::Catalyst::Protocol::Wire::_ProtocolErrorMessage_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Wire::_ProtocolMessage_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Wire::_TransactionBroadcast_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Wire::_CandidateDeltaBroadcast_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Wire::_FavouriteDeltaBroadcast_default_instance_), - reinterpret_cast(&::Catalyst::Protocol::Wire::_DeltaDfsHashBroadcast_default_instance_), +static const ::google::protobuf::internal::MigrationSchema schemas[] = { + { 0, -1, sizeof(ProtocolErrorMessage)}, + { 8, -1, sizeof(ProtocolMessage)}, + { 17, -1, sizeof(TransactionBroadcast)}, + { 22, -1, sizeof(CandidateDeltaBroadcast)}, + { 29, -1, sizeof(FavouriteDeltaBroadcast)}, + { 35, -1, sizeof(DeltaDfsHashBroadcast)}, }; -const char descriptor_table_protodef_Wire_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\nWire.proto\022\026Catalyst.Protocol.Wire\032\022Cr" - "yptography.proto\032\nPeer.proto\032\021Transactio" - "n.proto\032\037google/protobuf/timestamp.proto" - "\"\253\001\n\024ProtocolErrorMessage\022<\n\tsignature\030\001" - " \001(\0132).Catalyst.Protocol.Cryptography.Si" - "gnature\022/\n\007peer_id\030\002 \001(\0132\036.Catalyst.Prot" - "ocol.Peer.PeerId\022\026\n\016correlation_id\030\003 \001(\014" - "\022\014\n\004code\030\004 \001(\005\"\271\001\n\017ProtocolMessage\022/\n\007pe" - "er_id\030\001 \001(\0132\036.Catalyst.Protocol.Peer.Pee" - "rId\022\026\n\016correlation_id\030\002 \001(\014\022\020\n\010type_url\030" - "\003 \001(\t\022\r\n\005value\030\004 \001(\014\022<\n\tsignature\030\005 \001(\0132" - ").Catalyst.Protocol.Cryptography.Signatu" - "re\"X\n\024TransactionBroadcast\022@\n\014public_ent" - "ry\030\001 \001(\0132*.Catalyst.Protocol.Transaction" - ".PublicEntry\"}\n\027CandidateDeltaBroadcast\022" - "\014\n\004hash\030\001 \001(\014\0223\n\013producer_id\030\002 \001(\0132\036.Cat" - "alyst.Protocol.Peer.PeerId\022\037\n\027previous_d" - "elta_dfs_hash\030\003 \001(\014\"\217\001\n\027FavouriteDeltaBr" - "oadcast\022B\n\tcandidate\030\001 \001(\0132/.Catalyst.Pr" - "otocol.Wire.CandidateDeltaBroadcast\0220\n\010v" - "oter_id\030\002 \001(\0132\036.Catalyst.Protocol.Peer.P" - "eerId\"P\n\025DeltaDfsHashBroadcast\022\026\n\016delta_" - "dfs_hash\030\001 \001(\014\022\037\n\027previous_delta_dfs_has" - "h\030\002 \001(\014B\002P\001b\006proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Wire_2eproto_deps[4] = { - &::descriptor_table_Cryptography_2eproto, - &::descriptor_table_Peer_2eproto, - &::descriptor_table_Transaction_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_Wire_2eproto_sccs[6] = { - &scc_info_CandidateDeltaBroadcast_Wire_2eproto.base, - &scc_info_DeltaDfsHashBroadcast_Wire_2eproto.base, - &scc_info_FavouriteDeltaBroadcast_Wire_2eproto.base, - &scc_info_ProtocolErrorMessage_Wire_2eproto.base, - &scc_info_ProtocolMessage_Wire_2eproto.base, - &scc_info_TransactionBroadcast_Wire_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Wire_2eproto_once; -static bool descriptor_table_Wire_2eproto_initialized = false; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Wire_2eproto = { - &descriptor_table_Wire_2eproto_initialized, descriptor_table_protodef_Wire_2eproto, "Wire.proto", 939, - &descriptor_table_Wire_2eproto_once, descriptor_table_Wire_2eproto_sccs, descriptor_table_Wire_2eproto_deps, 6, 4, - schemas, file_default_instances, TableStruct_Wire_2eproto::offsets, - file_level_metadata_Wire_2eproto, 6, file_level_enum_descriptors_Wire_2eproto, file_level_service_descriptors_Wire_2eproto, +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&_ProtocolErrorMessage_default_instance_), + reinterpret_cast(&_ProtocolMessage_default_instance_), + reinterpret_cast(&_TransactionBroadcast_default_instance_), + reinterpret_cast(&_CandidateDeltaBroadcast_default_instance_), + reinterpret_cast(&_FavouriteDeltaBroadcast_default_instance_), + reinterpret_cast(&_DeltaDfsHashBroadcast_default_instance_), }; -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_Wire_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_Wire_2eproto), true); -namespace Catalyst { -namespace Protocol { -namespace Wire { +namespace { -// =================================================================== - -void ProtocolErrorMessage::InitAsDefaultInstance() { - ::Catalyst::Protocol::Wire::_ProtocolErrorMessage_default_instance_._instance.get_mutable()->signature_ = const_cast< ::Catalyst::Protocol::Cryptography::Signature*>( - ::Catalyst::Protocol::Cryptography::Signature::internal_default_instance()); - ::Catalyst::Protocol::Wire::_ProtocolErrorMessage_default_instance_._instance.get_mutable()->peer_id_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( - ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "Wire.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); } -class ProtocolErrorMessage::_Internal { - public: - static const ::Catalyst::Protocol::Cryptography::Signature& signature(const ProtocolErrorMessage* msg); - static const ::Catalyst::Protocol::Peer::PeerId& peer_id(const ProtocolErrorMessage* msg); -}; -const ::Catalyst::Protocol::Cryptography::Signature& -ProtocolErrorMessage::_Internal::signature(const ProtocolErrorMessage* msg) { - return *msg->signature_; +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } -const ::Catalyst::Protocol::Peer::PeerId& -ProtocolErrorMessage::_Internal::peer_id(const ProtocolErrorMessage* msg) { - return *msg->peer_id_; + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6); } -void ProtocolErrorMessage::clear_signature() { - if (GetArenaNoVirtual() == nullptr && signature_ != nullptr) { - delete signature_; - } - signature_ = nullptr; + +} // namespace + +void TableStruct::Shutdown() { + _ProtocolErrorMessage_default_instance_.Shutdown(); + delete file_level_metadata[0].reflection; + _ProtocolMessage_default_instance_.Shutdown(); + delete file_level_metadata[1].reflection; + _TransactionBroadcast_default_instance_.Shutdown(); + delete file_level_metadata[2].reflection; + _CandidateDeltaBroadcast_default_instance_.Shutdown(); + delete file_level_metadata[3].reflection; + _FavouriteDeltaBroadcast_default_instance_.Shutdown(); + delete file_level_metadata[4].reflection; + _DeltaDfsHashBroadcast_default_instance_.Shutdown(); + delete file_level_metadata[5].reflection; } -void ProtocolErrorMessage::clear_peer_id() { - if (GetArenaNoVirtual() == nullptr && peer_id_ != nullptr) { - delete peer_id_; - } - peer_id_ = nullptr; + +void TableStruct::InitDefaultsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::internal::InitProtobufDefaults(); + ::Catalyst::Protocol::Cryptography::protobuf_Cryptography_2eproto::InitDefaults(); + ::Catalyst::Protocol::Peer::protobuf_Peer_2eproto::InitDefaults(); + ::Catalyst::Protocol::Transaction::protobuf_Transaction_2eproto::InitDefaults(); + ::google::protobuf::protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaults(); + _ProtocolErrorMessage_default_instance_.DefaultConstruct(); + _ProtocolMessage_default_instance_.DefaultConstruct(); + _TransactionBroadcast_default_instance_.DefaultConstruct(); + _CandidateDeltaBroadcast_default_instance_.DefaultConstruct(); + _FavouriteDeltaBroadcast_default_instance_.DefaultConstruct(); + _DeltaDfsHashBroadcast_default_instance_.DefaultConstruct(); + _ProtocolErrorMessage_default_instance_.get_mutable()->signature_ = const_cast< ::Catalyst::Protocol::Cryptography::Signature*>( + ::Catalyst::Protocol::Cryptography::Signature::internal_default_instance()); + _ProtocolErrorMessage_default_instance_.get_mutable()->peer_id_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( + ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); + _ProtocolMessage_default_instance_.get_mutable()->peer_id_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( + ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); + _ProtocolMessage_default_instance_.get_mutable()->signature_ = const_cast< ::Catalyst::Protocol::Cryptography::Signature*>( + ::Catalyst::Protocol::Cryptography::Signature::internal_default_instance()); + _TransactionBroadcast_default_instance_.get_mutable()->public_entry_ = const_cast< ::Catalyst::Protocol::Transaction::PublicEntry*>( + ::Catalyst::Protocol::Transaction::PublicEntry::internal_default_instance()); + _CandidateDeltaBroadcast_default_instance_.get_mutable()->producer_id_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( + ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); + _FavouriteDeltaBroadcast_default_instance_.get_mutable()->candidate_ = const_cast< ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast*>( + ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast::internal_default_instance()); + _FavouriteDeltaBroadcast_default_instance_.get_mutable()->voter_id_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( + ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); } + +void InitDefaults() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); +} +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] = { + "\n\nWire.proto\022\026Catalyst.Protocol.Wire\032\022Cr" + "yptography.proto\032\nPeer.proto\032\021Transactio" + "n.proto\032\037google/protobuf/timestamp.proto" + "\"\253\001\n\024ProtocolErrorMessage\022<\n\tsignature\030\001" + " \001(\0132).Catalyst.Protocol.Cryptography.Si" + "gnature\022/\n\007peer_id\030\002 \001(\0132\036.Catalyst.Prot" + "ocol.Peer.PeerId\022\026\n\016correlation_id\030\003 \001(\014" + "\022\014\n\004code\030\004 \001(\005\"\271\001\n\017ProtocolMessage\022/\n\007pe" + "er_id\030\001 \001(\0132\036.Catalyst.Protocol.Peer.Pee" + "rId\022\026\n\016correlation_id\030\002 \001(\014\022\020\n\010type_url\030" + "\003 \001(\t\022\r\n\005value\030\004 \001(\014\022<\n\tsignature\030\005 \001(\0132" + ").Catalyst.Protocol.Cryptography.Signatu" + "re\"X\n\024TransactionBroadcast\022@\n\014public_ent" + "ry\030\001 \001(\0132*.Catalyst.Protocol.Transaction" + ".PublicEntry\"}\n\027CandidateDeltaBroadcast\022" + "\014\n\004hash\030\001 \001(\014\0223\n\013producer_id\030\002 \001(\0132\036.Cat" + "alyst.Protocol.Peer.PeerId\022\037\n\027previous_d" + "elta_dfs_hash\030\003 \001(\014\"\217\001\n\027FavouriteDeltaBr" + "oadcast\022B\n\tcandidate\030\001 \001(\0132/.Catalyst.Pr" + "otocol.Wire.CandidateDeltaBroadcast\0220\n\010v" + "oter_id\030\002 \001(\0132\036.Catalyst.Protocol.Peer.P" + "eerId\"P\n\025DeltaDfsHashBroadcast\022\026\n\016delta_" + "dfs_hash\030\001 \001(\014\022\037\n\027previous_delta_dfs_has" + "h\030\002 \001(\014B\002P\001b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 939); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "Wire.proto", &protobuf_RegisterTypes); + ::Catalyst::Protocol::Cryptography::protobuf_Cryptography_2eproto::AddDescriptors(); + ::Catalyst::Protocol::Peer::protobuf_Peer_2eproto::AddDescriptors(); + ::Catalyst::Protocol::Transaction::protobuf_Transaction_2eproto::AddDescriptors(); + ::google::protobuf::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors(); + ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; + +} // namespace protobuf_Wire_2eproto + + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProtocolErrorMessage::kSignatureFieldNumber; +const int ProtocolErrorMessage::kPeerIdFieldNumber; +const int ProtocolErrorMessage::kCorrelationIdFieldNumber; +const int ProtocolErrorMessage::kCodeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + ProtocolErrorMessage::ProtocolErrorMessage() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Wire_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Wire.ProtocolErrorMessage) } ProtocolErrorMessage::ProtocolErrorMessage(const ProtocolErrorMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - correlation_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_correlation_id().empty()) { - correlation_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.correlation_id_); + correlation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.correlation_id().size() > 0) { + correlation_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.correlation_id_); } - if (from._internal_has_signature()) { + if (from.has_signature()) { signature_ = new ::Catalyst::Protocol::Cryptography::Signature(*from.signature_); } else { - signature_ = nullptr; + signature_ = NULL; } - if (from._internal_has_peer_id()) { + if (from.has_peer_id()) { peer_id_ = new ::Catalyst::Protocol::Peer::PeerId(*from.peer_id_); } else { - peer_id_ = nullptr; + peer_id_ = NULL; } code_ = from.code_; // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Wire.ProtocolErrorMessage) } void ProtocolErrorMessage::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ProtocolErrorMessage_Wire_2eproto.base); - correlation_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&signature_, 0, static_cast( - reinterpret_cast(&code_) - - reinterpret_cast(&signature_)) + sizeof(code_)); + correlation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&signature_, 0, reinterpret_cast(&code_) - + reinterpret_cast(&signature_) + sizeof(code_)); + _cached_size_ = 0; } ProtocolErrorMessage::~ProtocolErrorMessage() { @@ -341,133 +284,188 @@ ProtocolErrorMessage::~ProtocolErrorMessage() { } void ProtocolErrorMessage::SharedDtor() { - correlation_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete signature_; - if (this != internal_default_instance()) delete peer_id_; + correlation_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) { + delete signature_; + } + if (this != internal_default_instance()) { + delete peer_id_; + } } void ProtocolErrorMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProtocolErrorMessage::descriptor() { + protobuf_Wire_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Wire_2eproto::file_level_metadata[0].descriptor; } + const ProtocolErrorMessage& ProtocolErrorMessage::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ProtocolErrorMessage_Wire_2eproto.base); + protobuf_Wire_2eproto::InitDefaults(); return *internal_default_instance(); } +ProtocolErrorMessage* ProtocolErrorMessage::New(::google::protobuf::Arena* arena) const { + ProtocolErrorMessage* n = new ProtocolErrorMessage; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void ProtocolErrorMessage::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Wire.ProtocolErrorMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - correlation_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && signature_ != nullptr) { + correlation_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && signature_ != NULL) { delete signature_; } - signature_ = nullptr; - if (GetArenaNoVirtual() == nullptr && peer_id_ != nullptr) { + signature_ = NULL; + if (GetArenaNoVirtual() == NULL && peer_id_ != NULL) { delete peer_id_; } - peer_id_ = nullptr; + peer_id_ = NULL; code_ = 0; - _internal_metadata_.Clear(); } -const char* ProtocolErrorMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool ProtocolErrorMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Wire.ProtocolErrorMessage) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .Catalyst.Protocol.Cryptography.Signature signature = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_signature(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + // .Catalyst.Protocol.Peer.PeerId peer_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_peer_id(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_peer_id())); + } else { + goto handle_unusual; + } + break; + } + // bytes correlation_id = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_correlation_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_correlation_id())); + } else { + goto handle_unusual; + } + break; + } + // int32 code = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 4: { + if (tag == 32u) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + input, &code_))); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Wire.ProtocolErrorMessage) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Wire.ProtocolErrorMessage) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* ProtocolErrorMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Wire.ProtocolErrorMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void ProtocolErrorMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Wire.ProtocolErrorMessage) // .Catalyst.Protocol.Cryptography.Signature signature = 1; if (this->has_signature()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::signature(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->signature_, output); } // .Catalyst.Protocol.Peer.PeerId peer_id = 2; if (this->has_peer_id()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::peer_id(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->peer_id_, output); } // bytes correlation_id = 3; if (this->correlation_id().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_correlation_id(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->correlation_id(), output); } // int32 code = 4; if (this->code() != 0) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_code(), target); + ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->code(), output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Wire.ProtocolErrorMessage) +} + +::google::protobuf::uint8* ProtocolErrorMessage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Wire.ProtocolErrorMessage) + // .Catalyst.Protocol.Cryptography.Signature signature = 1; + if (this->has_signature()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *this->signature_, false, target); + } + + // .Catalyst.Protocol.Peer.PeerId peer_id = 2; + if (this->has_peer_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 2, *this->peer_id_, false, target); + } + + // bytes correlation_id = 3; + if (this->correlation_id().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->correlation_id(), target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // int32 code = 4; + if (this->code() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->code(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Wire.ProtocolErrorMessage) return target; } @@ -476,56 +474,50 @@ size_t ProtocolErrorMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Wire.ProtocolErrorMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes correlation_id = 3; if (this->correlation_id().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_correlation_id()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->correlation_id()); } // .Catalyst.Protocol.Cryptography.Signature signature = 1; if (this->has_signature()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *signature_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->signature_); } // .Catalyst.Protocol.Peer.PeerId peer_id = 2; if (this->has_peer_id()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *peer_id_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->peer_id_); } // int32 code = 4; if (this->code() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_code()); + ::google::protobuf::internal::WireFormatLite::Int32Size( + this->code()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ProtocolErrorMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ProtocolErrorMessage::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Wire.ProtocolErrorMessage) GOOGLE_DCHECK_NE(&from, this); const ProtocolErrorMessage* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Wire.ProtocolErrorMessage) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Wire.ProtocolErrorMessage) MergeFrom(*source); @@ -536,25 +528,22 @@ void ProtocolErrorMessage::MergeFrom(const ProtocolErrorMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Wire.ProtocolErrorMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.correlation_id().size() > 0) { - correlation_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.correlation_id_); + correlation_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.correlation_id_); } if (from.has_signature()) { - _internal_mutable_signature()->::Catalyst::Protocol::Cryptography::Signature::MergeFrom(from._internal_signature()); + mutable_signature()->::Catalyst::Protocol::Cryptography::Signature::MergeFrom(from.signature()); } if (from.has_peer_id()) { - _internal_mutable_peer_id()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from._internal_peer_id()); + mutable_peer_id()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from.peer_id()); } if (from.code() != 0) { - _internal_set_code(from._internal_code()); + set_code(from.code()); } } -void ProtocolErrorMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ProtocolErrorMessage::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Wire.ProtocolErrorMessage) if (&from == this) return; Clear(); @@ -572,97 +561,227 @@ bool ProtocolErrorMessage::IsInitialized() const { return true; } +void ProtocolErrorMessage::Swap(ProtocolErrorMessage* other) { + if (other == this) return; + InternalSwap(other); +} void ProtocolErrorMessage::InternalSwap(ProtocolErrorMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - correlation_id_.Swap(&other->correlation_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(signature_, other->signature_); - swap(peer_id_, other->peer_id_); - swap(code_, other->code_); + correlation_id_.Swap(&other->correlation_id_); + std::swap(signature_, other->signature_); + std::swap(peer_id_, other->peer_id_); + std::swap(code_, other->code_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata ProtocolErrorMessage::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata ProtocolErrorMessage::GetMetadata() const { + protobuf_Wire_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Wire_2eproto::file_level_metadata[0]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// ProtocolErrorMessage -// =================================================================== - -void ProtocolMessage::InitAsDefaultInstance() { - ::Catalyst::Protocol::Wire::_ProtocolMessage_default_instance_._instance.get_mutable()->peer_id_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( - ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); - ::Catalyst::Protocol::Wire::_ProtocolMessage_default_instance_._instance.get_mutable()->signature_ = const_cast< ::Catalyst::Protocol::Cryptography::Signature*>( - ::Catalyst::Protocol::Cryptography::Signature::internal_default_instance()); +// .Catalyst.Protocol.Cryptography.Signature signature = 1; +bool ProtocolErrorMessage::has_signature() const { + return this != internal_default_instance() && signature_ != NULL; } -class ProtocolMessage::_Internal { - public: - static const ::Catalyst::Protocol::Peer::PeerId& peer_id(const ProtocolMessage* msg); - static const ::Catalyst::Protocol::Cryptography::Signature& signature(const ProtocolMessage* msg); -}; - -const ::Catalyst::Protocol::Peer::PeerId& -ProtocolMessage::_Internal::peer_id(const ProtocolMessage* msg) { - return *msg->peer_id_; +void ProtocolErrorMessage::clear_signature() { + if (GetArenaNoVirtual() == NULL && signature_ != NULL) delete signature_; + signature_ = NULL; +} +const ::Catalyst::Protocol::Cryptography::Signature& ProtocolErrorMessage::signature() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolErrorMessage.signature) + return signature_ != NULL ? *signature_ + : *::Catalyst::Protocol::Cryptography::Signature::internal_default_instance(); +} +::Catalyst::Protocol::Cryptography::Signature* ProtocolErrorMessage::mutable_signature() { + + if (signature_ == NULL) { + signature_ = new ::Catalyst::Protocol::Cryptography::Signature; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolErrorMessage.signature) + return signature_; +} +::Catalyst::Protocol::Cryptography::Signature* ProtocolErrorMessage::release_signature() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolErrorMessage.signature) + + ::Catalyst::Protocol::Cryptography::Signature* temp = signature_; + signature_ = NULL; + return temp; +} +void ProtocolErrorMessage::set_allocated_signature(::Catalyst::Protocol::Cryptography::Signature* signature) { + delete signature_; + signature_ = signature; + if (signature) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolErrorMessage.signature) } -const ::Catalyst::Protocol::Cryptography::Signature& -ProtocolMessage::_Internal::signature(const ProtocolMessage* msg) { - return *msg->signature_; + +// .Catalyst.Protocol.Peer.PeerId peer_id = 2; +bool ProtocolErrorMessage::has_peer_id() const { + return this != internal_default_instance() && peer_id_ != NULL; } -void ProtocolMessage::clear_peer_id() { - if (GetArenaNoVirtual() == nullptr && peer_id_ != nullptr) { - delete peer_id_; +void ProtocolErrorMessage::clear_peer_id() { + if (GetArenaNoVirtual() == NULL && peer_id_ != NULL) delete peer_id_; + peer_id_ = NULL; +} +const ::Catalyst::Protocol::Peer::PeerId& ProtocolErrorMessage::peer_id() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolErrorMessage.peer_id) + return peer_id_ != NULL ? *peer_id_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +::Catalyst::Protocol::Peer::PeerId* ProtocolErrorMessage::mutable_peer_id() { + + if (peer_id_ == NULL) { + peer_id_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolErrorMessage.peer_id) + return peer_id_; +} +::Catalyst::Protocol::Peer::PeerId* ProtocolErrorMessage::release_peer_id() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolErrorMessage.peer_id) + + ::Catalyst::Protocol::Peer::PeerId* temp = peer_id_; + peer_id_ = NULL; + return temp; +} +void ProtocolErrorMessage::set_allocated_peer_id(::Catalyst::Protocol::Peer::PeerId* peer_id) { + delete peer_id_; + peer_id_ = peer_id; + if (peer_id) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolErrorMessage.peer_id) +} + +// bytes correlation_id = 3; +void ProtocolErrorMessage::clear_correlation_id() { + correlation_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& ProtocolErrorMessage::correlation_id() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) + return correlation_id_.GetNoArena(); +} +void ProtocolErrorMessage::set_correlation_id(const ::std::string& value) { + + correlation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) +} +#if LANG_CXX11 +void ProtocolErrorMessage::set_correlation_id(::std::string&& value) { + + correlation_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) +} +#endif +void ProtocolErrorMessage::set_correlation_id(const char* value) { + + correlation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) +} +void ProtocolErrorMessage::set_correlation_id(const void* value, size_t size) { + + correlation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) +} +::std::string* ProtocolErrorMessage::mutable_correlation_id() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) + return correlation_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* ProtocolErrorMessage::release_correlation_id() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) + + return correlation_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void ProtocolErrorMessage::set_allocated_correlation_id(::std::string* correlation_id) { + if (correlation_id != NULL) { + + } else { + } - peer_id_ = nullptr; + correlation_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), correlation_id); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) } -void ProtocolMessage::clear_signature() { - if (GetArenaNoVirtual() == nullptr && signature_ != nullptr) { - delete signature_; - } - signature_ = nullptr; + +// int32 code = 4; +void ProtocolErrorMessage::clear_code() { + code_ = 0; +} +::google::protobuf::int32 ProtocolErrorMessage::code() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolErrorMessage.code) + return code_; +} +void ProtocolErrorMessage::set_code(::google::protobuf::int32 value) { + + code_ = value; + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolErrorMessage.code) } + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProtocolMessage::kPeerIdFieldNumber; +const int ProtocolMessage::kCorrelationIdFieldNumber; +const int ProtocolMessage::kTypeUrlFieldNumber; +const int ProtocolMessage::kValueFieldNumber; +const int ProtocolMessage::kSignatureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + ProtocolMessage::ProtocolMessage() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Wire_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Wire.ProtocolMessage) } ProtocolMessage::ProtocolMessage(const ProtocolMessage& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - correlation_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_correlation_id().empty()) { - correlation_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.correlation_id_); + correlation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.correlation_id().size() > 0) { + correlation_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.correlation_id_); } - type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_type_url().empty()) { - type_url_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_url_); + type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.type_url().size() > 0) { + type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_url_); } - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_value().empty()) { - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); } - if (from._internal_has_peer_id()) { + if (from.has_peer_id()) { peer_id_ = new ::Catalyst::Protocol::Peer::PeerId(*from.peer_id_); } else { - peer_id_ = nullptr; + peer_id_ = NULL; } - if (from._internal_has_signature()) { + if (from.has_signature()) { signature_ = new ::Catalyst::Protocol::Cryptography::Signature(*from.signature_); } else { - signature_ = nullptr; + signature_ = NULL; } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Wire.ProtocolMessage) } void ProtocolMessage::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ProtocolMessage_Wire_2eproto.base); - correlation_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&peer_id_, 0, static_cast( - reinterpret_cast(&signature_) - - reinterpret_cast(&peer_id_)) + sizeof(signature_)); + correlation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&peer_id_, 0, reinterpret_cast(&signature_) - + reinterpret_cast(&peer_id_) + sizeof(signature_)); + _cached_size_ = 0; } ProtocolMessage::~ProtocolMessage() { @@ -671,156 +790,228 @@ ProtocolMessage::~ProtocolMessage() { } void ProtocolMessage::SharedDtor() { - correlation_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - type_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete peer_id_; - if (this != internal_default_instance()) delete signature_; + correlation_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) { + delete peer_id_; + } + if (this != internal_default_instance()) { + delete signature_; + } } void ProtocolMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProtocolMessage::descriptor() { + protobuf_Wire_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Wire_2eproto::file_level_metadata[1].descriptor; } + const ProtocolMessage& ProtocolMessage::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ProtocolMessage_Wire_2eproto.base); + protobuf_Wire_2eproto::InitDefaults(); return *internal_default_instance(); } +ProtocolMessage* ProtocolMessage::New(::google::protobuf::Arena* arena) const { + ProtocolMessage* n = new ProtocolMessage; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void ProtocolMessage::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Wire.ProtocolMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - correlation_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - type_url_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && peer_id_ != nullptr) { + correlation_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && peer_id_ != NULL) { delete peer_id_; } - peer_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && signature_ != nullptr) { + peer_id_ = NULL; + if (GetArenaNoVirtual() == NULL && signature_ != NULL) { delete signature_; } - signature_ = nullptr; - _internal_metadata_.Clear(); + signature_ = NULL; } -const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool ProtocolMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Wire.ProtocolMessage) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .Catalyst.Protocol.Peer.PeerId peer_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_peer_id(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_peer_id())); + } else { + goto handle_unusual; + } + break; + } + // bytes correlation_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_correlation_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_correlation_id())); + } else { + goto handle_unusual; + } + break; + } + // string type_url = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_type_url(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Catalyst.Protocol.Wire.ProtocolMessage.type_url")); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_type_url())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->type_url().data(), this->type_url().length(), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Catalyst.Protocol.Wire.ProtocolMessage.type_url")); + } else { + goto handle_unusual; + } + break; + } + // bytes value = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - auto str = _internal_mutable_value(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 4: { + if (tag == 34u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_unusual; + } + break; + } + // .Catalyst.Protocol.Cryptography.Signature signature = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_signature(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 5: { + if (tag == 42u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_signature())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Wire.ProtocolMessage) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Wire.ProtocolMessage) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* ProtocolMessage::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Wire.ProtocolMessage) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void ProtocolMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Wire.ProtocolMessage) // .Catalyst.Protocol.Peer.PeerId peer_id = 1; if (this->has_peer_id()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::peer_id(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->peer_id_, output); } // bytes correlation_id = 2; if (this->correlation_id().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_correlation_id(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->correlation_id(), output); } // string type_url = 3; if (this->type_url().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_type_url().data(), static_cast(this->_internal_type_url().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->type_url().data(), this->type_url().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Catalyst.Protocol.Wire.ProtocolMessage.type_url"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_type_url(), target); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->type_url(), output); } // bytes value = 4; if (this->value().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_value(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 4, this->value(), output); } // .Catalyst.Protocol.Cryptography.Signature signature = 5; if (this->has_signature()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::signature(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->signature_, output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Wire.ProtocolMessage) +} + +::google::protobuf::uint8* ProtocolMessage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Wire.ProtocolMessage) + // .Catalyst.Protocol.Peer.PeerId peer_id = 1; + if (this->has_peer_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *this->peer_id_, false, target); } + + // bytes correlation_id = 2; + if (this->correlation_id().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->correlation_id(), target); + } + + // string type_url = 3; + if (this->type_url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->type_url().data(), this->type_url().length(), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Catalyst.Protocol.Wire.ProtocolMessage.type_url"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->type_url(), target); + } + + // bytes value = 4; + if (this->value().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 4, this->value(), target); + } + + // .Catalyst.Protocol.Cryptography.Signature signature = 5; + if (this->has_signature()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 5, *this->signature_, false, target); + } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Wire.ProtocolMessage) return target; } @@ -829,63 +1020,57 @@ size_t ProtocolMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Wire.ProtocolMessage) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes correlation_id = 2; if (this->correlation_id().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_correlation_id()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->correlation_id()); } // string type_url = 3; if (this->type_url().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_type_url()); + ::google::protobuf::internal::WireFormatLite::StringSize( + this->type_url()); } // bytes value = 4; if (this->value().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_value()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); } // .Catalyst.Protocol.Peer.PeerId peer_id = 1; if (this->has_peer_id()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *peer_id_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->peer_id_); } // .Catalyst.Protocol.Cryptography.Signature signature = 5; if (this->has_signature()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *signature_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->signature_); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void ProtocolMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ProtocolMessage::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Wire.ProtocolMessage) GOOGLE_DCHECK_NE(&from, this); const ProtocolMessage* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Wire.ProtocolMessage) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Wire.ProtocolMessage) MergeFrom(*source); @@ -896,30 +1081,27 @@ void ProtocolMessage::MergeFrom(const ProtocolMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Wire.ProtocolMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.correlation_id().size() > 0) { - correlation_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.correlation_id_); + correlation_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.correlation_id_); } if (from.type_url().size() > 0) { - type_url_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.type_url_); + type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_url_); } if (from.value().size() > 0) { - value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.value_); + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); } if (from.has_peer_id()) { - _internal_mutable_peer_id()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from._internal_peer_id()); + mutable_peer_id()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from.peer_id()); } if (from.has_signature()) { - _internal_mutable_signature()->::Catalyst::Protocol::Cryptography::Signature::MergeFrom(from._internal_signature()); + mutable_signature()->::Catalyst::Protocol::Cryptography::Signature::MergeFrom(from.signature()); } } -void ProtocolMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ProtocolMessage::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Wire.ProtocolMessage) if (&from == this) return; Clear(); @@ -937,65 +1119,293 @@ bool ProtocolMessage::IsInitialized() const { return true; } +void ProtocolMessage::Swap(ProtocolMessage* other) { + if (other == this) return; + InternalSwap(other); +} void ProtocolMessage::InternalSwap(ProtocolMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - correlation_id_.Swap(&other->correlation_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - type_url_.Swap(&other->type_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - value_.Swap(&other->value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(peer_id_, other->peer_id_); - swap(signature_, other->signature_); + correlation_id_.Swap(&other->correlation_id_); + type_url_.Swap(&other->type_url_); + value_.Swap(&other->value_); + std::swap(peer_id_, other->peer_id_); + std::swap(signature_, other->signature_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata ProtocolMessage::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata ProtocolMessage::GetMetadata() const { + protobuf_Wire_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Wire_2eproto::file_level_metadata[1]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// ProtocolMessage -// =================================================================== - -void TransactionBroadcast::InitAsDefaultInstance() { - ::Catalyst::Protocol::Wire::_TransactionBroadcast_default_instance_._instance.get_mutable()->public_entry_ = const_cast< ::Catalyst::Protocol::Transaction::PublicEntry*>( - ::Catalyst::Protocol::Transaction::PublicEntry::internal_default_instance()); +// .Catalyst.Protocol.Peer.PeerId peer_id = 1; +bool ProtocolMessage::has_peer_id() const { + return this != internal_default_instance() && peer_id_ != NULL; +} +void ProtocolMessage::clear_peer_id() { + if (GetArenaNoVirtual() == NULL && peer_id_ != NULL) delete peer_id_; + peer_id_ = NULL; +} +const ::Catalyst::Protocol::Peer::PeerId& ProtocolMessage::peer_id() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolMessage.peer_id) + return peer_id_ != NULL ? *peer_id_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +::Catalyst::Protocol::Peer::PeerId* ProtocolMessage::mutable_peer_id() { + + if (peer_id_ == NULL) { + peer_id_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.peer_id) + return peer_id_; +} +::Catalyst::Protocol::Peer::PeerId* ProtocolMessage::release_peer_id() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolMessage.peer_id) + + ::Catalyst::Protocol::Peer::PeerId* temp = peer_id_; + peer_id_ = NULL; + return temp; +} +void ProtocolMessage::set_allocated_peer_id(::Catalyst::Protocol::Peer::PeerId* peer_id) { + delete peer_id_; + peer_id_ = peer_id; + if (peer_id) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolMessage.peer_id) +} + +// bytes correlation_id = 2; +void ProtocolMessage::clear_correlation_id() { + correlation_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& ProtocolMessage::correlation_id() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) + return correlation_id_.GetNoArena(); +} +void ProtocolMessage::set_correlation_id(const ::std::string& value) { + + correlation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) +} +#if LANG_CXX11 +void ProtocolMessage::set_correlation_id(::std::string&& value) { + + correlation_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) +} +#endif +void ProtocolMessage::set_correlation_id(const char* value) { + + correlation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) +} +void ProtocolMessage::set_correlation_id(const void* value, size_t size) { + + correlation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) +} +::std::string* ProtocolMessage::mutable_correlation_id() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) + return correlation_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* ProtocolMessage::release_correlation_id() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) + + return correlation_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void ProtocolMessage::set_allocated_correlation_id(::std::string* correlation_id) { + if (correlation_id != NULL) { + + } else { + + } + correlation_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), correlation_id); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) +} + +// string type_url = 3; +void ProtocolMessage::clear_type_url() { + type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& ProtocolMessage::type_url() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolMessage.type_url) + return type_url_.GetNoArena(); +} +void ProtocolMessage::set_type_url(const ::std::string& value) { + + type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolMessage.type_url) +} +#if LANG_CXX11 +void ProtocolMessage::set_type_url(::std::string&& value) { + + type_url_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.ProtocolMessage.type_url) +} +#endif +void ProtocolMessage::set_type_url(const char* value) { + + type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.ProtocolMessage.type_url) +} +void ProtocolMessage::set_type_url(const char* value, size_t size) { + + type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.ProtocolMessage.type_url) +} +::std::string* ProtocolMessage::mutable_type_url() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.type_url) + return type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* ProtocolMessage::release_type_url() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolMessage.type_url) + + return type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void ProtocolMessage::set_allocated_type_url(::std::string* type_url) { + if (type_url != NULL) { + + } else { + + } + type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_url); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolMessage.type_url) +} + +// bytes value = 4; +void ProtocolMessage::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& ProtocolMessage::value() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolMessage.value) + return value_.GetNoArena(); +} +void ProtocolMessage::set_value(const ::std::string& value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolMessage.value) +} +#if LANG_CXX11 +void ProtocolMessage::set_value(::std::string&& value) { + + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.ProtocolMessage.value) +} +#endif +void ProtocolMessage::set_value(const char* value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.ProtocolMessage.value) +} +void ProtocolMessage::set_value(const void* value, size_t size) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.ProtocolMessage.value) +} +::std::string* ProtocolMessage::mutable_value() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* ProtocolMessage::release_value() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolMessage.value) + + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void ProtocolMessage::set_allocated_value(::std::string* value) { + if (value != NULL) { + + } else { + + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolMessage.value) } -class TransactionBroadcast::_Internal { - public: - static const ::Catalyst::Protocol::Transaction::PublicEntry& public_entry(const TransactionBroadcast* msg); -}; -const ::Catalyst::Protocol::Transaction::PublicEntry& -TransactionBroadcast::_Internal::public_entry(const TransactionBroadcast* msg) { - return *msg->public_entry_; +// .Catalyst.Protocol.Cryptography.Signature signature = 5; +bool ProtocolMessage::has_signature() const { + return this != internal_default_instance() && signature_ != NULL; } -void TransactionBroadcast::clear_public_entry() { - if (GetArenaNoVirtual() == nullptr && public_entry_ != nullptr) { - delete public_entry_; +void ProtocolMessage::clear_signature() { + if (GetArenaNoVirtual() == NULL && signature_ != NULL) delete signature_; + signature_ = NULL; +} +const ::Catalyst::Protocol::Cryptography::Signature& ProtocolMessage::signature() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolMessage.signature) + return signature_ != NULL ? *signature_ + : *::Catalyst::Protocol::Cryptography::Signature::internal_default_instance(); +} +::Catalyst::Protocol::Cryptography::Signature* ProtocolMessage::mutable_signature() { + + if (signature_ == NULL) { + signature_ = new ::Catalyst::Protocol::Cryptography::Signature; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.signature) + return signature_; +} +::Catalyst::Protocol::Cryptography::Signature* ProtocolMessage::release_signature() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolMessage.signature) + + ::Catalyst::Protocol::Cryptography::Signature* temp = signature_; + signature_ = NULL; + return temp; +} +void ProtocolMessage::set_allocated_signature(::Catalyst::Protocol::Cryptography::Signature* signature) { + delete signature_; + signature_ = signature; + if (signature) { + + } else { + } - public_entry_ = nullptr; + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolMessage.signature) } + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TransactionBroadcast::kPublicEntryFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + TransactionBroadcast::TransactionBroadcast() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Wire_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Wire.TransactionBroadcast) } TransactionBroadcast::TransactionBroadcast(const TransactionBroadcast& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_public_entry()) { + if (from.has_public_entry()) { public_entry_ = new ::Catalyst::Protocol::Transaction::PublicEntry(*from.public_entry_); } else { - public_entry_ = nullptr; + public_entry_ = NULL; } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Wire.TransactionBroadcast) } void TransactionBroadcast::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TransactionBroadcast_Wire_2eproto.base); - public_entry_ = nullptr; + public_entry_ = NULL; + _cached_size_ = 0; } TransactionBroadcast::~TransactionBroadcast() { @@ -1004,83 +1414,107 @@ TransactionBroadcast::~TransactionBroadcast() { } void TransactionBroadcast::SharedDtor() { - if (this != internal_default_instance()) delete public_entry_; + if (this != internal_default_instance()) { + delete public_entry_; + } } void TransactionBroadcast::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TransactionBroadcast::descriptor() { + protobuf_Wire_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Wire_2eproto::file_level_metadata[2].descriptor; } + const TransactionBroadcast& TransactionBroadcast::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TransactionBroadcast_Wire_2eproto.base); + protobuf_Wire_2eproto::InitDefaults(); return *internal_default_instance(); } +TransactionBroadcast* TransactionBroadcast::New(::google::protobuf::Arena* arena) const { + TransactionBroadcast* n = new TransactionBroadcast; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void TransactionBroadcast::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Wire.TransactionBroadcast) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && public_entry_ != nullptr) { + if (GetArenaNoVirtual() == NULL && public_entry_ != NULL) { delete public_entry_; } - public_entry_ = nullptr; - _internal_metadata_.Clear(); + public_entry_ = NULL; } -const char* TransactionBroadcast::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool TransactionBroadcast::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Wire.TransactionBroadcast) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_public_entry(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_public_entry())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Wire.TransactionBroadcast) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Wire.TransactionBroadcast) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* TransactionBroadcast::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Wire.TransactionBroadcast) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void TransactionBroadcast::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Wire.TransactionBroadcast) // .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; if (this->has_public_entry()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::public_entry(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->public_entry_, output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Wire.TransactionBroadcast) +} + +::google::protobuf::uint8* TransactionBroadcast::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Wire.TransactionBroadcast) + // .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; + if (this->has_public_entry()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *this->public_entry_, false, target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Wire.TransactionBroadcast) return target; } @@ -1089,35 +1523,29 @@ size_t TransactionBroadcast::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Wire.TransactionBroadcast) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; if (this->has_public_entry()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *public_entry_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->public_entry_); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void TransactionBroadcast::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TransactionBroadcast::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Wire.TransactionBroadcast) GOOGLE_DCHECK_NE(&from, this); const TransactionBroadcast* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Wire.TransactionBroadcast) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Wire.TransactionBroadcast) MergeFrom(*source); @@ -1128,15 +1556,12 @@ void TransactionBroadcast::MergeFrom(const TransactionBroadcast& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Wire.TransactionBroadcast) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.has_public_entry()) { - _internal_mutable_public_entry()->::Catalyst::Protocol::Transaction::PublicEntry::MergeFrom(from._internal_public_entry()); + mutable_public_entry()->::Catalyst::Protocol::Transaction::PublicEntry::MergeFrom(from.public_entry()); } } -void TransactionBroadcast::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TransactionBroadcast::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Wire.TransactionBroadcast) if (&from == this) return; Clear(); @@ -1154,68 +1579,106 @@ bool TransactionBroadcast::IsInitialized() const { return true; } +void TransactionBroadcast::Swap(TransactionBroadcast* other) { + if (other == this) return; + InternalSwap(other); +} void TransactionBroadcast::InternalSwap(TransactionBroadcast* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(public_entry_, other->public_entry_); + std::swap(public_entry_, other->public_entry_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata TransactionBroadcast::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata TransactionBroadcast::GetMetadata() const { + protobuf_Wire_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Wire_2eproto::file_level_metadata[2]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// TransactionBroadcast -// =================================================================== - -void CandidateDeltaBroadcast::InitAsDefaultInstance() { - ::Catalyst::Protocol::Wire::_CandidateDeltaBroadcast_default_instance_._instance.get_mutable()->producer_id_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( - ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); -} -class CandidateDeltaBroadcast::_Internal { - public: - static const ::Catalyst::Protocol::Peer::PeerId& producer_id(const CandidateDeltaBroadcast* msg); -}; - -const ::Catalyst::Protocol::Peer::PeerId& -CandidateDeltaBroadcast::_Internal::producer_id(const CandidateDeltaBroadcast* msg) { - return *msg->producer_id_; +// .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; +bool TransactionBroadcast::has_public_entry() const { + return this != internal_default_instance() && public_entry_ != NULL; } -void CandidateDeltaBroadcast::clear_producer_id() { - if (GetArenaNoVirtual() == nullptr && producer_id_ != nullptr) { - delete producer_id_; +void TransactionBroadcast::clear_public_entry() { + if (GetArenaNoVirtual() == NULL && public_entry_ != NULL) delete public_entry_; + public_entry_ = NULL; +} +const ::Catalyst::Protocol::Transaction::PublicEntry& TransactionBroadcast::public_entry() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.TransactionBroadcast.public_entry) + return public_entry_ != NULL ? *public_entry_ + : *::Catalyst::Protocol::Transaction::PublicEntry::internal_default_instance(); +} +::Catalyst::Protocol::Transaction::PublicEntry* TransactionBroadcast::mutable_public_entry() { + + if (public_entry_ == NULL) { + public_entry_ = new ::Catalyst::Protocol::Transaction::PublicEntry; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.TransactionBroadcast.public_entry) + return public_entry_; +} +::Catalyst::Protocol::Transaction::PublicEntry* TransactionBroadcast::release_public_entry() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.TransactionBroadcast.public_entry) + + ::Catalyst::Protocol::Transaction::PublicEntry* temp = public_entry_; + public_entry_ = NULL; + return temp; +} +void TransactionBroadcast::set_allocated_public_entry(::Catalyst::Protocol::Transaction::PublicEntry* public_entry) { + delete public_entry_; + public_entry_ = public_entry; + if (public_entry) { + + } else { + } - producer_id_ = nullptr; + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.TransactionBroadcast.public_entry) } + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CandidateDeltaBroadcast::kHashFieldNumber; +const int CandidateDeltaBroadcast::kProducerIdFieldNumber; +const int CandidateDeltaBroadcast::kPreviousDeltaDfsHashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + CandidateDeltaBroadcast::CandidateDeltaBroadcast() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Wire_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) } CandidateDeltaBroadcast::CandidateDeltaBroadcast(const CandidateDeltaBroadcast& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_hash().empty()) { - hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.hash_); + hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.hash().size() > 0) { + hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); } - previous_delta_dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_previous_delta_dfs_hash().empty()) { - previous_delta_dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.previous_delta_dfs_hash_); + previous_delta_dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.previous_delta_dfs_hash().size() > 0) { + previous_delta_dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.previous_delta_dfs_hash_); } - if (from._internal_has_producer_id()) { + if (from.has_producer_id()) { producer_id_ = new ::Catalyst::Protocol::Peer::PeerId(*from.producer_id_); } else { - producer_id_ = nullptr; + producer_id_ = NULL; } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) } void CandidateDeltaBroadcast::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CandidateDeltaBroadcast_Wire_2eproto.base); - hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - previous_delta_dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - producer_id_ = nullptr; + hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + previous_delta_dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + producer_id_ = NULL; + _cached_size_ = 0; } CandidateDeltaBroadcast::~CandidateDeltaBroadcast() { @@ -1224,115 +1687,159 @@ CandidateDeltaBroadcast::~CandidateDeltaBroadcast() { } void CandidateDeltaBroadcast::SharedDtor() { - hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - previous_delta_dfs_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete producer_id_; + hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + previous_delta_dfs_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) { + delete producer_id_; + } } void CandidateDeltaBroadcast::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* CandidateDeltaBroadcast::descriptor() { + protobuf_Wire_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Wire_2eproto::file_level_metadata[3].descriptor; +} + const CandidateDeltaBroadcast& CandidateDeltaBroadcast::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CandidateDeltaBroadcast_Wire_2eproto.base); + protobuf_Wire_2eproto::InitDefaults(); return *internal_default_instance(); } +CandidateDeltaBroadcast* CandidateDeltaBroadcast::New(::google::protobuf::Arena* arena) const { + CandidateDeltaBroadcast* n = new CandidateDeltaBroadcast; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void CandidateDeltaBroadcast::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - previous_delta_dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && producer_id_ != nullptr) { + hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + previous_delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && producer_id_ != NULL) { delete producer_id_; } - producer_id_ = nullptr; - _internal_metadata_.Clear(); + producer_id_ = NULL; } -const char* CandidateDeltaBroadcast::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool CandidateDeltaBroadcast::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes hash = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_hash())); + } else { + goto handle_unusual; + } + break; + } + // .Catalyst.Protocol.Peer.PeerId producer_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_producer_id(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_producer_id())); + } else { + goto handle_unusual; + } + break; + } + // bytes previous_delta_dfs_hash = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - auto str = _internal_mutable_previous_delta_dfs_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 3: { + if (tag == 26u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_previous_delta_dfs_hash())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* CandidateDeltaBroadcast::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void CandidateDeltaBroadcast::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) // bytes hash = 1; if (this->hash().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_hash(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->hash(), output); } // .Catalyst.Protocol.Peer.PeerId producer_id = 2; if (this->has_producer_id()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::producer_id(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->producer_id_, output); } // bytes previous_delta_dfs_hash = 3; if (this->previous_delta_dfs_hash().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_previous_delta_dfs_hash(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 3, this->previous_delta_dfs_hash(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) +} + +::google::protobuf::uint8* CandidateDeltaBroadcast::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) + // bytes hash = 1; + if (this->hash().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->hash(), target); + } + + // .Catalyst.Protocol.Peer.PeerId producer_id = 2; + if (this->has_producer_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 2, *this->producer_id_, false, target); + } + + // bytes previous_delta_dfs_hash = 3; + if (this->previous_delta_dfs_hash().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->previous_delta_dfs_hash(), target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) return target; } @@ -1341,49 +1848,43 @@ size_t CandidateDeltaBroadcast::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes hash = 1; if (this->hash().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_hash()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->hash()); } // bytes previous_delta_dfs_hash = 3; if (this->previous_delta_dfs_hash().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_previous_delta_dfs_hash()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->previous_delta_dfs_hash()); } // .Catalyst.Protocol.Peer.PeerId producer_id = 2; if (this->has_producer_id()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *producer_id_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->producer_id_); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void CandidateDeltaBroadcast::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CandidateDeltaBroadcast::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) GOOGLE_DCHECK_NE(&from, this); const CandidateDeltaBroadcast* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) MergeFrom(*source); @@ -1394,23 +1895,20 @@ void CandidateDeltaBroadcast::MergeFrom(const CandidateDeltaBroadcast& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.hash().size() > 0) { - hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.hash_); + hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); } if (from.previous_delta_dfs_hash().size() > 0) { - previous_delta_dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.previous_delta_dfs_hash_); + previous_delta_dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.previous_delta_dfs_hash_); } if (from.has_producer_id()) { - _internal_mutable_producer_id()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from._internal_producer_id()); + mutable_producer_id()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from.producer_id()); } } -void CandidateDeltaBroadcast::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void CandidateDeltaBroadcast::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) if (&from == this) return; Clear(); @@ -1428,76 +1926,207 @@ bool CandidateDeltaBroadcast::IsInitialized() const { return true; } +void CandidateDeltaBroadcast::Swap(CandidateDeltaBroadcast* other) { + if (other == this) return; + InternalSwap(other); +} void CandidateDeltaBroadcast::InternalSwap(CandidateDeltaBroadcast* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - hash_.Swap(&other->hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - previous_delta_dfs_hash_.Swap(&other->previous_delta_dfs_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(producer_id_, other->producer_id_); + hash_.Swap(&other->hash_); + previous_delta_dfs_hash_.Swap(&other->previous_delta_dfs_hash_); + std::swap(producer_id_, other->producer_id_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata CandidateDeltaBroadcast::GetMetadata() const { + protobuf_Wire_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Wire_2eproto::file_level_metadata[3]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// CandidateDeltaBroadcast + +// bytes hash = 1; +void CandidateDeltaBroadcast::clear_hash() { + hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& CandidateDeltaBroadcast::hash() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) + return hash_.GetNoArena(); +} +void CandidateDeltaBroadcast::set_hash(const ::std::string& value) { + + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) +} +#if LANG_CXX11 +void CandidateDeltaBroadcast::set_hash(::std::string&& value) { + + hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) +} +#endif +void CandidateDeltaBroadcast::set_hash(const char* value) { + + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) +} +void CandidateDeltaBroadcast::set_hash(const void* value, size_t size) { + + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) +} +::std::string* CandidateDeltaBroadcast::mutable_hash() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) + return hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* CandidateDeltaBroadcast::release_hash() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) + + return hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void CandidateDeltaBroadcast::set_allocated_hash(::std::string* hash) { + if (hash != NULL) { + + } else { + + } + hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hash); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) } -::PROTOBUF_NAMESPACE_ID::Metadata CandidateDeltaBroadcast::GetMetadata() const { - return GetMetadataStatic(); +// .Catalyst.Protocol.Peer.PeerId producer_id = 2; +bool CandidateDeltaBroadcast::has_producer_id() const { + return this != internal_default_instance() && producer_id_ != NULL; +} +void CandidateDeltaBroadcast::clear_producer_id() { + if (GetArenaNoVirtual() == NULL && producer_id_ != NULL) delete producer_id_; + producer_id_ = NULL; +} +const ::Catalyst::Protocol::Peer::PeerId& CandidateDeltaBroadcast::producer_id() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.producer_id) + return producer_id_ != NULL ? *producer_id_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +::Catalyst::Protocol::Peer::PeerId* CandidateDeltaBroadcast::mutable_producer_id() { + + if (producer_id_ == NULL) { + producer_id_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.producer_id) + return producer_id_; +} +::Catalyst::Protocol::Peer::PeerId* CandidateDeltaBroadcast::release_producer_id() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.producer_id) + + ::Catalyst::Protocol::Peer::PeerId* temp = producer_id_; + producer_id_ = NULL; + return temp; +} +void CandidateDeltaBroadcast::set_allocated_producer_id(::Catalyst::Protocol::Peer::PeerId* producer_id) { + delete producer_id_; + producer_id_ = producer_id; + if (producer_id) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.producer_id) +} + +// bytes previous_delta_dfs_hash = 3; +void CandidateDeltaBroadcast::clear_previous_delta_dfs_hash() { + previous_delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& CandidateDeltaBroadcast::previous_delta_dfs_hash() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) + return previous_delta_dfs_hash_.GetNoArena(); +} +void CandidateDeltaBroadcast::set_previous_delta_dfs_hash(const ::std::string& value) { + + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) +} +#if LANG_CXX11 +void CandidateDeltaBroadcast::set_previous_delta_dfs_hash(::std::string&& value) { + + previous_delta_dfs_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) +} +#endif +void CandidateDeltaBroadcast::set_previous_delta_dfs_hash(const char* value) { + + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) +} +void CandidateDeltaBroadcast::set_previous_delta_dfs_hash(const void* value, size_t size) { + + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) +} +::std::string* CandidateDeltaBroadcast::mutable_previous_delta_dfs_hash() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) + return previous_delta_dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* CandidateDeltaBroadcast::release_previous_delta_dfs_hash() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) + + return previous_delta_dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void CandidateDeltaBroadcast::set_allocated_previous_delta_dfs_hash(::std::string* previous_delta_dfs_hash) { + if (previous_delta_dfs_hash != NULL) { + + } else { + + } + previous_delta_dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), previous_delta_dfs_hash); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // =================================================================== -void FavouriteDeltaBroadcast::InitAsDefaultInstance() { - ::Catalyst::Protocol::Wire::_FavouriteDeltaBroadcast_default_instance_._instance.get_mutable()->candidate_ = const_cast< ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast*>( - ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast::internal_default_instance()); - ::Catalyst::Protocol::Wire::_FavouriteDeltaBroadcast_default_instance_._instance.get_mutable()->voter_id_ = const_cast< ::Catalyst::Protocol::Peer::PeerId*>( - ::Catalyst::Protocol::Peer::PeerId::internal_default_instance()); -} -class FavouriteDeltaBroadcast::_Internal { - public: - static const ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast& candidate(const FavouriteDeltaBroadcast* msg); - static const ::Catalyst::Protocol::Peer::PeerId& voter_id(const FavouriteDeltaBroadcast* msg); -}; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int FavouriteDeltaBroadcast::kCandidateFieldNumber; +const int FavouriteDeltaBroadcast::kVoterIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast& -FavouriteDeltaBroadcast::_Internal::candidate(const FavouriteDeltaBroadcast* msg) { - return *msg->candidate_; -} -const ::Catalyst::Protocol::Peer::PeerId& -FavouriteDeltaBroadcast::_Internal::voter_id(const FavouriteDeltaBroadcast* msg) { - return *msg->voter_id_; -} -void FavouriteDeltaBroadcast::clear_voter_id() { - if (GetArenaNoVirtual() == nullptr && voter_id_ != nullptr) { - delete voter_id_; - } - voter_id_ = nullptr; -} FavouriteDeltaBroadcast::FavouriteDeltaBroadcast() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Wire_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) } FavouriteDeltaBroadcast::FavouriteDeltaBroadcast(const FavouriteDeltaBroadcast& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_candidate()) { + if (from.has_candidate()) { candidate_ = new ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast(*from.candidate_); } else { - candidate_ = nullptr; + candidate_ = NULL; } - if (from._internal_has_voter_id()) { + if (from.has_voter_id()) { voter_id_ = new ::Catalyst::Protocol::Peer::PeerId(*from.voter_id_); } else { - voter_id_ = nullptr; + voter_id_ = NULL; } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) } void FavouriteDeltaBroadcast::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FavouriteDeltaBroadcast_Wire_2eproto.base); - ::memset(&candidate_, 0, static_cast( - reinterpret_cast(&voter_id_) - - reinterpret_cast(&candidate_)) + sizeof(voter_id_)); + ::memset(&candidate_, 0, reinterpret_cast(&voter_id_) - + reinterpret_cast(&candidate_) + sizeof(voter_id_)); + _cached_size_ = 0; } FavouriteDeltaBroadcast::~FavouriteDeltaBroadcast() { @@ -1506,103 +2135,138 @@ FavouriteDeltaBroadcast::~FavouriteDeltaBroadcast() { } void FavouriteDeltaBroadcast::SharedDtor() { - if (this != internal_default_instance()) delete candidate_; - if (this != internal_default_instance()) delete voter_id_; + if (this != internal_default_instance()) { + delete candidate_; + } + if (this != internal_default_instance()) { + delete voter_id_; + } } void FavouriteDeltaBroadcast::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); } +const ::google::protobuf::Descriptor* FavouriteDeltaBroadcast::descriptor() { + protobuf_Wire_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Wire_2eproto::file_level_metadata[4].descriptor; +} + const FavouriteDeltaBroadcast& FavouriteDeltaBroadcast::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FavouriteDeltaBroadcast_Wire_2eproto.base); + protobuf_Wire_2eproto::InitDefaults(); return *internal_default_instance(); } +FavouriteDeltaBroadcast* FavouriteDeltaBroadcast::New(::google::protobuf::Arena* arena) const { + FavouriteDeltaBroadcast* n = new FavouriteDeltaBroadcast; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void FavouriteDeltaBroadcast::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && candidate_ != nullptr) { + if (GetArenaNoVirtual() == NULL && candidate_ != NULL) { delete candidate_; } - candidate_ = nullptr; - if (GetArenaNoVirtual() == nullptr && voter_id_ != nullptr) { + candidate_ = NULL; + if (GetArenaNoVirtual() == NULL && voter_id_ != NULL) { delete voter_id_; } - voter_id_ = nullptr; - _internal_metadata_.Clear(); + voter_id_ = NULL; } -const char* FavouriteDeltaBroadcast::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { +bool FavouriteDeltaBroadcast::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_candidate(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_candidate())); + } else { + goto handle_unusual; + } + break; + } + // .Catalyst.Protocol.Peer.PeerId voter_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_voter_id(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_voter_id())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* FavouriteDeltaBroadcast::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void FavouriteDeltaBroadcast::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) // .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; if (this->has_candidate()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::candidate(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->candidate_, output); } // .Catalyst.Protocol.Peer.PeerId voter_id = 2; if (this->has_voter_id()) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::voter_id(this), target, stream); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->voter_id_, output); + } + + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) +} + +::google::protobuf::uint8* FavouriteDeltaBroadcast::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) + // .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; + if (this->has_candidate()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *this->candidate_, false, target); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // .Catalyst.Protocol.Peer.PeerId voter_id = 2; + if (this->has_voter_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 2, *this->voter_id_, false, target); } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) return target; } @@ -1611,42 +2275,36 @@ size_t FavouriteDeltaBroadcast::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; if (this->has_candidate()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *candidate_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->candidate_); } // .Catalyst.Protocol.Peer.PeerId voter_id = 2; if (this->has_voter_id()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *voter_id_); + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + *this->voter_id_); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void FavouriteDeltaBroadcast::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void FavouriteDeltaBroadcast::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) GOOGLE_DCHECK_NE(&from, this); const FavouriteDeltaBroadcast* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) MergeFrom(*source); @@ -1657,18 +2315,15 @@ void FavouriteDeltaBroadcast::MergeFrom(const FavouriteDeltaBroadcast& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.has_candidate()) { - _internal_mutable_candidate()->::Catalyst::Protocol::Wire::CandidateDeltaBroadcast::MergeFrom(from._internal_candidate()); + mutable_candidate()->::Catalyst::Protocol::Wire::CandidateDeltaBroadcast::MergeFrom(from.candidate()); } if (from.has_voter_id()) { - _internal_mutable_voter_id()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from._internal_voter_id()); + mutable_voter_id()->::Catalyst::Protocol::Peer::PeerId::MergeFrom(from.voter_id()); } } -void FavouriteDeltaBroadcast::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void FavouriteDeltaBroadcast::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) if (&from == this) return; Clear(); @@ -1686,50 +2341,139 @@ bool FavouriteDeltaBroadcast::IsInitialized() const { return true; } +void FavouriteDeltaBroadcast::Swap(FavouriteDeltaBroadcast* other) { + if (other == this) return; + InternalSwap(other); +} void FavouriteDeltaBroadcast::InternalSwap(FavouriteDeltaBroadcast* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(candidate_, other->candidate_); - swap(voter_id_, other->voter_id_); + std::swap(candidate_, other->candidate_); + std::swap(voter_id_, other->voter_id_); + std::swap(_cached_size_, other->_cached_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata FavouriteDeltaBroadcast::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata FavouriteDeltaBroadcast::GetMetadata() const { + protobuf_Wire_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Wire_2eproto::file_level_metadata[4]; } +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// FavouriteDeltaBroadcast -// =================================================================== +// .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; +bool FavouriteDeltaBroadcast::has_candidate() const { + return this != internal_default_instance() && candidate_ != NULL; +} +void FavouriteDeltaBroadcast::clear_candidate() { + if (GetArenaNoVirtual() == NULL && candidate_ != NULL) delete candidate_; + candidate_ = NULL; +} +const ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast& FavouriteDeltaBroadcast::candidate() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.candidate) + return candidate_ != NULL ? *candidate_ + : *::Catalyst::Protocol::Wire::CandidateDeltaBroadcast::internal_default_instance(); +} +::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* FavouriteDeltaBroadcast::mutable_candidate() { + + if (candidate_ == NULL) { + candidate_ = new ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.candidate) + return candidate_; +} +::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* FavouriteDeltaBroadcast::release_candidate() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.candidate) + + ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* temp = candidate_; + candidate_ = NULL; + return temp; +} +void FavouriteDeltaBroadcast::set_allocated_candidate(::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* candidate) { + delete candidate_; + candidate_ = candidate; + if (candidate) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.candidate) +} -void DeltaDfsHashBroadcast::InitAsDefaultInstance() { +// .Catalyst.Protocol.Peer.PeerId voter_id = 2; +bool FavouriteDeltaBroadcast::has_voter_id() const { + return this != internal_default_instance() && voter_id_ != NULL; } -class DeltaDfsHashBroadcast::_Internal { - public: -}; +void FavouriteDeltaBroadcast::clear_voter_id() { + if (GetArenaNoVirtual() == NULL && voter_id_ != NULL) delete voter_id_; + voter_id_ = NULL; +} +const ::Catalyst::Protocol::Peer::PeerId& FavouriteDeltaBroadcast::voter_id() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.voter_id) + return voter_id_ != NULL ? *voter_id_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +::Catalyst::Protocol::Peer::PeerId* FavouriteDeltaBroadcast::mutable_voter_id() { + + if (voter_id_ == NULL) { + voter_id_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.voter_id) + return voter_id_; +} +::Catalyst::Protocol::Peer::PeerId* FavouriteDeltaBroadcast::release_voter_id() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.voter_id) + + ::Catalyst::Protocol::Peer::PeerId* temp = voter_id_; + voter_id_ = NULL; + return temp; +} +void FavouriteDeltaBroadcast::set_allocated_voter_id(::Catalyst::Protocol::Peer::PeerId* voter_id) { + delete voter_id_; + voter_id_ = voter_id; + if (voter_id) { + + } else { + + } + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.voter_id) +} + +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS + +// =================================================================== + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DeltaDfsHashBroadcast::kDeltaDfsHashFieldNumber; +const int DeltaDfsHashBroadcast::kPreviousDeltaDfsHashFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 DeltaDfsHashBroadcast::DeltaDfsHashBroadcast() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + protobuf_Wire_2eproto::InitDefaults(); + } SharedCtor(); // @@protoc_insertion_point(constructor:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) } DeltaDfsHashBroadcast::DeltaDfsHashBroadcast(const DeltaDfsHashBroadcast& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); - delta_dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_delta_dfs_hash().empty()) { - delta_dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.delta_dfs_hash_); + delta_dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.delta_dfs_hash().size() > 0) { + delta_dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.delta_dfs_hash_); } - previous_delta_dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from._internal_previous_delta_dfs_hash().empty()) { - previous_delta_dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.previous_delta_dfs_hash_); + previous_delta_dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.previous_delta_dfs_hash().size() > 0) { + previous_delta_dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.previous_delta_dfs_hash_); } // @@protoc_insertion_point(copy_constructor:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) } void DeltaDfsHashBroadcast::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DeltaDfsHashBroadcast_Wire_2eproto.base); - delta_dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - previous_delta_dfs_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + delta_dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + previous_delta_dfs_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; } DeltaDfsHashBroadcast::~DeltaDfsHashBroadcast() { @@ -1738,95 +2482,128 @@ DeltaDfsHashBroadcast::~DeltaDfsHashBroadcast() { } void DeltaDfsHashBroadcast::SharedDtor() { - delta_dfs_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - previous_delta_dfs_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + delta_dfs_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + previous_delta_dfs_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void DeltaDfsHashBroadcast::SetCachedSize(int size) const { - _cached_size_.Set(size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DeltaDfsHashBroadcast::descriptor() { + protobuf_Wire_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Wire_2eproto::file_level_metadata[5].descriptor; } + const DeltaDfsHashBroadcast& DeltaDfsHashBroadcast::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeltaDfsHashBroadcast_Wire_2eproto.base); + protobuf_Wire_2eproto::InitDefaults(); return *internal_default_instance(); } +DeltaDfsHashBroadcast* DeltaDfsHashBroadcast::New(::google::protobuf::Arena* arena) const { + DeltaDfsHashBroadcast* n = new DeltaDfsHashBroadcast; + if (arena != NULL) { + arena->Own(n); + } + return n; +} void DeltaDfsHashBroadcast::Clear() { // @@protoc_insertion_point(message_clear_start:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - delta_dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - previous_delta_dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -const char* DeltaDfsHashBroadcast::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); - switch (tag >> 3) { + delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + previous_delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +bool DeltaDfsHashBroadcast::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes delta_dfs_hash = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - auto str = _internal_mutable_delta_dfs_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 1: { + if (tag == 10u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_delta_dfs_hash())); + } else { + goto handle_unusual; + } + break; + } + // bytes previous_delta_dfs_hash = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - auto str = _internal_mutable_previous_delta_dfs_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else goto handle_unusual; - continue; + case 2: { + if (tag == 18u) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_previous_delta_dfs_hash())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); + if (tag == 0 || + ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); + break; } - } // switch - } // while + } + } success: - return ptr; + // @@protoc_insertion_point(parse_success:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) + return true; failure: - ptr = nullptr; - goto success; -#undef CHK_ + // @@protoc_insertion_point(parse_failure:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) + return false; +#undef DO_ } -::PROTOBUF_NAMESPACE_ID::uint8* DeltaDfsHashBroadcast::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - +void DeltaDfsHashBroadcast::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) // bytes delta_dfs_hash = 1; if (this->delta_dfs_hash().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_delta_dfs_hash(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->delta_dfs_hash(), output); } // bytes previous_delta_dfs_hash = 2; if (this->previous_delta_dfs_hash().size() > 0) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_previous_delta_dfs_hash(), target); + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 2, this->previous_delta_dfs_hash(), output); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target, stream); + // @@protoc_insertion_point(serialize_end:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) +} + +::google::protobuf::uint8* DeltaDfsHashBroadcast::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) + // bytes delta_dfs_hash = 1; + if (this->delta_dfs_hash().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->delta_dfs_hash(), target); } + + // bytes previous_delta_dfs_hash = 2; + if (this->previous_delta_dfs_hash().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->previous_delta_dfs_hash(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) return target; } @@ -1835,42 +2612,36 @@ size_t DeltaDfsHashBroadcast::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - // bytes delta_dfs_hash = 1; if (this->delta_dfs_hash().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_delta_dfs_hash()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->delta_dfs_hash()); } // bytes previous_delta_dfs_hash = 2; if (this->previous_delta_dfs_hash().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_previous_delta_dfs_hash()); + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->previous_delta_dfs_hash()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } -void DeltaDfsHashBroadcast::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DeltaDfsHashBroadcast::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) GOOGLE_DCHECK_NE(&from, this); const DeltaDfsHashBroadcast* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::internal::DynamicCastToGenerated( &from); - if (source == nullptr) { + if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) MergeFrom(*source); @@ -1881,20 +2652,17 @@ void DeltaDfsHashBroadcast::MergeFrom(const DeltaDfsHashBroadcast& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - if (from.delta_dfs_hash().size() > 0) { - delta_dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.delta_dfs_hash_); + delta_dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.delta_dfs_hash_); } if (from.previous_delta_dfs_hash().size() > 0) { - previous_delta_dfs_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.previous_delta_dfs_hash_); + previous_delta_dfs_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.previous_delta_dfs_hash_); } } -void DeltaDfsHashBroadcast::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void DeltaDfsHashBroadcast::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) if (&from == this) return; Clear(); @@ -1912,44 +2680,134 @@ bool DeltaDfsHashBroadcast::IsInitialized() const { return true; } -void DeltaDfsHashBroadcast::InternalSwap(DeltaDfsHashBroadcast* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - delta_dfs_hash_.Swap(&other->delta_dfs_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - previous_delta_dfs_hash_.Swap(&other->previous_delta_dfs_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); +void DeltaDfsHashBroadcast::Swap(DeltaDfsHashBroadcast* other) { + if (other == this) return; + InternalSwap(other); } - -::PROTOBUF_NAMESPACE_ID::Metadata DeltaDfsHashBroadcast::GetMetadata() const { - return GetMetadataStatic(); +void DeltaDfsHashBroadcast::InternalSwap(DeltaDfsHashBroadcast* other) { + delta_dfs_hash_.Swap(&other->delta_dfs_hash_); + previous_delta_dfs_hash_.Swap(&other->previous_delta_dfs_hash_); + std::swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata DeltaDfsHashBroadcast::GetMetadata() const { + protobuf_Wire_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_Wire_2eproto::file_level_metadata[5]; +} + +#if PROTOBUF_INLINE_NOT_IN_HEADERS +// DeltaDfsHashBroadcast + +// bytes delta_dfs_hash = 1; +void DeltaDfsHashBroadcast::clear_delta_dfs_hash() { + delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& DeltaDfsHashBroadcast::delta_dfs_hash() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) + return delta_dfs_hash_.GetNoArena(); +} +void DeltaDfsHashBroadcast::set_delta_dfs_hash(const ::std::string& value) { + + delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) +} +#if LANG_CXX11 +void DeltaDfsHashBroadcast::set_delta_dfs_hash(::std::string&& value) { + + delta_dfs_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) +} +#endif +void DeltaDfsHashBroadcast::set_delta_dfs_hash(const char* value) { + + delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) +} +void DeltaDfsHashBroadcast::set_delta_dfs_hash(const void* value, size_t size) { + + delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) +} +::std::string* DeltaDfsHashBroadcast::mutable_delta_dfs_hash() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) + return delta_dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* DeltaDfsHashBroadcast::release_delta_dfs_hash() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) + + return delta_dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void DeltaDfsHashBroadcast::set_allocated_delta_dfs_hash(::std::string* delta_dfs_hash) { + if (delta_dfs_hash != NULL) { + + } else { + + } + delta_dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delta_dfs_hash); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) +} + +// bytes previous_delta_dfs_hash = 2; +void DeltaDfsHashBroadcast::clear_previous_delta_dfs_hash() { + previous_delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +const ::std::string& DeltaDfsHashBroadcast::previous_delta_dfs_hash() const { + // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) + return previous_delta_dfs_hash_.GetNoArena(); +} +void DeltaDfsHashBroadcast::set_previous_delta_dfs_hash(const ::std::string& value) { + + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) +} +#if LANG_CXX11 +void DeltaDfsHashBroadcast::set_previous_delta_dfs_hash(::std::string&& value) { + + previous_delta_dfs_hash_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) +} +#endif +void DeltaDfsHashBroadcast::set_previous_delta_dfs_hash(const char* value) { + + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) +} +void DeltaDfsHashBroadcast::set_previous_delta_dfs_hash(const void* value, size_t size) { + + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) +} +::std::string* DeltaDfsHashBroadcast::mutable_previous_delta_dfs_hash() { + + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) + return previous_delta_dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* DeltaDfsHashBroadcast::release_previous_delta_dfs_hash() { + // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) + + return previous_delta_dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void DeltaDfsHashBroadcast::set_allocated_previous_delta_dfs_hash(::std::string* previous_delta_dfs_hash) { + if (previous_delta_dfs_hash != NULL) { + + } else { + + } + previous_delta_dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), previous_delta_dfs_hash); + // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) } +#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) + } // namespace Wire } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Wire::ProtocolErrorMessage* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Wire::ProtocolErrorMessage >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Wire::ProtocolErrorMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Wire::ProtocolMessage* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Wire::ProtocolMessage >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Wire::ProtocolMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Wire::TransactionBroadcast* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Wire::TransactionBroadcast >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Wire::TransactionBroadcast >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Wire::FavouriteDeltaBroadcast* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Wire::FavouriteDeltaBroadcast >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Wire::FavouriteDeltaBroadcast >(arena); -} -template<> PROTOBUF_NOINLINE ::Catalyst::Protocol::Wire::DeltaDfsHashBroadcast* Arena::CreateMaybeMessage< ::Catalyst::Protocol::Wire::DeltaDfsHashBroadcast >(Arena* arena) { - return Arena::CreateInternal< ::Catalyst::Protocol::Wire::DeltaDfsHashBroadcast >(arena); -} -PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) -#include diff --git a/packages/sdk-cpp/src/Wire.pb.h b/packages/sdk-cpp/src/Wire.pb.h index c6cbb32..e30e58a 100644 --- a/packages/sdk-cpp/src/Wire.pb.h +++ b/packages/sdk-cpp/src/Wire.pb.h @@ -1,33 +1,29 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: Wire.proto -#ifndef GOOGLE_PROTOBUF_INCLUDED_Wire_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_Wire_2eproto +#ifndef PROTOBUF_Wire_2eproto__INCLUDED +#define PROTOBUF_Wire_2eproto__INCLUDED -#include #include -#include -#if PROTOBUF_VERSION < 3011000 +#include + +#if GOOGLE_PROTOBUF_VERSION < 3002000 #error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update +#error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3011004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3002000 < GOOGLE_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 incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif -#include #include #include #include -#include #include -#include #include -#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -37,29 +33,41 @@ #include "Transaction.pb.h" #include // @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_Wire_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_Wire_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[6] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Wire_2eproto; namespace Catalyst { namespace Protocol { +namespace Cryptography { +class Signature; +class SignatureDefaultTypeInternal; +extern SignatureDefaultTypeInternal _Signature_default_instance_; +class SignatureBatch; +class SignatureBatchDefaultTypeInternal; +extern SignatureBatchDefaultTypeInternal _SignatureBatch_default_instance_; +class SigningContext; +class SigningContextDefaultTypeInternal; +extern SigningContextDefaultTypeInternal _SigningContext_default_instance_; +} // namespace Cryptography +namespace Peer { +class PeerId; +class PeerIdDefaultTypeInternal; +extern PeerIdDefaultTypeInternal _PeerId_default_instance_; +class PeerInfo; +class PeerInfoDefaultTypeInternal; +extern PeerInfoDefaultTypeInternal _PeerInfo_default_instance_; +} // namespace Peer +namespace Transaction { +class CoinbaseEntry; +class CoinbaseEntryDefaultTypeInternal; +extern CoinbaseEntryDefaultTypeInternal _CoinbaseEntry_default_instance_; +class ConfidentialEntry; +class ConfidentialEntryDefaultTypeInternal; +extern ConfidentialEntryDefaultTypeInternal _ConfidentialEntry_default_instance_; +class PublicEntry; +class PublicEntryDefaultTypeInternal; +extern PublicEntryDefaultTypeInternal _PublicEntry_default_instance_; +class RangeProof; +class RangeProofDefaultTypeInternal; +extern RangeProofDefaultTypeInternal _RangeProof_default_instance_; +} // namespace Transaction namespace Wire { class CandidateDeltaBroadcast; class CandidateDeltaBroadcastDefaultTypeInternal; @@ -82,1187 +90,827 @@ extern TransactionBroadcastDefaultTypeInternal _TransactionBroadcast_default_ins } // namespace Wire } // namespace Protocol } // namespace Catalyst -PROTOBUF_NAMESPACE_OPEN -template<> ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* Arena::CreateMaybeMessage<::Catalyst::Protocol::Wire::CandidateDeltaBroadcast>(Arena*); -template<> ::Catalyst::Protocol::Wire::DeltaDfsHashBroadcast* Arena::CreateMaybeMessage<::Catalyst::Protocol::Wire::DeltaDfsHashBroadcast>(Arena*); -template<> ::Catalyst::Protocol::Wire::FavouriteDeltaBroadcast* Arena::CreateMaybeMessage<::Catalyst::Protocol::Wire::FavouriteDeltaBroadcast>(Arena*); -template<> ::Catalyst::Protocol::Wire::ProtocolErrorMessage* Arena::CreateMaybeMessage<::Catalyst::Protocol::Wire::ProtocolErrorMessage>(Arena*); -template<> ::Catalyst::Protocol::Wire::ProtocolMessage* Arena::CreateMaybeMessage<::Catalyst::Protocol::Wire::ProtocolMessage>(Arena*); -template<> ::Catalyst::Protocol::Wire::TransactionBroadcast* Arena::CreateMaybeMessage<::Catalyst::Protocol::Wire::TransactionBroadcast>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +namespace google { +namespace protobuf { +class Timestamp; +class TimestampDefaultTypeInternal; +extern TimestampDefaultTypeInternal _Timestamp_default_instance_; +} // namespace protobuf +} // namespace google + namespace Catalyst { namespace Protocol { namespace Wire { +namespace protobuf_Wire_2eproto { +// Internal implementation detail -- do not call these. +struct TableStruct { + static const ::google::protobuf::uint32 offsets[]; + static void InitDefaultsImpl(); + static void Shutdown(); +}; +void AddDescriptors(); +void InitDefaults(); +} // namespace protobuf_Wire_2eproto + // =================================================================== -class ProtocolErrorMessage : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Wire.ProtocolErrorMessage) */ { +class ProtocolErrorMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Wire.ProtocolErrorMessage) */ { public: ProtocolErrorMessage(); virtual ~ProtocolErrorMessage(); ProtocolErrorMessage(const ProtocolErrorMessage& from); - ProtocolErrorMessage(ProtocolErrorMessage&& from) noexcept - : ProtocolErrorMessage() { - *this = ::std::move(from); - } inline ProtocolErrorMessage& operator=(const ProtocolErrorMessage& from) { CopyFrom(from); return *this; } - inline ProtocolErrorMessage& operator=(ProtocolErrorMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const ProtocolErrorMessage& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ProtocolErrorMessage* internal_default_instance() { return reinterpret_cast( &_ProtocolErrorMessage_default_instance_); } - static constexpr int kIndexInFileMessages = - 0; - friend void swap(ProtocolErrorMessage& a, ProtocolErrorMessage& b) { - a.Swap(&b); - } - inline void Swap(ProtocolErrorMessage* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(ProtocolErrorMessage* other); // implements Message ---------------------------------------------- - inline ProtocolErrorMessage* New() const final { - return CreateMaybeMessage(nullptr); - } + inline ProtocolErrorMessage* New() const PROTOBUF_FINAL { return New(NULL); } - ProtocolErrorMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + ProtocolErrorMessage* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ProtocolErrorMessage& from); void MergeFrom(const ProtocolErrorMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ProtocolErrorMessage* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Wire.ProtocolErrorMessage"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Wire_2eproto); - return ::descriptor_table_Wire_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCorrelationIdFieldNumber = 3, - kSignatureFieldNumber = 1, - kPeerIdFieldNumber = 2, - kCodeFieldNumber = 4, - }; // bytes correlation_id = 3; void clear_correlation_id(); - const std::string& correlation_id() const; - void set_correlation_id(const std::string& value); - void set_correlation_id(std::string&& value); + static const int kCorrelationIdFieldNumber = 3; + const ::std::string& correlation_id() const; + void set_correlation_id(const ::std::string& value); + #if LANG_CXX11 + void set_correlation_id(::std::string&& value); + #endif void set_correlation_id(const char* value); void set_correlation_id(const void* value, size_t size); - std::string* mutable_correlation_id(); - std::string* release_correlation_id(); - void set_allocated_correlation_id(std::string* correlation_id); - private: - const std::string& _internal_correlation_id() const; - void _internal_set_correlation_id(const std::string& value); - std::string* _internal_mutable_correlation_id(); - public: + ::std::string* mutable_correlation_id(); + ::std::string* release_correlation_id(); + void set_allocated_correlation_id(::std::string* correlation_id); // .Catalyst.Protocol.Cryptography.Signature signature = 1; bool has_signature() const; - private: - bool _internal_has_signature() const; - public: void clear_signature(); + static const int kSignatureFieldNumber = 1; const ::Catalyst::Protocol::Cryptography::Signature& signature() const; - ::Catalyst::Protocol::Cryptography::Signature* release_signature(); ::Catalyst::Protocol::Cryptography::Signature* mutable_signature(); + ::Catalyst::Protocol::Cryptography::Signature* release_signature(); void set_allocated_signature(::Catalyst::Protocol::Cryptography::Signature* signature); - private: - const ::Catalyst::Protocol::Cryptography::Signature& _internal_signature() const; - ::Catalyst::Protocol::Cryptography::Signature* _internal_mutable_signature(); - public: // .Catalyst.Protocol.Peer.PeerId peer_id = 2; bool has_peer_id() const; - private: - bool _internal_has_peer_id() const; - public: void clear_peer_id(); + static const int kPeerIdFieldNumber = 2; const ::Catalyst::Protocol::Peer::PeerId& peer_id() const; - ::Catalyst::Protocol::Peer::PeerId* release_peer_id(); ::Catalyst::Protocol::Peer::PeerId* mutable_peer_id(); + ::Catalyst::Protocol::Peer::PeerId* release_peer_id(); void set_allocated_peer_id(::Catalyst::Protocol::Peer::PeerId* peer_id); - private: - const ::Catalyst::Protocol::Peer::PeerId& _internal_peer_id() const; - ::Catalyst::Protocol::Peer::PeerId* _internal_mutable_peer_id(); - public: // int32 code = 4; void clear_code(); - ::PROTOBUF_NAMESPACE_ID::int32 code() const; - void set_code(::PROTOBUF_NAMESPACE_ID::int32 value); - private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_code() const; - void _internal_set_code(::PROTOBUF_NAMESPACE_ID::int32 value); - public: + static const int kCodeFieldNumber = 4; + ::google::protobuf::int32 code() const; + void set_code(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Wire.ProtocolErrorMessage) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr correlation_id_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr correlation_id_; ::Catalyst::Protocol::Cryptography::Signature* signature_; ::Catalyst::Protocol::Peer::PeerId* peer_id_; - ::PROTOBUF_NAMESPACE_ID::int32 code_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Wire_2eproto; + ::google::protobuf::int32 code_; + mutable int _cached_size_; + friend struct protobuf_Wire_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class ProtocolMessage : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Wire.ProtocolMessage) */ { +class ProtocolMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Wire.ProtocolMessage) */ { public: ProtocolMessage(); virtual ~ProtocolMessage(); ProtocolMessage(const ProtocolMessage& from); - ProtocolMessage(ProtocolMessage&& from) noexcept - : ProtocolMessage() { - *this = ::std::move(from); - } inline ProtocolMessage& operator=(const ProtocolMessage& from) { CopyFrom(from); return *this; } - inline ProtocolMessage& operator=(ProtocolMessage&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const ProtocolMessage& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ProtocolMessage* internal_default_instance() { return reinterpret_cast( &_ProtocolMessage_default_instance_); } - static constexpr int kIndexInFileMessages = - 1; - friend void swap(ProtocolMessage& a, ProtocolMessage& b) { - a.Swap(&b); - } - inline void Swap(ProtocolMessage* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(ProtocolMessage* other); // implements Message ---------------------------------------------- - inline ProtocolMessage* New() const final { - return CreateMaybeMessage(nullptr); - } + inline ProtocolMessage* New() const PROTOBUF_FINAL { return New(NULL); } - ProtocolMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + ProtocolMessage* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const ProtocolMessage& from); void MergeFrom(const ProtocolMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(ProtocolMessage* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Wire.ProtocolMessage"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Wire_2eproto); - return ::descriptor_table_Wire_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCorrelationIdFieldNumber = 2, - kTypeUrlFieldNumber = 3, - kValueFieldNumber = 4, - kPeerIdFieldNumber = 1, - kSignatureFieldNumber = 5, - }; // bytes correlation_id = 2; void clear_correlation_id(); - const std::string& correlation_id() const; - void set_correlation_id(const std::string& value); - void set_correlation_id(std::string&& value); + static const int kCorrelationIdFieldNumber = 2; + const ::std::string& correlation_id() const; + void set_correlation_id(const ::std::string& value); + #if LANG_CXX11 + void set_correlation_id(::std::string&& value); + #endif void set_correlation_id(const char* value); void set_correlation_id(const void* value, size_t size); - std::string* mutable_correlation_id(); - std::string* release_correlation_id(); - void set_allocated_correlation_id(std::string* correlation_id); - private: - const std::string& _internal_correlation_id() const; - void _internal_set_correlation_id(const std::string& value); - std::string* _internal_mutable_correlation_id(); - public: + ::std::string* mutable_correlation_id(); + ::std::string* release_correlation_id(); + void set_allocated_correlation_id(::std::string* correlation_id); // string type_url = 3; void clear_type_url(); - const std::string& type_url() const; - void set_type_url(const std::string& value); - void set_type_url(std::string&& value); + static const int kTypeUrlFieldNumber = 3; + const ::std::string& type_url() const; + void set_type_url(const ::std::string& value); + #if LANG_CXX11 + void set_type_url(::std::string&& value); + #endif void set_type_url(const char* value); void set_type_url(const char* value, size_t size); - std::string* mutable_type_url(); - std::string* release_type_url(); - void set_allocated_type_url(std::string* type_url); - private: - const std::string& _internal_type_url() const; - void _internal_set_type_url(const std::string& value); - std::string* _internal_mutable_type_url(); - public: + ::std::string* mutable_type_url(); + ::std::string* release_type_url(); + void set_allocated_type_url(::std::string* type_url); // bytes value = 4; void clear_value(); - const std::string& value() const; - void set_value(const std::string& value); - void set_value(std::string&& value); + static const int kValueFieldNumber = 4; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif void set_value(const char* value); void set_value(const void* value, size_t size); - std::string* mutable_value(); - std::string* release_value(); - void set_allocated_value(std::string* value); - private: - const std::string& _internal_value() const; - void _internal_set_value(const std::string& value); - std::string* _internal_mutable_value(); - public: + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); // .Catalyst.Protocol.Peer.PeerId peer_id = 1; bool has_peer_id() const; - private: - bool _internal_has_peer_id() const; - public: void clear_peer_id(); + static const int kPeerIdFieldNumber = 1; const ::Catalyst::Protocol::Peer::PeerId& peer_id() const; - ::Catalyst::Protocol::Peer::PeerId* release_peer_id(); ::Catalyst::Protocol::Peer::PeerId* mutable_peer_id(); + ::Catalyst::Protocol::Peer::PeerId* release_peer_id(); void set_allocated_peer_id(::Catalyst::Protocol::Peer::PeerId* peer_id); - private: - const ::Catalyst::Protocol::Peer::PeerId& _internal_peer_id() const; - ::Catalyst::Protocol::Peer::PeerId* _internal_mutable_peer_id(); - public: // .Catalyst.Protocol.Cryptography.Signature signature = 5; bool has_signature() const; - private: - bool _internal_has_signature() const; - public: void clear_signature(); + static const int kSignatureFieldNumber = 5; const ::Catalyst::Protocol::Cryptography::Signature& signature() const; - ::Catalyst::Protocol::Cryptography::Signature* release_signature(); ::Catalyst::Protocol::Cryptography::Signature* mutable_signature(); + ::Catalyst::Protocol::Cryptography::Signature* release_signature(); void set_allocated_signature(::Catalyst::Protocol::Cryptography::Signature* signature); - private: - const ::Catalyst::Protocol::Cryptography::Signature& _internal_signature() const; - ::Catalyst::Protocol::Cryptography::Signature* _internal_mutable_signature(); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Wire.ProtocolMessage) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr correlation_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_url_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr correlation_id_; + ::google::protobuf::internal::ArenaStringPtr type_url_; + ::google::protobuf::internal::ArenaStringPtr value_; ::Catalyst::Protocol::Peer::PeerId* peer_id_; ::Catalyst::Protocol::Cryptography::Signature* signature_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Wire_2eproto; + mutable int _cached_size_; + friend struct protobuf_Wire_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class TransactionBroadcast : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Wire.TransactionBroadcast) */ { +class TransactionBroadcast : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Wire.TransactionBroadcast) */ { public: TransactionBroadcast(); virtual ~TransactionBroadcast(); TransactionBroadcast(const TransactionBroadcast& from); - TransactionBroadcast(TransactionBroadcast&& from) noexcept - : TransactionBroadcast() { - *this = ::std::move(from); - } inline TransactionBroadcast& operator=(const TransactionBroadcast& from) { CopyFrom(from); return *this; } - inline TransactionBroadcast& operator=(TransactionBroadcast&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const TransactionBroadcast& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const TransactionBroadcast* internal_default_instance() { return reinterpret_cast( &_TransactionBroadcast_default_instance_); } - static constexpr int kIndexInFileMessages = - 2; - friend void swap(TransactionBroadcast& a, TransactionBroadcast& b) { - a.Swap(&b); - } - inline void Swap(TransactionBroadcast* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(TransactionBroadcast* other); // implements Message ---------------------------------------------- - inline TransactionBroadcast* New() const final { - return CreateMaybeMessage(nullptr); - } + inline TransactionBroadcast* New() const PROTOBUF_FINAL { return New(NULL); } - TransactionBroadcast* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + TransactionBroadcast* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const TransactionBroadcast& from); void MergeFrom(const TransactionBroadcast& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(TransactionBroadcast* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Wire.TransactionBroadcast"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Wire_2eproto); - return ::descriptor_table_Wire_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kPublicEntryFieldNumber = 1, - }; // .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; bool has_public_entry() const; - private: - bool _internal_has_public_entry() const; - public: void clear_public_entry(); + static const int kPublicEntryFieldNumber = 1; const ::Catalyst::Protocol::Transaction::PublicEntry& public_entry() const; - ::Catalyst::Protocol::Transaction::PublicEntry* release_public_entry(); ::Catalyst::Protocol::Transaction::PublicEntry* mutable_public_entry(); + ::Catalyst::Protocol::Transaction::PublicEntry* release_public_entry(); void set_allocated_public_entry(::Catalyst::Protocol::Transaction::PublicEntry* public_entry); - private: - const ::Catalyst::Protocol::Transaction::PublicEntry& _internal_public_entry() const; - ::Catalyst::Protocol::Transaction::PublicEntry* _internal_mutable_public_entry(); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Wire.TransactionBroadcast) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::Catalyst::Protocol::Transaction::PublicEntry* public_entry_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Wire_2eproto; + mutable int _cached_size_; + friend struct protobuf_Wire_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class CandidateDeltaBroadcast : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) */ { +class CandidateDeltaBroadcast : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) */ { public: CandidateDeltaBroadcast(); virtual ~CandidateDeltaBroadcast(); CandidateDeltaBroadcast(const CandidateDeltaBroadcast& from); - CandidateDeltaBroadcast(CandidateDeltaBroadcast&& from) noexcept - : CandidateDeltaBroadcast() { - *this = ::std::move(from); - } inline CandidateDeltaBroadcast& operator=(const CandidateDeltaBroadcast& from) { CopyFrom(from); return *this; } - inline CandidateDeltaBroadcast& operator=(CandidateDeltaBroadcast&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const CandidateDeltaBroadcast& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CandidateDeltaBroadcast* internal_default_instance() { return reinterpret_cast( &_CandidateDeltaBroadcast_default_instance_); } - static constexpr int kIndexInFileMessages = - 3; - friend void swap(CandidateDeltaBroadcast& a, CandidateDeltaBroadcast& b) { - a.Swap(&b); - } - inline void Swap(CandidateDeltaBroadcast* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(CandidateDeltaBroadcast* other); // implements Message ---------------------------------------------- - inline CandidateDeltaBroadcast* New() const final { - return CreateMaybeMessage(nullptr); - } + inline CandidateDeltaBroadcast* New() const PROTOBUF_FINAL { return New(NULL); } - CandidateDeltaBroadcast* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + CandidateDeltaBroadcast* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const CandidateDeltaBroadcast& from); void MergeFrom(const CandidateDeltaBroadcast& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(CandidateDeltaBroadcast* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Wire.CandidateDeltaBroadcast"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Wire_2eproto); - return ::descriptor_table_Wire_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kHashFieldNumber = 1, - kPreviousDeltaDfsHashFieldNumber = 3, - kProducerIdFieldNumber = 2, - }; // bytes hash = 1; void clear_hash(); - const std::string& hash() const; - void set_hash(const std::string& value); - void set_hash(std::string&& value); + static const int kHashFieldNumber = 1; + const ::std::string& hash() const; + void set_hash(const ::std::string& value); + #if LANG_CXX11 + void set_hash(::std::string&& value); + #endif void set_hash(const char* value); void set_hash(const void* value, size_t size); - std::string* mutable_hash(); - std::string* release_hash(); - void set_allocated_hash(std::string* hash); - private: - const std::string& _internal_hash() const; - void _internal_set_hash(const std::string& value); - std::string* _internal_mutable_hash(); - public: + ::std::string* mutable_hash(); + ::std::string* release_hash(); + void set_allocated_hash(::std::string* hash); // bytes previous_delta_dfs_hash = 3; void clear_previous_delta_dfs_hash(); - const std::string& previous_delta_dfs_hash() const; - void set_previous_delta_dfs_hash(const std::string& value); - void set_previous_delta_dfs_hash(std::string&& value); + static const int kPreviousDeltaDfsHashFieldNumber = 3; + const ::std::string& previous_delta_dfs_hash() const; + void set_previous_delta_dfs_hash(const ::std::string& value); + #if LANG_CXX11 + void set_previous_delta_dfs_hash(::std::string&& value); + #endif void set_previous_delta_dfs_hash(const char* value); void set_previous_delta_dfs_hash(const void* value, size_t size); - std::string* mutable_previous_delta_dfs_hash(); - std::string* release_previous_delta_dfs_hash(); - void set_allocated_previous_delta_dfs_hash(std::string* previous_delta_dfs_hash); - private: - const std::string& _internal_previous_delta_dfs_hash() const; - void _internal_set_previous_delta_dfs_hash(const std::string& value); - std::string* _internal_mutable_previous_delta_dfs_hash(); - public: + ::std::string* mutable_previous_delta_dfs_hash(); + ::std::string* release_previous_delta_dfs_hash(); + void set_allocated_previous_delta_dfs_hash(::std::string* previous_delta_dfs_hash); // .Catalyst.Protocol.Peer.PeerId producer_id = 2; bool has_producer_id() const; - private: - bool _internal_has_producer_id() const; - public: void clear_producer_id(); + static const int kProducerIdFieldNumber = 2; const ::Catalyst::Protocol::Peer::PeerId& producer_id() const; - ::Catalyst::Protocol::Peer::PeerId* release_producer_id(); ::Catalyst::Protocol::Peer::PeerId* mutable_producer_id(); + ::Catalyst::Protocol::Peer::PeerId* release_producer_id(); void set_allocated_producer_id(::Catalyst::Protocol::Peer::PeerId* producer_id); - private: - const ::Catalyst::Protocol::Peer::PeerId& _internal_producer_id() const; - ::Catalyst::Protocol::Peer::PeerId* _internal_mutable_producer_id(); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hash_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr previous_delta_dfs_hash_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr hash_; + ::google::protobuf::internal::ArenaStringPtr previous_delta_dfs_hash_; ::Catalyst::Protocol::Peer::PeerId* producer_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Wire_2eproto; + mutable int _cached_size_; + friend struct protobuf_Wire_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class FavouriteDeltaBroadcast : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) */ { +class FavouriteDeltaBroadcast : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) */ { public: FavouriteDeltaBroadcast(); virtual ~FavouriteDeltaBroadcast(); FavouriteDeltaBroadcast(const FavouriteDeltaBroadcast& from); - FavouriteDeltaBroadcast(FavouriteDeltaBroadcast&& from) noexcept - : FavouriteDeltaBroadcast() { - *this = ::std::move(from); - } inline FavouriteDeltaBroadcast& operator=(const FavouriteDeltaBroadcast& from) { CopyFrom(from); return *this; } - inline FavouriteDeltaBroadcast& operator=(FavouriteDeltaBroadcast&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const FavouriteDeltaBroadcast& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const FavouriteDeltaBroadcast* internal_default_instance() { return reinterpret_cast( &_FavouriteDeltaBroadcast_default_instance_); } - static constexpr int kIndexInFileMessages = - 4; - friend void swap(FavouriteDeltaBroadcast& a, FavouriteDeltaBroadcast& b) { - a.Swap(&b); - } - inline void Swap(FavouriteDeltaBroadcast* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(FavouriteDeltaBroadcast* other); // implements Message ---------------------------------------------- - inline FavouriteDeltaBroadcast* New() const final { - return CreateMaybeMessage(nullptr); - } + inline FavouriteDeltaBroadcast* New() const PROTOBUF_FINAL { return New(NULL); } - FavouriteDeltaBroadcast* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + FavouriteDeltaBroadcast* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const FavouriteDeltaBroadcast& from); void MergeFrom(const FavouriteDeltaBroadcast& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(FavouriteDeltaBroadcast* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Wire.FavouriteDeltaBroadcast"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Wire_2eproto); - return ::descriptor_table_Wire_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kCandidateFieldNumber = 1, - kVoterIdFieldNumber = 2, - }; // .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; bool has_candidate() const; - private: - bool _internal_has_candidate() const; - public: void clear_candidate(); + static const int kCandidateFieldNumber = 1; const ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast& candidate() const; - ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* release_candidate(); ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* mutable_candidate(); + ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* release_candidate(); void set_allocated_candidate(::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* candidate); - private: - const ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast& _internal_candidate() const; - ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* _internal_mutable_candidate(); - public: // .Catalyst.Protocol.Peer.PeerId voter_id = 2; bool has_voter_id() const; - private: - bool _internal_has_voter_id() const; - public: void clear_voter_id(); + static const int kVoterIdFieldNumber = 2; const ::Catalyst::Protocol::Peer::PeerId& voter_id() const; - ::Catalyst::Protocol::Peer::PeerId* release_voter_id(); ::Catalyst::Protocol::Peer::PeerId* mutable_voter_id(); + ::Catalyst::Protocol::Peer::PeerId* release_voter_id(); void set_allocated_voter_id(::Catalyst::Protocol::Peer::PeerId* voter_id); - private: - const ::Catalyst::Protocol::Peer::PeerId& _internal_voter_id() const; - ::Catalyst::Protocol::Peer::PeerId* _internal_mutable_voter_id(); - public: // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* candidate_; ::Catalyst::Protocol::Peer::PeerId* voter_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Wire_2eproto; + mutable int _cached_size_; + friend struct protobuf_Wire_2eproto::TableStruct; }; // ------------------------------------------------------------------- -class DeltaDfsHashBroadcast : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) */ { +class DeltaDfsHashBroadcast : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) */ { public: DeltaDfsHashBroadcast(); virtual ~DeltaDfsHashBroadcast(); DeltaDfsHashBroadcast(const DeltaDfsHashBroadcast& from); - DeltaDfsHashBroadcast(DeltaDfsHashBroadcast&& from) noexcept - : DeltaDfsHashBroadcast() { - *this = ::std::move(from); - } inline DeltaDfsHashBroadcast& operator=(const DeltaDfsHashBroadcast& from) { CopyFrom(from); return *this; } - inline DeltaDfsHashBroadcast& operator=(DeltaDfsHashBroadcast&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; - } + static const ::google::protobuf::Descriptor* descriptor(); static const DeltaDfsHashBroadcast& default_instance(); - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DeltaDfsHashBroadcast* internal_default_instance() { return reinterpret_cast( &_DeltaDfsHashBroadcast_default_instance_); } - static constexpr int kIndexInFileMessages = - 5; - friend void swap(DeltaDfsHashBroadcast& a, DeltaDfsHashBroadcast& b) { - a.Swap(&b); - } - inline void Swap(DeltaDfsHashBroadcast* other) { - if (other == this) return; - InternalSwap(other); - } + void Swap(DeltaDfsHashBroadcast* other); // implements Message ---------------------------------------------- - inline DeltaDfsHashBroadcast* New() const final { - return CreateMaybeMessage(nullptr); - } + inline DeltaDfsHashBroadcast* New() const PROTOBUF_FINAL { return New(NULL); } - DeltaDfsHashBroadcast* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + DeltaDfsHashBroadcast* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const DeltaDfsHashBroadcast& from); void MergeFrom(const DeltaDfsHashBroadcast& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) + const PROTOBUF_FINAL { + return InternalSerializeWithCachedSizesToArray( + ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); + } + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: - inline void SharedCtor(); - inline void SharedDtor(); - void SetCachedSize(int size) const final; + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(DeltaDfsHashBroadcast* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "Catalyst.Protocol.Wire.DeltaDfsHashBroadcast"; - } private: - inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { - return nullptr; + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; } inline void* MaybeArenaPtr() const { - return nullptr; + return NULL; } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_Wire_2eproto); - return ::descriptor_table_Wire_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - enum : int { - kDeltaDfsHashFieldNumber = 1, - kPreviousDeltaDfsHashFieldNumber = 2, - }; // bytes delta_dfs_hash = 1; void clear_delta_dfs_hash(); - const std::string& delta_dfs_hash() const; - void set_delta_dfs_hash(const std::string& value); - void set_delta_dfs_hash(std::string&& value); + static const int kDeltaDfsHashFieldNumber = 1; + const ::std::string& delta_dfs_hash() const; + void set_delta_dfs_hash(const ::std::string& value); + #if LANG_CXX11 + void set_delta_dfs_hash(::std::string&& value); + #endif void set_delta_dfs_hash(const char* value); void set_delta_dfs_hash(const void* value, size_t size); - std::string* mutable_delta_dfs_hash(); - std::string* release_delta_dfs_hash(); - void set_allocated_delta_dfs_hash(std::string* delta_dfs_hash); - private: - const std::string& _internal_delta_dfs_hash() const; - void _internal_set_delta_dfs_hash(const std::string& value); - std::string* _internal_mutable_delta_dfs_hash(); - public: + ::std::string* mutable_delta_dfs_hash(); + ::std::string* release_delta_dfs_hash(); + void set_allocated_delta_dfs_hash(::std::string* delta_dfs_hash); // bytes previous_delta_dfs_hash = 2; void clear_previous_delta_dfs_hash(); - const std::string& previous_delta_dfs_hash() const; - void set_previous_delta_dfs_hash(const std::string& value); - void set_previous_delta_dfs_hash(std::string&& value); + static const int kPreviousDeltaDfsHashFieldNumber = 2; + const ::std::string& previous_delta_dfs_hash() const; + void set_previous_delta_dfs_hash(const ::std::string& value); + #if LANG_CXX11 + void set_previous_delta_dfs_hash(::std::string&& value); + #endif void set_previous_delta_dfs_hash(const char* value); void set_previous_delta_dfs_hash(const void* value, size_t size); - std::string* mutable_previous_delta_dfs_hash(); - std::string* release_previous_delta_dfs_hash(); - void set_allocated_previous_delta_dfs_hash(std::string* previous_delta_dfs_hash); - private: - const std::string& _internal_previous_delta_dfs_hash() const; - void _internal_set_previous_delta_dfs_hash(const std::string& value); - std::string* _internal_mutable_previous_delta_dfs_hash(); - public: + ::std::string* mutable_previous_delta_dfs_hash(); + ::std::string* release_previous_delta_dfs_hash(); + void set_allocated_previous_delta_dfs_hash(::std::string* previous_delta_dfs_hash); // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) private: - class _Internal; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delta_dfs_hash_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr previous_delta_dfs_hash_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_Wire_2eproto; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr delta_dfs_hash_; + ::google::protobuf::internal::ArenaStringPtr previous_delta_dfs_hash_; + mutable int _cached_size_; + friend struct protobuf_Wire_2eproto::TableStruct; }; // =================================================================== // =================================================================== -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ +#if !PROTOBUF_INLINE_NOT_IN_HEADERS // ProtocolErrorMessage // .Catalyst.Protocol.Cryptography.Signature signature = 1; -inline bool ProtocolErrorMessage::_internal_has_signature() const { - return this != internal_default_instance() && signature_ != nullptr; -} inline bool ProtocolErrorMessage::has_signature() const { - return _internal_has_signature(); + return this != internal_default_instance() && signature_ != NULL; } -inline const ::Catalyst::Protocol::Cryptography::Signature& ProtocolErrorMessage::_internal_signature() const { - const ::Catalyst::Protocol::Cryptography::Signature* p = signature_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Cryptography::_Signature_default_instance_); +inline void ProtocolErrorMessage::clear_signature() { + if (GetArenaNoVirtual() == NULL && signature_ != NULL) delete signature_; + signature_ = NULL; } inline const ::Catalyst::Protocol::Cryptography::Signature& ProtocolErrorMessage::signature() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolErrorMessage.signature) - return _internal_signature(); + return signature_ != NULL ? *signature_ + : *::Catalyst::Protocol::Cryptography::Signature::internal_default_instance(); +} +inline ::Catalyst::Protocol::Cryptography::Signature* ProtocolErrorMessage::mutable_signature() { + + if (signature_ == NULL) { + signature_ = new ::Catalyst::Protocol::Cryptography::Signature; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolErrorMessage.signature) + return signature_; } inline ::Catalyst::Protocol::Cryptography::Signature* ProtocolErrorMessage::release_signature() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolErrorMessage.signature) ::Catalyst::Protocol::Cryptography::Signature* temp = signature_; - signature_ = nullptr; + signature_ = NULL; return temp; } -inline ::Catalyst::Protocol::Cryptography::Signature* ProtocolErrorMessage::_internal_mutable_signature() { - - if (signature_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Cryptography::Signature>(GetArenaNoVirtual()); - signature_ = p; - } - return signature_; -} -inline ::Catalyst::Protocol::Cryptography::Signature* ProtocolErrorMessage::mutable_signature() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolErrorMessage.signature) - return _internal_mutable_signature(); -} inline void ProtocolErrorMessage::set_allocated_signature(::Catalyst::Protocol::Cryptography::Signature* signature) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(signature_); - } + delete signature_; + signature_ = signature; if (signature) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - signature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, signature, submessage_arena); - } } else { } - signature_ = signature; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolErrorMessage.signature) } // .Catalyst.Protocol.Peer.PeerId peer_id = 2; -inline bool ProtocolErrorMessage::_internal_has_peer_id() const { - return this != internal_default_instance() && peer_id_ != nullptr; -} inline bool ProtocolErrorMessage::has_peer_id() const { - return _internal_has_peer_id(); + return this != internal_default_instance() && peer_id_ != NULL; } -inline const ::Catalyst::Protocol::Peer::PeerId& ProtocolErrorMessage::_internal_peer_id() const { - const ::Catalyst::Protocol::Peer::PeerId* p = peer_id_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Peer::_PeerId_default_instance_); +inline void ProtocolErrorMessage::clear_peer_id() { + if (GetArenaNoVirtual() == NULL && peer_id_ != NULL) delete peer_id_; + peer_id_ = NULL; } inline const ::Catalyst::Protocol::Peer::PeerId& ProtocolErrorMessage::peer_id() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolErrorMessage.peer_id) - return _internal_peer_id(); + return peer_id_ != NULL ? *peer_id_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +inline ::Catalyst::Protocol::Peer::PeerId* ProtocolErrorMessage::mutable_peer_id() { + + if (peer_id_ == NULL) { + peer_id_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolErrorMessage.peer_id) + return peer_id_; } inline ::Catalyst::Protocol::Peer::PeerId* ProtocolErrorMessage::release_peer_id() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolErrorMessage.peer_id) ::Catalyst::Protocol::Peer::PeerId* temp = peer_id_; - peer_id_ = nullptr; + peer_id_ = NULL; return temp; } -inline ::Catalyst::Protocol::Peer::PeerId* ProtocolErrorMessage::_internal_mutable_peer_id() { - - if (peer_id_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Peer::PeerId>(GetArenaNoVirtual()); - peer_id_ = p; - } - return peer_id_; -} -inline ::Catalyst::Protocol::Peer::PeerId* ProtocolErrorMessage::mutable_peer_id() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolErrorMessage.peer_id) - return _internal_mutable_peer_id(); -} inline void ProtocolErrorMessage::set_allocated_peer_id(::Catalyst::Protocol::Peer::PeerId* peer_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(peer_id_); - } + delete peer_id_; + peer_id_ = peer_id; if (peer_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - peer_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, peer_id, submessage_arena); - } } else { } - peer_id_ = peer_id; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolErrorMessage.peer_id) } // bytes correlation_id = 3; inline void ProtocolErrorMessage::clear_correlation_id() { - correlation_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + correlation_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& ProtocolErrorMessage::correlation_id() const { +inline const ::std::string& ProtocolErrorMessage::correlation_id() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) - return _internal_correlation_id(); -} -inline void ProtocolErrorMessage::set_correlation_id(const std::string& value) { - _internal_set_correlation_id(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) -} -inline std::string* ProtocolErrorMessage::mutable_correlation_id() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) - return _internal_mutable_correlation_id(); -} -inline const std::string& ProtocolErrorMessage::_internal_correlation_id() const { return correlation_id_.GetNoArena(); } -inline void ProtocolErrorMessage::_internal_set_correlation_id(const std::string& value) { +inline void ProtocolErrorMessage::set_correlation_id(const ::std::string& value) { - correlation_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + correlation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) } -inline void ProtocolErrorMessage::set_correlation_id(std::string&& value) { +#if LANG_CXX11 +inline void ProtocolErrorMessage::set_correlation_id(::std::string&& value) { correlation_id_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) } +#endif inline void ProtocolErrorMessage::set_correlation_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - correlation_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + correlation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) } inline void ProtocolErrorMessage::set_correlation_id(const void* value, size_t size) { - correlation_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + correlation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) } -inline std::string* ProtocolErrorMessage::_internal_mutable_correlation_id() { +inline ::std::string* ProtocolErrorMessage::mutable_correlation_id() { - return correlation_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) + return correlation_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ProtocolErrorMessage::release_correlation_id() { +inline ::std::string* ProtocolErrorMessage::release_correlation_id() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) - return correlation_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return correlation_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ProtocolErrorMessage::set_allocated_correlation_id(std::string* correlation_id) { - if (correlation_id != nullptr) { +inline void ProtocolErrorMessage::set_allocated_correlation_id(::std::string* correlation_id) { + if (correlation_id != NULL) { } else { } - correlation_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), correlation_id); + correlation_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), correlation_id); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id) } @@ -1270,19 +918,13 @@ inline void ProtocolErrorMessage::set_allocated_correlation_id(std::string* corr inline void ProtocolErrorMessage::clear_code() { code_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::int32 ProtocolErrorMessage::_internal_code() const { - return code_; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 ProtocolErrorMessage::code() const { +inline ::google::protobuf::int32 ProtocolErrorMessage::code() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolErrorMessage.code) - return _internal_code(); + return code_; } -inline void ProtocolErrorMessage::_internal_set_code(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void ProtocolErrorMessage::set_code(::google::protobuf::int32 value) { code_ = value; -} -inline void ProtocolErrorMessage::set_code(::PROTOBUF_NAMESPACE_ID::int32 value) { - _internal_set_code(value); // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolErrorMessage.code) } @@ -1291,290 +933,236 @@ inline void ProtocolErrorMessage::set_code(::PROTOBUF_NAMESPACE_ID::int32 value) // ProtocolMessage // .Catalyst.Protocol.Peer.PeerId peer_id = 1; -inline bool ProtocolMessage::_internal_has_peer_id() const { - return this != internal_default_instance() && peer_id_ != nullptr; -} inline bool ProtocolMessage::has_peer_id() const { - return _internal_has_peer_id(); + return this != internal_default_instance() && peer_id_ != NULL; } -inline const ::Catalyst::Protocol::Peer::PeerId& ProtocolMessage::_internal_peer_id() const { - const ::Catalyst::Protocol::Peer::PeerId* p = peer_id_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Peer::_PeerId_default_instance_); +inline void ProtocolMessage::clear_peer_id() { + if (GetArenaNoVirtual() == NULL && peer_id_ != NULL) delete peer_id_; + peer_id_ = NULL; } inline const ::Catalyst::Protocol::Peer::PeerId& ProtocolMessage::peer_id() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolMessage.peer_id) - return _internal_peer_id(); + return peer_id_ != NULL ? *peer_id_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +inline ::Catalyst::Protocol::Peer::PeerId* ProtocolMessage::mutable_peer_id() { + + if (peer_id_ == NULL) { + peer_id_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.peer_id) + return peer_id_; } inline ::Catalyst::Protocol::Peer::PeerId* ProtocolMessage::release_peer_id() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolMessage.peer_id) ::Catalyst::Protocol::Peer::PeerId* temp = peer_id_; - peer_id_ = nullptr; + peer_id_ = NULL; return temp; } -inline ::Catalyst::Protocol::Peer::PeerId* ProtocolMessage::_internal_mutable_peer_id() { - - if (peer_id_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Peer::PeerId>(GetArenaNoVirtual()); - peer_id_ = p; - } - return peer_id_; -} -inline ::Catalyst::Protocol::Peer::PeerId* ProtocolMessage::mutable_peer_id() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.peer_id) - return _internal_mutable_peer_id(); -} inline void ProtocolMessage::set_allocated_peer_id(::Catalyst::Protocol::Peer::PeerId* peer_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(peer_id_); - } + delete peer_id_; + peer_id_ = peer_id; if (peer_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - peer_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, peer_id, submessage_arena); - } } else { } - peer_id_ = peer_id; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolMessage.peer_id) } // bytes correlation_id = 2; inline void ProtocolMessage::clear_correlation_id() { - correlation_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + correlation_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& ProtocolMessage::correlation_id() const { +inline const ::std::string& ProtocolMessage::correlation_id() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) - return _internal_correlation_id(); -} -inline void ProtocolMessage::set_correlation_id(const std::string& value) { - _internal_set_correlation_id(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) -} -inline std::string* ProtocolMessage::mutable_correlation_id() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) - return _internal_mutable_correlation_id(); -} -inline const std::string& ProtocolMessage::_internal_correlation_id() const { return correlation_id_.GetNoArena(); } -inline void ProtocolMessage::_internal_set_correlation_id(const std::string& value) { +inline void ProtocolMessage::set_correlation_id(const ::std::string& value) { - correlation_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + correlation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) } -inline void ProtocolMessage::set_correlation_id(std::string&& value) { +#if LANG_CXX11 +inline void ProtocolMessage::set_correlation_id(::std::string&& value) { correlation_id_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) } +#endif inline void ProtocolMessage::set_correlation_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - correlation_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + correlation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) } inline void ProtocolMessage::set_correlation_id(const void* value, size_t size) { - correlation_id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + correlation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) } -inline std::string* ProtocolMessage::_internal_mutable_correlation_id() { +inline ::std::string* ProtocolMessage::mutable_correlation_id() { - return correlation_id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) + return correlation_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ProtocolMessage::release_correlation_id() { +inline ::std::string* ProtocolMessage::release_correlation_id() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) - return correlation_id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return correlation_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ProtocolMessage::set_allocated_correlation_id(std::string* correlation_id) { - if (correlation_id != nullptr) { +inline void ProtocolMessage::set_allocated_correlation_id(::std::string* correlation_id) { + if (correlation_id != NULL) { } else { } - correlation_id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), correlation_id); + correlation_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), correlation_id); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolMessage.correlation_id) } // string type_url = 3; inline void ProtocolMessage::clear_type_url() { - type_url_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& ProtocolMessage::type_url() const { +inline const ::std::string& ProtocolMessage::type_url() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolMessage.type_url) - return _internal_type_url(); -} -inline void ProtocolMessage::set_type_url(const std::string& value) { - _internal_set_type_url(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolMessage.type_url) -} -inline std::string* ProtocolMessage::mutable_type_url() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.type_url) - return _internal_mutable_type_url(); -} -inline const std::string& ProtocolMessage::_internal_type_url() const { return type_url_.GetNoArena(); } -inline void ProtocolMessage::_internal_set_type_url(const std::string& value) { +inline void ProtocolMessage::set_type_url(const ::std::string& value) { - type_url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolMessage.type_url) } -inline void ProtocolMessage::set_type_url(std::string&& value) { +#if LANG_CXX11 +inline void ProtocolMessage::set_type_url(::std::string&& value) { type_url_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.ProtocolMessage.type_url) } +#endif inline void ProtocolMessage::set_type_url(const char* value) { - GOOGLE_DCHECK(value != nullptr); - type_url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.ProtocolMessage.type_url) } inline void ProtocolMessage::set_type_url(const char* value, size_t size) { - type_url_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.ProtocolMessage.type_url) } -inline std::string* ProtocolMessage::_internal_mutable_type_url() { +inline ::std::string* ProtocolMessage::mutable_type_url() { - return type_url_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.type_url) + return type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ProtocolMessage::release_type_url() { +inline ::std::string* ProtocolMessage::release_type_url() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolMessage.type_url) - return type_url_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ProtocolMessage::set_allocated_type_url(std::string* type_url) { - if (type_url != nullptr) { +inline void ProtocolMessage::set_allocated_type_url(::std::string* type_url) { + if (type_url != NULL) { } else { } - type_url_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type_url); + type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_url); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolMessage.type_url) } // bytes value = 4; inline void ProtocolMessage::clear_value() { - value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& ProtocolMessage::value() const { +inline const ::std::string& ProtocolMessage::value() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolMessage.value) - return _internal_value(); -} -inline void ProtocolMessage::set_value(const std::string& value) { - _internal_set_value(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolMessage.value) -} -inline std::string* ProtocolMessage::mutable_value() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.value) - return _internal_mutable_value(); -} -inline const std::string& ProtocolMessage::_internal_value() const { return value_.GetNoArena(); } -inline void ProtocolMessage::_internal_set_value(const std::string& value) { +inline void ProtocolMessage::set_value(const ::std::string& value) { - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.ProtocolMessage.value) } -inline void ProtocolMessage::set_value(std::string&& value) { +#if LANG_CXX11 +inline void ProtocolMessage::set_value(::std::string&& value) { value_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.ProtocolMessage.value) } +#endif inline void ProtocolMessage::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.ProtocolMessage.value) } inline void ProtocolMessage::set_value(const void* value, size_t size) { - value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.ProtocolMessage.value) } -inline std::string* ProtocolMessage::_internal_mutable_value() { +inline ::std::string* ProtocolMessage::mutable_value() { - return value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ProtocolMessage::release_value() { +inline ::std::string* ProtocolMessage::release_value() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolMessage.value) - return value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void ProtocolMessage::set_allocated_value(std::string* value) { - if (value != nullptr) { +inline void ProtocolMessage::set_allocated_value(::std::string* value) { + if (value != NULL) { } else { } - value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolMessage.value) } // .Catalyst.Protocol.Cryptography.Signature signature = 5; -inline bool ProtocolMessage::_internal_has_signature() const { - return this != internal_default_instance() && signature_ != nullptr; -} inline bool ProtocolMessage::has_signature() const { - return _internal_has_signature(); + return this != internal_default_instance() && signature_ != NULL; } -inline const ::Catalyst::Protocol::Cryptography::Signature& ProtocolMessage::_internal_signature() const { - const ::Catalyst::Protocol::Cryptography::Signature* p = signature_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Cryptography::_Signature_default_instance_); +inline void ProtocolMessage::clear_signature() { + if (GetArenaNoVirtual() == NULL && signature_ != NULL) delete signature_; + signature_ = NULL; } inline const ::Catalyst::Protocol::Cryptography::Signature& ProtocolMessage::signature() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.ProtocolMessage.signature) - return _internal_signature(); + return signature_ != NULL ? *signature_ + : *::Catalyst::Protocol::Cryptography::Signature::internal_default_instance(); +} +inline ::Catalyst::Protocol::Cryptography::Signature* ProtocolMessage::mutable_signature() { + + if (signature_ == NULL) { + signature_ = new ::Catalyst::Protocol::Cryptography::Signature; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.signature) + return signature_; } inline ::Catalyst::Protocol::Cryptography::Signature* ProtocolMessage::release_signature() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.ProtocolMessage.signature) ::Catalyst::Protocol::Cryptography::Signature* temp = signature_; - signature_ = nullptr; + signature_ = NULL; return temp; } -inline ::Catalyst::Protocol::Cryptography::Signature* ProtocolMessage::_internal_mutable_signature() { - - if (signature_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Cryptography::Signature>(GetArenaNoVirtual()); - signature_ = p; - } - return signature_; -} -inline ::Catalyst::Protocol::Cryptography::Signature* ProtocolMessage::mutable_signature() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.ProtocolMessage.signature) - return _internal_mutable_signature(); -} inline void ProtocolMessage::set_allocated_signature(::Catalyst::Protocol::Cryptography::Signature* signature) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(signature_); - } + delete signature_; + signature_ = signature; if (signature) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - signature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, signature, submessage_arena); - } } else { } - signature_ = signature; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.ProtocolMessage.signature) } @@ -1583,56 +1171,41 @@ inline void ProtocolMessage::set_allocated_signature(::Catalyst::Protocol::Crypt // TransactionBroadcast // .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; -inline bool TransactionBroadcast::_internal_has_public_entry() const { - return this != internal_default_instance() && public_entry_ != nullptr; -} inline bool TransactionBroadcast::has_public_entry() const { - return _internal_has_public_entry(); + return this != internal_default_instance() && public_entry_ != NULL; } -inline const ::Catalyst::Protocol::Transaction::PublicEntry& TransactionBroadcast::_internal_public_entry() const { - const ::Catalyst::Protocol::Transaction::PublicEntry* p = public_entry_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Transaction::_PublicEntry_default_instance_); +inline void TransactionBroadcast::clear_public_entry() { + if (GetArenaNoVirtual() == NULL && public_entry_ != NULL) delete public_entry_; + public_entry_ = NULL; } inline const ::Catalyst::Protocol::Transaction::PublicEntry& TransactionBroadcast::public_entry() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.TransactionBroadcast.public_entry) - return _internal_public_entry(); + return public_entry_ != NULL ? *public_entry_ + : *::Catalyst::Protocol::Transaction::PublicEntry::internal_default_instance(); +} +inline ::Catalyst::Protocol::Transaction::PublicEntry* TransactionBroadcast::mutable_public_entry() { + + if (public_entry_ == NULL) { + public_entry_ = new ::Catalyst::Protocol::Transaction::PublicEntry; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.TransactionBroadcast.public_entry) + return public_entry_; } inline ::Catalyst::Protocol::Transaction::PublicEntry* TransactionBroadcast::release_public_entry() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.TransactionBroadcast.public_entry) ::Catalyst::Protocol::Transaction::PublicEntry* temp = public_entry_; - public_entry_ = nullptr; + public_entry_ = NULL; return temp; } -inline ::Catalyst::Protocol::Transaction::PublicEntry* TransactionBroadcast::_internal_mutable_public_entry() { - - if (public_entry_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Transaction::PublicEntry>(GetArenaNoVirtual()); - public_entry_ = p; - } - return public_entry_; -} -inline ::Catalyst::Protocol::Transaction::PublicEntry* TransactionBroadcast::mutable_public_entry() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.TransactionBroadcast.public_entry) - return _internal_mutable_public_entry(); -} inline void TransactionBroadcast::set_allocated_public_entry(::Catalyst::Protocol::Transaction::PublicEntry* public_entry) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(public_entry_); - } + delete public_entry_; + public_entry_ = public_entry; if (public_entry) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - public_entry = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, public_entry, submessage_arena); - } } else { } - public_entry_ = public_entry; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.TransactionBroadcast.public_entry) } @@ -1642,175 +1215,144 @@ inline void TransactionBroadcast::set_allocated_public_entry(::Catalyst::Protoco // bytes hash = 1; inline void CandidateDeltaBroadcast::clear_hash() { - hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& CandidateDeltaBroadcast::hash() const { +inline const ::std::string& CandidateDeltaBroadcast::hash() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) - return _internal_hash(); -} -inline void CandidateDeltaBroadcast::set_hash(const std::string& value) { - _internal_set_hash(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) -} -inline std::string* CandidateDeltaBroadcast::mutable_hash() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) - return _internal_mutable_hash(); -} -inline const std::string& CandidateDeltaBroadcast::_internal_hash() const { return hash_.GetNoArena(); } -inline void CandidateDeltaBroadcast::_internal_set_hash(const std::string& value) { +inline void CandidateDeltaBroadcast::set_hash(const ::std::string& value) { - hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) } -inline void CandidateDeltaBroadcast::set_hash(std::string&& value) { +#if LANG_CXX11 +inline void CandidateDeltaBroadcast::set_hash(::std::string&& value) { hash_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) } +#endif inline void CandidateDeltaBroadcast::set_hash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) } inline void CandidateDeltaBroadcast::set_hash(const void* value, size_t size) { - hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) } -inline std::string* CandidateDeltaBroadcast::_internal_mutable_hash() { +inline ::std::string* CandidateDeltaBroadcast::mutable_hash() { - return hash_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) + return hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* CandidateDeltaBroadcast::release_hash() { +inline ::std::string* CandidateDeltaBroadcast::release_hash() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) - return hash_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void CandidateDeltaBroadcast::set_allocated_hash(std::string* hash) { - if (hash != nullptr) { +inline void CandidateDeltaBroadcast::set_allocated_hash(::std::string* hash) { + if (hash != NULL) { } else { } - hash_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), hash); + hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hash); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash) } // .Catalyst.Protocol.Peer.PeerId producer_id = 2; -inline bool CandidateDeltaBroadcast::_internal_has_producer_id() const { - return this != internal_default_instance() && producer_id_ != nullptr; -} inline bool CandidateDeltaBroadcast::has_producer_id() const { - return _internal_has_producer_id(); + return this != internal_default_instance() && producer_id_ != NULL; } -inline const ::Catalyst::Protocol::Peer::PeerId& CandidateDeltaBroadcast::_internal_producer_id() const { - const ::Catalyst::Protocol::Peer::PeerId* p = producer_id_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Peer::_PeerId_default_instance_); +inline void CandidateDeltaBroadcast::clear_producer_id() { + if (GetArenaNoVirtual() == NULL && producer_id_ != NULL) delete producer_id_; + producer_id_ = NULL; } inline const ::Catalyst::Protocol::Peer::PeerId& CandidateDeltaBroadcast::producer_id() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.producer_id) - return _internal_producer_id(); + return producer_id_ != NULL ? *producer_id_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +inline ::Catalyst::Protocol::Peer::PeerId* CandidateDeltaBroadcast::mutable_producer_id() { + + if (producer_id_ == NULL) { + producer_id_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.producer_id) + return producer_id_; } inline ::Catalyst::Protocol::Peer::PeerId* CandidateDeltaBroadcast::release_producer_id() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.producer_id) ::Catalyst::Protocol::Peer::PeerId* temp = producer_id_; - producer_id_ = nullptr; + producer_id_ = NULL; return temp; } -inline ::Catalyst::Protocol::Peer::PeerId* CandidateDeltaBroadcast::_internal_mutable_producer_id() { - - if (producer_id_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Peer::PeerId>(GetArenaNoVirtual()); - producer_id_ = p; - } - return producer_id_; -} -inline ::Catalyst::Protocol::Peer::PeerId* CandidateDeltaBroadcast::mutable_producer_id() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.producer_id) - return _internal_mutable_producer_id(); -} inline void CandidateDeltaBroadcast::set_allocated_producer_id(::Catalyst::Protocol::Peer::PeerId* producer_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(producer_id_); - } + delete producer_id_; + producer_id_ = producer_id; if (producer_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - producer_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, producer_id, submessage_arena); - } } else { } - producer_id_ = producer_id; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.producer_id) } // bytes previous_delta_dfs_hash = 3; inline void CandidateDeltaBroadcast::clear_previous_delta_dfs_hash() { - previous_delta_dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + previous_delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& CandidateDeltaBroadcast::previous_delta_dfs_hash() const { +inline const ::std::string& CandidateDeltaBroadcast::previous_delta_dfs_hash() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) - return _internal_previous_delta_dfs_hash(); -} -inline void CandidateDeltaBroadcast::set_previous_delta_dfs_hash(const std::string& value) { - _internal_set_previous_delta_dfs_hash(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) -} -inline std::string* CandidateDeltaBroadcast::mutable_previous_delta_dfs_hash() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) - return _internal_mutable_previous_delta_dfs_hash(); -} -inline const std::string& CandidateDeltaBroadcast::_internal_previous_delta_dfs_hash() const { return previous_delta_dfs_hash_.GetNoArena(); } -inline void CandidateDeltaBroadcast::_internal_set_previous_delta_dfs_hash(const std::string& value) { +inline void CandidateDeltaBroadcast::set_previous_delta_dfs_hash(const ::std::string& value) { - previous_delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) } -inline void CandidateDeltaBroadcast::set_previous_delta_dfs_hash(std::string&& value) { +#if LANG_CXX11 +inline void CandidateDeltaBroadcast::set_previous_delta_dfs_hash(::std::string&& value) { previous_delta_dfs_hash_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) } +#endif inline void CandidateDeltaBroadcast::set_previous_delta_dfs_hash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - previous_delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) } inline void CandidateDeltaBroadcast::set_previous_delta_dfs_hash(const void* value, size_t size) { - previous_delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) } -inline std::string* CandidateDeltaBroadcast::_internal_mutable_previous_delta_dfs_hash() { +inline ::std::string* CandidateDeltaBroadcast::mutable_previous_delta_dfs_hash() { - return previous_delta_dfs_hash_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) + return previous_delta_dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* CandidateDeltaBroadcast::release_previous_delta_dfs_hash() { +inline ::std::string* CandidateDeltaBroadcast::release_previous_delta_dfs_hash() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) - return previous_delta_dfs_hash_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return previous_delta_dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void CandidateDeltaBroadcast::set_allocated_previous_delta_dfs_hash(std::string* previous_delta_dfs_hash) { - if (previous_delta_dfs_hash != nullptr) { +inline void CandidateDeltaBroadcast::set_allocated_previous_delta_dfs_hash(::std::string* previous_delta_dfs_hash) { + if (previous_delta_dfs_hash != NULL) { } else { } - previous_delta_dfs_hash_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), previous_delta_dfs_hash); + previous_delta_dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), previous_delta_dfs_hash); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash) } @@ -1819,116 +1361,80 @@ inline void CandidateDeltaBroadcast::set_allocated_previous_delta_dfs_hash(std:: // FavouriteDeltaBroadcast // .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; -inline bool FavouriteDeltaBroadcast::_internal_has_candidate() const { - return this != internal_default_instance() && candidate_ != nullptr; -} inline bool FavouriteDeltaBroadcast::has_candidate() const { - return _internal_has_candidate(); + return this != internal_default_instance() && candidate_ != NULL; } inline void FavouriteDeltaBroadcast::clear_candidate() { - if (GetArenaNoVirtual() == nullptr && candidate_ != nullptr) { - delete candidate_; - } - candidate_ = nullptr; -} -inline const ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast& FavouriteDeltaBroadcast::_internal_candidate() const { - const ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* p = candidate_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Wire::_CandidateDeltaBroadcast_default_instance_); + if (GetArenaNoVirtual() == NULL && candidate_ != NULL) delete candidate_; + candidate_ = NULL; } inline const ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast& FavouriteDeltaBroadcast::candidate() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.candidate) - return _internal_candidate(); + return candidate_ != NULL ? *candidate_ + : *::Catalyst::Protocol::Wire::CandidateDeltaBroadcast::internal_default_instance(); +} +inline ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* FavouriteDeltaBroadcast::mutable_candidate() { + + if (candidate_ == NULL) { + candidate_ = new ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.candidate) + return candidate_; } inline ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* FavouriteDeltaBroadcast::release_candidate() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.candidate) ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* temp = candidate_; - candidate_ = nullptr; + candidate_ = NULL; return temp; } -inline ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* FavouriteDeltaBroadcast::_internal_mutable_candidate() { - - if (candidate_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Wire::CandidateDeltaBroadcast>(GetArenaNoVirtual()); - candidate_ = p; - } - return candidate_; -} -inline ::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* FavouriteDeltaBroadcast::mutable_candidate() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.candidate) - return _internal_mutable_candidate(); -} inline void FavouriteDeltaBroadcast::set_allocated_candidate(::Catalyst::Protocol::Wire::CandidateDeltaBroadcast* candidate) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete candidate_; - } + delete candidate_; + candidate_ = candidate; if (candidate) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - candidate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, candidate, submessage_arena); - } } else { } - candidate_ = candidate; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.candidate) } // .Catalyst.Protocol.Peer.PeerId voter_id = 2; -inline bool FavouriteDeltaBroadcast::_internal_has_voter_id() const { - return this != internal_default_instance() && voter_id_ != nullptr; -} inline bool FavouriteDeltaBroadcast::has_voter_id() const { - return _internal_has_voter_id(); + return this != internal_default_instance() && voter_id_ != NULL; } -inline const ::Catalyst::Protocol::Peer::PeerId& FavouriteDeltaBroadcast::_internal_voter_id() const { - const ::Catalyst::Protocol::Peer::PeerId* p = voter_id_; - return p != nullptr ? *p : *reinterpret_cast( - &::Catalyst::Protocol::Peer::_PeerId_default_instance_); +inline void FavouriteDeltaBroadcast::clear_voter_id() { + if (GetArenaNoVirtual() == NULL && voter_id_ != NULL) delete voter_id_; + voter_id_ = NULL; } inline const ::Catalyst::Protocol::Peer::PeerId& FavouriteDeltaBroadcast::voter_id() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.voter_id) - return _internal_voter_id(); + return voter_id_ != NULL ? *voter_id_ + : *::Catalyst::Protocol::Peer::PeerId::internal_default_instance(); +} +inline ::Catalyst::Protocol::Peer::PeerId* FavouriteDeltaBroadcast::mutable_voter_id() { + + if (voter_id_ == NULL) { + voter_id_ = new ::Catalyst::Protocol::Peer::PeerId; + } + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.voter_id) + return voter_id_; } inline ::Catalyst::Protocol::Peer::PeerId* FavouriteDeltaBroadcast::release_voter_id() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.voter_id) ::Catalyst::Protocol::Peer::PeerId* temp = voter_id_; - voter_id_ = nullptr; + voter_id_ = NULL; return temp; } -inline ::Catalyst::Protocol::Peer::PeerId* FavouriteDeltaBroadcast::_internal_mutable_voter_id() { - - if (voter_id_ == nullptr) { - auto* p = CreateMaybeMessage<::Catalyst::Protocol::Peer::PeerId>(GetArenaNoVirtual()); - voter_id_ = p; - } - return voter_id_; -} -inline ::Catalyst::Protocol::Peer::PeerId* FavouriteDeltaBroadcast::mutable_voter_id() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.voter_id) - return _internal_mutable_voter_id(); -} inline void FavouriteDeltaBroadcast::set_allocated_voter_id(::Catalyst::Protocol::Peer::PeerId* voter_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(voter_id_); - } + delete voter_id_; + voter_id_ = voter_id; if (voter_id) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - voter_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, voter_id, submessage_arena); - } } else { } - voter_id_ = voter_id; // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.voter_id) } @@ -1938,127 +1444,109 @@ inline void FavouriteDeltaBroadcast::set_allocated_voter_id(::Catalyst::Protocol // bytes delta_dfs_hash = 1; inline void DeltaDfsHashBroadcast::clear_delta_dfs_hash() { - delta_dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& DeltaDfsHashBroadcast::delta_dfs_hash() const { +inline const ::std::string& DeltaDfsHashBroadcast::delta_dfs_hash() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) - return _internal_delta_dfs_hash(); -} -inline void DeltaDfsHashBroadcast::set_delta_dfs_hash(const std::string& value) { - _internal_set_delta_dfs_hash(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) -} -inline std::string* DeltaDfsHashBroadcast::mutable_delta_dfs_hash() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) - return _internal_mutable_delta_dfs_hash(); -} -inline const std::string& DeltaDfsHashBroadcast::_internal_delta_dfs_hash() const { return delta_dfs_hash_.GetNoArena(); } -inline void DeltaDfsHashBroadcast::_internal_set_delta_dfs_hash(const std::string& value) { +inline void DeltaDfsHashBroadcast::set_delta_dfs_hash(const ::std::string& value) { - delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) } -inline void DeltaDfsHashBroadcast::set_delta_dfs_hash(std::string&& value) { +#if LANG_CXX11 +inline void DeltaDfsHashBroadcast::set_delta_dfs_hash(::std::string&& value) { delta_dfs_hash_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) } +#endif inline void DeltaDfsHashBroadcast::set_delta_dfs_hash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) } inline void DeltaDfsHashBroadcast::set_delta_dfs_hash(const void* value, size_t size) { - delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) } -inline std::string* DeltaDfsHashBroadcast::_internal_mutable_delta_dfs_hash() { +inline ::std::string* DeltaDfsHashBroadcast::mutable_delta_dfs_hash() { - return delta_dfs_hash_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) + return delta_dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* DeltaDfsHashBroadcast::release_delta_dfs_hash() { +inline ::std::string* DeltaDfsHashBroadcast::release_delta_dfs_hash() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) - return delta_dfs_hash_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return delta_dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void DeltaDfsHashBroadcast::set_allocated_delta_dfs_hash(std::string* delta_dfs_hash) { - if (delta_dfs_hash != nullptr) { +inline void DeltaDfsHashBroadcast::set_allocated_delta_dfs_hash(::std::string* delta_dfs_hash) { + if (delta_dfs_hash != NULL) { } else { } - delta_dfs_hash_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), delta_dfs_hash); + delta_dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delta_dfs_hash); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash) } // bytes previous_delta_dfs_hash = 2; inline void DeltaDfsHashBroadcast::clear_previous_delta_dfs_hash() { - previous_delta_dfs_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + previous_delta_dfs_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& DeltaDfsHashBroadcast::previous_delta_dfs_hash() const { +inline const ::std::string& DeltaDfsHashBroadcast::previous_delta_dfs_hash() const { // @@protoc_insertion_point(field_get:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) - return _internal_previous_delta_dfs_hash(); -} -inline void DeltaDfsHashBroadcast::set_previous_delta_dfs_hash(const std::string& value) { - _internal_set_previous_delta_dfs_hash(value); - // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) -} -inline std::string* DeltaDfsHashBroadcast::mutable_previous_delta_dfs_hash() { - // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) - return _internal_mutable_previous_delta_dfs_hash(); -} -inline const std::string& DeltaDfsHashBroadcast::_internal_previous_delta_dfs_hash() const { return previous_delta_dfs_hash_.GetNoArena(); } -inline void DeltaDfsHashBroadcast::_internal_set_previous_delta_dfs_hash(const std::string& value) { +inline void DeltaDfsHashBroadcast::set_previous_delta_dfs_hash(const ::std::string& value) { - previous_delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) } -inline void DeltaDfsHashBroadcast::set_previous_delta_dfs_hash(std::string&& value) { +#if LANG_CXX11 +inline void DeltaDfsHashBroadcast::set_previous_delta_dfs_hash(::std::string&& value) { previous_delta_dfs_hash_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) } +#endif inline void DeltaDfsHashBroadcast::set_previous_delta_dfs_hash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - previous_delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) } inline void DeltaDfsHashBroadcast::set_previous_delta_dfs_hash(const void* value, size_t size) { - previous_delta_dfs_hash_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + previous_delta_dfs_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) } -inline std::string* DeltaDfsHashBroadcast::_internal_mutable_previous_delta_dfs_hash() { +inline ::std::string* DeltaDfsHashBroadcast::mutable_previous_delta_dfs_hash() { - return previous_delta_dfs_hash_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) + return previous_delta_dfs_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline std::string* DeltaDfsHashBroadcast::release_previous_delta_dfs_hash() { +inline ::std::string* DeltaDfsHashBroadcast::release_previous_delta_dfs_hash() { // @@protoc_insertion_point(field_release:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) - return previous_delta_dfs_hash_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return previous_delta_dfs_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -inline void DeltaDfsHashBroadcast::set_allocated_previous_delta_dfs_hash(std::string* previous_delta_dfs_hash) { - if (previous_delta_dfs_hash != nullptr) { +inline void DeltaDfsHashBroadcast::set_allocated_previous_delta_dfs_hash(::std::string* previous_delta_dfs_hash) { + if (previous_delta_dfs_hash != NULL) { } else { } - previous_delta_dfs_hash_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), previous_delta_dfs_hash); + previous_delta_dfs_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), previous_delta_dfs_hash); // @@protoc_insertion_point(field_set_allocated:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash) } -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ +#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // ------------------------------------------------------------------- @@ -2072,11 +1560,11 @@ inline void DeltaDfsHashBroadcast::set_allocated_previous_delta_dfs_hash(std::st // @@protoc_insertion_point(namespace_scope) + } // namespace Wire } // namespace Protocol } // namespace Catalyst // @@protoc_insertion_point(global_scope) -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Wire_2eproto +#endif // PROTOBUF_Wire_2eproto__INCLUDED diff --git a/packages/sdk-java/src/Catalyst/Protocol/Account/Account.java b/packages/sdk-java/src/Catalyst/Protocol/Account/Account.java index 480aa51..e861ffc 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Account/Account.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Account/Account.java @@ -39,12 +39,20 @@ public static void registerAllExtensions( "UNT\020\020\022\032\n\026SMART_CONTRACT_ACCOUNT\020\030B\002P\001b\006p" + "roto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Catalyst.Protocol.Cryptography.Cryptography.getDescriptor(), Catalyst.Protocol.Network.Network.getDescriptor(), - }); + }, assigner); internal_static_Catalyst_Protocol_Account_Address_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Catalyst_Protocol_Account_Address_fieldAccessorTable = new diff --git a/packages/sdk-java/src/Catalyst/Protocol/Account/AccountType.java b/packages/sdk-java/src/Catalyst/Protocol/Account/AccountType.java index 1093567..bca4bce 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Account/AccountType.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Account/AccountType.java @@ -90,8 +90,6 @@ public final int getNumber() { } /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -99,10 +97,6 @@ public static AccountType valueOf(int value) { return forNumber(value); } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ public static AccountType forNumber(int value) { switch (value) { case 0: return ACCOUNT_TYPE_UNKNOWN; diff --git a/packages/sdk-java/src/Catalyst/Protocol/Account/Address.java b/packages/sdk-java/src/Catalyst/Protocol/Account/Address.java index 652674b..f68aefb 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Account/Address.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Account/Address.java @@ -10,7 +10,6 @@ public final class Address extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Account.Address) AddressOrBuilder { -private static final long serialVersionUID = 0L; // Use Address.newBuilder() to construct. private Address(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -21,28 +20,17 @@ private Address() { publicKeyHash_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Address(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Address( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -51,6 +39,12 @@ private Address( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 8: { int rawValue = input.readEnum(); @@ -68,13 +62,6 @@ private Address( publicKeyHash_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,7 +70,6 @@ private Address( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -92,7 +78,6 @@ private Address( return Catalyst.Protocol.Account.Account.internal_static_Catalyst_Protocol_Account_Address_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Account.Account.internal_static_Catalyst_Protocol_Account_Address_fieldAccessorTable @@ -108,7 +93,6 @@ private Address( * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return The enum numeric value on the wire for networkType. */ public int getNetworkTypeValue() { return networkType_; @@ -119,10 +103,8 @@ public int getNetworkTypeValue() { * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return The networkType. */ public Catalyst.Protocol.Network.NetworkType getNetworkType() { - @SuppressWarnings("deprecation") Catalyst.Protocol.Network.NetworkType result = Catalyst.Protocol.Network.NetworkType.valueOf(networkType_); return result == null ? Catalyst.Protocol.Network.NetworkType.UNRECOGNIZED : result; } @@ -135,7 +117,6 @@ public Catalyst.Protocol.Network.NetworkType getNetworkType() { * * * .Catalyst.Protocol.Account.AccountType account_type = 2; - * @return The enum numeric value on the wire for accountType. */ public int getAccountTypeValue() { return accountType_; @@ -146,10 +127,8 @@ public int getAccountTypeValue() { * * * .Catalyst.Protocol.Account.AccountType account_type = 2; - * @return The accountType. */ public Catalyst.Protocol.Account.AccountType getAccountType() { - @SuppressWarnings("deprecation") Catalyst.Protocol.Account.AccountType result = Catalyst.Protocol.Account.AccountType.valueOf(accountType_); return result == null ? Catalyst.Protocol.Account.AccountType.UNRECOGNIZED : result; } @@ -162,14 +141,12 @@ public Catalyst.Protocol.Account.AccountType getAccountType() { * * * bytes public_key_hash = 3; - * @return The publicKeyHash. */ public com.google.protobuf.ByteString getPublicKeyHash() { return publicKeyHash_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -179,7 +156,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (networkType_ != Catalyst.Protocol.Network.NetworkType.NETWORK_TYPE_UNKNOWN.getNumber()) { @@ -191,10 +167,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!publicKeyHash_.isEmpty()) { output.writeBytes(3, publicKeyHash_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -212,11 +186,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, publicKeyHash_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -227,12 +201,12 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Account.Address other = (Catalyst.Protocol.Account.Address) obj; - if (networkType_ != other.networkType_) return false; - if (accountType_ != other.accountType_) return false; - if (!getPublicKeyHash() - .equals(other.getPublicKeyHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && networkType_ == other.networkType_; + result = result && accountType_ == other.accountType_; + result = result && getPublicKeyHash() + .equals(other.getPublicKeyHash()); + return result; } @java.lang.Override @@ -253,17 +227,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Account.Address parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Account.Address parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Account.Address parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -323,7 +286,6 @@ public static Catalyst.Protocol.Account.Address parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -331,7 +293,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Account.Address prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -355,7 +316,6 @@ public static final class Builder extends return Catalyst.Protocol.Account.Account.internal_static_Catalyst_Protocol_Account_Address_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Account.Account.internal_static_Catalyst_Protocol_Account_Address_fieldAccessorTable @@ -378,7 +338,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); networkType_ = 0; @@ -390,18 +349,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Account.Account.internal_static_Catalyst_Protocol_Account_Address_descriptor; } - @java.lang.Override public Catalyst.Protocol.Account.Address getDefaultInstanceForType() { return Catalyst.Protocol.Account.Address.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Account.Address build() { Catalyst.Protocol.Account.Address result = buildPartial(); if (!result.isInitialized()) { @@ -410,7 +366,6 @@ public Catalyst.Protocol.Account.Address build() { return result; } - @java.lang.Override public Catalyst.Protocol.Account.Address buildPartial() { Catalyst.Protocol.Account.Address result = new Catalyst.Protocol.Account.Address(this); result.networkType_ = networkType_; @@ -420,39 +375,32 @@ public Catalyst.Protocol.Account.Address buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Account.Address) { return mergeFrom((Catalyst.Protocol.Account.Address)other); @@ -473,17 +421,14 @@ public Builder mergeFrom(Catalyst.Protocol.Account.Address other) { if (other.getPublicKeyHash() != com.google.protobuf.ByteString.EMPTY) { setPublicKeyHash(other.getPublicKeyHash()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -509,7 +454,6 @@ public Builder mergeFrom( * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return The enum numeric value on the wire for networkType. */ public int getNetworkTypeValue() { return networkType_; @@ -520,8 +464,6 @@ public int getNetworkTypeValue() { * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @param value The enum numeric value on the wire for networkType to set. - * @return This builder for chaining. */ public Builder setNetworkTypeValue(int value) { networkType_ = value; @@ -534,10 +476,8 @@ public Builder setNetworkTypeValue(int value) { * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return The networkType. */ public Catalyst.Protocol.Network.NetworkType getNetworkType() { - @SuppressWarnings("deprecation") Catalyst.Protocol.Network.NetworkType result = Catalyst.Protocol.Network.NetworkType.valueOf(networkType_); return result == null ? Catalyst.Protocol.Network.NetworkType.UNRECOGNIZED : result; } @@ -547,8 +487,6 @@ public Catalyst.Protocol.Network.NetworkType getNetworkType() { * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @param value The networkType to set. - * @return This builder for chaining. */ public Builder setNetworkType(Catalyst.Protocol.Network.NetworkType value) { if (value == null) { @@ -565,7 +503,6 @@ public Builder setNetworkType(Catalyst.Protocol.Network.NetworkType value) { * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return This builder for chaining. */ public Builder clearNetworkType() { @@ -581,7 +518,6 @@ public Builder clearNetworkType() { * * * .Catalyst.Protocol.Account.AccountType account_type = 2; - * @return The enum numeric value on the wire for accountType. */ public int getAccountTypeValue() { return accountType_; @@ -592,8 +528,6 @@ public int getAccountTypeValue() { * * * .Catalyst.Protocol.Account.AccountType account_type = 2; - * @param value The enum numeric value on the wire for accountType to set. - * @return This builder for chaining. */ public Builder setAccountTypeValue(int value) { accountType_ = value; @@ -606,10 +540,8 @@ public Builder setAccountTypeValue(int value) { * * * .Catalyst.Protocol.Account.AccountType account_type = 2; - * @return The accountType. */ public Catalyst.Protocol.Account.AccountType getAccountType() { - @SuppressWarnings("deprecation") Catalyst.Protocol.Account.AccountType result = Catalyst.Protocol.Account.AccountType.valueOf(accountType_); return result == null ? Catalyst.Protocol.Account.AccountType.UNRECOGNIZED : result; } @@ -619,8 +551,6 @@ public Catalyst.Protocol.Account.AccountType getAccountType() { * * * .Catalyst.Protocol.Account.AccountType account_type = 2; - * @param value The accountType to set. - * @return This builder for chaining. */ public Builder setAccountType(Catalyst.Protocol.Account.AccountType value) { if (value == null) { @@ -637,7 +567,6 @@ public Builder setAccountType(Catalyst.Protocol.Account.AccountType value) { * * * .Catalyst.Protocol.Account.AccountType account_type = 2; - * @return This builder for chaining. */ public Builder clearAccountType() { @@ -653,7 +582,6 @@ public Builder clearAccountType() { * * * bytes public_key_hash = 3; - * @return The publicKeyHash. */ public com.google.protobuf.ByteString getPublicKeyHash() { return publicKeyHash_; @@ -664,8 +592,6 @@ public com.google.protobuf.ByteString getPublicKeyHash() { * * * bytes public_key_hash = 3; - * @param value The publicKeyHash to set. - * @return This builder for chaining. */ public Builder setPublicKeyHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -682,7 +608,6 @@ public Builder setPublicKeyHash(com.google.protobuf.ByteString value) { * * * bytes public_key_hash = 3; - * @return This builder for chaining. */ public Builder clearPublicKeyHash() { @@ -690,16 +615,14 @@ public Builder clearPublicKeyHash() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -718,12 +641,11 @@ public static Catalyst.Protocol.Account.Address getDefaultInstance() { private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override public Address parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Address(input, extensionRegistry); + return new Address(input, extensionRegistry); } }; @@ -736,7 +658,6 @@ public com.google.protobuf.Parser
getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Account.Address getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Account/AddressOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Account/AddressOrBuilder.java index fa0a905..5d23f33 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Account/AddressOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Account/AddressOrBuilder.java @@ -13,7 +13,6 @@ public interface AddressOrBuilder extends * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return The enum numeric value on the wire for networkType. */ int getNetworkTypeValue(); /** @@ -22,7 +21,6 @@ public interface AddressOrBuilder extends * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return The networkType. */ Catalyst.Protocol.Network.NetworkType getNetworkType(); @@ -32,7 +30,6 @@ public interface AddressOrBuilder extends * * * .Catalyst.Protocol.Account.AccountType account_type = 2; - * @return The enum numeric value on the wire for accountType. */ int getAccountTypeValue(); /** @@ -41,7 +38,6 @@ public interface AddressOrBuilder extends * * * .Catalyst.Protocol.Account.AccountType account_type = 2; - * @return The accountType. */ Catalyst.Protocol.Account.AccountType getAccountType(); @@ -51,7 +47,6 @@ public interface AddressOrBuilder extends * * * bytes public_key_hash = 3; - * @return The publicKeyHash. */ com.google.protobuf.ByteString getPublicKeyHash(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/Cryptography.java b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/Cryptography.java index 3f6ef8c..e457cae 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/Cryptography.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/Cryptography.java @@ -47,7 +47,7 @@ public static void registerAllExtensions( "k.NetworkType\022E\n\016signature_type\030\002 \001(\0162-." + "Catalyst.Protocol.Cryptography.Signature" + "Type\"\\\n\016SignatureBatch\022\022\n\nsignatures\030\001 \003" + - "(\014\022\023\n\013public_keys\030\002 \003(\014\022\020\n\010messages\030\003 \003(" + + "(\014\022\023\n\013public_keys\030\002 \003(\014\022\020\n\010messages\030\003 \003(", "\014\022\017\n\007context\030\004 \001(\014*\230\001\n\rSignatureType\022\032\n\026" + "SIGNATURE_TYPE_UNKNOWN\020\000\022\026\n\022TRANSACTION_" + "PUBLIC\020\001\022\034\n\030TRANSACTION_CONFIDENTIAL\020\002\022\020" + @@ -57,15 +57,23 @@ public static void registerAllExtensions( "VALID_PUBLIC_KEY\020\002\022\027\n\023INVALID_PRIVATE_KE" + "Y\020\003\022\"\n\036SIGNATURE_VERIFICATION_FAILURE\020\004\022" + "\032\n\026INVALID_CONTEXT_LENGTH\020\005\022\031\n\025INVALID_B" + - "ATCH_MESSAGE\020\006\022\033\n\027ARRAYS_NOT_EQUAL_LENGT" + + "ATCH_MESSAGE\020\006\022\033\n\027ARRAYS_NOT_EQUAL_LENGT", "H\020\007\022\036\n\032BATCH_VERIFICATION_FAILURE\020\010\022\r\n\010N" + "O_ERROR\020\242\003B\002P\001b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Catalyst.Protocol.Network.Network.getDescriptor(), - }); + }, assigner); internal_static_Catalyst_Protocol_Cryptography_Signature_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Catalyst_Protocol_Cryptography_Signature_fieldAccessorTable = new diff --git a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/ErrorCode.java b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/ErrorCode.java index 973f76e..5ce5161 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/ErrorCode.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/ErrorCode.java @@ -182,8 +182,6 @@ public final int getNumber() { } /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -191,10 +189,6 @@ public static ErrorCode valueOf(int value) { return forNumber(value); } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ public static ErrorCode forNumber(int value) { switch (value) { case 0: return ERROR_CODE_UNKNOWN; diff --git a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/Signature.java b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/Signature.java index b7eba24..8e17302 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/Signature.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/Signature.java @@ -10,7 +10,6 @@ public final class Signature extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Cryptography.Signature) SignatureOrBuilder { -private static final long serialVersionUID = 0L; // Use Signature.newBuilder() to construct. private Signature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private Signature() { rawBytes_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Signature(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Signature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,6 +37,12 @@ private Signature( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { Catalyst.Protocol.Cryptography.SigningContext.Builder subBuilder = null; if (signingContext_ != null) { @@ -67,13 +61,6 @@ private Signature( rawBytes_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -82,7 +69,6 @@ private Signature( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -91,7 +77,6 @@ private Signature( return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_Signature_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_Signature_fieldAccessorTable @@ -107,7 +92,6 @@ private Signature( * * * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; - * @return Whether the signingContext field is set. */ public boolean hasSigningContext() { return signingContext_ != null; @@ -118,7 +102,6 @@ public boolean hasSigningContext() { * * * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; - * @return The signingContext. */ public Catalyst.Protocol.Cryptography.SigningContext getSigningContext() { return signingContext_ == null ? Catalyst.Protocol.Cryptography.SigningContext.getDefaultInstance() : signingContext_; @@ -142,14 +125,12 @@ public Catalyst.Protocol.Cryptography.SigningContextOrBuilder getSigningContextO * * * bytes raw_bytes = 2; - * @return The rawBytes. */ public com.google.protobuf.ByteString getRawBytes() { return rawBytes_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -159,7 +140,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (signingContext_ != null) { @@ -168,10 +148,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!rawBytes_.isEmpty()) { output.writeBytes(2, rawBytes_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -185,11 +163,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, rawBytes_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -200,15 +178,15 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Cryptography.Signature other = (Catalyst.Protocol.Cryptography.Signature) obj; - if (hasSigningContext() != other.hasSigningContext()) return false; + boolean result = true; + result = result && (hasSigningContext() == other.hasSigningContext()); if (hasSigningContext()) { - if (!getSigningContext() - .equals(other.getSigningContext())) return false; + result = result && getSigningContext() + .equals(other.getSigningContext()); } - if (!getRawBytes() - .equals(other.getRawBytes())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + result = result && getRawBytes() + .equals(other.getRawBytes()); + return result; } @java.lang.Override @@ -229,17 +207,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Cryptography.Signature parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Cryptography.Signature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Cryptography.Signature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -299,7 +266,6 @@ public static Catalyst.Protocol.Cryptography.Signature parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -307,7 +273,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Cryptography.Signature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -331,7 +296,6 @@ public static final class Builder extends return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_Signature_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_Signature_fieldAccessorTable @@ -354,7 +318,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (signingContextBuilder_ == null) { @@ -368,18 +331,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_Signature_descriptor; } - @java.lang.Override public Catalyst.Protocol.Cryptography.Signature getDefaultInstanceForType() { return Catalyst.Protocol.Cryptography.Signature.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Cryptography.Signature build() { Catalyst.Protocol.Cryptography.Signature result = buildPartial(); if (!result.isInitialized()) { @@ -388,7 +348,6 @@ public Catalyst.Protocol.Cryptography.Signature build() { return result; } - @java.lang.Override public Catalyst.Protocol.Cryptography.Signature buildPartial() { Catalyst.Protocol.Cryptography.Signature result = new Catalyst.Protocol.Cryptography.Signature(this); if (signingContextBuilder_ == null) { @@ -401,39 +360,32 @@ public Catalyst.Protocol.Cryptography.Signature buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Cryptography.Signature) { return mergeFrom((Catalyst.Protocol.Cryptography.Signature)other); @@ -451,17 +403,14 @@ public Builder mergeFrom(Catalyst.Protocol.Cryptography.Signature other) { if (other.getRawBytes() != com.google.protobuf.ByteString.EMPTY) { setRawBytes(other.getRawBytes()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -480,7 +429,7 @@ public Builder mergeFrom( return this; } - private Catalyst.Protocol.Cryptography.SigningContext signingContext_; + private Catalyst.Protocol.Cryptography.SigningContext signingContext_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Cryptography.SigningContext, Catalyst.Protocol.Cryptography.SigningContext.Builder, Catalyst.Protocol.Cryptography.SigningContextOrBuilder> signingContextBuilder_; /** @@ -489,7 +438,6 @@ public Builder mergeFrom( * * * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; - * @return Whether the signingContext field is set. */ public boolean hasSigningContext() { return signingContextBuilder_ != null || signingContext_ != null; @@ -500,7 +448,6 @@ public boolean hasSigningContext() { * * * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; - * @return The signingContext. */ public Catalyst.Protocol.Cryptography.SigningContext getSigningContext() { if (signingContextBuilder_ == null) { @@ -642,7 +589,6 @@ public Catalyst.Protocol.Cryptography.SigningContextOrBuilder getSigningContextO * * * bytes raw_bytes = 2; - * @return The rawBytes. */ public com.google.protobuf.ByteString getRawBytes() { return rawBytes_; @@ -653,8 +599,6 @@ public com.google.protobuf.ByteString getRawBytes() { * * * bytes raw_bytes = 2; - * @param value The rawBytes to set. - * @return This builder for chaining. */ public Builder setRawBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -671,7 +615,6 @@ public Builder setRawBytes(com.google.protobuf.ByteString value) { * * * bytes raw_bytes = 2; - * @return This builder for chaining. */ public Builder clearRawBytes() { @@ -679,16 +622,14 @@ public Builder clearRawBytes() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -707,12 +648,11 @@ public static Catalyst.Protocol.Cryptography.Signature getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public Signature parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Signature(input, extensionRegistry); + return new Signature(input, extensionRegistry); } }; @@ -725,7 +665,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Cryptography.Signature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureBatch.java b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureBatch.java index eb07826..13163f4 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureBatch.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureBatch.java @@ -14,7 +14,6 @@ public final class SignatureBatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Cryptography.SignatureBatch) SignatureBatchOrBuilder { -private static final long serialVersionUID = 0L; // Use SignatureBatch.newBuilder() to construct. private SignatureBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -26,29 +25,17 @@ private SignatureBatch() { context_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SignatureBatch(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SignatureBatch( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -57,8 +44,14 @@ private SignatureBatch( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { signatures_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -66,7 +59,7 @@ private SignatureBatch( break; } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { publicKeys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } @@ -74,7 +67,7 @@ private SignatureBatch( break; } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { messages_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } @@ -86,13 +79,6 @@ private SignatureBatch( context_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,16 +87,15 @@ private SignatureBatch( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); // C + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + signatures_ = java.util.Collections.unmodifiableList(signatures_); } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - publicKeys_ = java.util.Collections.unmodifiableList(publicKeys_); // C + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + publicKeys_ = java.util.Collections.unmodifiableList(publicKeys_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - messages_ = java.util.Collections.unmodifiableList(messages_); // C + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + messages_ = java.util.Collections.unmodifiableList(messages_); } - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -119,7 +104,6 @@ private SignatureBatch( return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_SignatureBatch_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_SignatureBatch_fieldAccessorTable @@ -127,11 +111,11 @@ private SignatureBatch( Catalyst.Protocol.Cryptography.SignatureBatch.class, Catalyst.Protocol.Cryptography.SignatureBatch.Builder.class); } + private int bitField0_; public static final int SIGNATURES_FIELD_NUMBER = 1; private java.util.List signatures_; /** * repeated bytes signatures = 1; - * @return A list containing the signatures. */ public java.util.List getSignaturesList() { @@ -139,15 +123,12 @@ private SignatureBatch( } /** * repeated bytes signatures = 1; - * @return The count of signatures. */ public int getSignaturesCount() { return signatures_.size(); } /** * repeated bytes signatures = 1; - * @param index The index of the element to return. - * @return The signatures at the given index. */ public com.google.protobuf.ByteString getSignatures(int index) { return signatures_.get(index); @@ -157,7 +138,6 @@ public com.google.protobuf.ByteString getSignatures(int index) { private java.util.List publicKeys_; /** * repeated bytes public_keys = 2; - * @return A list containing the publicKeys. */ public java.util.List getPublicKeysList() { @@ -165,15 +145,12 @@ public com.google.protobuf.ByteString getSignatures(int index) { } /** * repeated bytes public_keys = 2; - * @return The count of publicKeys. */ public int getPublicKeysCount() { return publicKeys_.size(); } /** * repeated bytes public_keys = 2; - * @param index The index of the element to return. - * @return The publicKeys at the given index. */ public com.google.protobuf.ByteString getPublicKeys(int index) { return publicKeys_.get(index); @@ -183,7 +160,6 @@ public com.google.protobuf.ByteString getPublicKeys(int index) { private java.util.List messages_; /** * repeated bytes messages = 3; - * @return A list containing the messages. */ public java.util.List getMessagesList() { @@ -191,15 +167,12 @@ public com.google.protobuf.ByteString getPublicKeys(int index) { } /** * repeated bytes messages = 3; - * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); } /** * repeated bytes messages = 3; - * @param index The index of the element to return. - * @return The messages at the given index. */ public com.google.protobuf.ByteString getMessages(int index) { return messages_.get(index); @@ -209,14 +182,12 @@ public com.google.protobuf.ByteString getMessages(int index) { private com.google.protobuf.ByteString context_; /** * bytes context = 4; - * @return The context. */ public com.google.protobuf.ByteString getContext() { return context_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -226,7 +197,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < signatures_.size(); i++) { @@ -241,10 +211,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!context_.isEmpty()) { output.writeBytes(4, context_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -281,11 +249,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, context_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -296,16 +264,16 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Cryptography.SignatureBatch other = (Catalyst.Protocol.Cryptography.SignatureBatch) obj; - if (!getSignaturesList() - .equals(other.getSignaturesList())) return false; - if (!getPublicKeysList() - .equals(other.getPublicKeysList())) return false; - if (!getMessagesList() - .equals(other.getMessagesList())) return false; - if (!getContext() - .equals(other.getContext())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getSignaturesList() + .equals(other.getSignaturesList()); + result = result && getPublicKeysList() + .equals(other.getPublicKeysList()); + result = result && getMessagesList() + .equals(other.getMessagesList()); + result = result && getContext() + .equals(other.getContext()); + return result; } @java.lang.Override @@ -334,17 +302,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Cryptography.SignatureBatch parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Cryptography.SignatureBatch parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Cryptography.SignatureBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -404,7 +361,6 @@ public static Catalyst.Protocol.Cryptography.SignatureBatch parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -412,7 +368,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Cryptography.SignatureBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -440,7 +395,6 @@ public static final class Builder extends return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_SignatureBatch_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_SignatureBatch_fieldAccessorTable @@ -463,7 +417,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); signatures_ = java.util.Collections.emptyList(); @@ -477,18 +430,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_SignatureBatch_descriptor; } - @java.lang.Override public Catalyst.Protocol.Cryptography.SignatureBatch getDefaultInstanceForType() { return Catalyst.Protocol.Cryptography.SignatureBatch.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Cryptography.SignatureBatch build() { Catalyst.Protocol.Cryptography.SignatureBatch result = buildPartial(); if (!result.isInitialized()) { @@ -497,63 +447,57 @@ public Catalyst.Protocol.Cryptography.SignatureBatch build() { return result; } - @java.lang.Override public Catalyst.Protocol.Cryptography.SignatureBatch buildPartial() { Catalyst.Protocol.Cryptography.SignatureBatch result = new Catalyst.Protocol.Cryptography.SignatureBatch(this); int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { signatures_ = java.util.Collections.unmodifiableList(signatures_); bitField0_ = (bitField0_ & ~0x00000001); } result.signatures_ = signatures_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { publicKeys_ = java.util.Collections.unmodifiableList(publicKeys_); bitField0_ = (bitField0_ & ~0x00000002); } result.publicKeys_ = publicKeys_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { messages_ = java.util.Collections.unmodifiableList(messages_); bitField0_ = (bitField0_ & ~0x00000004); } result.messages_ = messages_; result.context_ = context_; + result.bitField0_ = to_bitField0_; onBuilt(); return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Cryptography.SignatureBatch) { return mergeFrom((Catalyst.Protocol.Cryptography.SignatureBatch)other); @@ -598,17 +542,14 @@ public Builder mergeFrom(Catalyst.Protocol.Cryptography.SignatureBatch other) { if (other.getContext() != com.google.protobuf.ByteString.EMPTY) { setContext(other.getContext()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -630,40 +571,32 @@ public Builder mergeFrom( private java.util.List signatures_ = java.util.Collections.emptyList(); private void ensureSignaturesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { signatures_ = new java.util.ArrayList(signatures_); bitField0_ |= 0x00000001; } } /** * repeated bytes signatures = 1; - * @return A list containing the signatures. */ public java.util.List getSignaturesList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(signatures_) : signatures_; + return java.util.Collections.unmodifiableList(signatures_); } /** * repeated bytes signatures = 1; - * @return The count of signatures. */ public int getSignaturesCount() { return signatures_.size(); } /** * repeated bytes signatures = 1; - * @param index The index of the element to return. - * @return The signatures at the given index. */ public com.google.protobuf.ByteString getSignatures(int index) { return signatures_.get(index); } /** * repeated bytes signatures = 1; - * @param index The index to set the value at. - * @param value The signatures to set. - * @return This builder for chaining. */ public Builder setSignatures( int index, com.google.protobuf.ByteString value) { @@ -677,8 +610,6 @@ public Builder setSignatures( } /** * repeated bytes signatures = 1; - * @param value The signatures to add. - * @return This builder for chaining. */ public Builder addSignatures(com.google.protobuf.ByteString value) { if (value == null) { @@ -691,8 +622,6 @@ public Builder addSignatures(com.google.protobuf.ByteString value) { } /** * repeated bytes signatures = 1; - * @param values The signatures to add. - * @return This builder for chaining. */ public Builder addAllSignatures( java.lang.Iterable values) { @@ -704,7 +633,6 @@ public Builder addAllSignatures( } /** * repeated bytes signatures = 1; - * @return This builder for chaining. */ public Builder clearSignatures() { signatures_ = java.util.Collections.emptyList(); @@ -715,40 +643,32 @@ public Builder clearSignatures() { private java.util.List publicKeys_ = java.util.Collections.emptyList(); private void ensurePublicKeysIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { publicKeys_ = new java.util.ArrayList(publicKeys_); bitField0_ |= 0x00000002; } } /** * repeated bytes public_keys = 2; - * @return A list containing the publicKeys. */ public java.util.List getPublicKeysList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(publicKeys_) : publicKeys_; + return java.util.Collections.unmodifiableList(publicKeys_); } /** * repeated bytes public_keys = 2; - * @return The count of publicKeys. */ public int getPublicKeysCount() { return publicKeys_.size(); } /** * repeated bytes public_keys = 2; - * @param index The index of the element to return. - * @return The publicKeys at the given index. */ public com.google.protobuf.ByteString getPublicKeys(int index) { return publicKeys_.get(index); } /** * repeated bytes public_keys = 2; - * @param index The index to set the value at. - * @param value The publicKeys to set. - * @return This builder for chaining. */ public Builder setPublicKeys( int index, com.google.protobuf.ByteString value) { @@ -762,8 +682,6 @@ public Builder setPublicKeys( } /** * repeated bytes public_keys = 2; - * @param value The publicKeys to add. - * @return This builder for chaining. */ public Builder addPublicKeys(com.google.protobuf.ByteString value) { if (value == null) { @@ -776,8 +694,6 @@ public Builder addPublicKeys(com.google.protobuf.ByteString value) { } /** * repeated bytes public_keys = 2; - * @param values The publicKeys to add. - * @return This builder for chaining. */ public Builder addAllPublicKeys( java.lang.Iterable values) { @@ -789,7 +705,6 @@ public Builder addAllPublicKeys( } /** * repeated bytes public_keys = 2; - * @return This builder for chaining. */ public Builder clearPublicKeys() { publicKeys_ = java.util.Collections.emptyList(); @@ -800,40 +715,32 @@ public Builder clearPublicKeys() { private java.util.List messages_ = java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000004; } } /** * repeated bytes messages = 3; - * @return A list containing the messages. */ public java.util.List getMessagesList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(messages_) : messages_; + return java.util.Collections.unmodifiableList(messages_); } /** * repeated bytes messages = 3; - * @return The count of messages. */ public int getMessagesCount() { return messages_.size(); } /** * repeated bytes messages = 3; - * @param index The index of the element to return. - * @return The messages at the given index. */ public com.google.protobuf.ByteString getMessages(int index) { return messages_.get(index); } /** * repeated bytes messages = 3; - * @param index The index to set the value at. - * @param value The messages to set. - * @return This builder for chaining. */ public Builder setMessages( int index, com.google.protobuf.ByteString value) { @@ -847,8 +754,6 @@ public Builder setMessages( } /** * repeated bytes messages = 3; - * @param value The messages to add. - * @return This builder for chaining. */ public Builder addMessages(com.google.protobuf.ByteString value) { if (value == null) { @@ -861,8 +766,6 @@ public Builder addMessages(com.google.protobuf.ByteString value) { } /** * repeated bytes messages = 3; - * @param values The messages to add. - * @return This builder for chaining. */ public Builder addAllMessages( java.lang.Iterable values) { @@ -874,7 +777,6 @@ public Builder addAllMessages( } /** * repeated bytes messages = 3; - * @return This builder for chaining. */ public Builder clearMessages() { messages_ = java.util.Collections.emptyList(); @@ -886,15 +788,12 @@ public Builder clearMessages() { private com.google.protobuf.ByteString context_ = com.google.protobuf.ByteString.EMPTY; /** * bytes context = 4; - * @return The context. */ public com.google.protobuf.ByteString getContext() { return context_; } /** * bytes context = 4; - * @param value The context to set. - * @return This builder for chaining. */ public Builder setContext(com.google.protobuf.ByteString value) { if (value == null) { @@ -907,7 +806,6 @@ public Builder setContext(com.google.protobuf.ByteString value) { } /** * bytes context = 4; - * @return This builder for chaining. */ public Builder clearContext() { @@ -915,16 +813,14 @@ public Builder clearContext() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -943,12 +839,11 @@ public static Catalyst.Protocol.Cryptography.SignatureBatch getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SignatureBatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SignatureBatch(input, extensionRegistry); + return new SignatureBatch(input, extensionRegistry); } }; @@ -961,7 +856,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Cryptography.SignatureBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureBatchOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureBatchOrBuilder.java index 39fd046..71ca5ad 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureBatchOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureBatchOrBuilder.java @@ -9,58 +9,45 @@ public interface SignatureBatchOrBuilder extends /** * repeated bytes signatures = 1; - * @return A list containing the signatures. */ java.util.List getSignaturesList(); /** * repeated bytes signatures = 1; - * @return The count of signatures. */ int getSignaturesCount(); /** * repeated bytes signatures = 1; - * @param index The index of the element to return. - * @return The signatures at the given index. */ com.google.protobuf.ByteString getSignatures(int index); /** * repeated bytes public_keys = 2; - * @return A list containing the publicKeys. */ java.util.List getPublicKeysList(); /** * repeated bytes public_keys = 2; - * @return The count of publicKeys. */ int getPublicKeysCount(); /** * repeated bytes public_keys = 2; - * @param index The index of the element to return. - * @return The publicKeys at the given index. */ com.google.protobuf.ByteString getPublicKeys(int index); /** * repeated bytes messages = 3; - * @return A list containing the messages. */ java.util.List getMessagesList(); /** * repeated bytes messages = 3; - * @return The count of messages. */ int getMessagesCount(); /** * repeated bytes messages = 3; - * @param index The index of the element to return. - * @return The messages at the given index. */ com.google.protobuf.ByteString getMessages(int index); /** * bytes context = 4; - * @return The context. */ com.google.protobuf.ByteString getContext(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureOrBuilder.java index 9174f7b..3361abc 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureOrBuilder.java @@ -13,7 +13,6 @@ public interface SignatureOrBuilder extends * * * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; - * @return Whether the signingContext field is set. */ boolean hasSigningContext(); /** @@ -22,7 +21,6 @@ public interface SignatureOrBuilder extends * * * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; - * @return The signingContext. */ Catalyst.Protocol.Cryptography.SigningContext getSigningContext(); /** @@ -40,7 +38,6 @@ public interface SignatureOrBuilder extends * * * bytes raw_bytes = 2; - * @return The rawBytes. */ com.google.protobuf.ByteString getRawBytes(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureType.java b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureType.java index f7f1c5f..0632e13 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureType.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SignatureType.java @@ -122,8 +122,6 @@ public final int getNumber() { } /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -131,10 +129,6 @@ public static SignatureType valueOf(int value) { return forNumber(value); } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ public static SignatureType forNumber(int value) { switch (value) { case 0: return SIGNATURE_TYPE_UNKNOWN; diff --git a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SigningContext.java b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SigningContext.java index 7b01cdd..e6350cc 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SigningContext.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SigningContext.java @@ -10,7 +10,6 @@ public final class SigningContext extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Cryptography.SigningContext) SigningContextOrBuilder { -private static final long serialVersionUID = 0L; // Use SigningContext.newBuilder() to construct. private SigningContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -20,28 +19,17 @@ private SigningContext() { signatureType_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SigningContext(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SigningContext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -50,6 +38,12 @@ private SigningContext( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 8: { int rawValue = input.readEnum(); @@ -62,13 +56,6 @@ private SigningContext( signatureType_ = rawValue; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +64,6 @@ private SigningContext( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -86,7 +72,6 @@ private SigningContext( return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_SigningContext_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_SigningContext_fieldAccessorTable @@ -102,7 +87,6 @@ private SigningContext( * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return The enum numeric value on the wire for networkType. */ public int getNetworkTypeValue() { return networkType_; @@ -113,10 +97,8 @@ public int getNetworkTypeValue() { * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return The networkType. */ public Catalyst.Protocol.Network.NetworkType getNetworkType() { - @SuppressWarnings("deprecation") Catalyst.Protocol.Network.NetworkType result = Catalyst.Protocol.Network.NetworkType.valueOf(networkType_); return result == null ? Catalyst.Protocol.Network.NetworkType.UNRECOGNIZED : result; } @@ -129,7 +111,6 @@ public Catalyst.Protocol.Network.NetworkType getNetworkType() { * * * .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; - * @return The enum numeric value on the wire for signatureType. */ public int getSignatureTypeValue() { return signatureType_; @@ -140,16 +121,13 @@ public int getSignatureTypeValue() { * * * .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; - * @return The signatureType. */ public Catalyst.Protocol.Cryptography.SignatureType getSignatureType() { - @SuppressWarnings("deprecation") Catalyst.Protocol.Cryptography.SignatureType result = Catalyst.Protocol.Cryptography.SignatureType.valueOf(signatureType_); return result == null ? Catalyst.Protocol.Cryptography.SignatureType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -159,7 +137,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (networkType_ != Catalyst.Protocol.Network.NetworkType.NETWORK_TYPE_UNKNOWN.getNumber()) { @@ -168,10 +145,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (signatureType_ != Catalyst.Protocol.Cryptography.SignatureType.SIGNATURE_TYPE_UNKNOWN.getNumber()) { output.writeEnum(2, signatureType_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -185,11 +160,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, signatureType_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -200,10 +175,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Cryptography.SigningContext other = (Catalyst.Protocol.Cryptography.SigningContext) obj; - if (networkType_ != other.networkType_) return false; - if (signatureType_ != other.signatureType_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && networkType_ == other.networkType_; + result = result && signatureType_ == other.signatureType_; + return result; } @java.lang.Override @@ -222,17 +197,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Cryptography.SigningContext parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Cryptography.SigningContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Cryptography.SigningContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -292,7 +256,6 @@ public static Catalyst.Protocol.Cryptography.SigningContext parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -300,7 +263,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Cryptography.SigningContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -324,7 +286,6 @@ public static final class Builder extends return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_SigningContext_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_SigningContext_fieldAccessorTable @@ -347,7 +308,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); networkType_ = 0; @@ -357,18 +317,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Cryptography.Cryptography.internal_static_Catalyst_Protocol_Cryptography_SigningContext_descriptor; } - @java.lang.Override public Catalyst.Protocol.Cryptography.SigningContext getDefaultInstanceForType() { return Catalyst.Protocol.Cryptography.SigningContext.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Cryptography.SigningContext build() { Catalyst.Protocol.Cryptography.SigningContext result = buildPartial(); if (!result.isInitialized()) { @@ -377,7 +334,6 @@ public Catalyst.Protocol.Cryptography.SigningContext build() { return result; } - @java.lang.Override public Catalyst.Protocol.Cryptography.SigningContext buildPartial() { Catalyst.Protocol.Cryptography.SigningContext result = new Catalyst.Protocol.Cryptography.SigningContext(this); result.networkType_ = networkType_; @@ -386,39 +342,32 @@ public Catalyst.Protocol.Cryptography.SigningContext buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Cryptography.SigningContext) { return mergeFrom((Catalyst.Protocol.Cryptography.SigningContext)other); @@ -436,17 +385,14 @@ public Builder mergeFrom(Catalyst.Protocol.Cryptography.SigningContext other) { if (other.signatureType_ != 0) { setSignatureTypeValue(other.getSignatureTypeValue()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -472,7 +418,6 @@ public Builder mergeFrom( * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return The enum numeric value on the wire for networkType. */ public int getNetworkTypeValue() { return networkType_; @@ -483,8 +428,6 @@ public int getNetworkTypeValue() { * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @param value The enum numeric value on the wire for networkType to set. - * @return This builder for chaining. */ public Builder setNetworkTypeValue(int value) { networkType_ = value; @@ -497,10 +440,8 @@ public Builder setNetworkTypeValue(int value) { * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return The networkType. */ public Catalyst.Protocol.Network.NetworkType getNetworkType() { - @SuppressWarnings("deprecation") Catalyst.Protocol.Network.NetworkType result = Catalyst.Protocol.Network.NetworkType.valueOf(networkType_); return result == null ? Catalyst.Protocol.Network.NetworkType.UNRECOGNIZED : result; } @@ -510,8 +451,6 @@ public Catalyst.Protocol.Network.NetworkType getNetworkType() { * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @param value The networkType to set. - * @return This builder for chaining. */ public Builder setNetworkType(Catalyst.Protocol.Network.NetworkType value) { if (value == null) { @@ -528,7 +467,6 @@ public Builder setNetworkType(Catalyst.Protocol.Network.NetworkType value) { * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return This builder for chaining. */ public Builder clearNetworkType() { @@ -544,7 +482,6 @@ public Builder clearNetworkType() { * * * .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; - * @return The enum numeric value on the wire for signatureType. */ public int getSignatureTypeValue() { return signatureType_; @@ -555,8 +492,6 @@ public int getSignatureTypeValue() { * * * .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; - * @param value The enum numeric value on the wire for signatureType to set. - * @return This builder for chaining. */ public Builder setSignatureTypeValue(int value) { signatureType_ = value; @@ -569,10 +504,8 @@ public Builder setSignatureTypeValue(int value) { * * * .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; - * @return The signatureType. */ public Catalyst.Protocol.Cryptography.SignatureType getSignatureType() { - @SuppressWarnings("deprecation") Catalyst.Protocol.Cryptography.SignatureType result = Catalyst.Protocol.Cryptography.SignatureType.valueOf(signatureType_); return result == null ? Catalyst.Protocol.Cryptography.SignatureType.UNRECOGNIZED : result; } @@ -582,8 +515,6 @@ public Catalyst.Protocol.Cryptography.SignatureType getSignatureType() { * * * .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; - * @param value The signatureType to set. - * @return This builder for chaining. */ public Builder setSignatureType(Catalyst.Protocol.Cryptography.SignatureType value) { if (value == null) { @@ -600,7 +531,6 @@ public Builder setSignatureType(Catalyst.Protocol.Cryptography.SignatureType val * * * .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; - * @return This builder for chaining. */ public Builder clearSignatureType() { @@ -608,16 +538,14 @@ public Builder clearSignatureType() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -636,12 +564,11 @@ public static Catalyst.Protocol.Cryptography.SigningContext getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SigningContext parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SigningContext(input, extensionRegistry); + return new SigningContext(input, extensionRegistry); } }; @@ -654,7 +581,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Cryptography.SigningContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SigningContextOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SigningContextOrBuilder.java index 74487b3..4d3f7fd 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SigningContextOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Cryptography/SigningContextOrBuilder.java @@ -13,7 +13,6 @@ public interface SigningContextOrBuilder extends * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return The enum numeric value on the wire for networkType. */ int getNetworkTypeValue(); /** @@ -22,7 +21,6 @@ public interface SigningContextOrBuilder extends * * * .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return The networkType. */ Catalyst.Protocol.Network.NetworkType getNetworkType(); @@ -32,7 +30,6 @@ public interface SigningContextOrBuilder extends * * * .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; - * @return The enum numeric value on the wire for signatureType. */ int getSignatureTypeValue(); /** @@ -41,7 +38,6 @@ public interface SigningContextOrBuilder extends * * * .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; - * @return The signatureType. */ Catalyst.Protocol.Cryptography.SignatureType getSignatureType(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Deltas/Delta.java b/packages/sdk-java/src/Catalyst/Protocol/Deltas/Delta.java index bd87c3c..382574c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Deltas/Delta.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Deltas/Delta.java @@ -10,7 +10,6 @@ public final class Delta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Deltas.Delta) DeltaOrBuilder { -private static final long serialVersionUID = 0L; // Use Delta.newBuilder() to construct. private Delta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -23,31 +22,21 @@ private Delta() { confidentialEntries_ = java.util.Collections.emptyList(); coinbaseEntries_ = java.util.Collections.emptyList(); stateRoot_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Delta(); + deltaNumber_ = 0L; + gasUsed_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Delta( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -56,6 +45,12 @@ private Delta( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { previousDeltaDfsHash_ = input.readBytes(); @@ -85,27 +80,27 @@ private Delta( break; } case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { publicEntries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mutable_bitField0_ |= 0x00000010; } publicEntries_.add( input.readMessage(Catalyst.Protocol.Transaction.PublicEntry.parser(), extensionRegistry)); break; } case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { confidentialEntries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000020; } confidentialEntries_.add( input.readMessage(Catalyst.Protocol.Transaction.ConfidentialEntry.parser(), extensionRegistry)); break; } case 58: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { coinbaseEntries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000040; } coinbaseEntries_.add( input.readMessage(Catalyst.Protocol.Transaction.CoinbaseEntry.parser(), extensionRegistry)); @@ -121,11 +116,9 @@ private Delta( deltaNumber_ = input.readInt64(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } + case 80: { + + gasUsed_ = input.readInt64(); break; } } @@ -136,16 +129,15 @@ private Delta( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { publicEntries_ = java.util.Collections.unmodifiableList(publicEntries_); } - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { confidentialEntries_ = java.util.Collections.unmodifiableList(confidentialEntries_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { coinbaseEntries_ = java.util.Collections.unmodifiableList(coinbaseEntries_); } - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -154,7 +146,6 @@ private Delta( return Catalyst.Protocol.Deltas.Deltas.internal_static_Catalyst_Protocol_Deltas_Delta_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Deltas.Deltas.internal_static_Catalyst_Protocol_Deltas_Delta_fieldAccessorTable @@ -162,6 +153,7 @@ private Delta( Catalyst.Protocol.Deltas.Delta.class, Catalyst.Protocol.Deltas.Delta.Builder.class); } + private int bitField0_; public static final int PREVIOUS_DELTA_DFS_HASH_FIELD_NUMBER = 1; private com.google.protobuf.ByteString previousDeltaDfsHash_; /** @@ -170,7 +162,6 @@ private Delta( * * * bytes previous_delta_dfs_hash = 1; - * @return The previousDeltaDfsHash. */ public com.google.protobuf.ByteString getPreviousDeltaDfsHash() { return previousDeltaDfsHash_; @@ -180,7 +171,6 @@ public com.google.protobuf.ByteString getPreviousDeltaDfsHash() { private com.google.protobuf.ByteString merkleRoot_; /** * bytes merkle_root = 2; - * @return The merkleRoot. */ public com.google.protobuf.ByteString getMerkleRoot() { return merkleRoot_; @@ -194,7 +184,6 @@ public com.google.protobuf.ByteString getMerkleRoot() { * * * bytes merkle_poda = 3; - * @return The merklePoda. */ public com.google.protobuf.ByteString getMerklePoda() { return merklePoda_; @@ -204,14 +193,12 @@ public com.google.protobuf.ByteString getMerklePoda() { private com.google.protobuf.Timestamp timeStamp_; /** * .google.protobuf.Timestamp time_stamp = 4; - * @return Whether the timeStamp field is set. */ public boolean hasTimeStamp() { return timeStamp_ != null; } /** * .google.protobuf.Timestamp time_stamp = 4; - * @return The timeStamp. */ public com.google.protobuf.Timestamp getTimeStamp() { return timeStamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeStamp_; @@ -356,7 +343,6 @@ public Catalyst.Protocol.Transaction.CoinbaseEntryOrBuilder getCoinbaseEntriesOr * * * bytes state_root = 8; - * @return The stateRoot. */ public com.google.protobuf.ByteString getStateRoot() { return stateRoot_; @@ -370,14 +356,25 @@ public com.google.protobuf.ByteString getStateRoot() { * * * int64 delta_number = 9; - * @return The deltaNumber. */ public long getDeltaNumber() { return deltaNumber_; } + public static final int GAS_USED_FIELD_NUMBER = 10; + private long gasUsed_; + /** + *
+   * the gas used in the delta
+   * 
+ * + * int64 gas_used = 10; + */ + public long getGasUsed() { + return gasUsed_; + } + private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -387,7 +384,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!previousDeltaDfsHash_.isEmpty()) { @@ -417,10 +413,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (deltaNumber_ != 0L) { output.writeInt64(9, deltaNumber_); } - unknownFields.writeTo(output); + if (gasUsed_ != 0L) { + output.writeInt64(10, gasUsed_); + } } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -462,11 +459,15 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, deltaNumber_); } - size += unknownFields.getSerializedSize(); + if (gasUsed_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, gasUsed_); + } memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -477,29 +478,31 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Deltas.Delta other = (Catalyst.Protocol.Deltas.Delta) obj; - if (!getPreviousDeltaDfsHash() - .equals(other.getPreviousDeltaDfsHash())) return false; - if (!getMerkleRoot() - .equals(other.getMerkleRoot())) return false; - if (!getMerklePoda() - .equals(other.getMerklePoda())) return false; - if (hasTimeStamp() != other.hasTimeStamp()) return false; + boolean result = true; + result = result && getPreviousDeltaDfsHash() + .equals(other.getPreviousDeltaDfsHash()); + result = result && getMerkleRoot() + .equals(other.getMerkleRoot()); + result = result && getMerklePoda() + .equals(other.getMerklePoda()); + result = result && (hasTimeStamp() == other.hasTimeStamp()); if (hasTimeStamp()) { - if (!getTimeStamp() - .equals(other.getTimeStamp())) return false; - } - if (!getPublicEntriesList() - .equals(other.getPublicEntriesList())) return false; - if (!getConfidentialEntriesList() - .equals(other.getConfidentialEntriesList())) return false; - if (!getCoinbaseEntriesList() - .equals(other.getCoinbaseEntriesList())) return false; - if (!getStateRoot() - .equals(other.getStateRoot())) return false; - if (getDeltaNumber() - != other.getDeltaNumber()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + result = result && getTimeStamp() + .equals(other.getTimeStamp()); + } + result = result && getPublicEntriesList() + .equals(other.getPublicEntriesList()); + result = result && getConfidentialEntriesList() + .equals(other.getConfidentialEntriesList()); + result = result && getCoinbaseEntriesList() + .equals(other.getCoinbaseEntriesList()); + result = result && getStateRoot() + .equals(other.getStateRoot()); + result = result && (getDeltaNumber() + == other.getDeltaNumber()); + result = result && (getGasUsed() + == other.getGasUsed()); + return result; } @java.lang.Override @@ -536,22 +539,14 @@ public int hashCode() { hash = (37 * hash) + DELTA_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDeltaNumber()); + hash = (37 * hash) + GAS_USED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGasUsed()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static Catalyst.Protocol.Deltas.Delta parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Deltas.Delta parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Deltas.Delta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -611,7 +606,6 @@ public static Catalyst.Protocol.Deltas.Delta parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -619,7 +613,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Deltas.Delta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -643,7 +636,6 @@ public static final class Builder extends return Catalyst.Protocol.Deltas.Deltas.internal_static_Catalyst_Protocol_Deltas_Delta_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Deltas.Deltas.internal_static_Catalyst_Protocol_Deltas_Delta_fieldAccessorTable @@ -669,7 +661,6 @@ private void maybeForceBuilderInitialization() { getCoinbaseEntriesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); previousDeltaDfsHash_ = com.google.protobuf.ByteString.EMPTY; @@ -686,19 +677,19 @@ public Builder clear() { } if (publicEntriesBuilder_ == null) { publicEntries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { publicEntriesBuilder_.clear(); } if (confidentialEntriesBuilder_ == null) { confidentialEntries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { confidentialEntriesBuilder_.clear(); } if (coinbaseEntriesBuilder_ == null) { coinbaseEntries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); } else { coinbaseEntriesBuilder_.clear(); } @@ -706,21 +697,20 @@ public Builder clear() { deltaNumber_ = 0L; + gasUsed_ = 0L; + return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Deltas.Deltas.internal_static_Catalyst_Protocol_Deltas_Delta_descriptor; } - @java.lang.Override public Catalyst.Protocol.Deltas.Delta getDefaultInstanceForType() { return Catalyst.Protocol.Deltas.Delta.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Deltas.Delta build() { Catalyst.Protocol.Deltas.Delta result = buildPartial(); if (!result.isInitialized()) { @@ -729,10 +719,10 @@ public Catalyst.Protocol.Deltas.Delta build() { return result; } - @java.lang.Override public Catalyst.Protocol.Deltas.Delta buildPartial() { Catalyst.Protocol.Deltas.Delta result = new Catalyst.Protocol.Deltas.Delta(this); int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; result.previousDeltaDfsHash_ = previousDeltaDfsHash_; result.merkleRoot_ = merkleRoot_; result.merklePoda_ = merklePoda_; @@ -742,27 +732,27 @@ public Catalyst.Protocol.Deltas.Delta buildPartial() { result.timeStamp_ = timeStampBuilder_.build(); } if (publicEntriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { publicEntries_ = java.util.Collections.unmodifiableList(publicEntries_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.publicEntries_ = publicEntries_; } else { result.publicEntries_ = publicEntriesBuilder_.build(); } if (confidentialEntriesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { confidentialEntries_ = java.util.Collections.unmodifiableList(confidentialEntries_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.confidentialEntries_ = confidentialEntries_; } else { result.confidentialEntries_ = confidentialEntriesBuilder_.build(); } if (coinbaseEntriesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { coinbaseEntries_ = java.util.Collections.unmodifiableList(coinbaseEntries_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); } result.coinbaseEntries_ = coinbaseEntries_; } else { @@ -770,43 +760,38 @@ public Catalyst.Protocol.Deltas.Delta buildPartial() { } result.stateRoot_ = stateRoot_; result.deltaNumber_ = deltaNumber_; + result.gasUsed_ = gasUsed_; + result.bitField0_ = to_bitField0_; onBuilt(); return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Deltas.Delta) { return mergeFrom((Catalyst.Protocol.Deltas.Delta)other); @@ -834,7 +819,7 @@ public Builder mergeFrom(Catalyst.Protocol.Deltas.Delta other) { if (!other.publicEntries_.isEmpty()) { if (publicEntries_.isEmpty()) { publicEntries_ = other.publicEntries_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePublicEntriesIsMutable(); publicEntries_.addAll(other.publicEntries_); @@ -847,7 +832,7 @@ public Builder mergeFrom(Catalyst.Protocol.Deltas.Delta other) { publicEntriesBuilder_.dispose(); publicEntriesBuilder_ = null; publicEntries_ = other.publicEntries_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); publicEntriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPublicEntriesFieldBuilder() : null; @@ -860,7 +845,7 @@ public Builder mergeFrom(Catalyst.Protocol.Deltas.Delta other) { if (!other.confidentialEntries_.isEmpty()) { if (confidentialEntries_.isEmpty()) { confidentialEntries_ = other.confidentialEntries_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureConfidentialEntriesIsMutable(); confidentialEntries_.addAll(other.confidentialEntries_); @@ -873,7 +858,7 @@ public Builder mergeFrom(Catalyst.Protocol.Deltas.Delta other) { confidentialEntriesBuilder_.dispose(); confidentialEntriesBuilder_ = null; confidentialEntries_ = other.confidentialEntries_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); confidentialEntriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConfidentialEntriesFieldBuilder() : null; @@ -886,7 +871,7 @@ public Builder mergeFrom(Catalyst.Protocol.Deltas.Delta other) { if (!other.coinbaseEntries_.isEmpty()) { if (coinbaseEntries_.isEmpty()) { coinbaseEntries_ = other.coinbaseEntries_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureCoinbaseEntriesIsMutable(); coinbaseEntries_.addAll(other.coinbaseEntries_); @@ -899,7 +884,7 @@ public Builder mergeFrom(Catalyst.Protocol.Deltas.Delta other) { coinbaseEntriesBuilder_.dispose(); coinbaseEntriesBuilder_ = null; coinbaseEntries_ = other.coinbaseEntries_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); coinbaseEntriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCoinbaseEntriesFieldBuilder() : null; @@ -914,17 +899,17 @@ public Builder mergeFrom(Catalyst.Protocol.Deltas.Delta other) { if (other.getDeltaNumber() != 0L) { setDeltaNumber(other.getDeltaNumber()); } - this.mergeUnknownFields(other.unknownFields); + if (other.getGasUsed() != 0L) { + setGasUsed(other.getGasUsed()); + } onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -951,7 +936,6 @@ public Builder mergeFrom( * * * bytes previous_delta_dfs_hash = 1; - * @return The previousDeltaDfsHash. */ public com.google.protobuf.ByteString getPreviousDeltaDfsHash() { return previousDeltaDfsHash_; @@ -962,8 +946,6 @@ public com.google.protobuf.ByteString getPreviousDeltaDfsHash() { * * * bytes previous_delta_dfs_hash = 1; - * @param value The previousDeltaDfsHash to set. - * @return This builder for chaining. */ public Builder setPreviousDeltaDfsHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -980,7 +962,6 @@ public Builder setPreviousDeltaDfsHash(com.google.protobuf.ByteString value) { * * * bytes previous_delta_dfs_hash = 1; - * @return This builder for chaining. */ public Builder clearPreviousDeltaDfsHash() { @@ -992,15 +973,12 @@ public Builder clearPreviousDeltaDfsHash() { private com.google.protobuf.ByteString merkleRoot_ = com.google.protobuf.ByteString.EMPTY; /** * bytes merkle_root = 2; - * @return The merkleRoot. */ public com.google.protobuf.ByteString getMerkleRoot() { return merkleRoot_; } /** * bytes merkle_root = 2; - * @param value The merkleRoot to set. - * @return This builder for chaining. */ public Builder setMerkleRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -1013,7 +991,6 @@ public Builder setMerkleRoot(com.google.protobuf.ByteString value) { } /** * bytes merkle_root = 2; - * @return This builder for chaining. */ public Builder clearMerkleRoot() { @@ -1029,7 +1006,6 @@ public Builder clearMerkleRoot() { * * * bytes merkle_poda = 3; - * @return The merklePoda. */ public com.google.protobuf.ByteString getMerklePoda() { return merklePoda_; @@ -1040,8 +1016,6 @@ public com.google.protobuf.ByteString getMerklePoda() { * * * bytes merkle_poda = 3; - * @param value The merklePoda to set. - * @return This builder for chaining. */ public Builder setMerklePoda(com.google.protobuf.ByteString value) { if (value == null) { @@ -1058,7 +1032,6 @@ public Builder setMerklePoda(com.google.protobuf.ByteString value) { * * * bytes merkle_poda = 3; - * @return This builder for chaining. */ public Builder clearMerklePoda() { @@ -1067,19 +1040,17 @@ public Builder clearMerklePoda() { return this; } - private com.google.protobuf.Timestamp timeStamp_; + private com.google.protobuf.Timestamp timeStamp_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeStampBuilder_; /** * .google.protobuf.Timestamp time_stamp = 4; - * @return Whether the timeStamp field is set. */ public boolean hasTimeStamp() { return timeStampBuilder_ != null || timeStamp_ != null; } /** * .google.protobuf.Timestamp time_stamp = 4; - * @return The timeStamp. */ public com.google.protobuf.Timestamp getTimeStamp() { if (timeStampBuilder_ == null) { @@ -1189,9 +1160,9 @@ public com.google.protobuf.TimestampOrBuilder getTimeStampOrBuilder() { private java.util.List publicEntries_ = java.util.Collections.emptyList(); private void ensurePublicEntriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { publicEntries_ = new java.util.ArrayList(publicEntries_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } @@ -1341,7 +1312,7 @@ public Builder addAllPublicEntries( public Builder clearPublicEntries() { if (publicEntriesBuilder_ == null) { publicEntries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { publicEntriesBuilder_.clear(); @@ -1418,7 +1389,7 @@ public Catalyst.Protocol.Transaction.PublicEntry.Builder addPublicEntriesBuilder publicEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< Catalyst.Protocol.Transaction.PublicEntry, Catalyst.Protocol.Transaction.PublicEntry.Builder, Catalyst.Protocol.Transaction.PublicEntryOrBuilder>( publicEntries_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); publicEntries_ = null; @@ -1429,9 +1400,9 @@ public Catalyst.Protocol.Transaction.PublicEntry.Builder addPublicEntriesBuilder private java.util.List confidentialEntries_ = java.util.Collections.emptyList(); private void ensureConfidentialEntriesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { confidentialEntries_ = new java.util.ArrayList(confidentialEntries_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -1581,7 +1552,7 @@ public Builder addAllConfidentialEntries( public Builder clearConfidentialEntries() { if (confidentialEntriesBuilder_ == null) { confidentialEntries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { confidentialEntriesBuilder_.clear(); @@ -1658,7 +1629,7 @@ public Catalyst.Protocol.Transaction.ConfidentialEntry.Builder addConfidentialEn confidentialEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< Catalyst.Protocol.Transaction.ConfidentialEntry, Catalyst.Protocol.Transaction.ConfidentialEntry.Builder, Catalyst.Protocol.Transaction.ConfidentialEntryOrBuilder>( confidentialEntries_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); confidentialEntries_ = null; @@ -1669,9 +1640,9 @@ public Catalyst.Protocol.Transaction.ConfidentialEntry.Builder addConfidentialEn private java.util.List coinbaseEntries_ = java.util.Collections.emptyList(); private void ensureCoinbaseEntriesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { coinbaseEntries_ = new java.util.ArrayList(coinbaseEntries_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; } } @@ -1865,7 +1836,7 @@ public Builder addAllCoinbaseEntries( public Builder clearCoinbaseEntries() { if (coinbaseEntriesBuilder_ == null) { coinbaseEntries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { coinbaseEntriesBuilder_.clear(); @@ -1970,7 +1941,7 @@ public Catalyst.Protocol.Transaction.CoinbaseEntry.Builder addCoinbaseEntriesBui coinbaseEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< Catalyst.Protocol.Transaction.CoinbaseEntry, Catalyst.Protocol.Transaction.CoinbaseEntry.Builder, Catalyst.Protocol.Transaction.CoinbaseEntryOrBuilder>( coinbaseEntries_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); coinbaseEntries_ = null; @@ -1985,7 +1956,6 @@ public Catalyst.Protocol.Transaction.CoinbaseEntry.Builder addCoinbaseEntriesBui * * * bytes state_root = 8; - * @return The stateRoot. */ public com.google.protobuf.ByteString getStateRoot() { return stateRoot_; @@ -1996,8 +1966,6 @@ public com.google.protobuf.ByteString getStateRoot() { * * * bytes state_root = 8; - * @param value The stateRoot to set. - * @return This builder for chaining. */ public Builder setStateRoot(com.google.protobuf.ByteString value) { if (value == null) { @@ -2014,7 +1982,6 @@ public Builder setStateRoot(com.google.protobuf.ByteString value) { * * * bytes state_root = 8; - * @return This builder for chaining. */ public Builder clearStateRoot() { @@ -2030,7 +1997,6 @@ public Builder clearStateRoot() { * * * int64 delta_number = 9; - * @return The deltaNumber. */ public long getDeltaNumber() { return deltaNumber_; @@ -2041,8 +2007,6 @@ public long getDeltaNumber() { * * * int64 delta_number = 9; - * @param value The deltaNumber to set. - * @return This builder for chaining. */ public Builder setDeltaNumber(long value) { @@ -2056,7 +2020,6 @@ public Builder setDeltaNumber(long value) { * * * int64 delta_number = 9; - * @return This builder for chaining. */ public Builder clearDeltaNumber() { @@ -2064,16 +2027,52 @@ public Builder clearDeltaNumber() { onChanged(); return this; } - @java.lang.Override + + private long gasUsed_ ; + /** + *
+     * the gas used in the delta
+     * 
+ * + * int64 gas_used = 10; + */ + public long getGasUsed() { + return gasUsed_; + } + /** + *
+     * the gas used in the delta
+     * 
+ * + * int64 gas_used = 10; + */ + public Builder setGasUsed(long value) { + + gasUsed_ = value; + onChanged(); + return this; + } + /** + *
+     * the gas used in the delta
+     * 
+ * + * int64 gas_used = 10; + */ + public Builder clearGasUsed() { + + gasUsed_ = 0L; + onChanged(); + return this; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -2092,12 +2091,11 @@ public static Catalyst.Protocol.Deltas.Delta getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public Delta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Delta(input, extensionRegistry); + return new Delta(input, extensionRegistry); } }; @@ -2110,7 +2108,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Deltas.Delta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Deltas/DeltaIndex.java b/packages/sdk-java/src/Catalyst/Protocol/Deltas/DeltaIndex.java index 220ff88..acb46d9 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Deltas/DeltaIndex.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Deltas/DeltaIndex.java @@ -10,37 +10,26 @@ public final class DeltaIndex extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Deltas.DeltaIndex) DeltaIndexOrBuilder { -private static final long serialVersionUID = 0L; // Use DeltaIndex.newBuilder() to construct. private DeltaIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeltaIndex() { + height_ = 0; cid_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeltaIndex(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DeltaIndex( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,6 +38,12 @@ private DeltaIndex( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 8: { height_ = input.readUInt32(); @@ -59,13 +54,6 @@ private DeltaIndex( cid_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -74,7 +62,6 @@ private DeltaIndex( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -83,7 +70,6 @@ private DeltaIndex( return Catalyst.Protocol.Deltas.Deltas.internal_static_Catalyst_Protocol_Deltas_DeltaIndex_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Deltas.Deltas.internal_static_Catalyst_Protocol_Deltas_DeltaIndex_fieldAccessorTable @@ -95,7 +81,6 @@ private DeltaIndex( private int height_; /** * uint32 height = 1; - * @return The height. */ public int getHeight() { return height_; @@ -105,14 +90,12 @@ public int getHeight() { private com.google.protobuf.ByteString cid_; /** * bytes cid = 2; - * @return The cid. */ public com.google.protobuf.ByteString getCid() { return cid_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -122,7 +105,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (height_ != 0) { @@ -131,10 +113,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!cid_.isEmpty()) { output.writeBytes(2, cid_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -148,11 +128,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, cid_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -163,12 +143,12 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Deltas.DeltaIndex other = (Catalyst.Protocol.Deltas.DeltaIndex) obj; - if (getHeight() - != other.getHeight()) return false; - if (!getCid() - .equals(other.getCid())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getHeight() + == other.getHeight()); + result = result && getCid() + .equals(other.getCid()); + return result; } @java.lang.Override @@ -187,17 +167,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Deltas.DeltaIndex parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Deltas.DeltaIndex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Deltas.DeltaIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +226,6 @@ public static Catalyst.Protocol.Deltas.DeltaIndex parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +233,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Deltas.DeltaIndex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +256,6 @@ public static final class Builder extends return Catalyst.Protocol.Deltas.Deltas.internal_static_Catalyst_Protocol_Deltas_DeltaIndex_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Deltas.Deltas.internal_static_Catalyst_Protocol_Deltas_DeltaIndex_fieldAccessorTable @@ -312,7 +278,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); height_ = 0; @@ -322,18 +287,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Deltas.Deltas.internal_static_Catalyst_Protocol_Deltas_DeltaIndex_descriptor; } - @java.lang.Override public Catalyst.Protocol.Deltas.DeltaIndex getDefaultInstanceForType() { return Catalyst.Protocol.Deltas.DeltaIndex.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Deltas.DeltaIndex build() { Catalyst.Protocol.Deltas.DeltaIndex result = buildPartial(); if (!result.isInitialized()) { @@ -342,7 +304,6 @@ public Catalyst.Protocol.Deltas.DeltaIndex build() { return result; } - @java.lang.Override public Catalyst.Protocol.Deltas.DeltaIndex buildPartial() { Catalyst.Protocol.Deltas.DeltaIndex result = new Catalyst.Protocol.Deltas.DeltaIndex(this); result.height_ = height_; @@ -351,39 +312,32 @@ public Catalyst.Protocol.Deltas.DeltaIndex buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Deltas.DeltaIndex) { return mergeFrom((Catalyst.Protocol.Deltas.DeltaIndex)other); @@ -401,17 +355,14 @@ public Builder mergeFrom(Catalyst.Protocol.Deltas.DeltaIndex other) { if (other.getCid() != com.google.protobuf.ByteString.EMPTY) { setCid(other.getCid()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -433,15 +384,12 @@ public Builder mergeFrom( private int height_ ; /** * uint32 height = 1; - * @return The height. */ public int getHeight() { return height_; } /** * uint32 height = 1; - * @param value The height to set. - * @return This builder for chaining. */ public Builder setHeight(int value) { @@ -451,7 +399,6 @@ public Builder setHeight(int value) { } /** * uint32 height = 1; - * @return This builder for chaining. */ public Builder clearHeight() { @@ -463,15 +410,12 @@ public Builder clearHeight() { private com.google.protobuf.ByteString cid_ = com.google.protobuf.ByteString.EMPTY; /** * bytes cid = 2; - * @return The cid. */ public com.google.protobuf.ByteString getCid() { return cid_; } /** * bytes cid = 2; - * @param value The cid to set. - * @return This builder for chaining. */ public Builder setCid(com.google.protobuf.ByteString value) { if (value == null) { @@ -484,7 +428,6 @@ public Builder setCid(com.google.protobuf.ByteString value) { } /** * bytes cid = 2; - * @return This builder for chaining. */ public Builder clearCid() { @@ -492,16 +435,14 @@ public Builder clearCid() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -520,12 +461,11 @@ public static Catalyst.Protocol.Deltas.DeltaIndex getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public DeltaIndex parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeltaIndex(input, extensionRegistry); + return new DeltaIndex(input, extensionRegistry); } }; @@ -538,7 +478,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Deltas.DeltaIndex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Deltas/DeltaIndexOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Deltas/DeltaIndexOrBuilder.java index 1b85b95..7848be1 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Deltas/DeltaIndexOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Deltas/DeltaIndexOrBuilder.java @@ -9,13 +9,11 @@ public interface DeltaIndexOrBuilder extends /** * uint32 height = 1; - * @return The height. */ int getHeight(); /** * bytes cid = 2; - * @return The cid. */ com.google.protobuf.ByteString getCid(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Deltas/DeltaOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Deltas/DeltaOrBuilder.java index b19f7f6..780c72e 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Deltas/DeltaOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Deltas/DeltaOrBuilder.java @@ -13,13 +13,11 @@ public interface DeltaOrBuilder extends * * * bytes previous_delta_dfs_hash = 1; - * @return The previousDeltaDfsHash. */ com.google.protobuf.ByteString getPreviousDeltaDfsHash(); /** * bytes merkle_root = 2; - * @return The merkleRoot. */ com.google.protobuf.ByteString getMerkleRoot(); @@ -29,18 +27,15 @@ public interface DeltaOrBuilder extends * * * bytes merkle_poda = 3; - * @return The merklePoda. */ com.google.protobuf.ByteString getMerklePoda(); /** * .google.protobuf.Timestamp time_stamp = 4; - * @return Whether the timeStamp field is set. */ boolean hasTimeStamp(); /** * .google.protobuf.Timestamp time_stamp = 4; - * @return The timeStamp. */ com.google.protobuf.Timestamp getTimeStamp(); /** @@ -146,7 +141,6 @@ Catalyst.Protocol.Transaction.CoinbaseEntryOrBuilder getCoinbaseEntriesOrBuilder * * * bytes state_root = 8; - * @return The stateRoot. */ com.google.protobuf.ByteString getStateRoot(); @@ -156,7 +150,15 @@ Catalyst.Protocol.Transaction.CoinbaseEntryOrBuilder getCoinbaseEntriesOrBuilder * * * int64 delta_number = 9; - * @return The deltaNumber. */ long getDeltaNumber(); + + /** + *
+   * the gas used in the delta
+   * 
+ * + * int64 gas_used = 10; + */ + long getGasUsed(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Deltas/Deltas.java b/packages/sdk-java/src/Catalyst/Protocol/Deltas/Deltas.java index d97c5e3..d5cfca4 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Deltas/Deltas.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Deltas/Deltas.java @@ -36,24 +36,32 @@ public static void registerAllExtensions( "\n\014Deltas.proto\022\030Catalyst.Protocol.Deltas" + "\032\021Transaction.proto\032\037google/protobuf/tim" + "estamp.proto\")\n\nDeltaIndex\022\016\n\006height\030\001 \001" + - "(\r\022\013\n\003cid\030\002 \001(\014\"\210\003\n\005Delta\022\037\n\027previous_de" + + "(\r\022\013\n\003cid\030\002 \001(\014\"\232\003\n\005Delta\022\037\n\027previous_de" + "lta_dfs_hash\030\001 \001(\014\022\023\n\013merkle_root\030\002 \001(\014\022" + "\023\n\013merkle_poda\030\003 \001(\014\022.\n\ntime_stamp\030\004 \001(\013" + "2\032.google.protobuf.Timestamp\022B\n\016public_e" + "ntries\030\005 \003(\0132*.Catalyst.Protocol.Transac" + "tion.PublicEntry\022N\n\024confidential_entries" + - "\030\006 \003(\01320.Catalyst.Protocol.Transaction.C" + + "\030\006 \003(\01320.Catalyst.Protocol.Transaction.C", "onfidentialEntry\022F\n\020coinbase_entries\030\007 \003" + "(\0132,.Catalyst.Protocol.Transaction.Coinb" + "aseEntry\022\022\n\nstate_root\030\010 \001(\014\022\024\n\014delta_nu" + - "mber\030\t \001(\003B\002P\001b\006proto3" + "mber\030\t \001(\003\022\020\n\010gas_used\030\n \001(\003B\002P\001b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Catalyst.Protocol.Transaction.Transaction.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - }); + }, assigner); internal_static_Catalyst_Protocol_Deltas_DeltaIndex_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Catalyst_Protocol_Deltas_DeltaIndex_fieldAccessorTable = new @@ -65,7 +73,7 @@ public static void registerAllExtensions( internal_static_Catalyst_Protocol_Deltas_Delta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Catalyst_Protocol_Deltas_Delta_descriptor, - new java.lang.String[] { "PreviousDeltaDfsHash", "MerkleRoot", "MerklePoda", "TimeStamp", "PublicEntries", "ConfidentialEntries", "CoinbaseEntries", "StateRoot", "DeltaNumber", }); + new java.lang.String[] { "PreviousDeltaDfsHash", "MerkleRoot", "MerklePoda", "TimeStamp", "PublicEntries", "ConfidentialEntries", "CoinbaseEntries", "StateRoot", "DeltaNumber", "GasUsed", }); Catalyst.Protocol.Transaction.Transaction.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeBroadcast.java b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeBroadcast.java index 07f661e..b26b692 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeBroadcast.java +++ b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeBroadcast.java @@ -10,7 +10,6 @@ public final class BlockChallengeBroadcast extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) BlockChallengeBroadcastOrBuilder { -private static final long serialVersionUID = 0L; // Use BlockChallengeBroadcast.newBuilder() to construct. private BlockChallengeBroadcast(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private BlockChallengeBroadcast() { answer_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockChallengeBroadcast(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BlockChallengeBroadcast( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,6 +37,12 @@ private BlockChallengeBroadcast( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.Builder subBuilder = null; if (originalChallenge_ != null) { @@ -94,13 +88,6 @@ private BlockChallengeBroadcast( break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,7 +96,6 @@ private BlockChallengeBroadcast( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -118,7 +104,6 @@ private BlockChallengeBroadcast( return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeBroadcast_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeBroadcast_fieldAccessorTable @@ -130,14 +115,12 @@ private BlockChallengeBroadcast( private Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest originalChallenge_; /** * .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; - * @return Whether the originalChallenge field is set. */ public boolean hasOriginalChallenge() { return originalChallenge_ != null; } /** * .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; - * @return The originalChallenge. */ public Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest getOriginalChallenge() { return originalChallenge_ == null ? Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.getDefaultInstance() : originalChallenge_; @@ -153,7 +136,6 @@ public Catalyst.Protocol.DfsMarketplace.BlockChallengeRequestOrBuilder getOrigin private volatile java.lang.Object answer_; /** * string answer = 2; - * @return The answer. */ public java.lang.String getAnswer() { java.lang.Object ref = answer_; @@ -169,7 +151,6 @@ public java.lang.String getAnswer() { } /** * string answer = 2; - * @return The bytes for answer. */ public com.google.protobuf.ByteString getAnswerBytes() { @@ -189,14 +170,12 @@ public java.lang.String getAnswer() { private Catalyst.Protocol.Peer.PeerId challengedPeer_; /** * .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; - * @return Whether the challengedPeer field is set. */ public boolean hasChallengedPeer() { return challengedPeer_ != null; } /** * .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; - * @return The challengedPeer. */ public Catalyst.Protocol.Peer.PeerId getChallengedPeer() { return challengedPeer_ == null ? Catalyst.Protocol.Peer.PeerId.getDefaultInstance() : challengedPeer_; @@ -212,14 +191,12 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getChallengedPeerOrBuilder() { private Catalyst.Protocol.Peer.PeerId challengedBy_; /** * .Catalyst.Protocol.Peer.PeerId challenged_by = 4; - * @return Whether the challengedBy field is set. */ public boolean hasChallengedBy() { return challengedBy_ != null; } /** * .Catalyst.Protocol.Peer.PeerId challenged_by = 4; - * @return The challengedBy. */ public Catalyst.Protocol.Peer.PeerId getChallengedBy() { return challengedBy_ == null ? Catalyst.Protocol.Peer.PeerId.getDefaultInstance() : challengedBy_; @@ -232,7 +209,6 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getChallengedByOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -242,7 +218,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (originalChallenge_ != null) { @@ -257,10 +232,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (challengedBy_ != null) { output.writeMessage(4, getChallengedBy()); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -281,11 +254,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getChallengedBy()); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -296,25 +269,25 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast other = (Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) obj; - if (hasOriginalChallenge() != other.hasOriginalChallenge()) return false; + boolean result = true; + result = result && (hasOriginalChallenge() == other.hasOriginalChallenge()); if (hasOriginalChallenge()) { - if (!getOriginalChallenge() - .equals(other.getOriginalChallenge())) return false; + result = result && getOriginalChallenge() + .equals(other.getOriginalChallenge()); } - if (!getAnswer() - .equals(other.getAnswer())) return false; - if (hasChallengedPeer() != other.hasChallengedPeer()) return false; + result = result && getAnswer() + .equals(other.getAnswer()); + result = result && (hasChallengedPeer() == other.hasChallengedPeer()); if (hasChallengedPeer()) { - if (!getChallengedPeer() - .equals(other.getChallengedPeer())) return false; + result = result && getChallengedPeer() + .equals(other.getChallengedPeer()); } - if (hasChallengedBy() != other.hasChallengedBy()) return false; + result = result && (hasChallengedBy() == other.hasChallengedBy()); if (hasChallengedBy()) { - if (!getChallengedBy() - .equals(other.getChallengedBy())) return false; + result = result && getChallengedBy() + .equals(other.getChallengedBy()); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + return result; } @java.lang.Override @@ -343,17 +316,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -413,7 +375,6 @@ public static Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast parseFrom .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -421,7 +382,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -445,7 +405,6 @@ public static final class Builder extends return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeBroadcast_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeBroadcast_fieldAccessorTable @@ -468,7 +427,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (originalChallengeBuilder_ == null) { @@ -494,18 +452,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeBroadcast_descriptor; } - @java.lang.Override public Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast getDefaultInstanceForType() { return Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast build() { Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast result = buildPartial(); if (!result.isInitialized()) { @@ -514,7 +469,6 @@ public Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast build() { return result; } - @java.lang.Override public Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast buildPartial() { Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast result = new Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast(this); if (originalChallengeBuilder_ == null) { @@ -537,39 +491,32 @@ public Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) { return mergeFrom((Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast)other); @@ -594,17 +541,14 @@ public Builder mergeFrom(Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcas if (other.hasChallengedBy()) { mergeChallengedBy(other.getChallengedBy()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -623,19 +567,17 @@ public Builder mergeFrom( return this; } - private Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest originalChallenge_; + private Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest originalChallenge_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest, Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.Builder, Catalyst.Protocol.DfsMarketplace.BlockChallengeRequestOrBuilder> originalChallengeBuilder_; /** * .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; - * @return Whether the originalChallenge field is set. */ public boolean hasOriginalChallenge() { return originalChallengeBuilder_ != null || originalChallenge_ != null; } /** * .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; - * @return The originalChallenge. */ public Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest getOriginalChallenge() { if (originalChallengeBuilder_ == null) { @@ -745,7 +687,6 @@ public Catalyst.Protocol.DfsMarketplace.BlockChallengeRequestOrBuilder getOrigin private java.lang.Object answer_ = ""; /** * string answer = 2; - * @return The answer. */ public java.lang.String getAnswer() { java.lang.Object ref = answer_; @@ -761,7 +702,6 @@ public java.lang.String getAnswer() { } /** * string answer = 2; - * @return The bytes for answer. */ public com.google.protobuf.ByteString getAnswerBytes() { @@ -778,8 +718,6 @@ public java.lang.String getAnswer() { } /** * string answer = 2; - * @param value The answer to set. - * @return This builder for chaining. */ public Builder setAnswer( java.lang.String value) { @@ -793,7 +731,6 @@ public Builder setAnswer( } /** * string answer = 2; - * @return This builder for chaining. */ public Builder clearAnswer() { @@ -803,8 +740,6 @@ public Builder clearAnswer() { } /** * string answer = 2; - * @param value The bytes for answer to set. - * @return This builder for chaining. */ public Builder setAnswerBytes( com.google.protobuf.ByteString value) { @@ -818,19 +753,17 @@ public Builder setAnswerBytes( return this; } - private Catalyst.Protocol.Peer.PeerId challengedPeer_; + private Catalyst.Protocol.Peer.PeerId challengedPeer_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Peer.PeerId, Catalyst.Protocol.Peer.PeerId.Builder, Catalyst.Protocol.Peer.PeerIdOrBuilder> challengedPeerBuilder_; /** * .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; - * @return Whether the challengedPeer field is set. */ public boolean hasChallengedPeer() { return challengedPeerBuilder_ != null || challengedPeer_ != null; } /** * .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; - * @return The challengedPeer. */ public Catalyst.Protocol.Peer.PeerId getChallengedPeer() { if (challengedPeerBuilder_ == null) { @@ -937,19 +870,17 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getChallengedPeerOrBuilder() { return challengedPeerBuilder_; } - private Catalyst.Protocol.Peer.PeerId challengedBy_; + private Catalyst.Protocol.Peer.PeerId challengedBy_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Peer.PeerId, Catalyst.Protocol.Peer.PeerId.Builder, Catalyst.Protocol.Peer.PeerIdOrBuilder> challengedByBuilder_; /** * .Catalyst.Protocol.Peer.PeerId challenged_by = 4; - * @return Whether the challengedBy field is set. */ public boolean hasChallengedBy() { return challengedByBuilder_ != null || challengedBy_ != null; } /** * .Catalyst.Protocol.Peer.PeerId challenged_by = 4; - * @return The challengedBy. */ public Catalyst.Protocol.Peer.PeerId getChallengedBy() { if (challengedByBuilder_ == null) { @@ -1055,16 +986,14 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getChallengedByOrBuilder() { } return challengedByBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -1083,12 +1012,11 @@ public static Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast getDefaul private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public BlockChallengeBroadcast parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockChallengeBroadcast(input, extensionRegistry); + return new BlockChallengeBroadcast(input, extensionRegistry); } }; @@ -1101,7 +1029,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeBroadcastOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeBroadcastOrBuilder.java index c846ba6..dffaff1 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeBroadcastOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeBroadcastOrBuilder.java @@ -9,12 +9,10 @@ public interface BlockChallengeBroadcastOrBuilder extends /** * .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; - * @return Whether the originalChallenge field is set. */ boolean hasOriginalChallenge(); /** * .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; - * @return The originalChallenge. */ Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest getOriginalChallenge(); /** @@ -24,24 +22,20 @@ public interface BlockChallengeBroadcastOrBuilder extends /** * string answer = 2; - * @return The answer. */ java.lang.String getAnswer(); /** * string answer = 2; - * @return The bytes for answer. */ com.google.protobuf.ByteString getAnswerBytes(); /** * .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; - * @return Whether the challengedPeer field is set. */ boolean hasChallengedPeer(); /** * .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; - * @return The challengedPeer. */ Catalyst.Protocol.Peer.PeerId getChallengedPeer(); /** @@ -51,12 +45,10 @@ public interface BlockChallengeBroadcastOrBuilder extends /** * .Catalyst.Protocol.Peer.PeerId challenged_by = 4; - * @return Whether the challengedBy field is set. */ boolean hasChallengedBy(); /** * .Catalyst.Protocol.Peer.PeerId challenged_by = 4; - * @return The challengedBy. */ Catalyst.Protocol.Peer.PeerId getChallengedBy(); /** diff --git a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeRequest.java b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeRequest.java index 553247f..b7dfa3b 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeRequest.java @@ -10,7 +10,6 @@ public final class BlockChallengeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) BlockChallengeRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use BlockChallengeRequest.newBuilder() to construct. private BlockChallengeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -21,28 +20,17 @@ private BlockChallengeRequest() { blockIdxRandomGuid_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockChallengeRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BlockChallengeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -51,6 +39,12 @@ private BlockChallengeRequest( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -68,13 +62,6 @@ private BlockChallengeRequest( blockIdxRandomGuid_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,7 +70,6 @@ private BlockChallengeRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -92,7 +78,6 @@ private BlockChallengeRequest( return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeRequest_fieldAccessorTable @@ -104,7 +89,6 @@ private BlockChallengeRequest( private volatile java.lang.Object challengeSalt_; /** * string challenge_salt = 1; - * @return The challengeSalt. */ public java.lang.String getChallengeSalt() { java.lang.Object ref = challengeSalt_; @@ -120,7 +104,6 @@ public java.lang.String getChallengeSalt() { } /** * string challenge_salt = 1; - * @return The bytes for challengeSalt. */ public com.google.protobuf.ByteString getChallengeSaltBytes() { @@ -140,7 +123,6 @@ public java.lang.String getChallengeSalt() { private volatile java.lang.Object mainFileCid_; /** * string main_file_cid = 2; - * @return The mainFileCid. */ public java.lang.String getMainFileCid() { java.lang.Object ref = mainFileCid_; @@ -156,7 +138,6 @@ public java.lang.String getMainFileCid() { } /** * string main_file_cid = 2; - * @return The bytes for mainFileCid. */ public com.google.protobuf.ByteString getMainFileCidBytes() { @@ -176,14 +157,12 @@ public java.lang.String getMainFileCid() { private com.google.protobuf.ByteString blockIdxRandomGuid_; /** * bytes block_idx_random_guid = 3; - * @return The blockIdxRandomGuid. */ public com.google.protobuf.ByteString getBlockIdxRandomGuid() { return blockIdxRandomGuid_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -193,7 +172,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getChallengeSaltBytes().isEmpty()) { @@ -205,10 +183,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!blockIdxRandomGuid_.isEmpty()) { output.writeBytes(3, blockIdxRandomGuid_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -224,11 +200,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, blockIdxRandomGuid_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -239,14 +215,14 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest other = (Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) obj; - if (!getChallengeSalt() - .equals(other.getChallengeSalt())) return false; - if (!getMainFileCid() - .equals(other.getMainFileCid())) return false; - if (!getBlockIdxRandomGuid() - .equals(other.getBlockIdxRandomGuid())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getChallengeSalt() + .equals(other.getChallengeSalt()); + result = result && getMainFileCid() + .equals(other.getMainFileCid()); + result = result && getBlockIdxRandomGuid() + .equals(other.getBlockIdxRandomGuid()); + return result; } @java.lang.Override @@ -267,17 +243,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -337,7 +302,6 @@ public static Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -345,7 +309,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -369,7 +332,6 @@ public static final class Builder extends return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeRequest_fieldAccessorTable @@ -392,7 +354,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); challengeSalt_ = ""; @@ -404,18 +365,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest getDefaultInstanceForType() { return Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest build() { Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest result = buildPartial(); if (!result.isInitialized()) { @@ -424,7 +382,6 @@ public Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest buildPartial() { Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest result = new Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest(this); result.challengeSalt_ = challengeSalt_; @@ -434,39 +391,32 @@ public Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) { return mergeFrom((Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest)other); @@ -489,17 +439,14 @@ public Builder mergeFrom(Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest if (other.getBlockIdxRandomGuid() != com.google.protobuf.ByteString.EMPTY) { setBlockIdxRandomGuid(other.getBlockIdxRandomGuid()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -521,7 +468,6 @@ public Builder mergeFrom( private java.lang.Object challengeSalt_ = ""; /** * string challenge_salt = 1; - * @return The challengeSalt. */ public java.lang.String getChallengeSalt() { java.lang.Object ref = challengeSalt_; @@ -537,7 +483,6 @@ public java.lang.String getChallengeSalt() { } /** * string challenge_salt = 1; - * @return The bytes for challengeSalt. */ public com.google.protobuf.ByteString getChallengeSaltBytes() { @@ -554,8 +499,6 @@ public java.lang.String getChallengeSalt() { } /** * string challenge_salt = 1; - * @param value The challengeSalt to set. - * @return This builder for chaining. */ public Builder setChallengeSalt( java.lang.String value) { @@ -569,7 +512,6 @@ public Builder setChallengeSalt( } /** * string challenge_salt = 1; - * @return This builder for chaining. */ public Builder clearChallengeSalt() { @@ -579,8 +521,6 @@ public Builder clearChallengeSalt() { } /** * string challenge_salt = 1; - * @param value The bytes for challengeSalt to set. - * @return This builder for chaining. */ public Builder setChallengeSaltBytes( com.google.protobuf.ByteString value) { @@ -597,7 +537,6 @@ public Builder setChallengeSaltBytes( private java.lang.Object mainFileCid_ = ""; /** * string main_file_cid = 2; - * @return The mainFileCid. */ public java.lang.String getMainFileCid() { java.lang.Object ref = mainFileCid_; @@ -613,7 +552,6 @@ public java.lang.String getMainFileCid() { } /** * string main_file_cid = 2; - * @return The bytes for mainFileCid. */ public com.google.protobuf.ByteString getMainFileCidBytes() { @@ -630,8 +568,6 @@ public java.lang.String getMainFileCid() { } /** * string main_file_cid = 2; - * @param value The mainFileCid to set. - * @return This builder for chaining. */ public Builder setMainFileCid( java.lang.String value) { @@ -645,7 +581,6 @@ public Builder setMainFileCid( } /** * string main_file_cid = 2; - * @return This builder for chaining. */ public Builder clearMainFileCid() { @@ -655,8 +590,6 @@ public Builder clearMainFileCid() { } /** * string main_file_cid = 2; - * @param value The bytes for mainFileCid to set. - * @return This builder for chaining. */ public Builder setMainFileCidBytes( com.google.protobuf.ByteString value) { @@ -673,15 +606,12 @@ public Builder setMainFileCidBytes( private com.google.protobuf.ByteString blockIdxRandomGuid_ = com.google.protobuf.ByteString.EMPTY; /** * bytes block_idx_random_guid = 3; - * @return The blockIdxRandomGuid. */ public com.google.protobuf.ByteString getBlockIdxRandomGuid() { return blockIdxRandomGuid_; } /** * bytes block_idx_random_guid = 3; - * @param value The blockIdxRandomGuid to set. - * @return This builder for chaining. */ public Builder setBlockIdxRandomGuid(com.google.protobuf.ByteString value) { if (value == null) { @@ -694,7 +624,6 @@ public Builder setBlockIdxRandomGuid(com.google.protobuf.ByteString value) { } /** * bytes block_idx_random_guid = 3; - * @return This builder for chaining. */ public Builder clearBlockIdxRandomGuid() { @@ -702,16 +631,14 @@ public Builder clearBlockIdxRandomGuid() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -730,12 +657,11 @@ public static Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest getDefaultI private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public BlockChallengeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockChallengeRequest(input, extensionRegistry); + return new BlockChallengeRequest(input, extensionRegistry); } }; @@ -748,7 +674,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeRequestOrBuilder.java index f3a10df..40859d1 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeRequestOrBuilder.java @@ -9,31 +9,26 @@ public interface BlockChallengeRequestOrBuilder extends /** * string challenge_salt = 1; - * @return The challengeSalt. */ java.lang.String getChallengeSalt(); /** * string challenge_salt = 1; - * @return The bytes for challengeSalt. */ com.google.protobuf.ByteString getChallengeSaltBytes(); /** * string main_file_cid = 2; - * @return The mainFileCid. */ java.lang.String getMainFileCid(); /** * string main_file_cid = 2; - * @return The bytes for mainFileCid. */ com.google.protobuf.ByteString getMainFileCidBytes(); /** * bytes block_idx_random_guid = 3; - * @return The blockIdxRandomGuid. */ com.google.protobuf.ByteString getBlockIdxRandomGuid(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeResponse.java b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeResponse.java index 803c1e2..47598ac 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeResponse.java @@ -10,7 +10,6 @@ public final class BlockChallengeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) BlockChallengeResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use BlockChallengeResponse.newBuilder() to construct. private BlockChallengeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -20,28 +19,17 @@ private BlockChallengeResponse() { blockChallengeRequestHash_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BlockChallengeResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BlockChallengeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -50,6 +38,12 @@ private BlockChallengeResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -62,13 +56,6 @@ private BlockChallengeResponse( blockChallengeRequestHash_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +64,6 @@ private BlockChallengeResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -86,7 +72,6 @@ private BlockChallengeResponse( return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeResponse_fieldAccessorTable @@ -98,7 +83,6 @@ private BlockChallengeResponse( private volatile java.lang.Object answer_; /** * string answer = 1; - * @return The answer. */ public java.lang.String getAnswer() { java.lang.Object ref = answer_; @@ -114,7 +98,6 @@ public java.lang.String getAnswer() { } /** * string answer = 1; - * @return The bytes for answer. */ public com.google.protobuf.ByteString getAnswerBytes() { @@ -134,7 +117,6 @@ public java.lang.String getAnswer() { private volatile java.lang.Object blockChallengeRequestHash_; /** * string block_challenge_request_hash = 2; - * @return The blockChallengeRequestHash. */ public java.lang.String getBlockChallengeRequestHash() { java.lang.Object ref = blockChallengeRequestHash_; @@ -150,7 +132,6 @@ public java.lang.String getBlockChallengeRequestHash() { } /** * string block_challenge_request_hash = 2; - * @return The bytes for blockChallengeRequestHash. */ public com.google.protobuf.ByteString getBlockChallengeRequestHashBytes() { @@ -167,7 +148,6 @@ public java.lang.String getBlockChallengeRequestHash() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -177,7 +157,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getAnswerBytes().isEmpty()) { @@ -186,10 +165,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getBlockChallengeRequestHashBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, blockChallengeRequestHash_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -201,11 +178,11 @@ public int getSerializedSize() { if (!getBlockChallengeRequestHashBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, blockChallengeRequestHash_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -216,12 +193,12 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse other = (Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) obj; - if (!getAnswer() - .equals(other.getAnswer())) return false; - if (!getBlockChallengeRequestHash() - .equals(other.getBlockChallengeRequestHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getAnswer() + .equals(other.getAnswer()); + result = result && getBlockChallengeRequestHash() + .equals(other.getBlockChallengeRequestHash()); + return result; } @java.lang.Override @@ -240,17 +217,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -310,7 +276,6 @@ public static Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -318,7 +283,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -342,7 +306,6 @@ public static final class Builder extends return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeResponse_fieldAccessorTable @@ -365,7 +328,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); answer_ = ""; @@ -375,18 +337,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.DfsMarketplace.DfsMarketplace.internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse getDefaultInstanceForType() { return Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse build() { Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse result = buildPartial(); if (!result.isInitialized()) { @@ -395,7 +354,6 @@ public Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse buildPartial() { Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse result = new Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse(this); result.answer_ = answer_; @@ -404,39 +362,32 @@ public Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) { return mergeFrom((Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse)other); @@ -456,17 +407,14 @@ public Builder mergeFrom(Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse blockChallengeRequestHash_ = other.blockChallengeRequestHash_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -488,7 +436,6 @@ public Builder mergeFrom( private java.lang.Object answer_ = ""; /** * string answer = 1; - * @return The answer. */ public java.lang.String getAnswer() { java.lang.Object ref = answer_; @@ -504,7 +451,6 @@ public java.lang.String getAnswer() { } /** * string answer = 1; - * @return The bytes for answer. */ public com.google.protobuf.ByteString getAnswerBytes() { @@ -521,8 +467,6 @@ public java.lang.String getAnswer() { } /** * string answer = 1; - * @param value The answer to set. - * @return This builder for chaining. */ public Builder setAnswer( java.lang.String value) { @@ -536,7 +480,6 @@ public Builder setAnswer( } /** * string answer = 1; - * @return This builder for chaining. */ public Builder clearAnswer() { @@ -546,8 +489,6 @@ public Builder clearAnswer() { } /** * string answer = 1; - * @param value The bytes for answer to set. - * @return This builder for chaining. */ public Builder setAnswerBytes( com.google.protobuf.ByteString value) { @@ -564,7 +505,6 @@ public Builder setAnswerBytes( private java.lang.Object blockChallengeRequestHash_ = ""; /** * string block_challenge_request_hash = 2; - * @return The blockChallengeRequestHash. */ public java.lang.String getBlockChallengeRequestHash() { java.lang.Object ref = blockChallengeRequestHash_; @@ -580,7 +520,6 @@ public java.lang.String getBlockChallengeRequestHash() { } /** * string block_challenge_request_hash = 2; - * @return The bytes for blockChallengeRequestHash. */ public com.google.protobuf.ByteString getBlockChallengeRequestHashBytes() { @@ -597,8 +536,6 @@ public java.lang.String getBlockChallengeRequestHash() { } /** * string block_challenge_request_hash = 2; - * @param value The blockChallengeRequestHash to set. - * @return This builder for chaining. */ public Builder setBlockChallengeRequestHash( java.lang.String value) { @@ -612,7 +549,6 @@ public Builder setBlockChallengeRequestHash( } /** * string block_challenge_request_hash = 2; - * @return This builder for chaining. */ public Builder clearBlockChallengeRequestHash() { @@ -622,8 +558,6 @@ public Builder clearBlockChallengeRequestHash() { } /** * string block_challenge_request_hash = 2; - * @param value The bytes for blockChallengeRequestHash to set. - * @return This builder for chaining. */ public Builder setBlockChallengeRequestHashBytes( com.google.protobuf.ByteString value) { @@ -636,16 +570,14 @@ public Builder setBlockChallengeRequestHashBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -664,12 +596,11 @@ public static Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse getDefault private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public BlockChallengeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BlockChallengeResponse(input, extensionRegistry); + return new BlockChallengeResponse(input, extensionRegistry); } }; @@ -682,7 +613,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeResponseOrBuilder.java index 48ca060..d78175b 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeResponseOrBuilder.java @@ -9,24 +9,20 @@ public interface BlockChallengeResponseOrBuilder extends /** * string answer = 1; - * @return The answer. */ java.lang.String getAnswer(); /** * string answer = 1; - * @return The bytes for answer. */ com.google.protobuf.ByteString getAnswerBytes(); /** * string block_challenge_request_hash = 2; - * @return The blockChallengeRequestHash. */ java.lang.String getBlockChallengeRequestHash(); /** * string block_challenge_request_hash = 2; - * @return The bytes for blockChallengeRequestHash. */ com.google.protobuf.ByteString getBlockChallengeRequestHashBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/DfsMarketplace.java b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/DfsMarketplace.java index cfadb43..ac7cd11 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/DfsMarketplace.java +++ b/packages/sdk-java/src/Catalyst/Protocol/DfsMarketplace/DfsMarketplace.java @@ -47,16 +47,24 @@ public static void registerAllExtensions( "_hash\030\002 \001(\t\"\356\001\n\027BlockChallengeBroadcast\022" + "S\n\022original_challenge\030\001 \001(\01327.Catalyst.P" + "rotocol.DfsMarketplace.BlockChallengeReq" + - "uest\022\016\n\006answer\030\002 \001(\t\0227\n\017challenged_peer\030" + + "uest\022\016\n\006answer\030\002 \001(\t\0227\n\017challenged_peer\030", "\003 \001(\0132\036.Catalyst.Protocol.Peer.PeerId\0225\n" + "\rchallenged_by\030\004 \001(\0132\036.Catalyst.Protocol" + ".Peer.PeerIdB\002P\001b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Catalyst.Protocol.Peer.Peer.getDescriptor(), - }); + }, assigner); internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Catalyst_Protocol_DfsMarketplace_BlockChallengeRequest_fieldAccessorTable = new diff --git a/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryRequest.java b/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryRequest.java index 01f9390..9616fe3 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryRequest.java @@ -10,36 +10,26 @@ public final class DeltaHistoryRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.IPPN.DeltaHistoryRequest) DeltaHistoryRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use DeltaHistoryRequest.newBuilder() to construct. private DeltaHistoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeltaHistoryRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeltaHistoryRequest(); + range_ = 0; + height_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DeltaHistoryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,6 +38,12 @@ private DeltaHistoryRequest( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 8: { range_ = input.readUInt32(); @@ -58,13 +54,6 @@ private DeltaHistoryRequest( height_ = input.readUInt32(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,7 +62,6 @@ private DeltaHistoryRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -82,7 +70,6 @@ private DeltaHistoryRequest( return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_DeltaHistoryRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_DeltaHistoryRequest_fieldAccessorTable @@ -98,7 +85,6 @@ private DeltaHistoryRequest( * * * uint32 range = 1; - * @return The range. */ public int getRange() { return range_; @@ -112,14 +98,12 @@ public int getRange() { * * * uint32 height = 2; - * @return The height. */ public int getHeight() { return height_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -129,7 +113,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (range_ != 0) { @@ -138,10 +121,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (height_ != 0) { output.writeUInt32(2, height_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -155,11 +136,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, height_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -170,12 +151,12 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.IPPN.DeltaHistoryRequest other = (Catalyst.Protocol.IPPN.DeltaHistoryRequest) obj; - if (getRange() - != other.getRange()) return false; - if (getHeight() - != other.getHeight()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getRange() + == other.getRange()); + result = result && (getHeight() + == other.getHeight()); + return result; } @java.lang.Override @@ -194,17 +175,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.IPPN.DeltaHistoryRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.IPPN.DeltaHistoryRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.IPPN.DeltaHistoryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -264,7 +234,6 @@ public static Catalyst.Protocol.IPPN.DeltaHistoryRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -272,7 +241,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.IPPN.DeltaHistoryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -296,7 +264,6 @@ public static final class Builder extends return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_DeltaHistoryRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_DeltaHistoryRequest_fieldAccessorTable @@ -319,7 +286,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); range_ = 0; @@ -329,18 +295,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_DeltaHistoryRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.IPPN.DeltaHistoryRequest getDefaultInstanceForType() { return Catalyst.Protocol.IPPN.DeltaHistoryRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.IPPN.DeltaHistoryRequest build() { Catalyst.Protocol.IPPN.DeltaHistoryRequest result = buildPartial(); if (!result.isInitialized()) { @@ -349,7 +312,6 @@ public Catalyst.Protocol.IPPN.DeltaHistoryRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.IPPN.DeltaHistoryRequest buildPartial() { Catalyst.Protocol.IPPN.DeltaHistoryRequest result = new Catalyst.Protocol.IPPN.DeltaHistoryRequest(this); result.range_ = range_; @@ -358,39 +320,32 @@ public Catalyst.Protocol.IPPN.DeltaHistoryRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.IPPN.DeltaHistoryRequest) { return mergeFrom((Catalyst.Protocol.IPPN.DeltaHistoryRequest)other); @@ -408,17 +363,14 @@ public Builder mergeFrom(Catalyst.Protocol.IPPN.DeltaHistoryRequest other) { if (other.getHeight() != 0) { setHeight(other.getHeight()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -444,7 +396,6 @@ public Builder mergeFrom( * * * uint32 range = 1; - * @return The range. */ public int getRange() { return range_; @@ -455,8 +406,6 @@ public int getRange() { * * * uint32 range = 1; - * @param value The range to set. - * @return This builder for chaining. */ public Builder setRange(int value) { @@ -470,7 +419,6 @@ public Builder setRange(int value) { * * * uint32 range = 1; - * @return This builder for chaining. */ public Builder clearRange() { @@ -486,7 +434,6 @@ public Builder clearRange() { * * * uint32 height = 2; - * @return The height. */ public int getHeight() { return height_; @@ -497,8 +444,6 @@ public int getHeight() { * * * uint32 height = 2; - * @param value The height to set. - * @return This builder for chaining. */ public Builder setHeight(int value) { @@ -512,7 +457,6 @@ public Builder setHeight(int value) { * * * uint32 height = 2; - * @return This builder for chaining. */ public Builder clearHeight() { @@ -520,16 +464,14 @@ public Builder clearHeight() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -548,12 +490,11 @@ public static Catalyst.Protocol.IPPN.DeltaHistoryRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public DeltaHistoryRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeltaHistoryRequest(input, extensionRegistry); + return new DeltaHistoryRequest(input, extensionRegistry); } }; @@ -566,7 +507,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.IPPN.DeltaHistoryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryRequestOrBuilder.java index 75df16b..e3cb58e 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryRequestOrBuilder.java @@ -13,7 +13,6 @@ public interface DeltaHistoryRequestOrBuilder extends * * * uint32 range = 1; - * @return The range. */ int getRange(); @@ -23,7 +22,6 @@ public interface DeltaHistoryRequestOrBuilder extends * * * uint32 height = 2; - * @return The height. */ int getHeight(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryResponse.java b/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryResponse.java index f8b47c5..0c40afb 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryResponse.java @@ -10,38 +10,25 @@ public final class DeltaHistoryResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.IPPN.DeltaHistoryResponse) DeltaHistoryResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use DeltaHistoryResponse.newBuilder() to construct. private DeltaHistoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeltaHistoryResponse() { - result_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeltaHistoryResponse(); + deltaIndex_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DeltaHistoryResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -50,20 +37,19 @@ private DeltaHistoryResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - result_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + default: { + if (!input.skipField(tag)) { + done = true; } - result_.add( - input.readMessage(Catalyst.Protocol.Deltas.DeltaIndex.parser(), extensionRegistry)); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + deltaIndex_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } + deltaIndex_.add( + input.readMessage(Catalyst.Protocol.Deltas.DeltaIndex.parser(), extensionRegistry)); break; } } @@ -74,10 +60,9 @@ private DeltaHistoryResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - result_ = java.util.Collections.unmodifiableList(result_); + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + deltaIndex_ = java.util.Collections.unmodifiableList(deltaIndex_); } - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -86,7 +71,6 @@ private DeltaHistoryResponse( return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_DeltaHistoryResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_DeltaHistoryResponse_fieldAccessorTable @@ -94,63 +78,62 @@ private DeltaHistoryResponse( Catalyst.Protocol.IPPN.DeltaHistoryResponse.class, Catalyst.Protocol.IPPN.DeltaHistoryResponse.Builder.class); } - public static final int RESULT_FIELD_NUMBER = 1; - private java.util.List result_; + public static final int DELTAINDEX_FIELD_NUMBER = 1; + private java.util.List deltaIndex_; /** *
    * K given del
    * 
* - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public java.util.List getResultList() { - return result_; + public java.util.List getDeltaIndexList() { + return deltaIndex_; } /** *
    * K given del
    * 
* - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ public java.util.List - getResultOrBuilderList() { - return result_; + getDeltaIndexOrBuilderList() { + return deltaIndex_; } /** *
    * K given del
    * 
* - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public int getResultCount() { - return result_.size(); + public int getDeltaIndexCount() { + return deltaIndex_.size(); } /** *
    * K given del
    * 
* - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Catalyst.Protocol.Deltas.DeltaIndex getResult(int index) { - return result_.get(index); + public Catalyst.Protocol.Deltas.DeltaIndex getDeltaIndex(int index) { + return deltaIndex_.get(index); } /** *
    * K given del
    * 
* - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getResultOrBuilder( + public Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getDeltaIndexOrBuilder( int index) { - return result_.get(index); + return deltaIndex_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -160,30 +143,27 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < result_.size(); i++) { - output.writeMessage(1, result_.get(i)); + for (int i = 0; i < deltaIndex_.size(); i++) { + output.writeMessage(1, deltaIndex_.get(i)); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; - for (int i = 0; i < result_.size(); i++) { + for (int i = 0; i < deltaIndex_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, result_.get(i)); + .computeMessageSize(1, deltaIndex_.get(i)); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -194,10 +174,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.IPPN.DeltaHistoryResponse other = (Catalyst.Protocol.IPPN.DeltaHistoryResponse) obj; - if (!getResultList() - .equals(other.getResultList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getDeltaIndexList() + .equals(other.getDeltaIndexList()); + return result; } @java.lang.Override @@ -207,26 +187,15 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getResultCount() > 0) { - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + getResultList().hashCode(); + if (getDeltaIndexCount() > 0) { + hash = (37 * hash) + DELTAINDEX_FIELD_NUMBER; + hash = (53 * hash) + getDeltaIndexList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static Catalyst.Protocol.IPPN.DeltaHistoryResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.IPPN.DeltaHistoryResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.IPPN.DeltaHistoryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -286,7 +255,6 @@ public static Catalyst.Protocol.IPPN.DeltaHistoryResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -294,7 +262,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.IPPN.DeltaHistoryResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -318,7 +285,6 @@ public static final class Builder extends return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_DeltaHistoryResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_DeltaHistoryResponse_fieldAccessorTable @@ -339,33 +305,29 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getResultFieldBuilder(); + getDeltaIndexFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); - if (resultBuilder_ == null) { - result_ = java.util.Collections.emptyList(); + if (deltaIndexBuilder_ == null) { + deltaIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { - resultBuilder_.clear(); + deltaIndexBuilder_.clear(); } return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_DeltaHistoryResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.IPPN.DeltaHistoryResponse getDefaultInstanceForType() { return Catalyst.Protocol.IPPN.DeltaHistoryResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.IPPN.DeltaHistoryResponse build() { Catalyst.Protocol.IPPN.DeltaHistoryResponse result = buildPartial(); if (!result.isInitialized()) { @@ -374,56 +336,48 @@ public Catalyst.Protocol.IPPN.DeltaHistoryResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.IPPN.DeltaHistoryResponse buildPartial() { Catalyst.Protocol.IPPN.DeltaHistoryResponse result = new Catalyst.Protocol.IPPN.DeltaHistoryResponse(this); int from_bitField0_ = bitField0_; - if (resultBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - result_ = java.util.Collections.unmodifiableList(result_); + if (deltaIndexBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + deltaIndex_ = java.util.Collections.unmodifiableList(deltaIndex_); bitField0_ = (bitField0_ & ~0x00000001); } - result.result_ = result_; + result.deltaIndex_ = deltaIndex_; } else { - result.result_ = resultBuilder_.build(); + result.deltaIndex_ = deltaIndexBuilder_.build(); } onBuilt(); return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.IPPN.DeltaHistoryResponse) { return mergeFrom((Catalyst.Protocol.IPPN.DeltaHistoryResponse)other); @@ -435,43 +389,40 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Catalyst.Protocol.IPPN.DeltaHistoryResponse other) { if (other == Catalyst.Protocol.IPPN.DeltaHistoryResponse.getDefaultInstance()) return this; - if (resultBuilder_ == null) { - if (!other.result_.isEmpty()) { - if (result_.isEmpty()) { - result_ = other.result_; + if (deltaIndexBuilder_ == null) { + if (!other.deltaIndex_.isEmpty()) { + if (deltaIndex_.isEmpty()) { + deltaIndex_ = other.deltaIndex_; bitField0_ = (bitField0_ & ~0x00000001); } else { - ensureResultIsMutable(); - result_.addAll(other.result_); + ensureDeltaIndexIsMutable(); + deltaIndex_.addAll(other.deltaIndex_); } onChanged(); } } else { - if (!other.result_.isEmpty()) { - if (resultBuilder_.isEmpty()) { - resultBuilder_.dispose(); - resultBuilder_ = null; - result_ = other.result_; + if (!other.deltaIndex_.isEmpty()) { + if (deltaIndexBuilder_.isEmpty()) { + deltaIndexBuilder_.dispose(); + deltaIndexBuilder_ = null; + deltaIndex_ = other.deltaIndex_; bitField0_ = (bitField0_ & ~0x00000001); - resultBuilder_ = + deltaIndexBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultFieldBuilder() : null; + getDeltaIndexFieldBuilder() : null; } else { - resultBuilder_.addAllMessages(other.result_); + deltaIndexBuilder_.addAllMessages(other.deltaIndex_); } } } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -491,30 +442,30 @@ public Builder mergeFrom( } private int bitField0_; - private java.util.List result_ = + private java.util.List deltaIndex_ = java.util.Collections.emptyList(); - private void ensureResultIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - result_ = new java.util.ArrayList(result_); + private void ensureDeltaIndexIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + deltaIndex_ = new java.util.ArrayList(deltaIndex_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - Catalyst.Protocol.Deltas.DeltaIndex, Catalyst.Protocol.Deltas.DeltaIndex.Builder, Catalyst.Protocol.Deltas.DeltaIndexOrBuilder> resultBuilder_; + Catalyst.Protocol.Deltas.DeltaIndex, Catalyst.Protocol.Deltas.DeltaIndex.Builder, Catalyst.Protocol.Deltas.DeltaIndexOrBuilder> deltaIndexBuilder_; /** *
      * K given del
      * 
* - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public java.util.List getResultList() { - if (resultBuilder_ == null) { - return java.util.Collections.unmodifiableList(result_); + public java.util.List getDeltaIndexList() { + if (deltaIndexBuilder_ == null) { + return java.util.Collections.unmodifiableList(deltaIndex_); } else { - return resultBuilder_.getMessageList(); + return deltaIndexBuilder_.getMessageList(); } } /** @@ -522,13 +473,13 @@ public java.util.List getResultList() { * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public int getResultCount() { - if (resultBuilder_ == null) { - return result_.size(); + public int getDeltaIndexCount() { + if (deltaIndexBuilder_ == null) { + return deltaIndex_.size(); } else { - return resultBuilder_.getCount(); + return deltaIndexBuilder_.getCount(); } } /** @@ -536,13 +487,13 @@ public int getResultCount() { * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Catalyst.Protocol.Deltas.DeltaIndex getResult(int index) { - if (resultBuilder_ == null) { - return result_.get(index); + public Catalyst.Protocol.Deltas.DeltaIndex getDeltaIndex(int index) { + if (deltaIndexBuilder_ == null) { + return deltaIndex_.get(index); } else { - return resultBuilder_.getMessage(index); + return deltaIndexBuilder_.getMessage(index); } } /** @@ -550,19 +501,19 @@ public Catalyst.Protocol.Deltas.DeltaIndex getResult(int index) { * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Builder setResult( + public Builder setDeltaIndex( int index, Catalyst.Protocol.Deltas.DeltaIndex value) { - if (resultBuilder_ == null) { + if (deltaIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureResultIsMutable(); - result_.set(index, value); + ensureDeltaIndexIsMutable(); + deltaIndex_.set(index, value); onChanged(); } else { - resultBuilder_.setMessage(index, value); + deltaIndexBuilder_.setMessage(index, value); } return this; } @@ -571,16 +522,16 @@ public Builder setResult( * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Builder setResult( + public Builder setDeltaIndex( int index, Catalyst.Protocol.Deltas.DeltaIndex.Builder builderForValue) { - if (resultBuilder_ == null) { - ensureResultIsMutable(); - result_.set(index, builderForValue.build()); + if (deltaIndexBuilder_ == null) { + ensureDeltaIndexIsMutable(); + deltaIndex_.set(index, builderForValue.build()); onChanged(); } else { - resultBuilder_.setMessage(index, builderForValue.build()); + deltaIndexBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -589,18 +540,18 @@ public Builder setResult( * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Builder addResult(Catalyst.Protocol.Deltas.DeltaIndex value) { - if (resultBuilder_ == null) { + public Builder addDeltaIndex(Catalyst.Protocol.Deltas.DeltaIndex value) { + if (deltaIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureResultIsMutable(); - result_.add(value); + ensureDeltaIndexIsMutable(); + deltaIndex_.add(value); onChanged(); } else { - resultBuilder_.addMessage(value); + deltaIndexBuilder_.addMessage(value); } return this; } @@ -609,19 +560,19 @@ public Builder addResult(Catalyst.Protocol.Deltas.DeltaIndex value) { * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Builder addResult( + public Builder addDeltaIndex( int index, Catalyst.Protocol.Deltas.DeltaIndex value) { - if (resultBuilder_ == null) { + if (deltaIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureResultIsMutable(); - result_.add(index, value); + ensureDeltaIndexIsMutable(); + deltaIndex_.add(index, value); onChanged(); } else { - resultBuilder_.addMessage(index, value); + deltaIndexBuilder_.addMessage(index, value); } return this; } @@ -630,16 +581,16 @@ public Builder addResult( * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Builder addResult( + public Builder addDeltaIndex( Catalyst.Protocol.Deltas.DeltaIndex.Builder builderForValue) { - if (resultBuilder_ == null) { - ensureResultIsMutable(); - result_.add(builderForValue.build()); + if (deltaIndexBuilder_ == null) { + ensureDeltaIndexIsMutable(); + deltaIndex_.add(builderForValue.build()); onChanged(); } else { - resultBuilder_.addMessage(builderForValue.build()); + deltaIndexBuilder_.addMessage(builderForValue.build()); } return this; } @@ -648,16 +599,16 @@ public Builder addResult( * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Builder addResult( + public Builder addDeltaIndex( int index, Catalyst.Protocol.Deltas.DeltaIndex.Builder builderForValue) { - if (resultBuilder_ == null) { - ensureResultIsMutable(); - result_.add(index, builderForValue.build()); + if (deltaIndexBuilder_ == null) { + ensureDeltaIndexIsMutable(); + deltaIndex_.add(index, builderForValue.build()); onChanged(); } else { - resultBuilder_.addMessage(index, builderForValue.build()); + deltaIndexBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -666,17 +617,17 @@ public Builder addResult( * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Builder addAllResult( + public Builder addAllDeltaIndex( java.lang.Iterable values) { - if (resultBuilder_ == null) { - ensureResultIsMutable(); + if (deltaIndexBuilder_ == null) { + ensureDeltaIndexIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, result_); + values, deltaIndex_); onChanged(); } else { - resultBuilder_.addAllMessages(values); + deltaIndexBuilder_.addAllMessages(values); } return this; } @@ -685,15 +636,15 @@ public Builder addAllResult( * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Builder clearResult() { - if (resultBuilder_ == null) { - result_ = java.util.Collections.emptyList(); + public Builder clearDeltaIndex() { + if (deltaIndexBuilder_ == null) { + deltaIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { - resultBuilder_.clear(); + deltaIndexBuilder_.clear(); } return this; } @@ -702,15 +653,15 @@ public Builder clearResult() { * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Builder removeResult(int index) { - if (resultBuilder_ == null) { - ensureResultIsMutable(); - result_.remove(index); + public Builder removeDeltaIndex(int index) { + if (deltaIndexBuilder_ == null) { + ensureDeltaIndexIsMutable(); + deltaIndex_.remove(index); onChanged(); } else { - resultBuilder_.remove(index); + deltaIndexBuilder_.remove(index); } return this; } @@ -719,24 +670,24 @@ public Builder removeResult(int index) { * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Catalyst.Protocol.Deltas.DeltaIndex.Builder getResultBuilder( + public Catalyst.Protocol.Deltas.DeltaIndex.Builder getDeltaIndexBuilder( int index) { - return getResultFieldBuilder().getBuilder(index); + return getDeltaIndexFieldBuilder().getBuilder(index); } /** *
      * K given del
      * 
* - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getResultOrBuilder( + public Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getDeltaIndexOrBuilder( int index) { - if (resultBuilder_ == null) { - return result_.get(index); } else { - return resultBuilder_.getMessageOrBuilder(index); + if (deltaIndexBuilder_ == null) { + return deltaIndex_.get(index); } else { + return deltaIndexBuilder_.getMessageOrBuilder(index); } } /** @@ -744,14 +695,14 @@ public Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getResultOrBuilder( * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ public java.util.List - getResultOrBuilderList() { - if (resultBuilder_ != null) { - return resultBuilder_.getMessageOrBuilderList(); + getDeltaIndexOrBuilderList() { + if (deltaIndexBuilder_ != null) { + return deltaIndexBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(result_); + return java.util.Collections.unmodifiableList(deltaIndex_); } } /** @@ -759,10 +710,10 @@ public Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getResultOrBuilder( * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Catalyst.Protocol.Deltas.DeltaIndex.Builder addResultBuilder() { - return getResultFieldBuilder().addBuilder( + public Catalyst.Protocol.Deltas.DeltaIndex.Builder addDeltaIndexBuilder() { + return getDeltaIndexFieldBuilder().addBuilder( Catalyst.Protocol.Deltas.DeltaIndex.getDefaultInstance()); } /** @@ -770,11 +721,11 @@ public Catalyst.Protocol.Deltas.DeltaIndex.Builder addResultBuilder() { * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public Catalyst.Protocol.Deltas.DeltaIndex.Builder addResultBuilder( + public Catalyst.Protocol.Deltas.DeltaIndex.Builder addDeltaIndexBuilder( int index) { - return getResultFieldBuilder().addBuilder( + return getDeltaIndexFieldBuilder().addBuilder( index, Catalyst.Protocol.Deltas.DeltaIndex.getDefaultInstance()); } /** @@ -782,36 +733,34 @@ public Catalyst.Protocol.Deltas.DeltaIndex.Builder addResultBuilder( * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ public java.util.List - getResultBuilderList() { - return getResultFieldBuilder().getBuilderList(); + getDeltaIndexBuilderList() { + return getDeltaIndexFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< Catalyst.Protocol.Deltas.DeltaIndex, Catalyst.Protocol.Deltas.DeltaIndex.Builder, Catalyst.Protocol.Deltas.DeltaIndexOrBuilder> - getResultFieldBuilder() { - if (resultBuilder_ == null) { - resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + getDeltaIndexFieldBuilder() { + if (deltaIndexBuilder_ == null) { + deltaIndexBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< Catalyst.Protocol.Deltas.DeltaIndex, Catalyst.Protocol.Deltas.DeltaIndex.Builder, Catalyst.Protocol.Deltas.DeltaIndexOrBuilder>( - result_, - ((bitField0_ & 0x00000001) != 0), + deltaIndex_, + ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); - result_ = null; + deltaIndex_ = null; } - return resultBuilder_; + return deltaIndexBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -830,12 +779,11 @@ public static Catalyst.Protocol.IPPN.DeltaHistoryResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public DeltaHistoryResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeltaHistoryResponse(input, extensionRegistry); + return new DeltaHistoryResponse(input, extensionRegistry); } }; @@ -848,7 +796,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.IPPN.DeltaHistoryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryResponseOrBuilder.java index 2dc180d..23bb72e 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/IPPN/DeltaHistoryResponseOrBuilder.java @@ -12,42 +12,42 @@ public interface DeltaHistoryResponseOrBuilder extends * K given del * * - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ java.util.List - getResultList(); + getDeltaIndexList(); /** *
    * K given del
    * 
* - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - Catalyst.Protocol.Deltas.DeltaIndex getResult(int index); + Catalyst.Protocol.Deltas.DeltaIndex getDeltaIndex(int index); /** *
    * K given del
    * 
* - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - int getResultCount(); + int getDeltaIndexCount(); /** *
    * K given del
    * 
* - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ java.util.List - getResultOrBuilderList(); + getDeltaIndexOrBuilderList(); /** *
    * K given del
    * 
* - * repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getResultOrBuilder( + Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getDeltaIndexOrBuilder( int index); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/IPPN/IPPN.java b/packages/sdk-java/src/Catalyst/Protocol/IPPN/IPPN.java index cfa6ec1..8093917 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/IPPN/IPPN.java +++ b/packages/sdk-java/src/Catalyst/Protocol/IPPN/IPPN.java @@ -68,19 +68,28 @@ public static void registerAllExtensions( "equest\"F\n\025PeerNeighborsResponse\022-\n\005peers" + "\030\001 \003(\0132\036.Catalyst.Protocol.Peer.PeerId\"\r" + "\n\013PingRequest\"\016\n\014PingResponse\"\030\n\026LatestD" + - "eltaHashRequest\"O\n\027LatestDeltaHashRespon" + - "se\0224\n\006result\030\001 \001(\0132$.Catalyst.Protocol.D" + - "eltas.DeltaIndex\"4\n\023DeltaHistoryRequest\022" + - "\r\n\005range\030\001 \001(\r\022\016\n\006height\030\002 \001(\r\"L\n\024DeltaH" + - "istoryResponse\0224\n\006result\030\001 \003(\0132$.Catalys" + - "t.Protocol.Deltas.DeltaIndexB\002P\001b\006proto3" + "eltaHashRequest\"c\n\027LatestDeltaHashRespon" + + "se\022\016\n\006isSync\030\001 \001(\010\0228\n\ndeltaIndex\030\002 \001(\0132$" + + ".Catalyst.Protocol.Deltas.DeltaIndex\"4\n\023" + + "DeltaHistoryRequest\022\r\n\005range\030\001 \001(\r\022\016\n\006he" + + "ight\030\002 \001(\r\"P\n\024DeltaHistoryResponse\0228\n\nde", + "ltaIndex\030\001 \003(\0132$.Catalyst.Protocol.Delta" + + "s.DeltaIndexB\002P\001b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Catalyst.Protocol.Peer.Peer.getDescriptor(), Catalyst.Protocol.Deltas.Deltas.getDescriptor(), - }); + }, assigner); internal_static_Catalyst_Protocol_IPPN_PeerNeighborsRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Catalyst_Protocol_IPPN_PeerNeighborsRequest_fieldAccessorTable = new @@ -116,7 +125,7 @@ public static void registerAllExtensions( internal_static_Catalyst_Protocol_IPPN_LatestDeltaHashResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Catalyst_Protocol_IPPN_LatestDeltaHashResponse_descriptor, - new java.lang.String[] { "Result", }); + new java.lang.String[] { "IsSync", "DeltaIndex", }); internal_static_Catalyst_Protocol_IPPN_DeltaHistoryRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_Catalyst_Protocol_IPPN_DeltaHistoryRequest_fieldAccessorTable = new @@ -128,7 +137,7 @@ public static void registerAllExtensions( internal_static_Catalyst_Protocol_IPPN_DeltaHistoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Catalyst_Protocol_IPPN_DeltaHistoryResponse_descriptor, - new java.lang.String[] { "Result", }); + new java.lang.String[] { "DeltaIndex", }); Catalyst.Protocol.Peer.Peer.getDescriptor(); Catalyst.Protocol.Deltas.Deltas.getDescriptor(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/IPPN/LatestDeltaHashRequest.java b/packages/sdk-java/src/Catalyst/Protocol/IPPN/LatestDeltaHashRequest.java index 08176f5..0ea8e42 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/IPPN/LatestDeltaHashRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/IPPN/LatestDeltaHashRequest.java @@ -10,7 +10,6 @@ public final class LatestDeltaHashRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) LatestDeltaHashRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use LatestDeltaHashRequest.newBuilder() to construct. private LatestDeltaHashRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -18,28 +17,16 @@ private LatestDeltaHashRequest(com.google.protobuf.GeneratedMessageV3.Builder private LatestDeltaHashRequest() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LatestDeltaHashRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private LatestDeltaHashRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -49,8 +36,7 @@ private LatestDeltaHashRequest( done = true; break; default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; @@ -63,7 +49,6 @@ private LatestDeltaHashRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -72,7 +57,6 @@ private LatestDeltaHashRequest( return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_LatestDeltaHashRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_LatestDeltaHashRequest_fieldAccessorTable @@ -81,7 +65,6 @@ private LatestDeltaHashRequest( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -91,23 +74,20 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -118,8 +98,8 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.IPPN.LatestDeltaHashRequest other = (Catalyst.Protocol.IPPN.LatestDeltaHashRequest) obj; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + return result; } @java.lang.Override @@ -134,17 +114,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.IPPN.LatestDeltaHashRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.IPPN.LatestDeltaHashRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.IPPN.LatestDeltaHashRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -204,7 +173,6 @@ public static Catalyst.Protocol.IPPN.LatestDeltaHashRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -212,7 +180,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.IPPN.LatestDeltaHashRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -236,7 +203,6 @@ public static final class Builder extends return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_LatestDeltaHashRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_LatestDeltaHashRequest_fieldAccessorTable @@ -259,24 +225,20 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_LatestDeltaHashRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.IPPN.LatestDeltaHashRequest getDefaultInstanceForType() { return Catalyst.Protocol.IPPN.LatestDeltaHashRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.IPPN.LatestDeltaHashRequest build() { Catalyst.Protocol.IPPN.LatestDeltaHashRequest result = buildPartial(); if (!result.isInitialized()) { @@ -285,46 +247,38 @@ public Catalyst.Protocol.IPPN.LatestDeltaHashRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.IPPN.LatestDeltaHashRequest buildPartial() { Catalyst.Protocol.IPPN.LatestDeltaHashRequest result = new Catalyst.Protocol.IPPN.LatestDeltaHashRequest(this); onBuilt(); return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.IPPN.LatestDeltaHashRequest) { return mergeFrom((Catalyst.Protocol.IPPN.LatestDeltaHashRequest)other); @@ -336,17 +290,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Catalyst.Protocol.IPPN.LatestDeltaHashRequest other) { if (other == Catalyst.Protocol.IPPN.LatestDeltaHashRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -364,16 +315,14 @@ public Builder mergeFrom( } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -392,12 +341,11 @@ public static Catalyst.Protocol.IPPN.LatestDeltaHashRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public LatestDeltaHashRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new LatestDeltaHashRequest(input, extensionRegistry); + return new LatestDeltaHashRequest(input, extensionRegistry); } }; @@ -410,7 +358,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.IPPN.LatestDeltaHashRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/IPPN/LatestDeltaHashResponse.java b/packages/sdk-java/src/Catalyst/Protocol/IPPN/LatestDeltaHashResponse.java index 2c3bdbf..53c0d9a 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/IPPN/LatestDeltaHashResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/IPPN/LatestDeltaHashResponse.java @@ -10,36 +10,25 @@ public final class LatestDeltaHashResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) LatestDeltaHashResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use LatestDeltaHashResponse.newBuilder() to construct. private LatestDeltaHashResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LatestDeltaHashResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LatestDeltaHashResponse(); + isSync_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private LatestDeltaHashResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,24 +37,28 @@ private LatestDeltaHashResponse( case 0: done = true; break; - case 10: { - Catalyst.Protocol.Deltas.DeltaIndex.Builder subBuilder = null; - if (result_ != null) { - subBuilder = result_.toBuilder(); - } - result_ = input.readMessage(Catalyst.Protocol.Deltas.DeltaIndex.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(result_); - result_ = subBuilder.buildPartial(); + default: { + if (!input.skipField(tag)) { + done = true; } + break; + } + case 8: { + isSync_ = input.readBool(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: { + Catalyst.Protocol.Deltas.DeltaIndex.Builder subBuilder = null; + if (deltaIndex_ != null) { + subBuilder = deltaIndex_.toBuilder(); + } + deltaIndex_ = input.readMessage(Catalyst.Protocol.Deltas.DeltaIndex.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deltaIndex_); + deltaIndex_ = subBuilder.buildPartial(); } + break; } } @@ -76,7 +69,6 @@ private LatestDeltaHashResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -85,7 +77,6 @@ private LatestDeltaHashResponse( return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_LatestDeltaHashResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_LatestDeltaHashResponse_fieldAccessorTable @@ -93,43 +84,49 @@ private LatestDeltaHashResponse( Catalyst.Protocol.IPPN.LatestDeltaHashResponse.class, Catalyst.Protocol.IPPN.LatestDeltaHashResponse.Builder.class); } - public static final int RESULT_FIELD_NUMBER = 1; - private Catalyst.Protocol.Deltas.DeltaIndex result_; + public static final int ISSYNC_FIELD_NUMBER = 1; + private boolean isSync_; + /** + * bool isSync = 1; + */ + public boolean getIsSync() { + return isSync_; + } + + public static final int DELTAINDEX_FIELD_NUMBER = 2; + private Catalyst.Protocol.Deltas.DeltaIndex deltaIndex_; /** *
    * K given del
    * 
* - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - * @return Whether the result field is set. + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public boolean hasResult() { - return result_ != null; + public boolean hasDeltaIndex() { + return deltaIndex_ != null; } /** *
    * K given del
    * 
* - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - * @return The result. + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public Catalyst.Protocol.Deltas.DeltaIndex getResult() { - return result_ == null ? Catalyst.Protocol.Deltas.DeltaIndex.getDefaultInstance() : result_; + public Catalyst.Protocol.Deltas.DeltaIndex getDeltaIndex() { + return deltaIndex_ == null ? Catalyst.Protocol.Deltas.DeltaIndex.getDefaultInstance() : deltaIndex_; } /** *
    * K given del
    * 
* - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getResultOrBuilder() { - return getResult(); + public Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getDeltaIndexOrBuilder() { + return getDeltaIndex(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -139,30 +136,34 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (result_ != null) { - output.writeMessage(1, getResult()); + if (isSync_ != false) { + output.writeBool(1, isSync_); + } + if (deltaIndex_ != null) { + output.writeMessage(2, getDeltaIndex()); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; - if (result_ != null) { + if (isSync_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, isSync_); + } + if (deltaIndex_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResult()); + .computeMessageSize(2, getDeltaIndex()); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -173,13 +174,15 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.IPPN.LatestDeltaHashResponse other = (Catalyst.Protocol.IPPN.LatestDeltaHashResponse) obj; - if (hasResult() != other.hasResult()) return false; - if (hasResult()) { - if (!getResult() - .equals(other.getResult())) return false; + boolean result = true; + result = result && (getIsSync() + == other.getIsSync()); + result = result && (hasDeltaIndex() == other.hasDeltaIndex()); + if (hasDeltaIndex()) { + result = result && getDeltaIndex() + .equals(other.getDeltaIndex()); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + return result; } @java.lang.Override @@ -189,26 +192,18 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasResult()) { - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + getResult().hashCode(); + hash = (37 * hash) + ISSYNC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsSync()); + if (hasDeltaIndex()) { + hash = (37 * hash) + DELTAINDEX_FIELD_NUMBER; + hash = (53 * hash) + getDeltaIndex().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static Catalyst.Protocol.IPPN.LatestDeltaHashResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.IPPN.LatestDeltaHashResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.IPPN.LatestDeltaHashResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -268,7 +263,6 @@ public static Catalyst.Protocol.IPPN.LatestDeltaHashResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -276,7 +270,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.IPPN.LatestDeltaHashResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -300,7 +293,6 @@ public static final class Builder extends return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_LatestDeltaHashResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_LatestDeltaHashResponse_fieldAccessorTable @@ -323,30 +315,28 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); - if (resultBuilder_ == null) { - result_ = null; + isSync_ = false; + + if (deltaIndexBuilder_ == null) { + deltaIndex_ = null; } else { - result_ = null; - resultBuilder_ = null; + deltaIndex_ = null; + deltaIndexBuilder_ = null; } return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_LatestDeltaHashResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.IPPN.LatestDeltaHashResponse getDefaultInstanceForType() { return Catalyst.Protocol.IPPN.LatestDeltaHashResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.IPPN.LatestDeltaHashResponse build() { Catalyst.Protocol.IPPN.LatestDeltaHashResponse result = buildPartial(); if (!result.isInitialized()) { @@ -355,51 +345,44 @@ public Catalyst.Protocol.IPPN.LatestDeltaHashResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.IPPN.LatestDeltaHashResponse buildPartial() { Catalyst.Protocol.IPPN.LatestDeltaHashResponse result = new Catalyst.Protocol.IPPN.LatestDeltaHashResponse(this); - if (resultBuilder_ == null) { - result.result_ = result_; + result.isSync_ = isSync_; + if (deltaIndexBuilder_ == null) { + result.deltaIndex_ = deltaIndex_; } else { - result.result_ = resultBuilder_.build(); + result.deltaIndex_ = deltaIndexBuilder_.build(); } onBuilt(); return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.IPPN.LatestDeltaHashResponse) { return mergeFrom((Catalyst.Protocol.IPPN.LatestDeltaHashResponse)other); @@ -411,20 +394,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Catalyst.Protocol.IPPN.LatestDeltaHashResponse other) { if (other == Catalyst.Protocol.IPPN.LatestDeltaHashResponse.getDefaultInstance()) return this; - if (other.hasResult()) { - mergeResult(other.getResult()); + if (other.getIsSync() != false) { + setIsSync(other.getIsSync()); + } + if (other.hasDeltaIndex()) { + mergeDeltaIndex(other.getDeltaIndex()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -443,33 +426,57 @@ public Builder mergeFrom( return this; } - private Catalyst.Protocol.Deltas.DeltaIndex result_; + private boolean isSync_ ; + /** + * bool isSync = 1; + */ + public boolean getIsSync() { + return isSync_; + } + /** + * bool isSync = 1; + */ + public Builder setIsSync(boolean value) { + + isSync_ = value; + onChanged(); + return this; + } + /** + * bool isSync = 1; + */ + public Builder clearIsSync() { + + isSync_ = false; + onChanged(); + return this; + } + + private Catalyst.Protocol.Deltas.DeltaIndex deltaIndex_ = null; private com.google.protobuf.SingleFieldBuilderV3< - Catalyst.Protocol.Deltas.DeltaIndex, Catalyst.Protocol.Deltas.DeltaIndex.Builder, Catalyst.Protocol.Deltas.DeltaIndexOrBuilder> resultBuilder_; + Catalyst.Protocol.Deltas.DeltaIndex, Catalyst.Protocol.Deltas.DeltaIndex.Builder, Catalyst.Protocol.Deltas.DeltaIndexOrBuilder> deltaIndexBuilder_; /** *
      * K given del
      * 
* - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - * @return Whether the result field is set. + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public boolean hasResult() { - return resultBuilder_ != null || result_ != null; + public boolean hasDeltaIndex() { + return deltaIndexBuilder_ != null || deltaIndex_ != null; } /** *
      * K given del
      * 
* - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - * @return The result. + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public Catalyst.Protocol.Deltas.DeltaIndex getResult() { - if (resultBuilder_ == null) { - return result_ == null ? Catalyst.Protocol.Deltas.DeltaIndex.getDefaultInstance() : result_; + public Catalyst.Protocol.Deltas.DeltaIndex getDeltaIndex() { + if (deltaIndexBuilder_ == null) { + return deltaIndex_ == null ? Catalyst.Protocol.Deltas.DeltaIndex.getDefaultInstance() : deltaIndex_; } else { - return resultBuilder_.getMessage(); + return deltaIndexBuilder_.getMessage(); } } /** @@ -477,17 +484,17 @@ public Catalyst.Protocol.Deltas.DeltaIndex getResult() { * K given del * * - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public Builder setResult(Catalyst.Protocol.Deltas.DeltaIndex value) { - if (resultBuilder_ == null) { + public Builder setDeltaIndex(Catalyst.Protocol.Deltas.DeltaIndex value) { + if (deltaIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - result_ = value; + deltaIndex_ = value; onChanged(); } else { - resultBuilder_.setMessage(value); + deltaIndexBuilder_.setMessage(value); } return this; @@ -497,15 +504,15 @@ public Builder setResult(Catalyst.Protocol.Deltas.DeltaIndex value) { * K given del * * - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public Builder setResult( + public Builder setDeltaIndex( Catalyst.Protocol.Deltas.DeltaIndex.Builder builderForValue) { - if (resultBuilder_ == null) { - result_ = builderForValue.build(); + if (deltaIndexBuilder_ == null) { + deltaIndex_ = builderForValue.build(); onChanged(); } else { - resultBuilder_.setMessage(builderForValue.build()); + deltaIndexBuilder_.setMessage(builderForValue.build()); } return this; @@ -515,19 +522,19 @@ public Builder setResult( * K given del * * - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public Builder mergeResult(Catalyst.Protocol.Deltas.DeltaIndex value) { - if (resultBuilder_ == null) { - if (result_ != null) { - result_ = - Catalyst.Protocol.Deltas.DeltaIndex.newBuilder(result_).mergeFrom(value).buildPartial(); + public Builder mergeDeltaIndex(Catalyst.Protocol.Deltas.DeltaIndex value) { + if (deltaIndexBuilder_ == null) { + if (deltaIndex_ != null) { + deltaIndex_ = + Catalyst.Protocol.Deltas.DeltaIndex.newBuilder(deltaIndex_).mergeFrom(value).buildPartial(); } else { - result_ = value; + deltaIndex_ = value; } onChanged(); } else { - resultBuilder_.mergeFrom(value); + deltaIndexBuilder_.mergeFrom(value); } return this; @@ -537,15 +544,15 @@ public Builder mergeResult(Catalyst.Protocol.Deltas.DeltaIndex value) { * K given del * * - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public Builder clearResult() { - if (resultBuilder_ == null) { - result_ = null; + public Builder clearDeltaIndex() { + if (deltaIndexBuilder_ == null) { + deltaIndex_ = null; onChanged(); } else { - result_ = null; - resultBuilder_ = null; + deltaIndex_ = null; + deltaIndexBuilder_ = null; } return this; @@ -555,26 +562,26 @@ public Builder clearResult() { * K given del * * - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public Catalyst.Protocol.Deltas.DeltaIndex.Builder getResultBuilder() { + public Catalyst.Protocol.Deltas.DeltaIndex.Builder getDeltaIndexBuilder() { onChanged(); - return getResultFieldBuilder().getBuilder(); + return getDeltaIndexFieldBuilder().getBuilder(); } /** *
      * K given del
      * 
* - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getResultOrBuilder() { - if (resultBuilder_ != null) { - return resultBuilder_.getMessageOrBuilder(); + public Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getDeltaIndexOrBuilder() { + if (deltaIndexBuilder_ != null) { + return deltaIndexBuilder_.getMessageOrBuilder(); } else { - return result_ == null ? - Catalyst.Protocol.Deltas.DeltaIndex.getDefaultInstance() : result_; + return deltaIndex_ == null ? + Catalyst.Protocol.Deltas.DeltaIndex.getDefaultInstance() : deltaIndex_; } } /** @@ -582,31 +589,29 @@ public Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getResultOrBuilder() { * K given del * * - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Deltas.DeltaIndex, Catalyst.Protocol.Deltas.DeltaIndex.Builder, Catalyst.Protocol.Deltas.DeltaIndexOrBuilder> - getResultFieldBuilder() { - if (resultBuilder_ == null) { - resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getDeltaIndexFieldBuilder() { + if (deltaIndexBuilder_ == null) { + deltaIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Deltas.DeltaIndex, Catalyst.Protocol.Deltas.DeltaIndex.Builder, Catalyst.Protocol.Deltas.DeltaIndexOrBuilder>( - getResult(), + getDeltaIndex(), getParentForChildren(), isClean()); - result_ = null; + deltaIndex_ = null; } - return resultBuilder_; + return deltaIndexBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -625,12 +630,11 @@ public static Catalyst.Protocol.IPPN.LatestDeltaHashResponse getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public LatestDeltaHashResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new LatestDeltaHashResponse(input, extensionRegistry); + return new LatestDeltaHashResponse(input, extensionRegistry); } }; @@ -643,7 +647,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.IPPN.LatestDeltaHashResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/IPPN/LatestDeltaHashResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/IPPN/LatestDeltaHashResponseOrBuilder.java index 4aa0f07..d54abc7 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/IPPN/LatestDeltaHashResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/IPPN/LatestDeltaHashResponseOrBuilder.java @@ -7,30 +7,33 @@ public interface LatestDeltaHashResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) com.google.protobuf.MessageOrBuilder { + /** + * bool isSync = 1; + */ + boolean getIsSync(); + /** *
    * K given del
    * 
* - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - * @return Whether the result field is set. + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - boolean hasResult(); + boolean hasDeltaIndex(); /** *
    * K given del
    * 
* - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - * @return The result. + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - Catalyst.Protocol.Deltas.DeltaIndex getResult(); + Catalyst.Protocol.Deltas.DeltaIndex getDeltaIndex(); /** *
    * K given del
    * 
* - * .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getResultOrBuilder(); + Catalyst.Protocol.Deltas.DeltaIndexOrBuilder getDeltaIndexOrBuilder(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/IPPN/PeerNeighborsRequest.java b/packages/sdk-java/src/Catalyst/Protocol/IPPN/PeerNeighborsRequest.java index 8638049..634af85 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/IPPN/PeerNeighborsRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/IPPN/PeerNeighborsRequest.java @@ -10,7 +10,6 @@ public final class PeerNeighborsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.IPPN.PeerNeighborsRequest) PeerNeighborsRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use PeerNeighborsRequest.newBuilder() to construct. private PeerNeighborsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -18,28 +17,16 @@ private PeerNeighborsRequest(com.google.protobuf.GeneratedMessageV3.Builder b private PeerNeighborsRequest() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PeerNeighborsRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PeerNeighborsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -49,8 +36,7 @@ private PeerNeighborsRequest( done = true; break; default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; @@ -63,7 +49,6 @@ private PeerNeighborsRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -72,7 +57,6 @@ private PeerNeighborsRequest( return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsRequest_fieldAccessorTable @@ -81,7 +65,6 @@ private PeerNeighborsRequest( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -91,23 +74,20 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -118,8 +98,8 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.IPPN.PeerNeighborsRequest other = (Catalyst.Protocol.IPPN.PeerNeighborsRequest) obj; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + return result; } @java.lang.Override @@ -134,17 +114,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.IPPN.PeerNeighborsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.IPPN.PeerNeighborsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.IPPN.PeerNeighborsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -204,7 +173,6 @@ public static Catalyst.Protocol.IPPN.PeerNeighborsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -212,7 +180,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.IPPN.PeerNeighborsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -236,7 +203,6 @@ public static final class Builder extends return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsRequest_fieldAccessorTable @@ -259,24 +225,20 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.IPPN.PeerNeighborsRequest getDefaultInstanceForType() { return Catalyst.Protocol.IPPN.PeerNeighborsRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.IPPN.PeerNeighborsRequest build() { Catalyst.Protocol.IPPN.PeerNeighborsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -285,46 +247,38 @@ public Catalyst.Protocol.IPPN.PeerNeighborsRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.IPPN.PeerNeighborsRequest buildPartial() { Catalyst.Protocol.IPPN.PeerNeighborsRequest result = new Catalyst.Protocol.IPPN.PeerNeighborsRequest(this); onBuilt(); return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.IPPN.PeerNeighborsRequest) { return mergeFrom((Catalyst.Protocol.IPPN.PeerNeighborsRequest)other); @@ -336,17 +290,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Catalyst.Protocol.IPPN.PeerNeighborsRequest other) { if (other == Catalyst.Protocol.IPPN.PeerNeighborsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -364,16 +315,14 @@ public Builder mergeFrom( } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -392,12 +341,11 @@ public static Catalyst.Protocol.IPPN.PeerNeighborsRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PeerNeighborsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PeerNeighborsRequest(input, extensionRegistry); + return new PeerNeighborsRequest(input, extensionRegistry); } }; @@ -410,7 +358,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.IPPN.PeerNeighborsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/IPPN/PeerNeighborsResponse.java b/packages/sdk-java/src/Catalyst/Protocol/IPPN/PeerNeighborsResponse.java index 88a3add..0829a49 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/IPPN/PeerNeighborsResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/IPPN/PeerNeighborsResponse.java @@ -10,7 +10,6 @@ public final class PeerNeighborsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.IPPN.PeerNeighborsResponse) PeerNeighborsResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use PeerNeighborsResponse.newBuilder() to construct. private PeerNeighborsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,29 +18,17 @@ private PeerNeighborsResponse() { peers_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PeerNeighborsResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PeerNeighborsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -50,8 +37,14 @@ private PeerNeighborsResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { peers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -59,13 +52,6 @@ private PeerNeighborsResponse( input.readMessage(Catalyst.Protocol.Peer.PeerId.parser(), extensionRegistry)); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -74,10 +60,9 @@ private PeerNeighborsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { peers_ = java.util.Collections.unmodifiableList(peers_); } - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -86,7 +71,6 @@ private PeerNeighborsResponse( return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsResponse_fieldAccessorTable @@ -150,7 +134,6 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getPeersOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -160,16 +143,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < peers_.size(); i++) { output.writeMessage(1, peers_.get(i)); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -179,11 +159,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, peers_.get(i)); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -194,10 +174,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.IPPN.PeerNeighborsResponse other = (Catalyst.Protocol.IPPN.PeerNeighborsResponse) obj; - if (!getPeersList() - .equals(other.getPeersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getPeersList() + .equals(other.getPeersList()); + return result; } @java.lang.Override @@ -216,17 +196,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -286,7 +255,6 @@ public static Catalyst.Protocol.IPPN.PeerNeighborsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -294,7 +262,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.IPPN.PeerNeighborsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -318,7 +285,6 @@ public static final class Builder extends return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsResponse_fieldAccessorTable @@ -342,7 +308,6 @@ private void maybeForceBuilderInitialization() { getPeersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (peersBuilder_ == null) { @@ -354,18 +319,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PeerNeighborsResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.IPPN.PeerNeighborsResponse getDefaultInstanceForType() { return Catalyst.Protocol.IPPN.PeerNeighborsResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.IPPN.PeerNeighborsResponse build() { Catalyst.Protocol.IPPN.PeerNeighborsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -374,12 +336,11 @@ public Catalyst.Protocol.IPPN.PeerNeighborsResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.IPPN.PeerNeighborsResponse buildPartial() { Catalyst.Protocol.IPPN.PeerNeighborsResponse result = new Catalyst.Protocol.IPPN.PeerNeighborsResponse(this); int from_bitField0_ = bitField0_; if (peersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { peers_ = java.util.Collections.unmodifiableList(peers_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -391,39 +352,32 @@ public Catalyst.Protocol.IPPN.PeerNeighborsResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.IPPN.PeerNeighborsResponse) { return mergeFrom((Catalyst.Protocol.IPPN.PeerNeighborsResponse)other); @@ -461,17 +415,14 @@ public Builder mergeFrom(Catalyst.Protocol.IPPN.PeerNeighborsResponse other) { } } } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -494,7 +445,7 @@ public Builder mergeFrom( private java.util.List peers_ = java.util.Collections.emptyList(); private void ensurePeersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { peers_ = new java.util.ArrayList(peers_); bitField0_ |= 0x00000001; } @@ -795,23 +746,21 @@ public Catalyst.Protocol.Peer.PeerId.Builder addPeersBuilder( peersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< Catalyst.Protocol.Peer.PeerId, Catalyst.Protocol.Peer.PeerId.Builder, Catalyst.Protocol.Peer.PeerIdOrBuilder>( peers_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); peers_ = null; } return peersBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -830,12 +779,11 @@ public static Catalyst.Protocol.IPPN.PeerNeighborsResponse getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PeerNeighborsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PeerNeighborsResponse(input, extensionRegistry); + return new PeerNeighborsResponse(input, extensionRegistry); } }; @@ -848,7 +796,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.IPPN.PeerNeighborsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/IPPN/PingRequest.java b/packages/sdk-java/src/Catalyst/Protocol/IPPN/PingRequest.java index 26a2699..16cac4d 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/IPPN/PingRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/IPPN/PingRequest.java @@ -10,7 +10,6 @@ public final class PingRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.IPPN.PingRequest) PingRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use PingRequest.newBuilder() to construct. private PingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -18,28 +17,16 @@ private PingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { private PingRequest() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PingRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -49,8 +36,7 @@ private PingRequest( done = true; break; default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; @@ -63,7 +49,6 @@ private PingRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -72,7 +57,6 @@ private PingRequest( return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PingRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PingRequest_fieldAccessorTable @@ -81,7 +65,6 @@ private PingRequest( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -91,23 +74,20 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -118,8 +98,8 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.IPPN.PingRequest other = (Catalyst.Protocol.IPPN.PingRequest) obj; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + return result; } @java.lang.Override @@ -134,17 +114,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.IPPN.PingRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.IPPN.PingRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.IPPN.PingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -204,7 +173,6 @@ public static Catalyst.Protocol.IPPN.PingRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -212,7 +180,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.IPPN.PingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -236,7 +203,6 @@ public static final class Builder extends return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PingRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PingRequest_fieldAccessorTable @@ -259,24 +225,20 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PingRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.IPPN.PingRequest getDefaultInstanceForType() { return Catalyst.Protocol.IPPN.PingRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.IPPN.PingRequest build() { Catalyst.Protocol.IPPN.PingRequest result = buildPartial(); if (!result.isInitialized()) { @@ -285,46 +247,38 @@ public Catalyst.Protocol.IPPN.PingRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.IPPN.PingRequest buildPartial() { Catalyst.Protocol.IPPN.PingRequest result = new Catalyst.Protocol.IPPN.PingRequest(this); onBuilt(); return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.IPPN.PingRequest) { return mergeFrom((Catalyst.Protocol.IPPN.PingRequest)other); @@ -336,17 +290,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Catalyst.Protocol.IPPN.PingRequest other) { if (other == Catalyst.Protocol.IPPN.PingRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -364,16 +315,14 @@ public Builder mergeFrom( } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -392,12 +341,11 @@ public static Catalyst.Protocol.IPPN.PingRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PingRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PingRequest(input, extensionRegistry); + return new PingRequest(input, extensionRegistry); } }; @@ -410,7 +358,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.IPPN.PingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/IPPN/PingResponse.java b/packages/sdk-java/src/Catalyst/Protocol/IPPN/PingResponse.java index 4cdf5e5..68e831b 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/IPPN/PingResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/IPPN/PingResponse.java @@ -10,7 +10,6 @@ public final class PingResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.IPPN.PingResponse) PingResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use PingResponse.newBuilder() to construct. private PingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -18,28 +17,16 @@ private PingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) private PingResponse() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PingResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PingResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -49,8 +36,7 @@ private PingResponse( done = true; break; default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; @@ -63,7 +49,6 @@ private PingResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -72,7 +57,6 @@ private PingResponse( return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PingResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PingResponse_fieldAccessorTable @@ -81,7 +65,6 @@ private PingResponse( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -91,23 +74,20 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -118,8 +98,8 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.IPPN.PingResponse other = (Catalyst.Protocol.IPPN.PingResponse) obj; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + return result; } @java.lang.Override @@ -134,17 +114,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.IPPN.PingResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.IPPN.PingResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.IPPN.PingResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -204,7 +173,6 @@ public static Catalyst.Protocol.IPPN.PingResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -212,7 +180,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.IPPN.PingResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -236,7 +203,6 @@ public static final class Builder extends return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PingResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PingResponse_fieldAccessorTable @@ -259,24 +225,20 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.IPPN.IPPN.internal_static_Catalyst_Protocol_IPPN_PingResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.IPPN.PingResponse getDefaultInstanceForType() { return Catalyst.Protocol.IPPN.PingResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.IPPN.PingResponse build() { Catalyst.Protocol.IPPN.PingResponse result = buildPartial(); if (!result.isInitialized()) { @@ -285,46 +247,38 @@ public Catalyst.Protocol.IPPN.PingResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.IPPN.PingResponse buildPartial() { Catalyst.Protocol.IPPN.PingResponse result = new Catalyst.Protocol.IPPN.PingResponse(this); onBuilt(); return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.IPPN.PingResponse) { return mergeFrom((Catalyst.Protocol.IPPN.PingResponse)other); @@ -336,17 +290,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Catalyst.Protocol.IPPN.PingResponse other) { if (other == Catalyst.Protocol.IPPN.PingResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -364,16 +315,14 @@ public Builder mergeFrom( } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -392,12 +341,11 @@ public static Catalyst.Protocol.IPPN.PingResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PingResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PingResponse(input, extensionRegistry); + return new PingResponse(input, extensionRegistry); } }; @@ -410,7 +358,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.IPPN.PingResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Network/Network.java b/packages/sdk-java/src/Catalyst/Protocol/Network/Network.java index 13615d4..c51cef2 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Network/Network.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Network/Network.java @@ -28,10 +28,18 @@ public static void registerAllExtensions( "N\020\000\022\013\n\007MAINNET\020\001\022\n\n\006DEVNET\020\002\022\013\n\007TESTNET\020" + "\003B\002P\001b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - }); + }, assigner); } // @@protoc_insertion_point(outer_class_scope) diff --git a/packages/sdk-java/src/Catalyst/Protocol/Network/NetworkType.java b/packages/sdk-java/src/Catalyst/Protocol/Network/NetworkType.java index 208aa16..4ebe598 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Network/NetworkType.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Network/NetworkType.java @@ -86,8 +86,6 @@ public final int getNumber() { } /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -95,10 +93,6 @@ public static NetworkType valueOf(int value) { return forNumber(value); } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ public static NetworkType forNumber(int value) { switch (value) { case 0: return NETWORK_TYPE_UNKNOWN; diff --git a/packages/sdk-java/src/Catalyst/Protocol/Peer/Peer.java b/packages/sdk-java/src/Catalyst/Protocol/Peer/Peer.java index 3923245..8b04dc2 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Peer/Peer.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Peer/Peer.java @@ -42,17 +42,25 @@ public static void registerAllExtensions( "\026\n\016is_blacklisted\030\003 \001(\010\022\026\n\016is_unreachabl" + "e\030\004 \001(\010\022/\n\014inactive_for\030\005 \001(\0132\031.google.p" + "rotobuf.Duration\022-\n\tlast_seen\030\006 \001(\0132\032.go" + - "ogle.protobuf.Timestamp\022,\n\010modified\030\007 \001(" + + "ogle.protobuf.Timestamp\022,\n\010modified\030\007 \001(", "\0132\032.google.protobuf.Timestamp\022+\n\007created" + "\030\010 \001(\0132\032.google.protobuf.TimestampB\002P\001b\006" + "proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), - }); + }, assigner); internal_static_Catalyst_Protocol_Peer_PeerId_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Catalyst_Protocol_Peer_PeerId_fieldAccessorTable = new diff --git a/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerId.java b/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerId.java index d06a518..c467b8a 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerId.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerId.java @@ -16,38 +16,27 @@ public final class PeerId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Peer.PeerId) PeerIdOrBuilder { -private static final long serialVersionUID = 0L; // Use PeerId.newBuilder() to construct. private PeerId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeerId() { ip_ = com.google.protobuf.ByteString.EMPTY; + port_ = 0; publicKey_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PeerId(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PeerId( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -56,6 +45,12 @@ private PeerId( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { ip_ = input.readBytes(); @@ -71,13 +66,6 @@ private PeerId( publicKey_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,7 +74,6 @@ private PeerId( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -95,7 +82,6 @@ private PeerId( return Catalyst.Protocol.Peer.Peer.internal_static_Catalyst_Protocol_Peer_PeerId_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Peer.Peer.internal_static_Catalyst_Protocol_Peer_PeerId_fieldAccessorTable @@ -111,7 +97,6 @@ private PeerId( * * * bytes ip = 1; - * @return The ip. */ public com.google.protobuf.ByteString getIp() { return ip_; @@ -125,7 +110,6 @@ public com.google.protobuf.ByteString getIp() { * * * uint32 port = 2; - * @return The port. */ public int getPort() { return port_; @@ -139,14 +123,12 @@ public int getPort() { * * * bytes public_key = 3; - * @return The publicKey. */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -156,7 +138,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!ip_.isEmpty()) { @@ -168,10 +149,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!publicKey_.isEmpty()) { output.writeBytes(3, publicKey_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -189,11 +168,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, publicKey_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -204,14 +183,14 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Peer.PeerId other = (Catalyst.Protocol.Peer.PeerId) obj; - if (!getIp() - .equals(other.getIp())) return false; - if (getPort() - != other.getPort()) return false; - if (!getPublicKey() - .equals(other.getPublicKey())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getIp() + .equals(other.getIp()); + result = result && (getPort() + == other.getPort()); + result = result && getPublicKey() + .equals(other.getPublicKey()); + return result; } @java.lang.Override @@ -232,17 +211,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Peer.PeerId parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Peer.PeerId parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Peer.PeerId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -302,7 +270,6 @@ public static Catalyst.Protocol.Peer.PeerId parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -310,7 +277,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Peer.PeerId prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -340,7 +306,6 @@ public static final class Builder extends return Catalyst.Protocol.Peer.Peer.internal_static_Catalyst_Protocol_Peer_PeerId_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Peer.Peer.internal_static_Catalyst_Protocol_Peer_PeerId_fieldAccessorTable @@ -363,7 +328,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); ip_ = com.google.protobuf.ByteString.EMPTY; @@ -375,18 +339,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Peer.Peer.internal_static_Catalyst_Protocol_Peer_PeerId_descriptor; } - @java.lang.Override public Catalyst.Protocol.Peer.PeerId getDefaultInstanceForType() { return Catalyst.Protocol.Peer.PeerId.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Peer.PeerId build() { Catalyst.Protocol.Peer.PeerId result = buildPartial(); if (!result.isInitialized()) { @@ -395,7 +356,6 @@ public Catalyst.Protocol.Peer.PeerId build() { return result; } - @java.lang.Override public Catalyst.Protocol.Peer.PeerId buildPartial() { Catalyst.Protocol.Peer.PeerId result = new Catalyst.Protocol.Peer.PeerId(this); result.ip_ = ip_; @@ -405,39 +365,32 @@ public Catalyst.Protocol.Peer.PeerId buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Peer.PeerId) { return mergeFrom((Catalyst.Protocol.Peer.PeerId)other); @@ -458,17 +411,14 @@ public Builder mergeFrom(Catalyst.Protocol.Peer.PeerId other) { if (other.getPublicKey() != com.google.protobuf.ByteString.EMPTY) { setPublicKey(other.getPublicKey()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -494,7 +444,6 @@ public Builder mergeFrom( * * * bytes ip = 1; - * @return The ip. */ public com.google.protobuf.ByteString getIp() { return ip_; @@ -505,8 +454,6 @@ public com.google.protobuf.ByteString getIp() { * * * bytes ip = 1; - * @param value The ip to set. - * @return This builder for chaining. */ public Builder setIp(com.google.protobuf.ByteString value) { if (value == null) { @@ -523,7 +470,6 @@ public Builder setIp(com.google.protobuf.ByteString value) { * * * bytes ip = 1; - * @return This builder for chaining. */ public Builder clearIp() { @@ -539,7 +485,6 @@ public Builder clearIp() { * * * uint32 port = 2; - * @return The port. */ public int getPort() { return port_; @@ -550,8 +495,6 @@ public int getPort() { * * * uint32 port = 2; - * @param value The port to set. - * @return This builder for chaining. */ public Builder setPort(int value) { @@ -565,7 +508,6 @@ public Builder setPort(int value) { * * * uint32 port = 2; - * @return This builder for chaining. */ public Builder clearPort() { @@ -581,7 +523,6 @@ public Builder clearPort() { * * * bytes public_key = 3; - * @return The publicKey. */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; @@ -592,8 +533,6 @@ public com.google.protobuf.ByteString getPublicKey() { * * * bytes public_key = 3; - * @param value The publicKey to set. - * @return This builder for chaining. */ public Builder setPublicKey(com.google.protobuf.ByteString value) { if (value == null) { @@ -610,7 +549,6 @@ public Builder setPublicKey(com.google.protobuf.ByteString value) { * * * bytes public_key = 3; - * @return This builder for chaining. */ public Builder clearPublicKey() { @@ -618,16 +556,14 @@ public Builder clearPublicKey() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -646,12 +582,11 @@ public static Catalyst.Protocol.Peer.PeerId getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PeerId parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PeerId(input, extensionRegistry); + return new PeerId(input, extensionRegistry); } }; @@ -664,7 +599,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Peer.PeerId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerIdOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerIdOrBuilder.java index 3a11e1c..fcee870 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerIdOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerIdOrBuilder.java @@ -13,7 +13,6 @@ public interface PeerIdOrBuilder extends * * * bytes ip = 1; - * @return The ip. */ com.google.protobuf.ByteString getIp(); @@ -23,7 +22,6 @@ public interface PeerIdOrBuilder extends * * * uint32 port = 2; - * @return The port. */ int getPort(); @@ -33,7 +31,6 @@ public interface PeerIdOrBuilder extends * * * bytes public_key = 3; - * @return The publicKey. */ com.google.protobuf.ByteString getPublicKey(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerInfo.java b/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerInfo.java index c9602a5..4e7d996 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerInfo.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerInfo.java @@ -10,36 +10,27 @@ public final class PeerInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Peer.PeerInfo) PeerInfoOrBuilder { -private static final long serialVersionUID = 0L; // Use PeerInfo.newBuilder() to construct. private PeerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PeerInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PeerInfo(); + reputation_ = 0; + isBlacklisted_ = false; + isUnreachable_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PeerInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,6 +39,12 @@ private PeerInfo( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { Catalyst.Protocol.Peer.PeerId.Builder subBuilder = null; if (peerId_ != null) { @@ -128,13 +125,6 @@ private PeerInfo( break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -143,7 +133,6 @@ private PeerInfo( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -152,7 +141,6 @@ private PeerInfo( return Catalyst.Protocol.Peer.Peer.internal_static_Catalyst_Protocol_Peer_PeerInfo_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Peer.Peer.internal_static_Catalyst_Protocol_Peer_PeerInfo_fieldAccessorTable @@ -168,7 +156,6 @@ private PeerInfo( * * * .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return Whether the peerId field is set. */ public boolean hasPeerId() { return peerId_ != null; @@ -179,7 +166,6 @@ public boolean hasPeerId() { * * * .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return The peerId. */ public Catalyst.Protocol.Peer.PeerId getPeerId() { return peerId_ == null ? Catalyst.Protocol.Peer.PeerId.getDefaultInstance() : peerId_; @@ -203,7 +189,6 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getPeerIdOrBuilder() { * * * sint32 reputation = 2; - * @return The reputation. */ public int getReputation() { return reputation_; @@ -217,7 +202,6 @@ public int getReputation() { * * * bool is_blacklisted = 3; - * @return The isBlacklisted. */ public boolean getIsBlacklisted() { return isBlacklisted_; @@ -231,7 +215,6 @@ public boolean getIsBlacklisted() { * * * bool is_unreachable = 4; - * @return The isUnreachable. */ public boolean getIsUnreachable() { return isUnreachable_; @@ -245,7 +228,6 @@ public boolean getIsUnreachable() { * * * .google.protobuf.Duration inactive_for = 5; - * @return Whether the inactiveFor field is set. */ public boolean hasInactiveFor() { return inactiveFor_ != null; @@ -256,7 +238,6 @@ public boolean hasInactiveFor() { * * * .google.protobuf.Duration inactive_for = 5; - * @return The inactiveFor. */ public com.google.protobuf.Duration getInactiveFor() { return inactiveFor_ == null ? com.google.protobuf.Duration.getDefaultInstance() : inactiveFor_; @@ -280,7 +261,6 @@ public com.google.protobuf.DurationOrBuilder getInactiveForOrBuilder() { * * * .google.protobuf.Timestamp last_seen = 6; - * @return Whether the lastSeen field is set. */ public boolean hasLastSeen() { return lastSeen_ != null; @@ -291,7 +271,6 @@ public boolean hasLastSeen() { * * * .google.protobuf.Timestamp last_seen = 6; - * @return The lastSeen. */ public com.google.protobuf.Timestamp getLastSeen() { return lastSeen_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSeen_; @@ -315,7 +294,6 @@ public com.google.protobuf.TimestampOrBuilder getLastSeenOrBuilder() { * * * .google.protobuf.Timestamp modified = 7; - * @return Whether the modified field is set. */ public boolean hasModified() { return modified_ != null; @@ -326,7 +304,6 @@ public boolean hasModified() { * * * .google.protobuf.Timestamp modified = 7; - * @return The modified. */ public com.google.protobuf.Timestamp getModified() { return modified_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modified_; @@ -350,7 +327,6 @@ public com.google.protobuf.TimestampOrBuilder getModifiedOrBuilder() { * * * .google.protobuf.Timestamp created = 8; - * @return Whether the created field is set. */ public boolean hasCreated() { return created_ != null; @@ -361,7 +337,6 @@ public boolean hasCreated() { * * * .google.protobuf.Timestamp created = 8; - * @return The created. */ public com.google.protobuf.Timestamp getCreated() { return created_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : created_; @@ -378,7 +353,6 @@ public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -388,7 +362,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (peerId_ != null) { @@ -415,10 +388,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (created_ != null) { output.writeMessage(8, getCreated()); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -456,11 +427,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCreated()); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -471,39 +442,39 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Peer.PeerInfo other = (Catalyst.Protocol.Peer.PeerInfo) obj; - if (hasPeerId() != other.hasPeerId()) return false; + boolean result = true; + result = result && (hasPeerId() == other.hasPeerId()); if (hasPeerId()) { - if (!getPeerId() - .equals(other.getPeerId())) return false; - } - if (getReputation() - != other.getReputation()) return false; - if (getIsBlacklisted() - != other.getIsBlacklisted()) return false; - if (getIsUnreachable() - != other.getIsUnreachable()) return false; - if (hasInactiveFor() != other.hasInactiveFor()) return false; + result = result && getPeerId() + .equals(other.getPeerId()); + } + result = result && (getReputation() + == other.getReputation()); + result = result && (getIsBlacklisted() + == other.getIsBlacklisted()); + result = result && (getIsUnreachable() + == other.getIsUnreachable()); + result = result && (hasInactiveFor() == other.hasInactiveFor()); if (hasInactiveFor()) { - if (!getInactiveFor() - .equals(other.getInactiveFor())) return false; + result = result && getInactiveFor() + .equals(other.getInactiveFor()); } - if (hasLastSeen() != other.hasLastSeen()) return false; + result = result && (hasLastSeen() == other.hasLastSeen()); if (hasLastSeen()) { - if (!getLastSeen() - .equals(other.getLastSeen())) return false; + result = result && getLastSeen() + .equals(other.getLastSeen()); } - if (hasModified() != other.hasModified()) return false; + result = result && (hasModified() == other.hasModified()); if (hasModified()) { - if (!getModified() - .equals(other.getModified())) return false; + result = result && getModified() + .equals(other.getModified()); } - if (hasCreated() != other.hasCreated()) return false; + result = result && (hasCreated() == other.hasCreated()); if (hasCreated()) { - if (!getCreated() - .equals(other.getCreated())) return false; + result = result && getCreated() + .equals(other.getCreated()); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + return result; } @java.lang.Override @@ -546,17 +517,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Peer.PeerInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Peer.PeerInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Peer.PeerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -616,7 +576,6 @@ public static Catalyst.Protocol.Peer.PeerInfo parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -624,7 +583,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Peer.PeerInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -648,7 +606,6 @@ public static final class Builder extends return Catalyst.Protocol.Peer.Peer.internal_static_Catalyst_Protocol_Peer_PeerInfo_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Peer.Peer.internal_static_Catalyst_Protocol_Peer_PeerInfo_fieldAccessorTable @@ -671,7 +628,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (peerIdBuilder_ == null) { @@ -713,18 +669,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Peer.Peer.internal_static_Catalyst_Protocol_Peer_PeerInfo_descriptor; } - @java.lang.Override public Catalyst.Protocol.Peer.PeerInfo getDefaultInstanceForType() { return Catalyst.Protocol.Peer.PeerInfo.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Peer.PeerInfo build() { Catalyst.Protocol.Peer.PeerInfo result = buildPartial(); if (!result.isInitialized()) { @@ -733,7 +686,6 @@ public Catalyst.Protocol.Peer.PeerInfo build() { return result; } - @java.lang.Override public Catalyst.Protocol.Peer.PeerInfo buildPartial() { Catalyst.Protocol.Peer.PeerInfo result = new Catalyst.Protocol.Peer.PeerInfo(this); if (peerIdBuilder_ == null) { @@ -768,39 +720,32 @@ public Catalyst.Protocol.Peer.PeerInfo buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Peer.PeerInfo) { return mergeFrom((Catalyst.Protocol.Peer.PeerInfo)other); @@ -836,17 +781,14 @@ public Builder mergeFrom(Catalyst.Protocol.Peer.PeerInfo other) { if (other.hasCreated()) { mergeCreated(other.getCreated()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -865,7 +807,7 @@ public Builder mergeFrom( return this; } - private Catalyst.Protocol.Peer.PeerId peerId_; + private Catalyst.Protocol.Peer.PeerId peerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Peer.PeerId, Catalyst.Protocol.Peer.PeerId.Builder, Catalyst.Protocol.Peer.PeerIdOrBuilder> peerIdBuilder_; /** @@ -874,7 +816,6 @@ public Builder mergeFrom( * * * .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return Whether the peerId field is set. */ public boolean hasPeerId() { return peerIdBuilder_ != null || peerId_ != null; @@ -885,7 +826,6 @@ public boolean hasPeerId() { * * * .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return The peerId. */ public Catalyst.Protocol.Peer.PeerId getPeerId() { if (peerIdBuilder_ == null) { @@ -1027,7 +967,6 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getPeerIdOrBuilder() { * * * sint32 reputation = 2; - * @return The reputation. */ public int getReputation() { return reputation_; @@ -1038,8 +977,6 @@ public int getReputation() { * * * sint32 reputation = 2; - * @param value The reputation to set. - * @return This builder for chaining. */ public Builder setReputation(int value) { @@ -1053,7 +990,6 @@ public Builder setReputation(int value) { * * * sint32 reputation = 2; - * @return This builder for chaining. */ public Builder clearReputation() { @@ -1069,7 +1005,6 @@ public Builder clearReputation() { * * * bool is_blacklisted = 3; - * @return The isBlacklisted. */ public boolean getIsBlacklisted() { return isBlacklisted_; @@ -1080,8 +1015,6 @@ public boolean getIsBlacklisted() { * * * bool is_blacklisted = 3; - * @param value The isBlacklisted to set. - * @return This builder for chaining. */ public Builder setIsBlacklisted(boolean value) { @@ -1095,7 +1028,6 @@ public Builder setIsBlacklisted(boolean value) { * * * bool is_blacklisted = 3; - * @return This builder for chaining. */ public Builder clearIsBlacklisted() { @@ -1111,7 +1043,6 @@ public Builder clearIsBlacklisted() { * * * bool is_unreachable = 4; - * @return The isUnreachable. */ public boolean getIsUnreachable() { return isUnreachable_; @@ -1122,8 +1053,6 @@ public boolean getIsUnreachable() { * * * bool is_unreachable = 4; - * @param value The isUnreachable to set. - * @return This builder for chaining. */ public Builder setIsUnreachable(boolean value) { @@ -1137,7 +1066,6 @@ public Builder setIsUnreachable(boolean value) { * * * bool is_unreachable = 4; - * @return This builder for chaining. */ public Builder clearIsUnreachable() { @@ -1146,7 +1074,7 @@ public Builder clearIsUnreachable() { return this; } - private com.google.protobuf.Duration inactiveFor_; + private com.google.protobuf.Duration inactiveFor_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> inactiveForBuilder_; /** @@ -1155,7 +1083,6 @@ public Builder clearIsUnreachable() { * * * .google.protobuf.Duration inactive_for = 5; - * @return Whether the inactiveFor field is set. */ public boolean hasInactiveFor() { return inactiveForBuilder_ != null || inactiveFor_ != null; @@ -1166,7 +1093,6 @@ public boolean hasInactiveFor() { * * * .google.protobuf.Duration inactive_for = 5; - * @return The inactiveFor. */ public com.google.protobuf.Duration getInactiveFor() { if (inactiveForBuilder_ == null) { @@ -1301,7 +1227,7 @@ public com.google.protobuf.DurationOrBuilder getInactiveForOrBuilder() { return inactiveForBuilder_; } - private com.google.protobuf.Timestamp lastSeen_; + private com.google.protobuf.Timestamp lastSeen_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastSeenBuilder_; /** @@ -1310,7 +1236,6 @@ public com.google.protobuf.DurationOrBuilder getInactiveForOrBuilder() { * * * .google.protobuf.Timestamp last_seen = 6; - * @return Whether the lastSeen field is set. */ public boolean hasLastSeen() { return lastSeenBuilder_ != null || lastSeen_ != null; @@ -1321,7 +1246,6 @@ public boolean hasLastSeen() { * * * .google.protobuf.Timestamp last_seen = 6; - * @return The lastSeen. */ public com.google.protobuf.Timestamp getLastSeen() { if (lastSeenBuilder_ == null) { @@ -1456,7 +1380,7 @@ public com.google.protobuf.TimestampOrBuilder getLastSeenOrBuilder() { return lastSeenBuilder_; } - private com.google.protobuf.Timestamp modified_; + private com.google.protobuf.Timestamp modified_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedBuilder_; /** @@ -1465,7 +1389,6 @@ public com.google.protobuf.TimestampOrBuilder getLastSeenOrBuilder() { * * * .google.protobuf.Timestamp modified = 7; - * @return Whether the modified field is set. */ public boolean hasModified() { return modifiedBuilder_ != null || modified_ != null; @@ -1476,7 +1399,6 @@ public boolean hasModified() { * * * .google.protobuf.Timestamp modified = 7; - * @return The modified. */ public com.google.protobuf.Timestamp getModified() { if (modifiedBuilder_ == null) { @@ -1611,7 +1533,7 @@ public com.google.protobuf.TimestampOrBuilder getModifiedOrBuilder() { return modifiedBuilder_; } - private com.google.protobuf.Timestamp created_; + private com.google.protobuf.Timestamp created_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdBuilder_; /** @@ -1620,7 +1542,6 @@ public com.google.protobuf.TimestampOrBuilder getModifiedOrBuilder() { * * * .google.protobuf.Timestamp created = 8; - * @return Whether the created field is set. */ public boolean hasCreated() { return createdBuilder_ != null || created_ != null; @@ -1631,7 +1552,6 @@ public boolean hasCreated() { * * * .google.protobuf.Timestamp created = 8; - * @return The created. */ public com.google.protobuf.Timestamp getCreated() { if (createdBuilder_ == null) { @@ -1765,16 +1685,14 @@ public com.google.protobuf.TimestampOrBuilder getCreatedOrBuilder() { } return createdBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -1793,12 +1711,11 @@ public static Catalyst.Protocol.Peer.PeerInfo getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PeerInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PeerInfo(input, extensionRegistry); + return new PeerInfo(input, extensionRegistry); } }; @@ -1811,7 +1728,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Peer.PeerInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerInfoOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerInfoOrBuilder.java index 53cb3b4..23add3c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerInfoOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Peer/PeerInfoOrBuilder.java @@ -13,7 +13,6 @@ public interface PeerInfoOrBuilder extends * * * .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return Whether the peerId field is set. */ boolean hasPeerId(); /** @@ -22,7 +21,6 @@ public interface PeerInfoOrBuilder extends * * * .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return The peerId. */ Catalyst.Protocol.Peer.PeerId getPeerId(); /** @@ -40,7 +38,6 @@ public interface PeerInfoOrBuilder extends * * * sint32 reputation = 2; - * @return The reputation. */ int getReputation(); @@ -50,7 +47,6 @@ public interface PeerInfoOrBuilder extends * * * bool is_blacklisted = 3; - * @return The isBlacklisted. */ boolean getIsBlacklisted(); @@ -60,7 +56,6 @@ public interface PeerInfoOrBuilder extends * * * bool is_unreachable = 4; - * @return The isUnreachable. */ boolean getIsUnreachable(); @@ -70,7 +65,6 @@ public interface PeerInfoOrBuilder extends * * * .google.protobuf.Duration inactive_for = 5; - * @return Whether the inactiveFor field is set. */ boolean hasInactiveFor(); /** @@ -79,7 +73,6 @@ public interface PeerInfoOrBuilder extends * * * .google.protobuf.Duration inactive_for = 5; - * @return The inactiveFor. */ com.google.protobuf.Duration getInactiveFor(); /** @@ -97,7 +90,6 @@ public interface PeerInfoOrBuilder extends * * * .google.protobuf.Timestamp last_seen = 6; - * @return Whether the lastSeen field is set. */ boolean hasLastSeen(); /** @@ -106,7 +98,6 @@ public interface PeerInfoOrBuilder extends * * * .google.protobuf.Timestamp last_seen = 6; - * @return The lastSeen. */ com.google.protobuf.Timestamp getLastSeen(); /** @@ -124,7 +115,6 @@ public interface PeerInfoOrBuilder extends * * * .google.protobuf.Timestamp modified = 7; - * @return Whether the modified field is set. */ boolean hasModified(); /** @@ -133,7 +123,6 @@ public interface PeerInfoOrBuilder extends * * * .google.protobuf.Timestamp modified = 7; - * @return The modified. */ com.google.protobuf.Timestamp getModified(); /** @@ -151,7 +140,6 @@ public interface PeerInfoOrBuilder extends * * * .google.protobuf.Timestamp created = 8; - * @return Whether the created field is set. */ boolean hasCreated(); /** @@ -160,7 +148,6 @@ public interface PeerInfoOrBuilder extends * * * .google.protobuf.Timestamp created = 8; - * @return The created. */ com.google.protobuf.Timestamp getCreated(); /** diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsRequest.java index 0ede07d..86a1ea6 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsRequest.java @@ -10,38 +10,27 @@ public final class AddFileToDfsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) AddFileToDfsRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use AddFileToDfsRequest.newBuilder() to construct. private AddFileToDfsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddFileToDfsRequest() { + fileSize_ = 0L; fileName_ = ""; node_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AddFileToDfsRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private AddFileToDfsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -50,6 +39,12 @@ private AddFileToDfsRequest( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 8: { fileSize_ = input.readUInt64(); @@ -67,13 +62,6 @@ private AddFileToDfsRequest( node_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -82,7 +70,6 @@ private AddFileToDfsRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -91,7 +78,6 @@ private AddFileToDfsRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddFileToDfsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddFileToDfsRequest_fieldAccessorTable @@ -103,7 +89,6 @@ private AddFileToDfsRequest( private long fileSize_; /** * uint64 file_size = 1; - * @return The fileSize. */ public long getFileSize() { return fileSize_; @@ -113,7 +98,6 @@ public long getFileSize() { private volatile java.lang.Object fileName_; /** * string file_name = 2; - * @return The fileName. */ public java.lang.String getFileName() { java.lang.Object ref = fileName_; @@ -129,7 +113,6 @@ public java.lang.String getFileName() { } /** * string file_name = 2; - * @return The bytes for fileName. */ public com.google.protobuf.ByteString getFileNameBytes() { @@ -149,7 +132,6 @@ public java.lang.String getFileName() { private volatile java.lang.Object node_; /** * string node = 3; - * @return The node. */ public java.lang.String getNode() { java.lang.Object ref = node_; @@ -165,7 +147,6 @@ public java.lang.String getNode() { } /** * string node = 3; - * @return The bytes for node. */ public com.google.protobuf.ByteString getNodeBytes() { @@ -182,7 +163,6 @@ public java.lang.String getNode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -192,7 +172,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (fileSize_ != 0L) { @@ -204,10 +183,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getNodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, node_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -223,11 +200,11 @@ public int getSerializedSize() { if (!getNodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, node_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -238,14 +215,14 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest other = (Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) obj; - if (getFileSize() - != other.getFileSize()) return false; - if (!getFileName() - .equals(other.getFileName())) return false; - if (!getNode() - .equals(other.getNode())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getFileSize() + == other.getFileSize()); + result = result && getFileName() + .equals(other.getFileName()); + result = result && getNode() + .equals(other.getNode()); + return result; } @java.lang.Override @@ -267,17 +244,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -337,7 +303,6 @@ public static Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -345,7 +310,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -369,7 +333,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddFileToDfsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddFileToDfsRequest_fieldAccessorTable @@ -392,7 +355,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); fileSize_ = 0L; @@ -404,18 +366,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddFileToDfsRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest build() { Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -424,7 +383,6 @@ public Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest buildPartial() { Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest result = new Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest(this); result.fileSize_ = fileSize_; @@ -434,39 +392,32 @@ public Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest)other); @@ -489,17 +440,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest other) { node_ = other.node_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -521,15 +469,12 @@ public Builder mergeFrom( private long fileSize_ ; /** * uint64 file_size = 1; - * @return The fileSize. */ public long getFileSize() { return fileSize_; } /** * uint64 file_size = 1; - * @param value The fileSize to set. - * @return This builder for chaining. */ public Builder setFileSize(long value) { @@ -539,7 +484,6 @@ public Builder setFileSize(long value) { } /** * uint64 file_size = 1; - * @return This builder for chaining. */ public Builder clearFileSize() { @@ -551,7 +495,6 @@ public Builder clearFileSize() { private java.lang.Object fileName_ = ""; /** * string file_name = 2; - * @return The fileName. */ public java.lang.String getFileName() { java.lang.Object ref = fileName_; @@ -567,7 +510,6 @@ public java.lang.String getFileName() { } /** * string file_name = 2; - * @return The bytes for fileName. */ public com.google.protobuf.ByteString getFileNameBytes() { @@ -584,8 +526,6 @@ public java.lang.String getFileName() { } /** * string file_name = 2; - * @param value The fileName to set. - * @return This builder for chaining. */ public Builder setFileName( java.lang.String value) { @@ -599,7 +539,6 @@ public Builder setFileName( } /** * string file_name = 2; - * @return This builder for chaining. */ public Builder clearFileName() { @@ -609,8 +548,6 @@ public Builder clearFileName() { } /** * string file_name = 2; - * @param value The bytes for fileName to set. - * @return This builder for chaining. */ public Builder setFileNameBytes( com.google.protobuf.ByteString value) { @@ -627,7 +564,6 @@ public Builder setFileNameBytes( private java.lang.Object node_ = ""; /** * string node = 3; - * @return The node. */ public java.lang.String getNode() { java.lang.Object ref = node_; @@ -643,7 +579,6 @@ public java.lang.String getNode() { } /** * string node = 3; - * @return The bytes for node. */ public com.google.protobuf.ByteString getNodeBytes() { @@ -660,8 +595,6 @@ public java.lang.String getNode() { } /** * string node = 3; - * @param value The node to set. - * @return This builder for chaining. */ public Builder setNode( java.lang.String value) { @@ -675,7 +608,6 @@ public Builder setNode( } /** * string node = 3; - * @return This builder for chaining. */ public Builder clearNode() { @@ -685,8 +617,6 @@ public Builder clearNode() { } /** * string node = 3; - * @param value The bytes for node to set. - * @return This builder for chaining. */ public Builder setNodeBytes( com.google.protobuf.ByteString value) { @@ -699,16 +629,14 @@ public Builder setNodeBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -727,12 +655,11 @@ public static Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public AddFileToDfsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AddFileToDfsRequest(input, extensionRegistry); + return new AddFileToDfsRequest(input, extensionRegistry); } }; @@ -745,7 +672,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsRequestOrBuilder.java index 25e7e0f..8dcf182 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsRequestOrBuilder.java @@ -9,30 +9,25 @@ public interface AddFileToDfsRequestOrBuilder extends /** * uint64 file_size = 1; - * @return The fileSize. */ long getFileSize(); /** * string file_name = 2; - * @return The fileName. */ java.lang.String getFileName(); /** * string file_name = 2; - * @return The bytes for fileName. */ com.google.protobuf.ByteString getFileNameBytes(); /** * string node = 3; - * @return The node. */ java.lang.String getNode(); /** * string node = 3; - * @return The bytes for node. */ com.google.protobuf.ByteString getNodeBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsResponse.java index 98326da..9942595 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsResponse.java @@ -10,7 +10,6 @@ public final class AddFileToDfsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) AddFileToDfsResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use AddFileToDfsResponse.newBuilder() to construct. private AddFileToDfsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -20,28 +19,17 @@ private AddFileToDfsResponse() { dfsHash_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AddFileToDfsResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private AddFileToDfsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -50,6 +38,12 @@ private AddFileToDfsResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { responseCode_ = input.readBytes(); @@ -61,13 +55,6 @@ private AddFileToDfsResponse( dfsHash_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,7 +63,6 @@ private AddFileToDfsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -85,7 +71,6 @@ private AddFileToDfsResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddFileToDfsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddFileToDfsResponse_fieldAccessorTable @@ -97,7 +82,6 @@ private AddFileToDfsResponse( private com.google.protobuf.ByteString responseCode_; /** * bytes response_code = 1; - * @return The responseCode. */ public com.google.protobuf.ByteString getResponseCode() { return responseCode_; @@ -107,7 +91,6 @@ public com.google.protobuf.ByteString getResponseCode() { private volatile java.lang.Object dfsHash_; /** * string dfs_hash = 2; - * @return The dfsHash. */ public java.lang.String getDfsHash() { java.lang.Object ref = dfsHash_; @@ -123,7 +106,6 @@ public java.lang.String getDfsHash() { } /** * string dfs_hash = 2; - * @return The bytes for dfsHash. */ public com.google.protobuf.ByteString getDfsHashBytes() { @@ -140,7 +122,6 @@ public java.lang.String getDfsHash() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -150,7 +131,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!responseCode_.isEmpty()) { @@ -159,10 +139,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getDfsHashBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dfsHash_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -175,11 +153,11 @@ public int getSerializedSize() { if (!getDfsHashBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dfsHash_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -190,12 +168,12 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse other = (Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) obj; - if (!getResponseCode() - .equals(other.getResponseCode())) return false; - if (!getDfsHash() - .equals(other.getDfsHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getResponseCode() + .equals(other.getResponseCode()); + result = result && getDfsHash() + .equals(other.getDfsHash()); + return result; } @java.lang.Override @@ -214,17 +192,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -284,7 +251,6 @@ public static Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -292,7 +258,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -316,7 +281,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddFileToDfsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddFileToDfsResponse_fieldAccessorTable @@ -339,7 +303,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); responseCode_ = com.google.protobuf.ByteString.EMPTY; @@ -349,18 +312,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddFileToDfsResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse build() { Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -369,7 +329,6 @@ public Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse buildPartial() { Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse result = new Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse(this); result.responseCode_ = responseCode_; @@ -378,39 +337,32 @@ public Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse)other); @@ -429,17 +381,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse other) dfsHash_ = other.dfsHash_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -461,15 +410,12 @@ public Builder mergeFrom( private com.google.protobuf.ByteString responseCode_ = com.google.protobuf.ByteString.EMPTY; /** * bytes response_code = 1; - * @return The responseCode. */ public com.google.protobuf.ByteString getResponseCode() { return responseCode_; } /** * bytes response_code = 1; - * @param value The responseCode to set. - * @return This builder for chaining. */ public Builder setResponseCode(com.google.protobuf.ByteString value) { if (value == null) { @@ -482,7 +428,6 @@ public Builder setResponseCode(com.google.protobuf.ByteString value) { } /** * bytes response_code = 1; - * @return This builder for chaining. */ public Builder clearResponseCode() { @@ -494,7 +439,6 @@ public Builder clearResponseCode() { private java.lang.Object dfsHash_ = ""; /** * string dfs_hash = 2; - * @return The dfsHash. */ public java.lang.String getDfsHash() { java.lang.Object ref = dfsHash_; @@ -510,7 +454,6 @@ public java.lang.String getDfsHash() { } /** * string dfs_hash = 2; - * @return The bytes for dfsHash. */ public com.google.protobuf.ByteString getDfsHashBytes() { @@ -527,8 +470,6 @@ public java.lang.String getDfsHash() { } /** * string dfs_hash = 2; - * @param value The dfsHash to set. - * @return This builder for chaining. */ public Builder setDfsHash( java.lang.String value) { @@ -542,7 +483,6 @@ public Builder setDfsHash( } /** * string dfs_hash = 2; - * @return This builder for chaining. */ public Builder clearDfsHash() { @@ -552,8 +492,6 @@ public Builder clearDfsHash() { } /** * string dfs_hash = 2; - * @param value The bytes for dfsHash to set. - * @return This builder for chaining. */ public Builder setDfsHashBytes( com.google.protobuf.ByteString value) { @@ -566,16 +504,14 @@ public Builder setDfsHashBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -594,12 +530,11 @@ public static Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public AddFileToDfsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AddFileToDfsResponse(input, extensionRegistry); + return new AddFileToDfsResponse(input, extensionRegistry); } }; @@ -612,7 +547,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsResponseOrBuilder.java index 4d05aee..1aa18bf 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsResponseOrBuilder.java @@ -9,18 +9,15 @@ public interface AddFileToDfsResponseOrBuilder extends /** * bytes response_code = 1; - * @return The responseCode. */ com.google.protobuf.ByteString getResponseCode(); /** * string dfs_hash = 2; - * @return The dfsHash. */ java.lang.String getDfsHash(); /** * string dfs_hash = 2; - * @return The bytes for dfsHash. */ com.google.protobuf.ByteString getDfsHashBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeRequest.java index e924323..eea85bd 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeRequest.java @@ -10,36 +10,25 @@ public final class AddNodeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.AddNodeRequest) AddNodeRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use AddNodeRequest.newBuilder() to construct. private AddNodeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddNodeRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AddNodeRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private AddNodeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private AddNodeRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private AddNodeRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private AddNodeRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddNodeRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddNodeRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private AddNodeRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.AddNodeRequest other = (Catalyst.Protocol.Rpc.Node.AddNodeRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.AddNodeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.AddNodeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.AddNodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.AddNodeRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.AddNodeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddNodeRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddNodeRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddNodeRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddNodeRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.AddNodeRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddNodeRequest build() { Catalyst.Protocol.Rpc.Node.AddNodeRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.AddNodeRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddNodeRequest buildPartial() { Catalyst.Protocol.Rpc.Node.AddNodeRequest result = new Catalyst.Protocol.Rpc.Node.AddNodeRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.AddNodeRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.AddNodeRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.AddNodeRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.AddNodeRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.AddNodeRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public AddNodeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AddNodeRequest(input, extensionRegistry); + return new AddNodeRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddNodeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeRequestOrBuilder.java index 8e3e5b5..75c446e 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface AddNodeRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeResponse.java index fb628eb..ec6c176 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeResponse.java @@ -10,7 +10,6 @@ public final class AddNodeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.AddNodeResponse) AddNodeResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use AddNodeResponse.newBuilder() to construct. private AddNodeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private AddNodeResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AddNodeResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private AddNodeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private AddNodeResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private AddNodeResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private AddNodeResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddNodeResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddNodeResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private AddNodeResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.AddNodeResponse other = (Catalyst.Protocol.Rpc.Node.AddNodeResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.AddNodeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.AddNodeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.AddNodeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.AddNodeResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.AddNodeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddNodeResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddNodeResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_AddNodeResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddNodeResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.AddNodeResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddNodeResponse build() { Catalyst.Protocol.Rpc.Node.AddNodeResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.AddNodeResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddNodeResponse buildPartial() { Catalyst.Protocol.Rpc.Node.AddNodeResponse result = new Catalyst.Protocol.Rpc.Node.AddNodeResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.AddNodeResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.AddNodeResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.AddNodeResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.AddNodeResponse other) { query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.AddNodeResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public AddNodeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AddNodeResponse(input, extensionRegistry); + return new AddNodeResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.AddNodeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeResponseOrBuilder.java index 814b52b..1f390d7 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/AddNodeResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface AddNodeResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionRequest.java index 61e9368..36260f5 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionRequest.java @@ -10,7 +10,6 @@ public final class BroadcastRawTransactionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) BroadcastRawTransactionRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use BroadcastRawTransactionRequest.newBuilder() to construct. private BroadcastRawTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -18,28 +17,17 @@ private BroadcastRawTransactionRequest(com.google.protobuf.GeneratedMessageV3.Bu private BroadcastRawTransactionRequest() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BroadcastRawTransactionRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BroadcastRawTransactionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,6 +36,12 @@ private BroadcastRawTransactionRequest( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { Catalyst.Protocol.Wire.TransactionBroadcast.Builder subBuilder = null; if (transaction_ != null) { @@ -61,13 +55,6 @@ private BroadcastRawTransactionRequest( break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,7 +63,6 @@ private BroadcastRawTransactionRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -85,7 +71,6 @@ private BroadcastRawTransactionRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_BroadcastRawTransactionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_BroadcastRawTransactionRequest_fieldAccessorTable @@ -97,14 +82,12 @@ private BroadcastRawTransactionRequest( private Catalyst.Protocol.Wire.TransactionBroadcast transaction_; /** * .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; - * @return Whether the transaction field is set. */ public boolean hasTransaction() { return transaction_ != null; } /** * .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; - * @return The transaction. */ public Catalyst.Protocol.Wire.TransactionBroadcast getTransaction() { return transaction_ == null ? Catalyst.Protocol.Wire.TransactionBroadcast.getDefaultInstance() : transaction_; @@ -117,7 +100,6 @@ public Catalyst.Protocol.Wire.TransactionBroadcastOrBuilder getTransactionOrBuil } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -127,16 +109,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (transaction_ != null) { output.writeMessage(1, getTransaction()); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -146,11 +125,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTransaction()); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -161,13 +140,13 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest other = (Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) obj; - if (hasTransaction() != other.hasTransaction()) return false; + boolean result = true; + result = result && (hasTransaction() == other.hasTransaction()); if (hasTransaction()) { - if (!getTransaction() - .equals(other.getTransaction())) return false; + result = result && getTransaction() + .equals(other.getTransaction()); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + return result; } @java.lang.Override @@ -186,17 +165,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -256,7 +224,6 @@ public static Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest parseFro .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -264,7 +231,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -288,7 +254,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_BroadcastRawTransactionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_BroadcastRawTransactionRequest_fieldAccessorTable @@ -311,7 +276,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (transactionBuilder_ == null) { @@ -323,18 +287,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_BroadcastRawTransactionRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest build() { Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -343,7 +304,6 @@ public Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest buildPartial() { Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest result = new Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest(this); if (transactionBuilder_ == null) { @@ -355,39 +315,32 @@ public Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest buildPartial() return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest)other); @@ -402,17 +355,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionReque if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -431,19 +381,17 @@ public Builder mergeFrom( return this; } - private Catalyst.Protocol.Wire.TransactionBroadcast transaction_; + private Catalyst.Protocol.Wire.TransactionBroadcast transaction_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Wire.TransactionBroadcast, Catalyst.Protocol.Wire.TransactionBroadcast.Builder, Catalyst.Protocol.Wire.TransactionBroadcastOrBuilder> transactionBuilder_; /** * .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; - * @return Whether the transaction field is set. */ public boolean hasTransaction() { return transactionBuilder_ != null || transaction_ != null; } /** * .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; - * @return The transaction. */ public Catalyst.Protocol.Wire.TransactionBroadcast getTransaction() { if (transactionBuilder_ == null) { @@ -549,16 +497,14 @@ public Catalyst.Protocol.Wire.TransactionBroadcastOrBuilder getTransactionOrBuil } return transactionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -577,12 +523,11 @@ public static Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest getDefau private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public BroadcastRawTransactionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BroadcastRawTransactionRequest(input, extensionRegistry); + return new BroadcastRawTransactionRequest(input, extensionRegistry); } }; @@ -595,7 +540,6 @@ public com.google.protobuf.Parser getParserForTy return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionRequestOrBuilder.java index f76979b..68d2aed 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionRequestOrBuilder.java @@ -9,12 +9,10 @@ public interface BroadcastRawTransactionRequestOrBuilder extends /** * .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; - * @return Whether the transaction field is set. */ boolean hasTransaction(); /** * .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; - * @return The transaction. */ Catalyst.Protocol.Wire.TransactionBroadcast getTransaction(); /** diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionResponse.java index d5cae3f..845c8e4 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionResponse.java @@ -10,7 +10,6 @@ public final class BroadcastRawTransactionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) BroadcastRawTransactionResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use BroadcastRawTransactionResponse.newBuilder() to construct. private BroadcastRawTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private BroadcastRawTransactionResponse() { responseCode_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BroadcastRawTransactionResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private BroadcastRawTransactionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private BroadcastRawTransactionResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 8: { int rawValue = input.readEnum(); responseCode_ = rawValue; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private BroadcastRawTransactionResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private BroadcastRawTransactionResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_BroadcastRawTransactionResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_BroadcastRawTransactionResponse_fieldAccessorTable @@ -91,23 +76,19 @@ private BroadcastRawTransactionResponse( private int responseCode_; /** * .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; - * @return The enum numeric value on the wire for responseCode. */ public int getResponseCodeValue() { return responseCode_; } /** * .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; - * @return The responseCode. */ public Catalyst.Protocol.Rpc.Node.ResponseCode getResponseCode() { - @SuppressWarnings("deprecation") Catalyst.Protocol.Rpc.Node.ResponseCode result = Catalyst.Protocol.Rpc.Node.ResponseCode.valueOf(responseCode_); return result == null ? Catalyst.Protocol.Rpc.Node.ResponseCode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -117,16 +98,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (responseCode_ != Catalyst.Protocol.Rpc.Node.ResponseCode.PENDING.getNumber()) { output.writeEnum(1, responseCode_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -136,11 +114,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, responseCode_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -151,9 +129,9 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse other = (Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) obj; - if (responseCode_ != other.responseCode_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && responseCode_ == other.responseCode_; + return result; } @java.lang.Override @@ -170,17 +148,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -240,7 +207,6 @@ public static Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse parseFr .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -248,7 +214,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -272,7 +237,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_BroadcastRawTransactionResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_BroadcastRawTransactionResponse_fieldAccessorTable @@ -295,7 +259,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); responseCode_ = 0; @@ -303,18 +266,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_BroadcastRawTransactionResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse build() { Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse result = buildPartial(); if (!result.isInitialized()) { @@ -323,7 +283,6 @@ public Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse buildPartial() { Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse result = new Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse(this); result.responseCode_ = responseCode_; @@ -331,39 +290,32 @@ public Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse buildPartial() return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse)other); @@ -378,17 +330,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRespo if (other.responseCode_ != 0) { setResponseCodeValue(other.getResponseCodeValue()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -410,15 +359,12 @@ public Builder mergeFrom( private int responseCode_ = 0; /** * .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; - * @return The enum numeric value on the wire for responseCode. */ public int getResponseCodeValue() { return responseCode_; } /** * .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; - * @param value The enum numeric value on the wire for responseCode to set. - * @return This builder for chaining. */ public Builder setResponseCodeValue(int value) { responseCode_ = value; @@ -427,17 +373,13 @@ public Builder setResponseCodeValue(int value) { } /** * .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; - * @return The responseCode. */ public Catalyst.Protocol.Rpc.Node.ResponseCode getResponseCode() { - @SuppressWarnings("deprecation") Catalyst.Protocol.Rpc.Node.ResponseCode result = Catalyst.Protocol.Rpc.Node.ResponseCode.valueOf(responseCode_); return result == null ? Catalyst.Protocol.Rpc.Node.ResponseCode.UNRECOGNIZED : result; } /** * .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; - * @param value The responseCode to set. - * @return This builder for chaining. */ public Builder setResponseCode(Catalyst.Protocol.Rpc.Node.ResponseCode value) { if (value == null) { @@ -450,7 +392,6 @@ public Builder setResponseCode(Catalyst.Protocol.Rpc.Node.ResponseCode value) { } /** * .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; - * @return This builder for chaining. */ public Builder clearResponseCode() { @@ -458,16 +399,14 @@ public Builder clearResponseCode() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -486,12 +425,11 @@ public static Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse getDefa private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public BroadcastRawTransactionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BroadcastRawTransactionResponse(input, extensionRegistry); + return new BroadcastRawTransactionResponse(input, extensionRegistry); } }; @@ -504,7 +442,6 @@ public com.google.protobuf.Parser getParserForT return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionResponseOrBuilder.java index 02292ce..07d9abe 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface BroadcastRawTransactionResponseOrBuilder extends /** * .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; - * @return The enum numeric value on the wire for responseCode. */ int getResponseCodeValue(); /** * .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; - * @return The responseCode. */ Catalyst.Protocol.Rpc.Node.ResponseCode getResponseCode(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressRequest.java index ccb5068..3b11c7d 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressRequest.java @@ -10,36 +10,25 @@ public final class CreateAddressRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) CreateAddressRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use CreateAddressRequest.newBuilder() to construct. private CreateAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateAddressRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateAddressRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CreateAddressRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private CreateAddressRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private CreateAddressRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private CreateAddressRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateAddressRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateAddressRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private CreateAddressRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.CreateAddressRequest other = (Catalyst.Protocol.Rpc.Node.CreateAddressRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.CreateAddressRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.CreateAddressRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.CreateAddressRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.CreateAddressRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.CreateAddressRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateAddressRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateAddressRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateAddressRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateAddressRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.CreateAddressRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateAddressRequest build() { Catalyst.Protocol.Rpc.Node.CreateAddressRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.CreateAddressRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateAddressRequest buildPartial() { Catalyst.Protocol.Rpc.Node.CreateAddressRequest result = new Catalyst.Protocol.Rpc.Node.CreateAddressRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.CreateAddressRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.CreateAddressRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.CreateAddressRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.CreateAddressRequest other) if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.CreateAddressRequest getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public CreateAddressRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAddressRequest(input, extensionRegistry); + return new CreateAddressRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateAddressRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressRequestOrBuilder.java index 7871e2a..c36bb8c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface CreateAddressRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressResponse.java index b59afdd..3578504 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressResponse.java @@ -10,7 +10,6 @@ public final class CreateAddressResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) CreateAddressResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use CreateAddressResponse.newBuilder() to construct. private CreateAddressResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private CreateAddressResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateAddressResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CreateAddressResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private CreateAddressResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private CreateAddressResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private CreateAddressResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateAddressResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateAddressResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private CreateAddressResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.CreateAddressResponse other = (Catalyst.Protocol.Rpc.Node.CreateAddressResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.CreateAddressResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.CreateAddressResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.CreateAddressResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.CreateAddressResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.CreateAddressResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateAddressResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateAddressResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateAddressResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateAddressResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.CreateAddressResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateAddressResponse build() { Catalyst.Protocol.Rpc.Node.CreateAddressResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.CreateAddressResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateAddressResponse buildPartial() { Catalyst.Protocol.Rpc.Node.CreateAddressResponse result = new Catalyst.Protocol.Rpc.Node.CreateAddressResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.CreateAddressResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.CreateAddressResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.CreateAddressResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.CreateAddressResponse other) query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.CreateAddressResponse getDefaultInstanc private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public CreateAddressResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAddressResponse(input, extensionRegistry); + return new CreateAddressResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateAddressResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressResponseOrBuilder.java index cf59069..c1cf0c5 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateAddressResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface CreateAddressResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionRequest.java index 5f2f61b..e5710cd 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionRequest.java @@ -10,36 +10,25 @@ public final class CreateRawTransactionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) CreateRawTransactionRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use CreateRawTransactionRequest.newBuilder() to construct. private CreateRawTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateRawTransactionRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateRawTransactionRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CreateRawTransactionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private CreateRawTransactionRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private CreateRawTransactionRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private CreateRawTransactionRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateRawTransactionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateRawTransactionRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private CreateRawTransactionRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest other = (Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateRawTransactionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateRawTransactionRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateRawTransactionRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest build() { Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest buildPartial() { Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest result = new Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest getDefaultI private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public CreateRawTransactionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateRawTransactionRequest(input, extensionRegistry); + return new CreateRawTransactionRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType( return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionRequestOrBuilder.java index 4192e76..b670ccf 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface CreateRawTransactionRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionResponse.java index dfd94ea..c4a5b1f 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionResponse.java @@ -10,7 +10,6 @@ public final class CreateRawTransactionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) CreateRawTransactionResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use CreateRawTransactionResponse.newBuilder() to construct. private CreateRawTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private CreateRawTransactionResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateRawTransactionResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CreateRawTransactionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private CreateRawTransactionResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private CreateRawTransactionResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private CreateRawTransactionResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateRawTransactionResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateRawTransactionResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private CreateRawTransactionResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse other = (Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateRawTransactionResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateRawTransactionResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateRawTransactionResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse build() { Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse buildPartial() { Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse result = new Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse getDefault private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public CreateRawTransactionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateRawTransactionResponse(input, extensionRegistry); + return new CreateRawTransactionResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionResponseOrBuilder.java index 6a56814..adb1a32 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface CreateRawTransactionResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletRequest.java index a13598f..064ba28 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletRequest.java @@ -10,36 +10,25 @@ public final class CreateWalletRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) CreateWalletRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use CreateWalletRequest.newBuilder() to construct. private CreateWalletRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateWalletRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateWalletRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CreateWalletRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private CreateWalletRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private CreateWalletRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private CreateWalletRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateWalletRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateWalletRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private CreateWalletRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.CreateWalletRequest other = (Catalyst.Protocol.Rpc.Node.CreateWalletRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.CreateWalletRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.CreateWalletRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.CreateWalletRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.CreateWalletRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.CreateWalletRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateWalletRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateWalletRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateWalletRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateWalletRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.CreateWalletRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateWalletRequest build() { Catalyst.Protocol.Rpc.Node.CreateWalletRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.CreateWalletRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateWalletRequest buildPartial() { Catalyst.Protocol.Rpc.Node.CreateWalletRequest result = new Catalyst.Protocol.Rpc.Node.CreateWalletRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.CreateWalletRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.CreateWalletRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.CreateWalletRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.CreateWalletRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.CreateWalletRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public CreateWalletRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWalletRequest(input, extensionRegistry); + return new CreateWalletRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateWalletRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletRequestOrBuilder.java index c41617e..185d007 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface CreateWalletRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletResponse.java index c7a656e..bc30254 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletResponse.java @@ -10,7 +10,6 @@ public final class CreateWalletResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) CreateWalletResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use CreateWalletResponse.newBuilder() to construct. private CreateWalletResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private CreateWalletResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateWalletResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CreateWalletResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private CreateWalletResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private CreateWalletResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private CreateWalletResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateWalletResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateWalletResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private CreateWalletResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.CreateWalletResponse other = (Catalyst.Protocol.Rpc.Node.CreateWalletResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.CreateWalletResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.CreateWalletResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.CreateWalletResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.CreateWalletResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.CreateWalletResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateWalletResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateWalletResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_CreateWalletResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateWalletResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.CreateWalletResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateWalletResponse build() { Catalyst.Protocol.Rpc.Node.CreateWalletResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.CreateWalletResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateWalletResponse buildPartial() { Catalyst.Protocol.Rpc.Node.CreateWalletResponse result = new Catalyst.Protocol.Rpc.Node.CreateWalletResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.CreateWalletResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.CreateWalletResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.CreateWalletResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.CreateWalletResponse other) query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.CreateWalletResponse getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public CreateWalletResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWalletResponse(input, extensionRegistry); + return new CreateWalletResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.CreateWalletResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletResponseOrBuilder.java index 1a805a4..9db5f30 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/CreateWalletResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface CreateWalletResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionRequest.java index ce0d79f..56dcf43 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionRequest.java @@ -10,36 +10,25 @@ public final class DecodeRawTransactionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) DecodeRawTransactionRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use DecodeRawTransactionRequest.newBuilder() to construct. private DecodeRawTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DecodeRawTransactionRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DecodeRawTransactionRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DecodeRawTransactionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private DecodeRawTransactionRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private DecodeRawTransactionRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private DecodeRawTransactionRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_DecodeRawTransactionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_DecodeRawTransactionRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private DecodeRawTransactionRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest other = (Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_DecodeRawTransactionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_DecodeRawTransactionRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_DecodeRawTransactionRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest build() { Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest buildPartial() { Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest result = new Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest getDefaultI private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public DecodeRawTransactionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DecodeRawTransactionRequest(input, extensionRegistry); + return new DecodeRawTransactionRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType( return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionRequestOrBuilder.java index b266a8f..ecca5de 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface DecodeRawTransactionRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionResponse.java index 0cd11c1..d32141b 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionResponse.java @@ -10,7 +10,6 @@ public final class DecodeRawTransactionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) DecodeRawTransactionResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use DecodeRawTransactionResponse.newBuilder() to construct. private DecodeRawTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private DecodeRawTransactionResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DecodeRawTransactionResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DecodeRawTransactionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private DecodeRawTransactionResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private DecodeRawTransactionResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private DecodeRawTransactionResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_DecodeRawTransactionResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_DecodeRawTransactionResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private DecodeRawTransactionResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse other = (Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_DecodeRawTransactionResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_DecodeRawTransactionResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_DecodeRawTransactionResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse build() { Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse buildPartial() { Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse result = new Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse getDefault private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public DecodeRawTransactionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DecodeRawTransactionResponse(input, extensionRegistry); + return new DecodeRawTransactionResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionResponseOrBuilder.java index de9dc1e..009dc50 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface DecodeRawTransactionResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressRequest.java index 63d15c4..6856721 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressRequest.java @@ -10,36 +10,25 @@ public final class GetAddressRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetAddressRequest) GetAddressRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use GetAddressRequest.newBuilder() to construct. private GetAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetAddressRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAddressRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetAddressRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private GetAddressRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private GetAddressRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private GetAddressRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetAddressRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetAddressRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private GetAddressRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetAddressRequest other = (Catalyst.Protocol.Rpc.Node.GetAddressRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetAddressRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetAddressRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetAddressRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.GetAddressRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetAddressRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetAddressRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetAddressRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetAddressRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetAddressRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetAddressRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetAddressRequest build() { Catalyst.Protocol.Rpc.Node.GetAddressRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.GetAddressRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetAddressRequest buildPartial() { Catalyst.Protocol.Rpc.Node.GetAddressRequest result = new Catalyst.Protocol.Rpc.Node.GetAddressRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.GetAddressRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetAddressRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetAddressRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetAddressRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.GetAddressRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetAddressRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAddressRequest(input, extensionRegistry); + return new GetAddressRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetAddressRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressRequestOrBuilder.java index d156ab9..4725582 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface GetAddressRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressResponse.java index f44bc23..0c42ea4 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressResponse.java @@ -10,7 +10,6 @@ public final class GetAddressResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetAddressResponse) GetAddressResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use GetAddressResponse.newBuilder() to construct. private GetAddressResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private GetAddressResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAddressResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetAddressResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private GetAddressResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private GetAddressResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private GetAddressResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetAddressResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetAddressResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private GetAddressResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetAddressResponse other = (Catalyst.Protocol.Rpc.Node.GetAddressResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetAddressResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetAddressResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetAddressResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.GetAddressResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetAddressResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetAddressResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetAddressResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetAddressResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetAddressResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetAddressResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetAddressResponse build() { Catalyst.Protocol.Rpc.Node.GetAddressResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.GetAddressResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetAddressResponse buildPartial() { Catalyst.Protocol.Rpc.Node.GetAddressResponse result = new Catalyst.Protocol.Rpc.Node.GetAddressResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.GetAddressResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetAddressResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetAddressResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetAddressResponse other) { query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.GetAddressResponse getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetAddressResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAddressResponse(input, extensionRegistry); + return new GetAddressResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetAddressResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressResponseOrBuilder.java index 6566919..fd2616c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetAddressResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface GetAddressResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceRequest.java index a5b2111..5fd8b1c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceRequest.java @@ -10,36 +10,25 @@ public final class GetBalanceRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) GetBalanceRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use GetBalanceRequest.newBuilder() to construct. private GetBalanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetBalanceRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetBalanceRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetBalanceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private GetBalanceRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private GetBalanceRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private GetBalanceRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetBalanceRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetBalanceRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private GetBalanceRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetBalanceRequest other = (Catalyst.Protocol.Rpc.Node.GetBalanceRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetBalanceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetBalanceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetBalanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.GetBalanceRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetBalanceRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetBalanceRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetBalanceRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetBalanceRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetBalanceRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetBalanceRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetBalanceRequest build() { Catalyst.Protocol.Rpc.Node.GetBalanceRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.GetBalanceRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetBalanceRequest buildPartial() { Catalyst.Protocol.Rpc.Node.GetBalanceRequest result = new Catalyst.Protocol.Rpc.Node.GetBalanceRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.GetBalanceRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetBalanceRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetBalanceRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetBalanceRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.GetBalanceRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetBalanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetBalanceRequest(input, extensionRegistry); + return new GetBalanceRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetBalanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceRequestOrBuilder.java index bf72107..6ab5ad2 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface GetBalanceRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceResponse.java index 6e4399b..0fde2e8 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceResponse.java @@ -10,7 +10,6 @@ public final class GetBalanceResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) GetBalanceResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use GetBalanceResponse.newBuilder() to construct. private GetBalanceResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private GetBalanceResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetBalanceResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetBalanceResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private GetBalanceResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private GetBalanceResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private GetBalanceResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetBalanceResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetBalanceResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private GetBalanceResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetBalanceResponse other = (Catalyst.Protocol.Rpc.Node.GetBalanceResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetBalanceResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetBalanceResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetBalanceResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.GetBalanceResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetBalanceResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetBalanceResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetBalanceResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetBalanceResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetBalanceResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetBalanceResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetBalanceResponse build() { Catalyst.Protocol.Rpc.Node.GetBalanceResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.GetBalanceResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetBalanceResponse buildPartial() { Catalyst.Protocol.Rpc.Node.GetBalanceResponse result = new Catalyst.Protocol.Rpc.Node.GetBalanceResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.GetBalanceResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetBalanceResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetBalanceResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetBalanceResponse other) { query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.GetBalanceResponse getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetBalanceResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetBalanceResponse(input, extensionRegistry); + return new GetBalanceResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetBalanceResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceResponseOrBuilder.java index 367f0a9..6489244 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetBalanceResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface GetBalanceResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountRequest.java index 924b5b3..c2f62f6 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountRequest.java @@ -10,36 +10,25 @@ public final class GetConnectionCountRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) GetConnectionCountRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use GetConnectionCountRequest.newBuilder() to construct. private GetConnectionCountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetConnectionCountRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetConnectionCountRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetConnectionCountRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private GetConnectionCountRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private GetConnectionCountRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private GetConnectionCountRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetConnectionCountRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetConnectionCountRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private GetConnectionCountRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest other = (Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetConnectionCountRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetConnectionCountRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetConnectionCountRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest build() { Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest buildPartial() { Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest result = new Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest ot if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest getDefaultIns private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetConnectionCountRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConnectionCountRequest(input, extensionRegistry); + return new GetConnectionCountRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountRequestOrBuilder.java index 23659a8..ac27b23 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface GetConnectionCountRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountResponse.java index 19a767a..552c2c5 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountResponse.java @@ -10,7 +10,6 @@ public final class GetConnectionCountResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) GetConnectionCountResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use GetConnectionCountResponse.newBuilder() to construct. private GetConnectionCountResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private GetConnectionCountResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetConnectionCountResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetConnectionCountResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private GetConnectionCountResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private GetConnectionCountResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private GetConnectionCountResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetConnectionCountResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetConnectionCountResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private GetConnectionCountResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse other = (Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetConnectionCountResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetConnectionCountResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetConnectionCountResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse build() { Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse buildPartial() { Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse result = new Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse o query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse getDefaultIn private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetConnectionCountResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConnectionCountResponse(input, extensionRegistry); + return new GetConnectionCountResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountResponseOrBuilder.java index 810f514..18c24fd 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface GetConnectionCountResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaRequest.java index 793b811..1604067 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaRequest.java @@ -10,7 +10,6 @@ public final class GetDeltaRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) GetDeltaRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use GetDeltaRequest.newBuilder() to construct. private GetDeltaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private GetDeltaRequest() { deltaDfsHash_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetDeltaRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetDeltaRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,18 +37,17 @@ private GetDeltaRequest( case 0: done = true; break; - case 10: { - - deltaDfsHash_ = input.readBytes(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 10: { + + deltaDfsHash_ = input.readBytes(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -69,7 +56,6 @@ private GetDeltaRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -78,7 +64,6 @@ private GetDeltaRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetDeltaRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetDeltaRequest_fieldAccessorTable @@ -90,14 +75,12 @@ private GetDeltaRequest( private com.google.protobuf.ByteString deltaDfsHash_; /** * bytes delta_dfs_hash = 1; - * @return The deltaDfsHash. */ public com.google.protobuf.ByteString getDeltaDfsHash() { return deltaDfsHash_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -107,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!deltaDfsHash_.isEmpty()) { output.writeBytes(1, deltaDfsHash_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -126,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, deltaDfsHash_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -141,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetDeltaRequest other = (Catalyst.Protocol.Rpc.Node.GetDeltaRequest) obj; - if (!getDeltaDfsHash() - .equals(other.getDeltaDfsHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getDeltaDfsHash() + .equals(other.getDeltaDfsHash()); + return result; } @java.lang.Override @@ -161,17 +141,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetDeltaRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetDeltaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetDeltaRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +200,6 @@ public static Catalyst.Protocol.Rpc.Node.GetDeltaRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +207,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetDeltaRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +230,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetDeltaRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetDeltaRequest_fieldAccessorTable @@ -286,7 +252,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); deltaDfsHash_ = com.google.protobuf.ByteString.EMPTY; @@ -294,18 +259,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetDeltaRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetDeltaRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetDeltaRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetDeltaRequest build() { Catalyst.Protocol.Rpc.Node.GetDeltaRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +276,6 @@ public Catalyst.Protocol.Rpc.Node.GetDeltaRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetDeltaRequest buildPartial() { Catalyst.Protocol.Rpc.Node.GetDeltaRequest result = new Catalyst.Protocol.Rpc.Node.GetDeltaRequest(this); result.deltaDfsHash_ = deltaDfsHash_; @@ -322,39 +283,32 @@ public Catalyst.Protocol.Rpc.Node.GetDeltaRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetDeltaRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetDeltaRequest)other); @@ -369,17 +323,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetDeltaRequest other) { if (other.getDeltaDfsHash() != com.google.protobuf.ByteString.EMPTY) { setDeltaDfsHash(other.getDeltaDfsHash()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +352,12 @@ public Builder mergeFrom( private com.google.protobuf.ByteString deltaDfsHash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes delta_dfs_hash = 1; - * @return The deltaDfsHash. */ public com.google.protobuf.ByteString getDeltaDfsHash() { return deltaDfsHash_; } /** * bytes delta_dfs_hash = 1; - * @param value The deltaDfsHash to set. - * @return This builder for chaining. */ public Builder setDeltaDfsHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -422,7 +370,6 @@ public Builder setDeltaDfsHash(com.google.protobuf.ByteString value) { } /** * bytes delta_dfs_hash = 1; - * @return This builder for chaining. */ public Builder clearDeltaDfsHash() { @@ -430,16 +377,14 @@ public Builder clearDeltaDfsHash() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -458,12 +403,11 @@ public static Catalyst.Protocol.Rpc.Node.GetDeltaRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetDeltaRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDeltaRequest(input, extensionRegistry); + return new GetDeltaRequest(input, extensionRegistry); } }; @@ -476,7 +420,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetDeltaRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaRequestOrBuilder.java index 5f80282..05c4c5e 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface GetDeltaRequestOrBuilder extends /** * bytes delta_dfs_hash = 1; - * @return The deltaDfsHash. */ com.google.protobuf.ByteString getDeltaDfsHash(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaResponse.java index 3a90e7d..50df9b6 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaResponse.java @@ -10,7 +10,6 @@ public final class GetDeltaResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) GetDeltaResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use GetDeltaResponse.newBuilder() to construct. private GetDeltaResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -18,28 +17,17 @@ private GetDeltaResponse(com.google.protobuf.GeneratedMessageV3.Builder build private GetDeltaResponse() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetDeltaResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetDeltaResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,6 +36,12 @@ private GetDeltaResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { Catalyst.Protocol.Deltas.Delta.Builder subBuilder = null; if (delta_ != null) { @@ -61,13 +55,6 @@ private GetDeltaResponse( break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,7 +63,6 @@ private GetDeltaResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -85,7 +71,6 @@ private GetDeltaResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetDeltaResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetDeltaResponse_fieldAccessorTable @@ -97,14 +82,12 @@ private GetDeltaResponse( private Catalyst.Protocol.Deltas.Delta delta_; /** * .Catalyst.Protocol.Deltas.Delta delta = 1; - * @return Whether the delta field is set. */ public boolean hasDelta() { return delta_ != null; } /** * .Catalyst.Protocol.Deltas.Delta delta = 1; - * @return The delta. */ public Catalyst.Protocol.Deltas.Delta getDelta() { return delta_ == null ? Catalyst.Protocol.Deltas.Delta.getDefaultInstance() : delta_; @@ -117,7 +100,6 @@ public Catalyst.Protocol.Deltas.DeltaOrBuilder getDeltaOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -127,16 +109,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (delta_ != null) { output.writeMessage(1, getDelta()); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -146,11 +125,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDelta()); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -161,13 +140,13 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetDeltaResponse other = (Catalyst.Protocol.Rpc.Node.GetDeltaResponse) obj; - if (hasDelta() != other.hasDelta()) return false; + boolean result = true; + result = result && (hasDelta() == other.hasDelta()); if (hasDelta()) { - if (!getDelta() - .equals(other.getDelta())) return false; + result = result && getDelta() + .equals(other.getDelta()); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + return result; } @java.lang.Override @@ -186,17 +165,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetDeltaResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetDeltaResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetDeltaResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -256,7 +224,6 @@ public static Catalyst.Protocol.Rpc.Node.GetDeltaResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -264,7 +231,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetDeltaResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -288,7 +254,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetDeltaResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetDeltaResponse_fieldAccessorTable @@ -311,7 +276,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (deltaBuilder_ == null) { @@ -323,18 +287,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetDeltaResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetDeltaResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetDeltaResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetDeltaResponse build() { Catalyst.Protocol.Rpc.Node.GetDeltaResponse result = buildPartial(); if (!result.isInitialized()) { @@ -343,7 +304,6 @@ public Catalyst.Protocol.Rpc.Node.GetDeltaResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetDeltaResponse buildPartial() { Catalyst.Protocol.Rpc.Node.GetDeltaResponse result = new Catalyst.Protocol.Rpc.Node.GetDeltaResponse(this); if (deltaBuilder_ == null) { @@ -355,39 +315,32 @@ public Catalyst.Protocol.Rpc.Node.GetDeltaResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetDeltaResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetDeltaResponse)other); @@ -402,17 +355,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetDeltaResponse other) { if (other.hasDelta()) { mergeDelta(other.getDelta()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -431,19 +381,17 @@ public Builder mergeFrom( return this; } - private Catalyst.Protocol.Deltas.Delta delta_; + private Catalyst.Protocol.Deltas.Delta delta_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Deltas.Delta, Catalyst.Protocol.Deltas.Delta.Builder, Catalyst.Protocol.Deltas.DeltaOrBuilder> deltaBuilder_; /** * .Catalyst.Protocol.Deltas.Delta delta = 1; - * @return Whether the delta field is set. */ public boolean hasDelta() { return deltaBuilder_ != null || delta_ != null; } /** * .Catalyst.Protocol.Deltas.Delta delta = 1; - * @return The delta. */ public Catalyst.Protocol.Deltas.Delta getDelta() { if (deltaBuilder_ == null) { @@ -549,16 +497,14 @@ public Catalyst.Protocol.Deltas.DeltaOrBuilder getDeltaOrBuilder() { } return deltaBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -577,12 +523,11 @@ public static Catalyst.Protocol.Rpc.Node.GetDeltaResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetDeltaResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDeltaResponse(input, extensionRegistry); + return new GetDeltaResponse(input, extensionRegistry); } }; @@ -595,7 +540,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetDeltaResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaResponseOrBuilder.java index b8d30f1..a0f7cf5 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetDeltaResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface GetDeltaResponseOrBuilder extends /** * .Catalyst.Protocol.Deltas.Delta delta = 1; - * @return Whether the delta field is set. */ boolean hasDelta(); /** * .Catalyst.Protocol.Deltas.Delta delta = 1; - * @return The delta. */ Catalyst.Protocol.Deltas.Delta getDelta(); /** diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsRequest.java index b272ad7..f0d9338 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsRequest.java @@ -10,7 +10,6 @@ public final class GetFileFromDfsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) GetFileFromDfsRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use GetFileFromDfsRequest.newBuilder() to construct. private GetFileFromDfsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private GetFileFromDfsRequest() { dfsHash_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetFileFromDfsRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetFileFromDfsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private GetFileFromDfsRequest( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); dfsHash_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private GetFileFromDfsRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private GetFileFromDfsRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetFileFromDfsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetFileFromDfsRequest_fieldAccessorTable @@ -91,7 +76,6 @@ private GetFileFromDfsRequest( private volatile java.lang.Object dfsHash_; /** * string dfs_hash = 1; - * @return The dfsHash. */ public java.lang.String getDfsHash() { java.lang.Object ref = dfsHash_; @@ -107,7 +91,6 @@ public java.lang.String getDfsHash() { } /** * string dfs_hash = 1; - * @return The bytes for dfsHash. */ public com.google.protobuf.ByteString getDfsHashBytes() { @@ -124,7 +107,6 @@ public java.lang.String getDfsHash() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDfsHashBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dfsHash_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getDfsHashBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dfsHash_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest other = (Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) obj; - if (!getDfsHash() - .equals(other.getDfsHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getDfsHash() + .equals(other.getDfsHash()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetFileFromDfsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetFileFromDfsRequest_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); dfsHash_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetFileFromDfsRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest build() { Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest buildPartial() { Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest result = new Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest(this); result.dfsHash_ = dfsHash_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest other) dfsHash_ = other.dfsHash_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object dfsHash_ = ""; /** * string dfs_hash = 1; - * @return The dfsHash. */ public java.lang.String getDfsHash() { java.lang.Object ref = dfsHash_; @@ -444,7 +393,6 @@ public java.lang.String getDfsHash() { } /** * string dfs_hash = 1; - * @return The bytes for dfsHash. */ public com.google.protobuf.ByteString getDfsHashBytes() { @@ -461,8 +409,6 @@ public java.lang.String getDfsHash() { } /** * string dfs_hash = 1; - * @param value The dfsHash to set. - * @return This builder for chaining. */ public Builder setDfsHash( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setDfsHash( } /** * string dfs_hash = 1; - * @return This builder for chaining. */ public Builder clearDfsHash() { @@ -486,8 +431,6 @@ public Builder clearDfsHash() { } /** * string dfs_hash = 1; - * @param value The bytes for dfsHash to set. - * @return This builder for chaining. */ public Builder setDfsHashBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setDfsHashBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest getDefaultInstanc private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetFileFromDfsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFileFromDfsRequest(input, extensionRegistry); + return new GetFileFromDfsRequest(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsRequestOrBuilder.java index 8a5753c..1c977e7 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsRequestOrBuilder.java @@ -9,12 +9,10 @@ public interface GetFileFromDfsRequestOrBuilder extends /** * string dfs_hash = 1; - * @return The dfsHash. */ java.lang.String getDfsHash(); /** * string dfs_hash = 1; - * @return The bytes for dfsHash. */ com.google.protobuf.ByteString getDfsHashBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsResponse.java index 8a64947..8c08e4a 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsResponse.java @@ -10,37 +10,26 @@ public final class GetFileFromDfsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) GetFileFromDfsResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use GetFileFromDfsResponse.newBuilder() to construct. private GetFileFromDfsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetFileFromDfsResponse() { + fileSize_ = 0L; responseCode_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetFileFromDfsResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetFileFromDfsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,6 +38,12 @@ private GetFileFromDfsResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 8: { fileSize_ = input.readUInt64(); @@ -59,13 +54,6 @@ private GetFileFromDfsResponse( responseCode_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -74,7 +62,6 @@ private GetFileFromDfsResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -83,7 +70,6 @@ private GetFileFromDfsResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetFileFromDfsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetFileFromDfsResponse_fieldAccessorTable @@ -95,7 +81,6 @@ private GetFileFromDfsResponse( private long fileSize_; /** * uint64 file_size = 1; - * @return The fileSize. */ public long getFileSize() { return fileSize_; @@ -105,14 +90,12 @@ public long getFileSize() { private com.google.protobuf.ByteString responseCode_; /** * bytes response_code = 2; - * @return The responseCode. */ public com.google.protobuf.ByteString getResponseCode() { return responseCode_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -122,7 +105,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (fileSize_ != 0L) { @@ -131,10 +113,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!responseCode_.isEmpty()) { output.writeBytes(2, responseCode_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -148,11 +128,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, responseCode_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -163,12 +143,12 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse other = (Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) obj; - if (getFileSize() - != other.getFileSize()) return false; - if (!getResponseCode() - .equals(other.getResponseCode())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getFileSize() + == other.getFileSize()); + result = result && getResponseCode() + .equals(other.getResponseCode()); + return result; } @java.lang.Override @@ -188,17 +168,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -258,7 +227,6 @@ public static Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -266,7 +234,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -290,7 +257,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetFileFromDfsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetFileFromDfsResponse_fieldAccessorTable @@ -313,7 +279,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); fileSize_ = 0L; @@ -323,18 +288,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetFileFromDfsResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse build() { Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -343,7 +305,6 @@ public Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse buildPartial() { Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse result = new Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse(this); result.fileSize_ = fileSize_; @@ -352,39 +313,32 @@ public Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse)other); @@ -402,17 +356,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse other if (other.getResponseCode() != com.google.protobuf.ByteString.EMPTY) { setResponseCode(other.getResponseCode()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -434,15 +385,12 @@ public Builder mergeFrom( private long fileSize_ ; /** * uint64 file_size = 1; - * @return The fileSize. */ public long getFileSize() { return fileSize_; } /** * uint64 file_size = 1; - * @param value The fileSize to set. - * @return This builder for chaining. */ public Builder setFileSize(long value) { @@ -452,7 +400,6 @@ public Builder setFileSize(long value) { } /** * uint64 file_size = 1; - * @return This builder for chaining. */ public Builder clearFileSize() { @@ -464,15 +411,12 @@ public Builder clearFileSize() { private com.google.protobuf.ByteString responseCode_ = com.google.protobuf.ByteString.EMPTY; /** * bytes response_code = 2; - * @return The responseCode. */ public com.google.protobuf.ByteString getResponseCode() { return responseCode_; } /** * bytes response_code = 2; - * @param value The responseCode to set. - * @return This builder for chaining. */ public Builder setResponseCode(com.google.protobuf.ByteString value) { if (value == null) { @@ -485,7 +429,6 @@ public Builder setResponseCode(com.google.protobuf.ByteString value) { } /** * bytes response_code = 2; - * @return This builder for chaining. */ public Builder clearResponseCode() { @@ -493,16 +436,14 @@ public Builder clearResponseCode() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -521,12 +462,11 @@ public static Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse getDefaultInstan private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetFileFromDfsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFileFromDfsResponse(input, extensionRegistry); + return new GetFileFromDfsResponse(input, extensionRegistry); } }; @@ -539,7 +479,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsResponseOrBuilder.java index 31ac2f8..0019f67 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsResponseOrBuilder.java @@ -9,13 +9,11 @@ public interface GetFileFromDfsResponseOrBuilder extends /** * uint64 file_size = 1; - * @return The fileSize. */ long getFileSize(); /** * bytes response_code = 2; - * @return The responseCode. */ com.google.protobuf.ByteString getResponseCode(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoRequest.java index cfa7763..85e18b9 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoRequest.java @@ -10,36 +10,25 @@ public final class GetInfoRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetInfoRequest) GetInfoRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use GetInfoRequest.newBuilder() to construct. private GetInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetInfoRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetInfoRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetInfoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private GetInfoRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private GetInfoRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private GetInfoRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetInfoRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetInfoRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private GetInfoRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetInfoRequest other = (Catalyst.Protocol.Rpc.Node.GetInfoRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetInfoRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetInfoRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetInfoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.GetInfoRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetInfoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetInfoRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetInfoRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetInfoRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetInfoRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetInfoRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetInfoRequest build() { Catalyst.Protocol.Rpc.Node.GetInfoRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.GetInfoRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetInfoRequest buildPartial() { Catalyst.Protocol.Rpc.Node.GetInfoRequest result = new Catalyst.Protocol.Rpc.Node.GetInfoRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.GetInfoRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetInfoRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetInfoRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetInfoRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.GetInfoRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetInfoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInfoRequest(input, extensionRegistry); + return new GetInfoRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetInfoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoRequestOrBuilder.java index f63baea..733518c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface GetInfoRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoResponse.java index 7ea24f5..f24227c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoResponse.java @@ -10,7 +10,6 @@ public final class GetInfoResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetInfoResponse) GetInfoResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use GetInfoResponse.newBuilder() to construct. private GetInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private GetInfoResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetInfoResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetInfoResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private GetInfoResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private GetInfoResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private GetInfoResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetInfoResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetInfoResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private GetInfoResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetInfoResponse other = (Catalyst.Protocol.Rpc.Node.GetInfoResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetInfoResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetInfoResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.GetInfoResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetInfoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetInfoResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetInfoResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetInfoResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetInfoResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetInfoResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetInfoResponse build() { Catalyst.Protocol.Rpc.Node.GetInfoResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.GetInfoResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetInfoResponse buildPartial() { Catalyst.Protocol.Rpc.Node.GetInfoResponse result = new Catalyst.Protocol.Rpc.Node.GetInfoResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.GetInfoResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetInfoResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetInfoResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetInfoResponse other) { query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.GetInfoResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetInfoResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInfoResponse(input, extensionRegistry); + return new GetInfoResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoResponseOrBuilder.java index 81e7dae..31f3cb3 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetInfoResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface GetInfoResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetMempoolRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetMempoolRequest.java index 8d8bc40..319d41d 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetMempoolRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetMempoolRequest.java @@ -10,36 +10,25 @@ public final class GetMempoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) GetMempoolRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use GetMempoolRequest.newBuilder() to construct. private GetMempoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetMempoolRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetMempoolRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetMempoolRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private GetMempoolRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private GetMempoolRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private GetMempoolRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetMempoolRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetMempoolRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private GetMempoolRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetMempoolRequest other = (Catalyst.Protocol.Rpc.Node.GetMempoolRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetMempoolRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetMempoolRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetMempoolRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.GetMempoolRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetMempoolRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetMempoolRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetMempoolRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetMempoolRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetMempoolRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetMempoolRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetMempoolRequest build() { Catalyst.Protocol.Rpc.Node.GetMempoolRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.GetMempoolRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetMempoolRequest buildPartial() { Catalyst.Protocol.Rpc.Node.GetMempoolRequest result = new Catalyst.Protocol.Rpc.Node.GetMempoolRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.GetMempoolRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetMempoolRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetMempoolRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetMempoolRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.GetMempoolRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetMempoolRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMempoolRequest(input, extensionRegistry); + return new GetMempoolRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetMempoolRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetMempoolRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetMempoolRequestOrBuilder.java index 76e8ab5..f143fd1 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetMempoolRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetMempoolRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface GetMempoolRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetMempoolResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetMempoolResponse.java index e7d1b52..45fe3ea 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetMempoolResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetMempoolResponse.java @@ -10,7 +10,6 @@ public final class GetMempoolResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) GetMempoolResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use GetMempoolResponse.newBuilder() to construct. private GetMempoolResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,29 +18,17 @@ private GetMempoolResponse() { transactions_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetMempoolResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetMempoolResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -50,8 +37,14 @@ private GetMempoolResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { transactions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -59,13 +52,6 @@ private GetMempoolResponse( input.readMessage(Catalyst.Protocol.Transaction.PublicEntry.parser(), extensionRegistry)); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -74,10 +60,9 @@ private GetMempoolResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { transactions_ = java.util.Collections.unmodifiableList(transactions_); } - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -86,7 +71,6 @@ private GetMempoolResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetMempoolResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetMempoolResponse_fieldAccessorTable @@ -130,7 +114,6 @@ public Catalyst.Protocol.Transaction.PublicEntryOrBuilder getTransactionsOrBuild } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -140,16 +123,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < transactions_.size(); i++) { output.writeMessage(1, transactions_.get(i)); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -159,11 +139,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, transactions_.get(i)); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -174,10 +154,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetMempoolResponse other = (Catalyst.Protocol.Rpc.Node.GetMempoolResponse) obj; - if (!getTransactionsList() - .equals(other.getTransactionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getTransactionsList() + .equals(other.getTransactionsList()); + return result; } @java.lang.Override @@ -196,17 +176,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetMempoolResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetMempoolResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetMempoolResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -266,7 +235,6 @@ public static Catalyst.Protocol.Rpc.Node.GetMempoolResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -274,7 +242,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetMempoolResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -298,7 +265,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetMempoolResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetMempoolResponse_fieldAccessorTable @@ -322,7 +288,6 @@ private void maybeForceBuilderInitialization() { getTransactionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (transactionsBuilder_ == null) { @@ -334,18 +299,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetMempoolResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetMempoolResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetMempoolResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetMempoolResponse build() { Catalyst.Protocol.Rpc.Node.GetMempoolResponse result = buildPartial(); if (!result.isInitialized()) { @@ -354,12 +316,11 @@ public Catalyst.Protocol.Rpc.Node.GetMempoolResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetMempoolResponse buildPartial() { Catalyst.Protocol.Rpc.Node.GetMempoolResponse result = new Catalyst.Protocol.Rpc.Node.GetMempoolResponse(this); int from_bitField0_ = bitField0_; if (transactionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { transactions_ = java.util.Collections.unmodifiableList(transactions_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -371,39 +332,32 @@ public Catalyst.Protocol.Rpc.Node.GetMempoolResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetMempoolResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetMempoolResponse)other); @@ -441,17 +395,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetMempoolResponse other) { } } } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -474,7 +425,7 @@ public Builder mergeFrom( private java.util.List transactions_ = java.util.Collections.emptyList(); private void ensureTransactionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { transactions_ = new java.util.ArrayList(transactions_); bitField0_ |= 0x00000001; } @@ -703,23 +654,21 @@ public Catalyst.Protocol.Transaction.PublicEntry.Builder addTransactionsBuilder( transactionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< Catalyst.Protocol.Transaction.PublicEntry, Catalyst.Protocol.Transaction.PublicEntry.Builder, Catalyst.Protocol.Transaction.PublicEntryOrBuilder>( transactions_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); transactions_ = null; } return transactionsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -738,12 +687,11 @@ public static Catalyst.Protocol.Rpc.Node.GetMempoolResponse getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetMempoolResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMempoolResponse(input, extensionRegistry); + return new GetMempoolResponse(input, extensionRegistry); } }; @@ -756,7 +704,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetMempoolResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerCountRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerCountRequest.java index 25ca7e2..0ad441a 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerCountRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerCountRequest.java @@ -10,7 +10,6 @@ public final class GetPeerCountRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) GetPeerCountRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use GetPeerCountRequest.newBuilder() to construct. private GetPeerCountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -18,28 +17,16 @@ private GetPeerCountRequest(com.google.protobuf.GeneratedMessageV3.Builder bu private GetPeerCountRequest() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPeerCountRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetPeerCountRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -49,8 +36,7 @@ private GetPeerCountRequest( done = true; break; default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; @@ -63,7 +49,6 @@ private GetPeerCountRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -72,7 +57,6 @@ private GetPeerCountRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerCountRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerCountRequest_fieldAccessorTable @@ -81,7 +65,6 @@ private GetPeerCountRequest( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -91,23 +74,20 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -118,8 +98,8 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetPeerCountRequest other = (Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) obj; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + return result; } @java.lang.Override @@ -134,17 +114,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetPeerCountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetPeerCountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetPeerCountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -204,7 +173,6 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerCountRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -212,7 +180,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetPeerCountRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -236,7 +203,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerCountRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerCountRequest_fieldAccessorTable @@ -259,24 +225,20 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerCountRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerCountRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetPeerCountRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerCountRequest build() { Catalyst.Protocol.Rpc.Node.GetPeerCountRequest result = buildPartial(); if (!result.isInitialized()) { @@ -285,46 +247,38 @@ public Catalyst.Protocol.Rpc.Node.GetPeerCountRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerCountRequest buildPartial() { Catalyst.Protocol.Rpc.Node.GetPeerCountRequest result = new Catalyst.Protocol.Rpc.Node.GetPeerCountRequest(this); onBuilt(); return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetPeerCountRequest)other); @@ -336,17 +290,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetPeerCountRequest other) { if (other == Catalyst.Protocol.Rpc.Node.GetPeerCountRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -364,16 +315,14 @@ public Builder mergeFrom( } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -392,12 +341,11 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerCountRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetPeerCountRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPeerCountRequest(input, extensionRegistry); + return new GetPeerCountRequest(input, extensionRegistry); } }; @@ -410,7 +358,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerCountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerCountResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerCountResponse.java index 5ac6669..cabb833 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerCountResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerCountResponse.java @@ -10,36 +10,25 @@ public final class GetPeerCountResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) GetPeerCountResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use GetPeerCountResponse.newBuilder() to construct. private GetPeerCountResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetPeerCountResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPeerCountResponse(); + peerCount_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetPeerCountResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private GetPeerCountResponse( case 0: done = true; break; - case 8: { - - peerCount_ = input.readInt32(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + peerCount_ = input.readInt32(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private GetPeerCountResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private GetPeerCountResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerCountResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerCountResponse_fieldAccessorTable @@ -89,14 +75,12 @@ private GetPeerCountResponse( private int peerCount_; /** * int32 peer_count = 1; - * @return The peerCount. */ public int getPeerCount() { return peerCount_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (peerCount_ != 0) { output.writeInt32(1, peerCount_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, peerCount_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetPeerCountResponse other = (Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) obj; - if (getPeerCount() - != other.getPeerCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getPeerCount() + == other.getPeerCount()); + return result; } @java.lang.Override @@ -160,17 +141,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetPeerCountResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetPeerCountResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetPeerCountResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -230,7 +200,6 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerCountResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -238,7 +207,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetPeerCountResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -262,7 +230,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerCountResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerCountResponse_fieldAccessorTable @@ -285,7 +252,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); peerCount_ = 0; @@ -293,18 +259,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerCountResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerCountResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerCountResponse build() { Catalyst.Protocol.Rpc.Node.GetPeerCountResponse result = buildPartial(); if (!result.isInitialized()) { @@ -313,7 +276,6 @@ public Catalyst.Protocol.Rpc.Node.GetPeerCountResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerCountResponse buildPartial() { Catalyst.Protocol.Rpc.Node.GetPeerCountResponse result = new Catalyst.Protocol.Rpc.Node.GetPeerCountResponse(this); result.peerCount_ = peerCount_; @@ -321,39 +283,32 @@ public Catalyst.Protocol.Rpc.Node.GetPeerCountResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetPeerCountResponse)other); @@ -368,17 +323,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetPeerCountResponse other) if (other.getPeerCount() != 0) { setPeerCount(other.getPeerCount()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -400,15 +352,12 @@ public Builder mergeFrom( private int peerCount_ ; /** * int32 peer_count = 1; - * @return The peerCount. */ public int getPeerCount() { return peerCount_; } /** * int32 peer_count = 1; - * @param value The peerCount to set. - * @return This builder for chaining. */ public Builder setPeerCount(int value) { @@ -418,7 +367,6 @@ public Builder setPeerCount(int value) { } /** * int32 peer_count = 1; - * @return This builder for chaining. */ public Builder clearPeerCount() { @@ -426,16 +374,14 @@ public Builder clearPeerCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -454,12 +400,11 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerCountResponse getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetPeerCountResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPeerCountResponse(input, extensionRegistry); + return new GetPeerCountResponse(input, extensionRegistry); } }; @@ -472,7 +417,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerCountResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerCountResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerCountResponseOrBuilder.java index 7b07466..dd3634c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerCountResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerCountResponseOrBuilder.java @@ -9,7 +9,6 @@ public interface GetPeerCountResponseOrBuilder extends /** * int32 peer_count = 1; - * @return The peerCount. */ int getPeerCount(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoRequest.java index 87cef5e..d34462e 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoRequest.java @@ -10,7 +10,6 @@ public final class GetPeerInfoRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) GetPeerInfoRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use GetPeerInfoRequest.newBuilder() to construct. private GetPeerInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -20,28 +19,17 @@ private GetPeerInfoRequest() { ip_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPeerInfoRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetPeerInfoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -50,6 +38,12 @@ private GetPeerInfoRequest( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { publicKey_ = input.readBytes(); @@ -60,13 +54,6 @@ private GetPeerInfoRequest( ip_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -75,7 +62,6 @@ private GetPeerInfoRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -84,7 +70,6 @@ private GetPeerInfoRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerInfoRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerInfoRequest_fieldAccessorTable @@ -96,7 +81,6 @@ private GetPeerInfoRequest( private com.google.protobuf.ByteString publicKey_; /** * bytes public_key = 1; - * @return The publicKey. */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; @@ -106,14 +90,12 @@ public com.google.protobuf.ByteString getPublicKey() { private com.google.protobuf.ByteString ip_; /** * bytes ip = 2; - * @return The ip. */ public com.google.protobuf.ByteString getIp() { return ip_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -123,7 +105,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!publicKey_.isEmpty()) { @@ -132,10 +113,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!ip_.isEmpty()) { output.writeBytes(2, ip_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -149,11 +128,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ip_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -164,12 +143,12 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest other = (Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) obj; - if (!getPublicKey() - .equals(other.getPublicKey())) return false; - if (!getIp() - .equals(other.getIp())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getPublicKey() + .equals(other.getPublicKey()); + result = result && getIp() + .equals(other.getIp()); + return result; } @java.lang.Override @@ -188,17 +167,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -258,7 +226,6 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -266,7 +233,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -290,7 +256,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerInfoRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerInfoRequest_fieldAccessorTable @@ -313,7 +278,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); publicKey_ = com.google.protobuf.ByteString.EMPTY; @@ -323,18 +287,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerInfoRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest build() { Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest result = buildPartial(); if (!result.isInitialized()) { @@ -343,7 +304,6 @@ public Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest buildPartial() { Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest result = new Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest(this); result.publicKey_ = publicKey_; @@ -352,39 +312,32 @@ public Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest)other); @@ -402,17 +355,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest other) { if (other.getIp() != com.google.protobuf.ByteString.EMPTY) { setIp(other.getIp()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -434,15 +384,12 @@ public Builder mergeFrom( private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes public_key = 1; - * @return The publicKey. */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; } /** * bytes public_key = 1; - * @param value The publicKey to set. - * @return This builder for chaining. */ public Builder setPublicKey(com.google.protobuf.ByteString value) { if (value == null) { @@ -455,7 +402,6 @@ public Builder setPublicKey(com.google.protobuf.ByteString value) { } /** * bytes public_key = 1; - * @return This builder for chaining. */ public Builder clearPublicKey() { @@ -467,15 +413,12 @@ public Builder clearPublicKey() { private com.google.protobuf.ByteString ip_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ip = 2; - * @return The ip. */ public com.google.protobuf.ByteString getIp() { return ip_; } /** * bytes ip = 2; - * @param value The ip to set. - * @return This builder for chaining. */ public Builder setIp(com.google.protobuf.ByteString value) { if (value == null) { @@ -488,7 +431,6 @@ public Builder setIp(com.google.protobuf.ByteString value) { } /** * bytes ip = 2; - * @return This builder for chaining. */ public Builder clearIp() { @@ -496,16 +438,14 @@ public Builder clearIp() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -524,12 +464,11 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetPeerInfoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPeerInfoRequest(input, extensionRegistry); + return new GetPeerInfoRequest(input, extensionRegistry); } }; @@ -542,7 +481,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoRequestOrBuilder.java index c797785..474d07b 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoRequestOrBuilder.java @@ -9,13 +9,11 @@ public interface GetPeerInfoRequestOrBuilder extends /** * bytes public_key = 1; - * @return The publicKey. */ com.google.protobuf.ByteString getPublicKey(); /** * bytes ip = 2; - * @return The ip. */ com.google.protobuf.ByteString getIp(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoResponse.java index fa40a71..957058e 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoResponse.java @@ -10,7 +10,6 @@ public final class GetPeerInfoResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) GetPeerInfoResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use GetPeerInfoResponse.newBuilder() to construct. private GetPeerInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,29 +18,17 @@ private GetPeerInfoResponse() { peerInfo_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPeerInfoResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetPeerInfoResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -50,8 +37,14 @@ private GetPeerInfoResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { peerInfo_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -59,13 +52,6 @@ private GetPeerInfoResponse( input.readMessage(Catalyst.Protocol.Peer.PeerInfo.parser(), extensionRegistry)); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -74,10 +60,9 @@ private GetPeerInfoResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { peerInfo_ = java.util.Collections.unmodifiableList(peerInfo_); } - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -86,7 +71,6 @@ private GetPeerInfoResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerInfoResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerInfoResponse_fieldAccessorTable @@ -130,7 +114,6 @@ public Catalyst.Protocol.Peer.PeerInfoOrBuilder getPeerInfoOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -140,16 +123,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < peerInfo_.size(); i++) { output.writeMessage(1, peerInfo_.get(i)); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -159,11 +139,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, peerInfo_.get(i)); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -174,10 +154,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse other = (Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) obj; - if (!getPeerInfoList() - .equals(other.getPeerInfoList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getPeerInfoList() + .equals(other.getPeerInfoList()); + return result; } @java.lang.Override @@ -196,17 +176,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -266,7 +235,6 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -274,7 +242,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -298,7 +265,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerInfoResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerInfoResponse_fieldAccessorTable @@ -322,7 +288,6 @@ private void maybeForceBuilderInitialization() { getPeerInfoFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (peerInfoBuilder_ == null) { @@ -334,18 +299,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerInfoResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse build() { Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse result = buildPartial(); if (!result.isInitialized()) { @@ -354,12 +316,11 @@ public Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse buildPartial() { Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse result = new Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse(this); int from_bitField0_ = bitField0_; if (peerInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { peerInfo_ = java.util.Collections.unmodifiableList(peerInfo_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -371,39 +332,32 @@ public Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse)other); @@ -441,17 +395,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse other) { } } } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -474,7 +425,7 @@ public Builder mergeFrom( private java.util.List peerInfo_ = java.util.Collections.emptyList(); private void ensurePeerInfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { peerInfo_ = new java.util.ArrayList(peerInfo_); bitField0_ |= 0x00000001; } @@ -703,23 +654,21 @@ public Catalyst.Protocol.Peer.PeerInfo.Builder addPeerInfoBuilder( peerInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< Catalyst.Protocol.Peer.PeerInfo, Catalyst.Protocol.Peer.PeerInfo.Builder, Catalyst.Protocol.Peer.PeerInfoOrBuilder>( peerInfo_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); peerInfo_ = null; } return peerInfoBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -738,12 +687,11 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetPeerInfoResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPeerInfoResponse(input, extensionRegistry); + return new GetPeerInfoResponse(input, extensionRegistry); } }; @@ -756,7 +704,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerListRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerListRequest.java index 87f9c00..ae1fa59 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerListRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerListRequest.java @@ -10,7 +10,6 @@ public final class GetPeerListRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) GetPeerListRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use GetPeerListRequest.newBuilder() to construct. private GetPeerListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -18,28 +17,16 @@ private GetPeerListRequest(com.google.protobuf.GeneratedMessageV3.Builder bui private GetPeerListRequest() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPeerListRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetPeerListRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -49,8 +36,7 @@ private GetPeerListRequest( done = true; break; default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; @@ -63,7 +49,6 @@ private GetPeerListRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -72,7 +57,6 @@ private GetPeerListRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerListRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerListRequest_fieldAccessorTable @@ -81,7 +65,6 @@ private GetPeerListRequest( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -91,23 +74,20 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -118,8 +98,8 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetPeerListRequest other = (Catalyst.Protocol.Rpc.Node.GetPeerListRequest) obj; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + return result; } @java.lang.Override @@ -134,17 +114,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetPeerListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetPeerListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetPeerListRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -204,7 +173,6 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerListRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -212,7 +180,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetPeerListRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -236,7 +203,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerListRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerListRequest_fieldAccessorTable @@ -259,24 +225,20 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerListRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerListRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetPeerListRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerListRequest build() { Catalyst.Protocol.Rpc.Node.GetPeerListRequest result = buildPartial(); if (!result.isInitialized()) { @@ -285,46 +247,38 @@ public Catalyst.Protocol.Rpc.Node.GetPeerListRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerListRequest buildPartial() { Catalyst.Protocol.Rpc.Node.GetPeerListRequest result = new Catalyst.Protocol.Rpc.Node.GetPeerListRequest(this); onBuilt(); return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetPeerListRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetPeerListRequest)other); @@ -336,17 +290,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetPeerListRequest other) { if (other == Catalyst.Protocol.Rpc.Node.GetPeerListRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -364,16 +315,14 @@ public Builder mergeFrom( } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -392,12 +341,11 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerListRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetPeerListRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPeerListRequest(input, extensionRegistry); + return new GetPeerListRequest(input, extensionRegistry); } }; @@ -410,7 +358,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerListRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerListResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerListResponse.java index 9e1b56c..fe0a7d0 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerListResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerListResponse.java @@ -10,7 +10,6 @@ public final class GetPeerListResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) GetPeerListResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use GetPeerListResponse.newBuilder() to construct. private GetPeerListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,29 +18,17 @@ private GetPeerListResponse() { peers_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPeerListResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetPeerListResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -50,8 +37,14 @@ private GetPeerListResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { peers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -59,13 +52,6 @@ private GetPeerListResponse( input.readMessage(Catalyst.Protocol.Peer.PeerId.parser(), extensionRegistry)); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -74,10 +60,9 @@ private GetPeerListResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { peers_ = java.util.Collections.unmodifiableList(peers_); } - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -86,7 +71,6 @@ private GetPeerListResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerListResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerListResponse_fieldAccessorTable @@ -130,7 +114,6 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getPeersOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -140,16 +123,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < peers_.size(); i++) { output.writeMessage(1, peers_.get(i)); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -159,11 +139,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, peers_.get(i)); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -174,10 +154,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetPeerListResponse other = (Catalyst.Protocol.Rpc.Node.GetPeerListResponse) obj; - if (!getPeersList() - .equals(other.getPeersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getPeersList() + .equals(other.getPeersList()); + return result; } @java.lang.Override @@ -196,17 +176,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetPeerListResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetPeerListResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetPeerListResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -266,7 +235,6 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerListResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -274,7 +242,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetPeerListResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -298,7 +265,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerListResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerListResponse_fieldAccessorTable @@ -322,7 +288,6 @@ private void maybeForceBuilderInitialization() { getPeersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (peersBuilder_ == null) { @@ -334,18 +299,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerListResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerListResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetPeerListResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerListResponse build() { Catalyst.Protocol.Rpc.Node.GetPeerListResponse result = buildPartial(); if (!result.isInitialized()) { @@ -354,12 +316,11 @@ public Catalyst.Protocol.Rpc.Node.GetPeerListResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerListResponse buildPartial() { Catalyst.Protocol.Rpc.Node.GetPeerListResponse result = new Catalyst.Protocol.Rpc.Node.GetPeerListResponse(this); int from_bitField0_ = bitField0_; if (peersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { peers_ = java.util.Collections.unmodifiableList(peers_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -371,39 +332,32 @@ public Catalyst.Protocol.Rpc.Node.GetPeerListResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetPeerListResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetPeerListResponse)other); @@ -441,17 +395,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetPeerListResponse other) { } } } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -474,7 +425,7 @@ public Builder mergeFrom( private java.util.List peers_ = java.util.Collections.emptyList(); private void ensurePeersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { peers_ = new java.util.ArrayList(peers_); bitField0_ |= 0x00000001; } @@ -703,23 +654,21 @@ public Catalyst.Protocol.Peer.PeerId.Builder addPeersBuilder( peersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< Catalyst.Protocol.Peer.PeerId, Catalyst.Protocol.Peer.PeerId.Builder, Catalyst.Protocol.Peer.PeerIdOrBuilder>( peers_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); peers_ = null; } return peersBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -738,12 +687,11 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerListResponse getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetPeerListResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPeerListResponse(input, extensionRegistry); + return new GetPeerListResponse(input, extensionRegistry); } }; @@ -756,7 +704,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerListResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationRequest.java index 4309564..06af77d 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationRequest.java @@ -10,7 +10,6 @@ public final class GetPeerReputationRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) GetPeerReputationRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use GetPeerReputationRequest.newBuilder() to construct. private GetPeerReputationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -20,28 +19,17 @@ private GetPeerReputationRequest() { ip_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPeerReputationRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetPeerReputationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -50,6 +38,12 @@ private GetPeerReputationRequest( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { publicKey_ = input.readBytes(); @@ -60,13 +54,6 @@ private GetPeerReputationRequest( ip_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -75,7 +62,6 @@ private GetPeerReputationRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -84,7 +70,6 @@ private GetPeerReputationRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerReputationRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerReputationRequest_fieldAccessorTable @@ -96,7 +81,6 @@ private GetPeerReputationRequest( private com.google.protobuf.ByteString publicKey_; /** * bytes public_key = 1; - * @return The publicKey. */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; @@ -106,14 +90,12 @@ public com.google.protobuf.ByteString getPublicKey() { private com.google.protobuf.ByteString ip_; /** * bytes ip = 2; - * @return The ip. */ public com.google.protobuf.ByteString getIp() { return ip_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -123,7 +105,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!publicKey_.isEmpty()) { @@ -132,10 +113,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!ip_.isEmpty()) { output.writeBytes(2, ip_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -149,11 +128,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, ip_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -164,12 +143,12 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest other = (Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) obj; - if (!getPublicKey() - .equals(other.getPublicKey())) return false; - if (!getIp() - .equals(other.getIp())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getPublicKey() + .equals(other.getPublicKey()); + result = result && getIp() + .equals(other.getIp()); + return result; } @java.lang.Override @@ -188,17 +167,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -258,7 +226,6 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -266,7 +233,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -290,7 +256,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerReputationRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerReputationRequest_fieldAccessorTable @@ -313,7 +278,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); publicKey_ = com.google.protobuf.ByteString.EMPTY; @@ -323,18 +287,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerReputationRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest build() { Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest result = buildPartial(); if (!result.isInitialized()) { @@ -343,7 +304,6 @@ public Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest buildPartial() { Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest result = new Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest(this); result.publicKey_ = publicKey_; @@ -352,39 +312,32 @@ public Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest)other); @@ -402,17 +355,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest oth if (other.getIp() != com.google.protobuf.ByteString.EMPTY) { setIp(other.getIp()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -434,15 +384,12 @@ public Builder mergeFrom( private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes public_key = 1; - * @return The publicKey. */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; } /** * bytes public_key = 1; - * @param value The publicKey to set. - * @return This builder for chaining. */ public Builder setPublicKey(com.google.protobuf.ByteString value) { if (value == null) { @@ -455,7 +402,6 @@ public Builder setPublicKey(com.google.protobuf.ByteString value) { } /** * bytes public_key = 1; - * @return This builder for chaining. */ public Builder clearPublicKey() { @@ -467,15 +413,12 @@ public Builder clearPublicKey() { private com.google.protobuf.ByteString ip_ = com.google.protobuf.ByteString.EMPTY; /** * bytes ip = 2; - * @return The ip. */ public com.google.protobuf.ByteString getIp() { return ip_; } /** * bytes ip = 2; - * @param value The ip to set. - * @return This builder for chaining. */ public Builder setIp(com.google.protobuf.ByteString value) { if (value == null) { @@ -488,7 +431,6 @@ public Builder setIp(com.google.protobuf.ByteString value) { } /** * bytes ip = 2; - * @return This builder for chaining. */ public Builder clearIp() { @@ -496,16 +438,14 @@ public Builder clearIp() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -524,12 +464,11 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest getDefaultInst private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetPeerReputationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPeerReputationRequest(input, extensionRegistry); + return new GetPeerReputationRequest(input, extensionRegistry); } }; @@ -542,7 +481,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationRequestOrBuilder.java index 1181cf2..fde3a1c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationRequestOrBuilder.java @@ -9,13 +9,11 @@ public interface GetPeerReputationRequestOrBuilder extends /** * bytes public_key = 1; - * @return The publicKey. */ com.google.protobuf.ByteString getPublicKey(); /** * bytes ip = 2; - * @return The ip. */ com.google.protobuf.ByteString getIp(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationResponse.java index 653a5af..8f400a0 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationResponse.java @@ -10,36 +10,25 @@ public final class GetPeerReputationResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) GetPeerReputationResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use GetPeerReputationResponse.newBuilder() to construct. private GetPeerReputationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetPeerReputationResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPeerReputationResponse(); + reputation_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GetPeerReputationResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private GetPeerReputationResponse( case 0: done = true; break; - case 8: { - - reputation_ = input.readInt32(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + reputation_ = input.readInt32(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private GetPeerReputationResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private GetPeerReputationResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerReputationResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerReputationResponse_fieldAccessorTable @@ -89,14 +75,12 @@ private GetPeerReputationResponse( private int reputation_; /** * int32 reputation = 1; - * @return The reputation. */ public int getReputation() { return reputation_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (reputation_ != 0) { output.writeInt32(1, reputation_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, reputation_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse other = (Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) obj; - if (getReputation() - != other.getReputation()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getReputation() + == other.getReputation()); + return result; } @java.lang.Override @@ -160,17 +141,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -230,7 +200,6 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -238,7 +207,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -262,7 +230,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerReputationResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerReputationResponse_fieldAccessorTable @@ -285,7 +252,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); reputation_ = 0; @@ -293,18 +259,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_GetPeerReputationResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse build() { Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse result = buildPartial(); if (!result.isInitialized()) { @@ -313,7 +276,6 @@ public Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse buildPartial() { Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse result = new Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse(this); result.reputation_ = reputation_; @@ -321,39 +283,32 @@ public Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse)other); @@ -368,17 +323,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse ot if (other.getReputation() != 0) { setReputation(other.getReputation()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -400,15 +352,12 @@ public Builder mergeFrom( private int reputation_ ; /** * int32 reputation = 1; - * @return The reputation. */ public int getReputation() { return reputation_; } /** * int32 reputation = 1; - * @param value The reputation to set. - * @return This builder for chaining. */ public Builder setReputation(int value) { @@ -418,7 +367,6 @@ public Builder setReputation(int value) { } /** * int32 reputation = 1; - * @return This builder for chaining. */ public Builder clearReputation() { @@ -426,16 +374,14 @@ public Builder clearReputation() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -454,12 +400,11 @@ public static Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse getDefaultIns private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetPeerReputationResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPeerReputationResponse(input, extensionRegistry); + return new GetPeerReputationResponse(input, extensionRegistry); } }; @@ -472,7 +417,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationResponseOrBuilder.java index eb2fa83..9471b4b 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationResponseOrBuilder.java @@ -9,7 +9,6 @@ public interface GetPeerReputationResponseOrBuilder extends /** * int32 reputation = 1; - * @return The reputation. */ int getReputation(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressRequest.java index 6e5e3b8..300d815 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressRequest.java @@ -10,36 +10,25 @@ public final class ListAddressRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.ListAddressRequest) ListAddressRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use ListAddressRequest.newBuilder() to construct. private ListAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListAddressRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAddressRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ListAddressRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private ListAddressRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private ListAddressRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private ListAddressRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListAddressRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListAddressRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private ListAddressRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.ListAddressRequest other = (Catalyst.Protocol.Rpc.Node.ListAddressRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.ListAddressRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.ListAddressRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.ListAddressRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.ListAddressRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.ListAddressRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListAddressRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListAddressRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListAddressRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListAddressRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.ListAddressRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListAddressRequest build() { Catalyst.Protocol.Rpc.Node.ListAddressRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.ListAddressRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListAddressRequest buildPartial() { Catalyst.Protocol.Rpc.Node.ListAddressRequest result = new Catalyst.Protocol.Rpc.Node.ListAddressRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.ListAddressRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.ListAddressRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.ListAddressRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.ListAddressRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.ListAddressRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListAddressRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAddressRequest(input, extensionRegistry); + return new ListAddressRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListAddressRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressRequestOrBuilder.java index e05b141..dc79682 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface ListAddressRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressResponse.java index b2f86b9..ca73be3 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressResponse.java @@ -10,7 +10,6 @@ public final class ListAddressResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.ListAddressResponse) ListAddressResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use ListAddressResponse.newBuilder() to construct. private ListAddressResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private ListAddressResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAddressResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ListAddressResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private ListAddressResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private ListAddressResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private ListAddressResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListAddressResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListAddressResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private ListAddressResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.ListAddressResponse other = (Catalyst.Protocol.Rpc.Node.ListAddressResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.ListAddressResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.ListAddressResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.ListAddressResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.ListAddressResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.ListAddressResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListAddressResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListAddressResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListAddressResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListAddressResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.ListAddressResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListAddressResponse build() { Catalyst.Protocol.Rpc.Node.ListAddressResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.ListAddressResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListAddressResponse buildPartial() { Catalyst.Protocol.Rpc.Node.ListAddressResponse result = new Catalyst.Protocol.Rpc.Node.ListAddressResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.ListAddressResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.ListAddressResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.ListAddressResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.ListAddressResponse other) { query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.ListAddressResponse getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListAddressResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAddressResponse(input, extensionRegistry); + return new ListAddressResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListAddressResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressResponseOrBuilder.java index f2ebfa6..d72a712 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListAddressResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface ListAddressResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletRequest.java index cc57863..a7033cb 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletRequest.java @@ -10,36 +10,25 @@ public final class ListWalletRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.ListWalletRequest) ListWalletRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use ListWalletRequest.newBuilder() to construct. private ListWalletRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListWalletRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListWalletRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ListWalletRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private ListWalletRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private ListWalletRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private ListWalletRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListWalletRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListWalletRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private ListWalletRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.ListWalletRequest other = (Catalyst.Protocol.Rpc.Node.ListWalletRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.ListWalletRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.ListWalletRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.ListWalletRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.ListWalletRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.ListWalletRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListWalletRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListWalletRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListWalletRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListWalletRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.ListWalletRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListWalletRequest build() { Catalyst.Protocol.Rpc.Node.ListWalletRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.ListWalletRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListWalletRequest buildPartial() { Catalyst.Protocol.Rpc.Node.ListWalletRequest result = new Catalyst.Protocol.Rpc.Node.ListWalletRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.ListWalletRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.ListWalletRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.ListWalletRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.ListWalletRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.ListWalletRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListWalletRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWalletRequest(input, extensionRegistry); + return new ListWalletRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListWalletRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletRequestOrBuilder.java index 6c5690e..44510f6 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface ListWalletRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletResponse.java index b9e3c98..d94b183 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletResponse.java @@ -10,7 +10,6 @@ public final class ListWalletResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.ListWalletResponse) ListWalletResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use ListWalletResponse.newBuilder() to construct. private ListWalletResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private ListWalletResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListWalletResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ListWalletResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private ListWalletResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private ListWalletResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private ListWalletResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListWalletResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListWalletResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private ListWalletResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.ListWalletResponse other = (Catalyst.Protocol.Rpc.Node.ListWalletResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.ListWalletResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.ListWalletResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.ListWalletResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.ListWalletResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.ListWalletResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListWalletResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListWalletResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ListWalletResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListWalletResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.ListWalletResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListWalletResponse build() { Catalyst.Protocol.Rpc.Node.ListWalletResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.ListWalletResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListWalletResponse buildPartial() { Catalyst.Protocol.Rpc.Node.ListWalletResponse result = new Catalyst.Protocol.Rpc.Node.ListWalletResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.ListWalletResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.ListWalletResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.ListWalletResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.ListWalletResponse other) { query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.ListWalletResponse getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListWalletResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWalletResponse(input, extensionRegistry); + return new ListWalletResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ListWalletResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletResponseOrBuilder.java index 05474ce..10e155b 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ListWalletResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface ListWalletResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerRequest.java index bf18e94..4449966 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerRequest.java @@ -10,7 +10,6 @@ public final class RemovePeerRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) RemovePeerRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use RemovePeerRequest.newBuilder() to construct. private RemovePeerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -20,28 +19,17 @@ private RemovePeerRequest() { publicKey_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RemovePeerRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RemovePeerRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -50,6 +38,12 @@ private RemovePeerRequest( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { peerIp_ = input.readBytes(); @@ -60,13 +54,6 @@ private RemovePeerRequest( publicKey_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -75,7 +62,6 @@ private RemovePeerRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -84,7 +70,6 @@ private RemovePeerRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_RemovePeerRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_RemovePeerRequest_fieldAccessorTable @@ -96,7 +81,6 @@ private RemovePeerRequest( private com.google.protobuf.ByteString peerIp_; /** * bytes peer_ip = 1; - * @return The peerIp. */ public com.google.protobuf.ByteString getPeerIp() { return peerIp_; @@ -106,14 +90,12 @@ public com.google.protobuf.ByteString getPeerIp() { private com.google.protobuf.ByteString publicKey_; /** * bytes public_key = 2; - * @return The publicKey. */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -123,7 +105,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!peerIp_.isEmpty()) { @@ -132,10 +113,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!publicKey_.isEmpty()) { output.writeBytes(2, publicKey_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -149,11 +128,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, publicKey_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -164,12 +143,12 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.RemovePeerRequest other = (Catalyst.Protocol.Rpc.Node.RemovePeerRequest) obj; - if (!getPeerIp() - .equals(other.getPeerIp())) return false; - if (!getPublicKey() - .equals(other.getPublicKey())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getPeerIp() + .equals(other.getPeerIp()); + result = result && getPublicKey() + .equals(other.getPublicKey()); + return result; } @java.lang.Override @@ -188,17 +167,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.RemovePeerRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.RemovePeerRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.RemovePeerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -258,7 +226,6 @@ public static Catalyst.Protocol.Rpc.Node.RemovePeerRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -266,7 +233,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.RemovePeerRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -290,7 +256,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_RemovePeerRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_RemovePeerRequest_fieldAccessorTable @@ -313,7 +278,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); peerIp_ = com.google.protobuf.ByteString.EMPTY; @@ -323,18 +287,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_RemovePeerRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.RemovePeerRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.RemovePeerRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.RemovePeerRequest build() { Catalyst.Protocol.Rpc.Node.RemovePeerRequest result = buildPartial(); if (!result.isInitialized()) { @@ -343,7 +304,6 @@ public Catalyst.Protocol.Rpc.Node.RemovePeerRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.RemovePeerRequest buildPartial() { Catalyst.Protocol.Rpc.Node.RemovePeerRequest result = new Catalyst.Protocol.Rpc.Node.RemovePeerRequest(this); result.peerIp_ = peerIp_; @@ -352,39 +312,32 @@ public Catalyst.Protocol.Rpc.Node.RemovePeerRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.RemovePeerRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.RemovePeerRequest)other); @@ -402,17 +355,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.RemovePeerRequest other) { if (other.getPublicKey() != com.google.protobuf.ByteString.EMPTY) { setPublicKey(other.getPublicKey()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -434,15 +384,12 @@ public Builder mergeFrom( private com.google.protobuf.ByteString peerIp_ = com.google.protobuf.ByteString.EMPTY; /** * bytes peer_ip = 1; - * @return The peerIp. */ public com.google.protobuf.ByteString getPeerIp() { return peerIp_; } /** * bytes peer_ip = 1; - * @param value The peerIp to set. - * @return This builder for chaining. */ public Builder setPeerIp(com.google.protobuf.ByteString value) { if (value == null) { @@ -455,7 +402,6 @@ public Builder setPeerIp(com.google.protobuf.ByteString value) { } /** * bytes peer_ip = 1; - * @return This builder for chaining. */ public Builder clearPeerIp() { @@ -467,15 +413,12 @@ public Builder clearPeerIp() { private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes public_key = 2; - * @return The publicKey. */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; } /** * bytes public_key = 2; - * @param value The publicKey to set. - * @return This builder for chaining. */ public Builder setPublicKey(com.google.protobuf.ByteString value) { if (value == null) { @@ -488,7 +431,6 @@ public Builder setPublicKey(com.google.protobuf.ByteString value) { } /** * bytes public_key = 2; - * @return This builder for chaining. */ public Builder clearPublicKey() { @@ -496,16 +438,14 @@ public Builder clearPublicKey() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -524,12 +464,11 @@ public static Catalyst.Protocol.Rpc.Node.RemovePeerRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public RemovePeerRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RemovePeerRequest(input, extensionRegistry); + return new RemovePeerRequest(input, extensionRegistry); } }; @@ -542,7 +481,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.RemovePeerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerRequestOrBuilder.java index a01c8fd..040ae2e 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerRequestOrBuilder.java @@ -9,13 +9,11 @@ public interface RemovePeerRequestOrBuilder extends /** * bytes peer_ip = 1; - * @return The peerIp. */ com.google.protobuf.ByteString getPeerIp(); /** * bytes public_key = 2; - * @return The publicKey. */ com.google.protobuf.ByteString getPublicKey(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerResponse.java index 65afa3b..5fc02a0 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerResponse.java @@ -10,36 +10,25 @@ public final class RemovePeerResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) RemovePeerResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use RemovePeerResponse.newBuilder() to construct. private RemovePeerResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemovePeerResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RemovePeerResponse(); + deletedCount_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RemovePeerResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private RemovePeerResponse( case 0: done = true; break; - case 8: { - - deletedCount_ = input.readUInt32(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + deletedCount_ = input.readUInt32(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private RemovePeerResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private RemovePeerResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_RemovePeerResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_RemovePeerResponse_fieldAccessorTable @@ -89,14 +75,12 @@ private RemovePeerResponse( private int deletedCount_; /** * uint32 deleted_count = 1; - * @return The deletedCount. */ public int getDeletedCount() { return deletedCount_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (deletedCount_ != 0) { output.writeUInt32(1, deletedCount_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, deletedCount_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.RemovePeerResponse other = (Catalyst.Protocol.Rpc.Node.RemovePeerResponse) obj; - if (getDeletedCount() - != other.getDeletedCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getDeletedCount() + == other.getDeletedCount()); + return result; } @java.lang.Override @@ -160,17 +141,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.RemovePeerResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.RemovePeerResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.RemovePeerResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -230,7 +200,6 @@ public static Catalyst.Protocol.Rpc.Node.RemovePeerResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -238,7 +207,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.RemovePeerResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -262,7 +230,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_RemovePeerResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_RemovePeerResponse_fieldAccessorTable @@ -285,7 +252,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); deletedCount_ = 0; @@ -293,18 +259,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_RemovePeerResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.RemovePeerResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.RemovePeerResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.RemovePeerResponse build() { Catalyst.Protocol.Rpc.Node.RemovePeerResponse result = buildPartial(); if (!result.isInitialized()) { @@ -313,7 +276,6 @@ public Catalyst.Protocol.Rpc.Node.RemovePeerResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.RemovePeerResponse buildPartial() { Catalyst.Protocol.Rpc.Node.RemovePeerResponse result = new Catalyst.Protocol.Rpc.Node.RemovePeerResponse(this); result.deletedCount_ = deletedCount_; @@ -321,39 +283,32 @@ public Catalyst.Protocol.Rpc.Node.RemovePeerResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.RemovePeerResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.RemovePeerResponse)other); @@ -368,17 +323,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.RemovePeerResponse other) { if (other.getDeletedCount() != 0) { setDeletedCount(other.getDeletedCount()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -400,15 +352,12 @@ public Builder mergeFrom( private int deletedCount_ ; /** * uint32 deleted_count = 1; - * @return The deletedCount. */ public int getDeletedCount() { return deletedCount_; } /** * uint32 deleted_count = 1; - * @param value The deletedCount to set. - * @return This builder for chaining. */ public Builder setDeletedCount(int value) { @@ -418,7 +367,6 @@ public Builder setDeletedCount(int value) { } /** * uint32 deleted_count = 1; - * @return This builder for chaining. */ public Builder clearDeletedCount() { @@ -426,16 +374,14 @@ public Builder clearDeletedCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -454,12 +400,11 @@ public static Catalyst.Protocol.Rpc.Node.RemovePeerResponse getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public RemovePeerResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RemovePeerResponse(input, extensionRegistry); + return new RemovePeerResponse(input, extensionRegistry); } }; @@ -472,7 +417,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.RemovePeerResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerResponseOrBuilder.java index 0c27f74..4425d29 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/RemovePeerResponseOrBuilder.java @@ -9,7 +9,6 @@ public interface RemovePeerResponseOrBuilder extends /** * uint32 deleted_count = 1; - * @return The deletedCount. */ int getDeletedCount(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ResponseCode.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ResponseCode.java index 92452f8..003d8b2 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ResponseCode.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ResponseCode.java @@ -78,8 +78,6 @@ public final int getNumber() { } /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -87,10 +85,6 @@ public static ResponseCode valueOf(int value) { return forNumber(value); } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ public static ResponseCode forNumber(int value) { switch (value) { case 0: return PENDING; diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/Rpc.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/Rpc.java index 13e4276..cc0620c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/Rpc.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/Rpc.java @@ -372,7 +372,7 @@ public static void registerAllExtensions( "\005query\030\001 \001(\t\"$\n\023CreateWalletRequest\022\r\n\005q" + "uery\030\001 \001(\010\"%\n\024CreateWalletResponse\022\r\n\005qu" + "ery\030\001 \001(\t\"\"\n\021ListWalletRequest\022\r\n\005query\030" + - "\001 \001(\010\"#\n\022ListWalletResponse\022\r\n\005query\030\001 \001" + + "\001 \001(\010\"#\n\022ListWalletResponse\022\r\n\005query\030\001 \001", "(\t\"%\n\024CreateAddressRequest\022\r\n\005query\030\001 \001(" + "\010\"&\n\025CreateAddressResponse\022\r\n\005query\030\001 \001(" + "\t\"\"\n\021GetAddressRequest\022\r\n\005query\030\001 \001(\010\"#\n" + @@ -382,7 +382,7 @@ public static void registerAllExtensions( "eAddressRequest\022\r\n\005query\030\001 \001(\010\"(\n\027Valida" + "teAddressResponse\022\r\n\005query\030\001 \001(\t\"\"\n\021GetB" + "alanceRequest\022\r\n\005query\030\001 \001(\010\"#\n\022GetBalan" + - "ceResponse\022\r\n\005query\030\001 \001(\t\",\n\033CreateRawTr" + + "ceResponse\022\r\n\005query\030\001 \001(\t\",\n\033CreateRawTr", "ansactionRequest\022\r\n\005query\030\001 \001(\010\"-\n\034Creat" + "eRawTransactionResponse\022\r\n\005query\030\001 \001(\t\"*" + "\n\031SignRawTransactionRequest\022\r\n\005query\030\001 \001" + @@ -392,7 +392,7 @@ public static void registerAllExtensions( "ponse\022\r\n\005query\030\001 \001(\t\"c\n\036BroadcastRawTran" + "sactionRequest\022A\n\013transaction\030\001 \001(\0132,.Ca" + "talyst.Protocol.Wire.TransactionBroadcas" + - "t\"b\n\037BroadcastRawTransactionResponse\022?\n\r" + + "t\"b\n\037BroadcastRawTransactionResponse\022?\n\r", "response_code\030\001 \001(\0162(.Catalyst.Protocol." + "Rpc.Node.ResponseCode\"\036\n\rSendToRequest\022\r" + "\n\005query\030\001 \001(\010\"\037\n\016SendToResponse\022\r\n\005query" + @@ -402,7 +402,7 @@ public static void registerAllExtensions( "dManyResponse\022\r\n\005query\030\001 \001(\t\"$\n\023SendFrom" + "ManyRequest\022\r\n\005query\030\001 \001(\010\"%\n\024SendFromMa" + "nyResponse\022\r\n\005query\030\001 \001(\t\"\037\n\016AddNodeRequ" + - "est\022\r\n\005query\030\001 \001(\010\" \n\017AddNodeResponse\022\r\n" + + "est\022\r\n\005query\030\001 \001(\010\" \n\017AddNodeResponse\022\r\n", "\005query\030\001 \001(\t\"\024\n\022GetPeerListRequest\"D\n\023Ge" + "tPeerListResponse\022-\n\005peers\030\001 \003(\0132\036.Catal" + "yst.Protocol.Peer.PeerId\":\n\030GetPeerReput" + @@ -412,7 +412,7 @@ public static void registerAllExtensions( "\022\022\n\npublic_key\030\001 \001(\014\022\n\n\002ip\030\002 \001(\014\022\021\n\tblac" + "klist\030\003 \001(\010\"M\n\030SetPeerBlackListResponse\022" + "\022\n\npublic_key\030\001 \001(\014\022\n\n\002ip\030\002 \001(\014\022\021\n\tblack" + - "list\030\003 \001(\010\"4\n\022GetPeerInfoRequest\022\022\n\npubl" + + "list\030\003 \001(\010\"4\n\022GetPeerInfoRequest\022\022\n\npubl", "ic_key\030\001 \001(\014\022\n\n\002ip\030\002 \001(\014\"J\n\023GetPeerInfoR" + "esponse\0223\n\tpeer_info\030\001 \003(\0132 .Catalyst.Pr" + "otocol.Peer.PeerInfo\"*\n\031GetConnectionCou" + @@ -422,7 +422,7 @@ public static void registerAllExtensions( "eltaResponse\022.\n\005delta\030\001 \001(\0132\037.Catalyst.P" + "rotocol.Deltas.Delta\"\"\n\021GetMempoolReques" + "t\022\r\n\005query\030\001 \001(\010\"V\n\022GetMempoolResponse\022@" + - "\n\014transactions\030\001 \003(\0132*.Catalyst.Protocol" + + "\n\014transactions\030\001 \003(\0132*.Catalyst.Protocol", ".Transaction.PublicEntry\"~\n\022SignMessageR" + "equest\022\017\n\007message\030\001 \001(\014\022\016\n\006key_id\030\002 \001(\t\022" + "G\n\017signing_context\030\003 \001(\0132..Catalyst.Prot" + @@ -432,7 +432,7 @@ public static void registerAllExtensions( "\"\227\001\n\024VerifyMessageRequest\022\021\n\tsignature\030\001" + " \001(\014\022\022\n\npublic_key\030\002 \001(\014\022\017\n\007message\030\003 \001(" + "\014\022G\n\017signing_context\030\004 \001(\0132..Catalyst.Pr" + - "otocol.Cryptography.SigningContext\"1\n\025Ve" + + "otocol.Cryptography.SigningContext\"1\n\025Ve", "rifyMessageResponse\022\030\n\020is_signed_by_key\030" + "\001 \001(\010\"%\n\024ServiceStatusRequest\022\r\n\005query\030\001" + " \001(\010\"&\n\025ServiceStatusResponse\022\r\n\005query\030\001" + @@ -442,7 +442,7 @@ public static void registerAllExtensions( "\030\001 \001(\014\022\020\n\010dfs_hash\030\002 \001(\t\"`\n\030TransferFile" + "BytesRequest\022\020\n\010chunk_id\030\001 \001(\r\022\023\n\013chunk_" + "bytes\030\002 \001(\014\022\035\n\025correlation_file_name\030\003 \001" + - "(\014\"2\n\031TransferFileBytesResponse\022\025\n\rrespo" + + "(\014\"2\n\031TransferFileBytesResponse\022\025\n\rrespo", "nse_code\030\001 \001(\014\"8\n\021RemovePeerRequest\022\017\n\007p" + "eer_ip\030\001 \001(\014\022\022\n\npublic_key\030\002 \001(\014\"+\n\022Remo" + "vePeerResponse\022\025\n\rdeleted_count\030\001 \001(\r\"\025\n" + @@ -452,12 +452,20 @@ public static void registerAllExtensions( "omDfsResponse\022\021\n\tfile_size\030\001 \001(\004\022\025\n\rresp" + "onse_code\030\002 \001(\014\"/\n\030SetPeerDataFolderRequ" + "est\022\023\n\013data_folder\030\001 \001(\t\"*\n\031SetPeerDataF" + - "olderResponse\022\r\n\005query\030\001 \001(\010*i\n\014Response" + + "olderResponse\022\r\n\005query\030\001 \001(\010*i\n\014Response", "Code\022\013\n\007PENDING\020\000\022\016\n\nSUCCESSFUL\020\001\022\t\n\005ERR" + "OR\020\002\022\014\n\010FINISHED\020\003\022\013\n\007EXPIRED\020\004\022\n\n\006FAILE" + "D\020\005\022\n\n\006EXISTS\020\006B\002P\001b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Catalyst.Protocol.Peer.Peer.getDescriptor(), @@ -465,7 +473,7 @@ public static void registerAllExtensions( Catalyst.Protocol.Deltas.Deltas.getDescriptor(), Catalyst.Protocol.Wire.Wire.getDescriptor(), Catalyst.Protocol.Transaction.Transaction.getDescriptor(), - }); + }, assigner); internal_static_Catalyst_Protocol_Rpc_Node_VersionRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Catalyst_Protocol_Rpc_Node_VersionRequest_fieldAccessorTable = new diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyRequest.java index 4dc6345..8f8fd1f 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyRequest.java @@ -10,36 +10,25 @@ public final class SendFromManyRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) SendFromManyRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use SendFromManyRequest.newBuilder() to construct. private SendFromManyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SendFromManyRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SendFromManyRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SendFromManyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private SendFromManyRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private SendFromManyRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private SendFromManyRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendFromManyRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendFromManyRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private SendFromManyRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SendFromManyRequest other = (Catalyst.Protocol.Rpc.Node.SendFromManyRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SendFromManyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SendFromManyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SendFromManyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.SendFromManyRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SendFromManyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendFromManyRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendFromManyRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendFromManyRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendFromManyRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SendFromManyRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendFromManyRequest build() { Catalyst.Protocol.Rpc.Node.SendFromManyRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.SendFromManyRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendFromManyRequest buildPartial() { Catalyst.Protocol.Rpc.Node.SendFromManyRequest result = new Catalyst.Protocol.Rpc.Node.SendFromManyRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.SendFromManyRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SendFromManyRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SendFromManyRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SendFromManyRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.SendFromManyRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SendFromManyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SendFromManyRequest(input, extensionRegistry); + return new SendFromManyRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendFromManyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyRequestOrBuilder.java index f65338a..3616c1f 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface SendFromManyRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyResponse.java index fb387f0..6a3f0e7 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyResponse.java @@ -10,7 +10,6 @@ public final class SendFromManyResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) SendFromManyResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use SendFromManyResponse.newBuilder() to construct. private SendFromManyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private SendFromManyResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SendFromManyResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SendFromManyResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private SendFromManyResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private SendFromManyResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private SendFromManyResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendFromManyResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendFromManyResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private SendFromManyResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SendFromManyResponse other = (Catalyst.Protocol.Rpc.Node.SendFromManyResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SendFromManyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SendFromManyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SendFromManyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.SendFromManyResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SendFromManyResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendFromManyResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendFromManyResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendFromManyResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendFromManyResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SendFromManyResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendFromManyResponse build() { Catalyst.Protocol.Rpc.Node.SendFromManyResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.SendFromManyResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendFromManyResponse buildPartial() { Catalyst.Protocol.Rpc.Node.SendFromManyResponse result = new Catalyst.Protocol.Rpc.Node.SendFromManyResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.SendFromManyResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SendFromManyResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SendFromManyResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SendFromManyResponse other) query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.SendFromManyResponse getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SendFromManyResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SendFromManyResponse(input, extensionRegistry); + return new SendFromManyResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendFromManyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyResponseOrBuilder.java index 71ab27e..46d048b 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendFromManyResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface SendFromManyResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyRequest.java index eea68a4..a4244ae 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyRequest.java @@ -10,36 +10,25 @@ public final class SendManyRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SendManyRequest) SendManyRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use SendManyRequest.newBuilder() to construct. private SendManyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SendManyRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SendManyRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SendManyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private SendManyRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private SendManyRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private SendManyRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendManyRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendManyRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private SendManyRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SendManyRequest other = (Catalyst.Protocol.Rpc.Node.SendManyRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SendManyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SendManyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SendManyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.SendManyRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SendManyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendManyRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendManyRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendManyRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendManyRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SendManyRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendManyRequest build() { Catalyst.Protocol.Rpc.Node.SendManyRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.SendManyRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendManyRequest buildPartial() { Catalyst.Protocol.Rpc.Node.SendManyRequest result = new Catalyst.Protocol.Rpc.Node.SendManyRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.SendManyRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SendManyRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SendManyRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SendManyRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.SendManyRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SendManyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SendManyRequest(input, extensionRegistry); + return new SendManyRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendManyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyRequestOrBuilder.java index 72bc043..744ec01 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface SendManyRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyResponse.java index 757dd7d..d0f748d 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyResponse.java @@ -10,7 +10,6 @@ public final class SendManyResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SendManyResponse) SendManyResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use SendManyResponse.newBuilder() to construct. private SendManyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private SendManyResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SendManyResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SendManyResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private SendManyResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private SendManyResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private SendManyResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendManyResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendManyResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private SendManyResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SendManyResponse other = (Catalyst.Protocol.Rpc.Node.SendManyResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SendManyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SendManyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SendManyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.SendManyResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SendManyResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendManyResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendManyResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendManyResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendManyResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SendManyResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendManyResponse build() { Catalyst.Protocol.Rpc.Node.SendManyResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.SendManyResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendManyResponse buildPartial() { Catalyst.Protocol.Rpc.Node.SendManyResponse result = new Catalyst.Protocol.Rpc.Node.SendManyResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.SendManyResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SendManyResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SendManyResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SendManyResponse other) { query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.SendManyResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SendManyResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SendManyResponse(input, extensionRegistry); + return new SendManyResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendManyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyResponseOrBuilder.java index 658575b..4d5fb5f 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendManyResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface SendManyResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromRequest.java index 4d3a3cb..4948a9d 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromRequest.java @@ -10,36 +10,25 @@ public final class SendToFromRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SendToFromRequest) SendToFromRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use SendToFromRequest.newBuilder() to construct. private SendToFromRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SendToFromRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SendToFromRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SendToFromRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private SendToFromRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private SendToFromRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private SendToFromRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToFromRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToFromRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private SendToFromRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SendToFromRequest other = (Catalyst.Protocol.Rpc.Node.SendToFromRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SendToFromRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SendToFromRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SendToFromRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.SendToFromRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SendToFromRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToFromRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToFromRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToFromRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToFromRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SendToFromRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToFromRequest build() { Catalyst.Protocol.Rpc.Node.SendToFromRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.SendToFromRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToFromRequest buildPartial() { Catalyst.Protocol.Rpc.Node.SendToFromRequest result = new Catalyst.Protocol.Rpc.Node.SendToFromRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.SendToFromRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SendToFromRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SendToFromRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SendToFromRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.SendToFromRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SendToFromRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SendToFromRequest(input, extensionRegistry); + return new SendToFromRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToFromRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromRequestOrBuilder.java index 1e0ca9d..cf38382 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface SendToFromRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromResponse.java index 1883eff..f4a14ee 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromResponse.java @@ -10,7 +10,6 @@ public final class SendToFromResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SendToFromResponse) SendToFromResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use SendToFromResponse.newBuilder() to construct. private SendToFromResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private SendToFromResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SendToFromResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SendToFromResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private SendToFromResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private SendToFromResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private SendToFromResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToFromResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToFromResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private SendToFromResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SendToFromResponse other = (Catalyst.Protocol.Rpc.Node.SendToFromResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SendToFromResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SendToFromResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SendToFromResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.SendToFromResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SendToFromResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToFromResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToFromResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToFromResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToFromResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SendToFromResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToFromResponse build() { Catalyst.Protocol.Rpc.Node.SendToFromResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.SendToFromResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToFromResponse buildPartial() { Catalyst.Protocol.Rpc.Node.SendToFromResponse result = new Catalyst.Protocol.Rpc.Node.SendToFromResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.SendToFromResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SendToFromResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SendToFromResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SendToFromResponse other) { query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.SendToFromResponse getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SendToFromResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SendToFromResponse(input, extensionRegistry); + return new SendToFromResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToFromResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromResponseOrBuilder.java index 3590934..c9f7bcd 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToFromResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface SendToFromResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToRequest.java index d5970b2..43997b9 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToRequest.java @@ -10,36 +10,25 @@ public final class SendToRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SendToRequest) SendToRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use SendToRequest.newBuilder() to construct. private SendToRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SendToRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SendToRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SendToRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private SendToRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private SendToRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private SendToRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private SendToRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SendToRequest other = (Catalyst.Protocol.Rpc.Node.SendToRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SendToRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SendToRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SendToRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.SendToRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SendToRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SendToRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToRequest build() { Catalyst.Protocol.Rpc.Node.SendToRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.SendToRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToRequest buildPartial() { Catalyst.Protocol.Rpc.Node.SendToRequest result = new Catalyst.Protocol.Rpc.Node.SendToRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.SendToRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SendToRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SendToRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SendToRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.SendToRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SendToRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SendToRequest(input, extensionRegistry); + return new SendToRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToRequestOrBuilder.java index 85971f2..ab7ffec 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface SendToRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToResponse.java index 4a92ee3..c5672d8 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToResponse.java @@ -10,7 +10,6 @@ public final class SendToResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SendToResponse) SendToResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use SendToResponse.newBuilder() to construct. private SendToResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private SendToResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SendToResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SendToResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private SendToResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private SendToResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private SendToResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private SendToResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SendToResponse other = (Catalyst.Protocol.Rpc.Node.SendToResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SendToResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SendToResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SendToResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.SendToResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SendToResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SendToResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SendToResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToResponse build() { Catalyst.Protocol.Rpc.Node.SendToResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.SendToResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToResponse buildPartial() { Catalyst.Protocol.Rpc.Node.SendToResponse result = new Catalyst.Protocol.Rpc.Node.SendToResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.SendToResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SendToResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SendToResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SendToResponse other) { query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.SendToResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SendToResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SendToResponse(input, extensionRegistry); + return new SendToResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SendToResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToResponseOrBuilder.java index a0975a0..8511b19 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SendToResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface SendToResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusRequest.java index 0b8e001..1feb05a 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusRequest.java @@ -10,36 +10,25 @@ public final class ServiceStatusRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) ServiceStatusRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use ServiceStatusRequest.newBuilder() to construct. private ServiceStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceStatusRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServiceStatusRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ServiceStatusRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private ServiceStatusRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private ServiceStatusRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private ServiceStatusRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ServiceStatusRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ServiceStatusRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private ServiceStatusRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.ServiceStatusRequest other = (Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.ServiceStatusRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.ServiceStatusRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.ServiceStatusRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.ServiceStatusRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.ServiceStatusRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ServiceStatusRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ServiceStatusRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ServiceStatusRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ServiceStatusRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ServiceStatusRequest build() { Catalyst.Protocol.Rpc.Node.ServiceStatusRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.ServiceStatusRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ServiceStatusRequest buildPartial() { Catalyst.Protocol.Rpc.Node.ServiceStatusRequest result = new Catalyst.Protocol.Rpc.Node.ServiceStatusRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.ServiceStatusRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.ServiceStatusRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.ServiceStatusRequest other) if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.ServiceStatusRequest getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ServiceStatusRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ServiceStatusRequest(input, extensionRegistry); + return new ServiceStatusRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ServiceStatusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusRequestOrBuilder.java index e3b2d53..bdc20d0 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface ServiceStatusRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusResponse.java index 636c50e..8e5a71f 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusResponse.java @@ -10,7 +10,6 @@ public final class ServiceStatusResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) ServiceStatusResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use ServiceStatusResponse.newBuilder() to construct. private ServiceStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private ServiceStatusResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServiceStatusResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ServiceStatusResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private ServiceStatusResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private ServiceStatusResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private ServiceStatusResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ServiceStatusResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ServiceStatusResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private ServiceStatusResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.ServiceStatusResponse other = (Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.ServiceStatusResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.ServiceStatusResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.ServiceStatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.ServiceStatusResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.ServiceStatusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ServiceStatusResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ServiceStatusResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ServiceStatusResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ServiceStatusResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ServiceStatusResponse build() { Catalyst.Protocol.Rpc.Node.ServiceStatusResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.ServiceStatusResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ServiceStatusResponse buildPartial() { Catalyst.Protocol.Rpc.Node.ServiceStatusResponse result = new Catalyst.Protocol.Rpc.Node.ServiceStatusResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.ServiceStatusResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.ServiceStatusResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.ServiceStatusResponse other) query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.ServiceStatusResponse getDefaultInstanc private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ServiceStatusResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ServiceStatusResponse(input, extensionRegistry); + return new ServiceStatusResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ServiceStatusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusResponseOrBuilder.java index 31ad8cd..c78e604 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ServiceStatusResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface ServiceStatusResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListRequest.java new file mode 100644 index 0000000..b16d4af --- /dev/null +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListRequest.java @@ -0,0 +1,548 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Rpc.proto + +package Catalyst.Protocol.Rpc.Node; + +/** + * Protobuf type {@code Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest} + */ +public final class SetPeerBlackListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) + SetPeerBlackListRequestOrBuilder { + // Use SetPeerBlackListRequest.newBuilder() to construct. + private SetPeerBlackListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetPeerBlackListRequest() { + publicKey_ = com.google.protobuf.ByteString.EMPTY; + ip_ = com.google.protobuf.ByteString.EMPTY; + blacklist_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SetPeerBlackListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + publicKey_ = input.readBytes(); + break; + } + case 18: { + + ip_ = input.readBytes(); + break; + } + case 24: { + + blacklist_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerBlackListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerBlackListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.class, Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.Builder.class); + } + + public static final int PUBLIC_KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString publicKey_; + /** + * bytes public_key = 1; + */ + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + + public static final int IP_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString ip_; + /** + * bytes ip = 2; + */ + public com.google.protobuf.ByteString getIp() { + return ip_; + } + + public static final int BLACKLIST_FIELD_NUMBER = 3; + private boolean blacklist_; + /** + * bool blacklist = 3; + */ + public boolean getBlacklist() { + return blacklist_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!publicKey_.isEmpty()) { + output.writeBytes(1, publicKey_); + } + if (!ip_.isEmpty()) { + output.writeBytes(2, ip_); + } + if (blacklist_ != false) { + output.writeBool(3, blacklist_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!publicKey_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, publicKey_); + } + if (!ip_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, ip_); + } + if (blacklist_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, blacklist_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest)) { + return super.equals(obj); + } + Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest other = (Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) obj; + + boolean result = true; + result = result && getPublicKey() + .equals(other.getPublicKey()); + result = result && getIp() + .equals(other.getIp()); + result = result && (getBlacklist() + == other.getBlacklist()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPublicKey().hashCode(); + hash = (37 * hash) + IP_FIELD_NUMBER; + hash = (53 * hash) + getIp().hashCode(); + hash = (37 * hash) + BLACKLIST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBlacklist()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) + Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerBlackListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerBlackListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.class, Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.Builder.class); + } + + // Construct using Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + publicKey_ = com.google.protobuf.ByteString.EMPTY; + + ip_ = com.google.protobuf.ByteString.EMPTY; + + blacklist_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerBlackListRequest_descriptor; + } + + public Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest getDefaultInstanceForType() { + return Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.getDefaultInstance(); + } + + public Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest build() { + Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest buildPartial() { + Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest result = new Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest(this); + result.publicKey_ = publicKey_; + result.ip_ = ip_; + result.blacklist_ = blacklist_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) { + return mergeFrom((Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest other) { + if (other == Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.getDefaultInstance()) return this; + if (other.getPublicKey() != com.google.protobuf.ByteString.EMPTY) { + setPublicKey(other.getPublicKey()); + } + if (other.getIp() != com.google.protobuf.ByteString.EMPTY) { + setIp(other.getIp()); + } + if (other.getBlacklist() != false) { + setBlacklist(other.getBlacklist()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes public_key = 1; + */ + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + /** + * bytes public_key = 1; + */ + public Builder setPublicKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + publicKey_ = value; + onChanged(); + return this; + } + /** + * bytes public_key = 1; + */ + public Builder clearPublicKey() { + + publicKey_ = getDefaultInstance().getPublicKey(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString ip_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes ip = 2; + */ + public com.google.protobuf.ByteString getIp() { + return ip_; + } + /** + * bytes ip = 2; + */ + public Builder setIp(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + ip_ = value; + onChanged(); + return this; + } + /** + * bytes ip = 2; + */ + public Builder clearIp() { + + ip_ = getDefaultInstance().getIp(); + onChanged(); + return this; + } + + private boolean blacklist_ ; + /** + * bool blacklist = 3; + */ + public boolean getBlacklist() { + return blacklist_; + } + /** + * bool blacklist = 3; + */ + public Builder setBlacklist(boolean value) { + + blacklist_ = value; + onChanged(); + return this; + } + /** + * bool blacklist = 3; + */ + public Builder clearBlacklist() { + + blacklist_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) + } + + // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) + private static final Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest(); + } + + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SetPeerBlackListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetPeerBlackListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListRequestOrBuilder.java new file mode 100644 index 0000000..e5cea90 --- /dev/null +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListRequestOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Rpc.proto + +package Catalyst.Protocol.Rpc.Node; + +public interface SetPeerBlackListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes public_key = 1; + */ + com.google.protobuf.ByteString getPublicKey(); + + /** + * bytes ip = 2; + */ + com.google.protobuf.ByteString getIp(); + + /** + * bool blacklist = 3; + */ + boolean getBlacklist(); +} diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListResponse.java new file mode 100644 index 0000000..20bc5f0 --- /dev/null +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListResponse.java @@ -0,0 +1,548 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Rpc.proto + +package Catalyst.Protocol.Rpc.Node; + +/** + * Protobuf type {@code Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse} + */ +public final class SetPeerBlackListResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) + SetPeerBlackListResponseOrBuilder { + // Use SetPeerBlackListResponse.newBuilder() to construct. + private SetPeerBlackListResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetPeerBlackListResponse() { + publicKey_ = com.google.protobuf.ByteString.EMPTY; + ip_ = com.google.protobuf.ByteString.EMPTY; + blacklist_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SetPeerBlackListResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + publicKey_ = input.readBytes(); + break; + } + case 18: { + + ip_ = input.readBytes(); + break; + } + case 24: { + + blacklist_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerBlackListResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerBlackListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.class, Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.Builder.class); + } + + public static final int PUBLIC_KEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString publicKey_; + /** + * bytes public_key = 1; + */ + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + + public static final int IP_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString ip_; + /** + * bytes ip = 2; + */ + public com.google.protobuf.ByteString getIp() { + return ip_; + } + + public static final int BLACKLIST_FIELD_NUMBER = 3; + private boolean blacklist_; + /** + * bool blacklist = 3; + */ + public boolean getBlacklist() { + return blacklist_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!publicKey_.isEmpty()) { + output.writeBytes(1, publicKey_); + } + if (!ip_.isEmpty()) { + output.writeBytes(2, ip_); + } + if (blacklist_ != false) { + output.writeBool(3, blacklist_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!publicKey_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, publicKey_); + } + if (!ip_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, ip_); + } + if (blacklist_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, blacklist_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse)) { + return super.equals(obj); + } + Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse other = (Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) obj; + + boolean result = true; + result = result && getPublicKey() + .equals(other.getPublicKey()); + result = result && getIp() + .equals(other.getIp()); + result = result && (getBlacklist() + == other.getBlacklist()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPublicKey().hashCode(); + hash = (37 * hash) + IP_FIELD_NUMBER; + hash = (53 * hash) + getIp().hashCode(); + hash = (37 * hash) + BLACKLIST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBlacklist()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) + Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerBlackListResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerBlackListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.class, Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.Builder.class); + } + + // Construct using Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + publicKey_ = com.google.protobuf.ByteString.EMPTY; + + ip_ = com.google.protobuf.ByteString.EMPTY; + + blacklist_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerBlackListResponse_descriptor; + } + + public Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse getDefaultInstanceForType() { + return Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.getDefaultInstance(); + } + + public Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse build() { + Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse buildPartial() { + Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse result = new Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse(this); + result.publicKey_ = publicKey_; + result.ip_ = ip_; + result.blacklist_ = blacklist_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) { + return mergeFrom((Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse other) { + if (other == Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.getDefaultInstance()) return this; + if (other.getPublicKey() != com.google.protobuf.ByteString.EMPTY) { + setPublicKey(other.getPublicKey()); + } + if (other.getIp() != com.google.protobuf.ByteString.EMPTY) { + setIp(other.getIp()); + } + if (other.getBlacklist() != false) { + setBlacklist(other.getBlacklist()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes public_key = 1; + */ + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + /** + * bytes public_key = 1; + */ + public Builder setPublicKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + publicKey_ = value; + onChanged(); + return this; + } + /** + * bytes public_key = 1; + */ + public Builder clearPublicKey() { + + publicKey_ = getDefaultInstance().getPublicKey(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString ip_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes ip = 2; + */ + public com.google.protobuf.ByteString getIp() { + return ip_; + } + /** + * bytes ip = 2; + */ + public Builder setIp(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + ip_ = value; + onChanged(); + return this; + } + /** + * bytes ip = 2; + */ + public Builder clearIp() { + + ip_ = getDefaultInstance().getIp(); + onChanged(); + return this; + } + + private boolean blacklist_ ; + /** + * bool blacklist = 3; + */ + public boolean getBlacklist() { + return blacklist_; + } + /** + * bool blacklist = 3; + */ + public Builder setBlacklist(boolean value) { + + blacklist_ = value; + onChanged(); + return this; + } + /** + * bool blacklist = 3; + */ + public Builder clearBlacklist() { + + blacklist_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) + } + + // @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) + private static final Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse(); + } + + public static Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SetPeerBlackListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetPeerBlackListResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListResponseOrBuilder.java new file mode 100644 index 0000000..24b30ce --- /dev/null +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListResponseOrBuilder.java @@ -0,0 +1,24 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Rpc.proto + +package Catalyst.Protocol.Rpc.Node; + +public interface SetPeerBlackListResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes public_key = 1; + */ + com.google.protobuf.ByteString getPublicKey(); + + /** + * bytes ip = 2; + */ + com.google.protobuf.ByteString getIp(); + + /** + * bool blacklist = 3; + */ + boolean getBlacklist(); +} diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderRequest.java index efd2f50..a789f1c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderRequest.java @@ -10,7 +10,6 @@ public final class SetPeerDataFolderRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) SetPeerDataFolderRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use SetPeerDataFolderRequest.newBuilder() to construct. private SetPeerDataFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private SetPeerDataFolderRequest() { dataFolder_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPeerDataFolderRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SetPeerDataFolderRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private SetPeerDataFolderRequest( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); dataFolder_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private SetPeerDataFolderRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private SetPeerDataFolderRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerDataFolderRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerDataFolderRequest_fieldAccessorTable @@ -91,7 +76,6 @@ private SetPeerDataFolderRequest( private volatile java.lang.Object dataFolder_; /** * string data_folder = 1; - * @return The dataFolder. */ public java.lang.String getDataFolder() { java.lang.Object ref = dataFolder_; @@ -107,7 +91,6 @@ public java.lang.String getDataFolder() { } /** * string data_folder = 1; - * @return The bytes for dataFolder. */ public com.google.protobuf.ByteString getDataFolderBytes() { @@ -124,7 +107,6 @@ public java.lang.String getDataFolder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDataFolderBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataFolder_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getDataFolderBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataFolder_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest other = (Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) obj; - if (!getDataFolder() - .equals(other.getDataFolder())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getDataFolder() + .equals(other.getDataFolder()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerDataFolderRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerDataFolderRequest_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); dataFolder_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerDataFolderRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest build() { Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest buildPartial() { Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest result = new Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest(this); result.dataFolder_ = dataFolder_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest oth dataFolder_ = other.dataFolder_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object dataFolder_ = ""; /** * string data_folder = 1; - * @return The dataFolder. */ public java.lang.String getDataFolder() { java.lang.Object ref = dataFolder_; @@ -444,7 +393,6 @@ public java.lang.String getDataFolder() { } /** * string data_folder = 1; - * @return The bytes for dataFolder. */ public com.google.protobuf.ByteString getDataFolderBytes() { @@ -461,8 +409,6 @@ public java.lang.String getDataFolder() { } /** * string data_folder = 1; - * @param value The dataFolder to set. - * @return This builder for chaining. */ public Builder setDataFolder( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setDataFolder( } /** * string data_folder = 1; - * @return This builder for chaining. */ public Builder clearDataFolder() { @@ -486,8 +431,6 @@ public Builder clearDataFolder() { } /** * string data_folder = 1; - * @param value The bytes for dataFolder to set. - * @return This builder for chaining. */ public Builder setDataFolderBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setDataFolderBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest getDefaultInst private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SetPeerDataFolderRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPeerDataFolderRequest(input, extensionRegistry); + return new SetPeerDataFolderRequest(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderRequestOrBuilder.java index acf1655..84ab3f5 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderRequestOrBuilder.java @@ -9,12 +9,10 @@ public interface SetPeerDataFolderRequestOrBuilder extends /** * string data_folder = 1; - * @return The dataFolder. */ java.lang.String getDataFolder(); /** * string data_folder = 1; - * @return The bytes for dataFolder. */ com.google.protobuf.ByteString getDataFolderBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderResponse.java index cb55c95..8e884d5 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderResponse.java @@ -10,36 +10,25 @@ public final class SetPeerDataFolderResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) SetPeerDataFolderResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use SetPeerDataFolderResponse.newBuilder() to construct. private SetPeerDataFolderResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SetPeerDataFolderResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetPeerDataFolderResponse(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SetPeerDataFolderResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private SetPeerDataFolderResponse( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private SetPeerDataFolderResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private SetPeerDataFolderResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerDataFolderResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerDataFolderResponse_fieldAccessorTable @@ -89,14 +75,12 @@ private SetPeerDataFolderResponse( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse other = (Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerDataFolderResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerDataFolderResponse_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SetPeerDataFolderResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse build() { Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse buildPartial() { Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse result = new Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse ot if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse getDefaultIns private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SetPeerDataFolderResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPeerDataFolderResponse(input, extensionRegistry); + return new SetPeerDataFolderResponse(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderResponseOrBuilder.java index 44e0635..94ed4b3 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderResponseOrBuilder.java @@ -9,7 +9,6 @@ public interface SetPeerDataFolderResponseOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageRequest.java index a6e817d..96ae978 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageRequest.java @@ -10,7 +10,6 @@ public final class SignMessageRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SignMessageRequest) SignMessageRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use SignMessageRequest.newBuilder() to construct. private SignMessageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -20,28 +19,17 @@ private SignMessageRequest() { keyId_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SignMessageRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SignMessageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -50,6 +38,12 @@ private SignMessageRequest( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { message_ = input.readBytes(); @@ -74,13 +68,6 @@ private SignMessageRequest( break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,7 +76,6 @@ private SignMessageRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -98,7 +84,6 @@ private SignMessageRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignMessageRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignMessageRequest_fieldAccessorTable @@ -110,7 +95,6 @@ private SignMessageRequest( private com.google.protobuf.ByteString message_; /** * bytes message = 1; - * @return The message. */ public com.google.protobuf.ByteString getMessage() { return message_; @@ -120,7 +104,6 @@ public com.google.protobuf.ByteString getMessage() { private volatile java.lang.Object keyId_; /** * string key_id = 2; - * @return The keyId. */ public java.lang.String getKeyId() { java.lang.Object ref = keyId_; @@ -136,7 +119,6 @@ public java.lang.String getKeyId() { } /** * string key_id = 2; - * @return The bytes for keyId. */ public com.google.protobuf.ByteString getKeyIdBytes() { @@ -156,14 +138,12 @@ public java.lang.String getKeyId() { private Catalyst.Protocol.Cryptography.SigningContext signingContext_; /** * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; - * @return Whether the signingContext field is set. */ public boolean hasSigningContext() { return signingContext_ != null; } /** * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; - * @return The signingContext. */ public Catalyst.Protocol.Cryptography.SigningContext getSigningContext() { return signingContext_ == null ? Catalyst.Protocol.Cryptography.SigningContext.getDefaultInstance() : signingContext_; @@ -176,7 +156,6 @@ public Catalyst.Protocol.Cryptography.SigningContextOrBuilder getSigningContextO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -186,7 +165,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!message_.isEmpty()) { @@ -198,10 +176,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (signingContext_ != null) { output.writeMessage(3, getSigningContext()); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -218,11 +194,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSigningContext()); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -233,17 +209,17 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SignMessageRequest other = (Catalyst.Protocol.Rpc.Node.SignMessageRequest) obj; - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getKeyId() - .equals(other.getKeyId())) return false; - if (hasSigningContext() != other.hasSigningContext()) return false; + boolean result = true; + result = result && getMessage() + .equals(other.getMessage()); + result = result && getKeyId() + .equals(other.getKeyId()); + result = result && (hasSigningContext() == other.hasSigningContext()); if (hasSigningContext()) { - if (!getSigningContext() - .equals(other.getSigningContext())) return false; + result = result && getSigningContext() + .equals(other.getSigningContext()); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + return result; } @java.lang.Override @@ -266,17 +242,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SignMessageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SignMessageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SignMessageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -336,7 +301,6 @@ public static Catalyst.Protocol.Rpc.Node.SignMessageRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -344,7 +308,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SignMessageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -368,7 +331,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignMessageRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignMessageRequest_fieldAccessorTable @@ -391,7 +353,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); message_ = com.google.protobuf.ByteString.EMPTY; @@ -407,18 +368,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignMessageRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignMessageRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SignMessageRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignMessageRequest build() { Catalyst.Protocol.Rpc.Node.SignMessageRequest result = buildPartial(); if (!result.isInitialized()) { @@ -427,7 +385,6 @@ public Catalyst.Protocol.Rpc.Node.SignMessageRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignMessageRequest buildPartial() { Catalyst.Protocol.Rpc.Node.SignMessageRequest result = new Catalyst.Protocol.Rpc.Node.SignMessageRequest(this); result.message_ = message_; @@ -441,39 +398,32 @@ public Catalyst.Protocol.Rpc.Node.SignMessageRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SignMessageRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SignMessageRequest)other); @@ -495,17 +445,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SignMessageRequest other) { if (other.hasSigningContext()) { mergeSigningContext(other.getSigningContext()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -527,15 +474,12 @@ public Builder mergeFrom( private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; /** * bytes message = 1; - * @return The message. */ public com.google.protobuf.ByteString getMessage() { return message_; } /** * bytes message = 1; - * @param value The message to set. - * @return This builder for chaining. */ public Builder setMessage(com.google.protobuf.ByteString value) { if (value == null) { @@ -548,7 +492,6 @@ public Builder setMessage(com.google.protobuf.ByteString value) { } /** * bytes message = 1; - * @return This builder for chaining. */ public Builder clearMessage() { @@ -560,7 +503,6 @@ public Builder clearMessage() { private java.lang.Object keyId_ = ""; /** * string key_id = 2; - * @return The keyId. */ public java.lang.String getKeyId() { java.lang.Object ref = keyId_; @@ -576,7 +518,6 @@ public java.lang.String getKeyId() { } /** * string key_id = 2; - * @return The bytes for keyId. */ public com.google.protobuf.ByteString getKeyIdBytes() { @@ -593,8 +534,6 @@ public java.lang.String getKeyId() { } /** * string key_id = 2; - * @param value The keyId to set. - * @return This builder for chaining. */ public Builder setKeyId( java.lang.String value) { @@ -608,7 +547,6 @@ public Builder setKeyId( } /** * string key_id = 2; - * @return This builder for chaining. */ public Builder clearKeyId() { @@ -618,8 +556,6 @@ public Builder clearKeyId() { } /** * string key_id = 2; - * @param value The bytes for keyId to set. - * @return This builder for chaining. */ public Builder setKeyIdBytes( com.google.protobuf.ByteString value) { @@ -633,19 +569,17 @@ public Builder setKeyIdBytes( return this; } - private Catalyst.Protocol.Cryptography.SigningContext signingContext_; + private Catalyst.Protocol.Cryptography.SigningContext signingContext_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Cryptography.SigningContext, Catalyst.Protocol.Cryptography.SigningContext.Builder, Catalyst.Protocol.Cryptography.SigningContextOrBuilder> signingContextBuilder_; /** * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; - * @return Whether the signingContext field is set. */ public boolean hasSigningContext() { return signingContextBuilder_ != null || signingContext_ != null; } /** * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; - * @return The signingContext. */ public Catalyst.Protocol.Cryptography.SigningContext getSigningContext() { if (signingContextBuilder_ == null) { @@ -751,16 +685,14 @@ public Catalyst.Protocol.Cryptography.SigningContextOrBuilder getSigningContextO } return signingContextBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -779,12 +711,11 @@ public static Catalyst.Protocol.Rpc.Node.SignMessageRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SignMessageRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SignMessageRequest(input, extensionRegistry); + return new SignMessageRequest(input, extensionRegistry); } }; @@ -797,7 +728,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignMessageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageRequestOrBuilder.java index b691160..d17466b 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageRequestOrBuilder.java @@ -9,30 +9,25 @@ public interface SignMessageRequestOrBuilder extends /** * bytes message = 1; - * @return The message. */ com.google.protobuf.ByteString getMessage(); /** * string key_id = 2; - * @return The keyId. */ java.lang.String getKeyId(); /** * string key_id = 2; - * @return The bytes for keyId. */ com.google.protobuf.ByteString getKeyIdBytes(); /** * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; - * @return Whether the signingContext field is set. */ boolean hasSigningContext(); /** * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; - * @return The signingContext. */ Catalyst.Protocol.Cryptography.SigningContext getSigningContext(); /** diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageResponse.java index 546e3ca..06ce3d1 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageResponse.java @@ -10,7 +10,6 @@ public final class SignMessageResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SignMessageResponse) SignMessageResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use SignMessageResponse.newBuilder() to construct. private SignMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -21,28 +20,17 @@ private SignMessageResponse() { originalMessage_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SignMessageResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SignMessageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -51,6 +39,12 @@ private SignMessageResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { signature_ = input.readBytes(); @@ -66,13 +60,6 @@ private SignMessageResponse( originalMessage_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -81,7 +68,6 @@ private SignMessageResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -90,7 +76,6 @@ private SignMessageResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignMessageResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignMessageResponse_fieldAccessorTable @@ -102,7 +87,6 @@ private SignMessageResponse( private com.google.protobuf.ByteString signature_; /** * bytes signature = 1; - * @return The signature. */ public com.google.protobuf.ByteString getSignature() { return signature_; @@ -112,7 +96,6 @@ public com.google.protobuf.ByteString getSignature() { private com.google.protobuf.ByteString publicKey_; /** * bytes public_key = 2; - * @return The publicKey. */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; @@ -122,14 +105,12 @@ public com.google.protobuf.ByteString getPublicKey() { private com.google.protobuf.ByteString originalMessage_; /** * bytes original_message = 3; - * @return The originalMessage. */ public com.google.protobuf.ByteString getOriginalMessage() { return originalMessage_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -139,7 +120,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!signature_.isEmpty()) { @@ -151,10 +131,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!originalMessage_.isEmpty()) { output.writeBytes(3, originalMessage_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -172,11 +150,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, originalMessage_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -187,14 +165,14 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SignMessageResponse other = (Catalyst.Protocol.Rpc.Node.SignMessageResponse) obj; - if (!getSignature() - .equals(other.getSignature())) return false; - if (!getPublicKey() - .equals(other.getPublicKey())) return false; - if (!getOriginalMessage() - .equals(other.getOriginalMessage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getSignature() + .equals(other.getSignature()); + result = result && getPublicKey() + .equals(other.getPublicKey()); + result = result && getOriginalMessage() + .equals(other.getOriginalMessage()); + return result; } @java.lang.Override @@ -215,17 +193,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SignMessageResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SignMessageResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SignMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -285,7 +252,6 @@ public static Catalyst.Protocol.Rpc.Node.SignMessageResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -293,7 +259,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SignMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -317,7 +282,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignMessageResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignMessageResponse_fieldAccessorTable @@ -340,7 +304,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); signature_ = com.google.protobuf.ByteString.EMPTY; @@ -352,18 +315,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignMessageResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignMessageResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SignMessageResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignMessageResponse build() { Catalyst.Protocol.Rpc.Node.SignMessageResponse result = buildPartial(); if (!result.isInitialized()) { @@ -372,7 +332,6 @@ public Catalyst.Protocol.Rpc.Node.SignMessageResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignMessageResponse buildPartial() { Catalyst.Protocol.Rpc.Node.SignMessageResponse result = new Catalyst.Protocol.Rpc.Node.SignMessageResponse(this); result.signature_ = signature_; @@ -382,39 +341,32 @@ public Catalyst.Protocol.Rpc.Node.SignMessageResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SignMessageResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SignMessageResponse)other); @@ -435,17 +387,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SignMessageResponse other) { if (other.getOriginalMessage() != com.google.protobuf.ByteString.EMPTY) { setOriginalMessage(other.getOriginalMessage()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -467,15 +416,12 @@ public Builder mergeFrom( private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature = 1; - * @return The signature. */ public com.google.protobuf.ByteString getSignature() { return signature_; } /** * bytes signature = 1; - * @param value The signature to set. - * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { @@ -488,7 +434,6 @@ public Builder setSignature(com.google.protobuf.ByteString value) { } /** * bytes signature = 1; - * @return This builder for chaining. */ public Builder clearSignature() { @@ -500,15 +445,12 @@ public Builder clearSignature() { private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes public_key = 2; - * @return The publicKey. */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; } /** * bytes public_key = 2; - * @param value The publicKey to set. - * @return This builder for chaining. */ public Builder setPublicKey(com.google.protobuf.ByteString value) { if (value == null) { @@ -521,7 +463,6 @@ public Builder setPublicKey(com.google.protobuf.ByteString value) { } /** * bytes public_key = 2; - * @return This builder for chaining. */ public Builder clearPublicKey() { @@ -533,15 +474,12 @@ public Builder clearPublicKey() { private com.google.protobuf.ByteString originalMessage_ = com.google.protobuf.ByteString.EMPTY; /** * bytes original_message = 3; - * @return The originalMessage. */ public com.google.protobuf.ByteString getOriginalMessage() { return originalMessage_; } /** * bytes original_message = 3; - * @param value The originalMessage to set. - * @return This builder for chaining. */ public Builder setOriginalMessage(com.google.protobuf.ByteString value) { if (value == null) { @@ -554,7 +492,6 @@ public Builder setOriginalMessage(com.google.protobuf.ByteString value) { } /** * bytes original_message = 3; - * @return This builder for chaining. */ public Builder clearOriginalMessage() { @@ -562,16 +499,14 @@ public Builder clearOriginalMessage() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -590,12 +525,11 @@ public static Catalyst.Protocol.Rpc.Node.SignMessageResponse getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SignMessageResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SignMessageResponse(input, extensionRegistry); + return new SignMessageResponse(input, extensionRegistry); } }; @@ -608,7 +542,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignMessageResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageResponseOrBuilder.java index 1e0adb8..5e7a00d 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignMessageResponseOrBuilder.java @@ -9,19 +9,16 @@ public interface SignMessageResponseOrBuilder extends /** * bytes signature = 1; - * @return The signature. */ com.google.protobuf.ByteString getSignature(); /** * bytes public_key = 2; - * @return The publicKey. */ com.google.protobuf.ByteString getPublicKey(); /** * bytes original_message = 3; - * @return The originalMessage. */ com.google.protobuf.ByteString getOriginalMessage(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionRequest.java index 54073af..f6125f3 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionRequest.java @@ -10,36 +10,25 @@ public final class SignRawTransactionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) SignRawTransactionRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use SignRawTransactionRequest.newBuilder() to construct. private SignRawTransactionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SignRawTransactionRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SignRawTransactionRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SignRawTransactionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private SignRawTransactionRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private SignRawTransactionRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private SignRawTransactionRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignRawTransactionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignRawTransactionRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private SignRawTransactionRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest other = (Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignRawTransactionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignRawTransactionRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignRawTransactionRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest build() { Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest buildPartial() { Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest result = new Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest ot if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest getDefaultIns private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SignRawTransactionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SignRawTransactionRequest(input, extensionRegistry); + return new SignRawTransactionRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionRequestOrBuilder.java index 6891add..12ec16b 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface SignRawTransactionRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionResponse.java index 5377637..24013f8 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionResponse.java @@ -10,7 +10,6 @@ public final class SignRawTransactionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) SignRawTransactionResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use SignRawTransactionResponse.newBuilder() to construct. private SignRawTransactionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private SignRawTransactionResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SignRawTransactionResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private SignRawTransactionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private SignRawTransactionResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private SignRawTransactionResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private SignRawTransactionResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignRawTransactionResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignRawTransactionResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private SignRawTransactionResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse other = (Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignRawTransactionResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignRawTransactionResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_SignRawTransactionResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse build() { Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse buildPartial() { Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse result = new Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse o query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse getDefaultIn private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SignRawTransactionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SignRawTransactionResponse(input, extensionRegistry); + return new SignRawTransactionResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionResponseOrBuilder.java index f6b19fe..c1d4872 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface SignRawTransactionResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesRequest.java index db08482..86c4b95 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesRequest.java @@ -10,38 +10,27 @@ public final class TransferFileBytesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) TransferFileBytesRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use TransferFileBytesRequest.newBuilder() to construct. private TransferFileBytesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransferFileBytesRequest() { + chunkId_ = 0; chunkBytes_ = com.google.protobuf.ByteString.EMPTY; correlationFileName_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TransferFileBytesRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private TransferFileBytesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -50,6 +39,12 @@ private TransferFileBytesRequest( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 8: { chunkId_ = input.readUInt32(); @@ -65,13 +60,6 @@ private TransferFileBytesRequest( correlationFileName_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,7 +68,6 @@ private TransferFileBytesRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -89,7 +76,6 @@ private TransferFileBytesRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_TransferFileBytesRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_TransferFileBytesRequest_fieldAccessorTable @@ -101,7 +87,6 @@ private TransferFileBytesRequest( private int chunkId_; /** * uint32 chunk_id = 1; - * @return The chunkId. */ public int getChunkId() { return chunkId_; @@ -111,7 +96,6 @@ public int getChunkId() { private com.google.protobuf.ByteString chunkBytes_; /** * bytes chunk_bytes = 2; - * @return The chunkBytes. */ public com.google.protobuf.ByteString getChunkBytes() { return chunkBytes_; @@ -121,14 +105,12 @@ public com.google.protobuf.ByteString getChunkBytes() { private com.google.protobuf.ByteString correlationFileName_; /** * bytes correlation_file_name = 3; - * @return The correlationFileName. */ public com.google.protobuf.ByteString getCorrelationFileName() { return correlationFileName_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,7 +120,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chunkId_ != 0) { @@ -150,10 +131,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!correlationFileName_.isEmpty()) { output.writeBytes(3, correlationFileName_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -171,11 +150,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, correlationFileName_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -186,14 +165,14 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest other = (Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) obj; - if (getChunkId() - != other.getChunkId()) return false; - if (!getChunkBytes() - .equals(other.getChunkBytes())) return false; - if (!getCorrelationFileName() - .equals(other.getCorrelationFileName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getChunkId() + == other.getChunkId()); + result = result && getChunkBytes() + .equals(other.getChunkBytes()); + result = result && getCorrelationFileName() + .equals(other.getCorrelationFileName()); + return result; } @java.lang.Override @@ -214,17 +193,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -284,7 +252,6 @@ public static Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -292,7 +259,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -316,7 +282,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_TransferFileBytesRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_TransferFileBytesRequest_fieldAccessorTable @@ -339,7 +304,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); chunkId_ = 0; @@ -351,18 +315,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_TransferFileBytesRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest build() { Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest result = buildPartial(); if (!result.isInitialized()) { @@ -371,7 +332,6 @@ public Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest buildPartial() { Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest result = new Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest(this); result.chunkId_ = chunkId_; @@ -381,39 +341,32 @@ public Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest)other); @@ -434,17 +387,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest oth if (other.getCorrelationFileName() != com.google.protobuf.ByteString.EMPTY) { setCorrelationFileName(other.getCorrelationFileName()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -466,15 +416,12 @@ public Builder mergeFrom( private int chunkId_ ; /** * uint32 chunk_id = 1; - * @return The chunkId. */ public int getChunkId() { return chunkId_; } /** * uint32 chunk_id = 1; - * @param value The chunkId to set. - * @return This builder for chaining. */ public Builder setChunkId(int value) { @@ -484,7 +431,6 @@ public Builder setChunkId(int value) { } /** * uint32 chunk_id = 1; - * @return This builder for chaining. */ public Builder clearChunkId() { @@ -496,15 +442,12 @@ public Builder clearChunkId() { private com.google.protobuf.ByteString chunkBytes_ = com.google.protobuf.ByteString.EMPTY; /** * bytes chunk_bytes = 2; - * @return The chunkBytes. */ public com.google.protobuf.ByteString getChunkBytes() { return chunkBytes_; } /** * bytes chunk_bytes = 2; - * @param value The chunkBytes to set. - * @return This builder for chaining. */ public Builder setChunkBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -517,7 +460,6 @@ public Builder setChunkBytes(com.google.protobuf.ByteString value) { } /** * bytes chunk_bytes = 2; - * @return This builder for chaining. */ public Builder clearChunkBytes() { @@ -529,15 +471,12 @@ public Builder clearChunkBytes() { private com.google.protobuf.ByteString correlationFileName_ = com.google.protobuf.ByteString.EMPTY; /** * bytes correlation_file_name = 3; - * @return The correlationFileName. */ public com.google.protobuf.ByteString getCorrelationFileName() { return correlationFileName_; } /** * bytes correlation_file_name = 3; - * @param value The correlationFileName to set. - * @return This builder for chaining. */ public Builder setCorrelationFileName(com.google.protobuf.ByteString value) { if (value == null) { @@ -550,7 +489,6 @@ public Builder setCorrelationFileName(com.google.protobuf.ByteString value) { } /** * bytes correlation_file_name = 3; - * @return This builder for chaining. */ public Builder clearCorrelationFileName() { @@ -558,16 +496,14 @@ public Builder clearCorrelationFileName() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -586,12 +522,11 @@ public static Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest getDefaultInst private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public TransferFileBytesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TransferFileBytesRequest(input, extensionRegistry); + return new TransferFileBytesRequest(input, extensionRegistry); } }; @@ -604,7 +539,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesRequestOrBuilder.java index 9c56977..c7be8eb 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesRequestOrBuilder.java @@ -9,19 +9,16 @@ public interface TransferFileBytesRequestOrBuilder extends /** * uint32 chunk_id = 1; - * @return The chunkId. */ int getChunkId(); /** * bytes chunk_bytes = 2; - * @return The chunkBytes. */ com.google.protobuf.ByteString getChunkBytes(); /** * bytes correlation_file_name = 3; - * @return The correlationFileName. */ com.google.protobuf.ByteString getCorrelationFileName(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesResponse.java index 2801241..1eba7c0 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesResponse.java @@ -10,7 +10,6 @@ public final class TransferFileBytesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) TransferFileBytesResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use TransferFileBytesResponse.newBuilder() to construct. private TransferFileBytesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private TransferFileBytesResponse() { responseCode_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TransferFileBytesResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private TransferFileBytesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,18 +37,17 @@ private TransferFileBytesResponse( case 0: done = true; break; - case 10: { - - responseCode_ = input.readBytes(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 10: { + + responseCode_ = input.readBytes(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -69,7 +56,6 @@ private TransferFileBytesResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -78,7 +64,6 @@ private TransferFileBytesResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_TransferFileBytesResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_TransferFileBytesResponse_fieldAccessorTable @@ -90,14 +75,12 @@ private TransferFileBytesResponse( private com.google.protobuf.ByteString responseCode_; /** * bytes response_code = 1; - * @return The responseCode. */ public com.google.protobuf.ByteString getResponseCode() { return responseCode_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -107,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!responseCode_.isEmpty()) { output.writeBytes(1, responseCode_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -126,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, responseCode_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -141,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse other = (Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) obj; - if (!getResponseCode() - .equals(other.getResponseCode())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getResponseCode() + .equals(other.getResponseCode()); + return result; } @java.lang.Override @@ -161,17 +141,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +200,6 @@ public static Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +207,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +230,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_TransferFileBytesResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_TransferFileBytesResponse_fieldAccessorTable @@ -286,7 +252,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); responseCode_ = com.google.protobuf.ByteString.EMPTY; @@ -294,18 +259,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_TransferFileBytesResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse build() { Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +276,6 @@ public Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse buildPartial() { Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse result = new Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse(this); result.responseCode_ = responseCode_; @@ -322,39 +283,32 @@ public Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse)other); @@ -369,17 +323,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse ot if (other.getResponseCode() != com.google.protobuf.ByteString.EMPTY) { setResponseCode(other.getResponseCode()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +352,12 @@ public Builder mergeFrom( private com.google.protobuf.ByteString responseCode_ = com.google.protobuf.ByteString.EMPTY; /** * bytes response_code = 1; - * @return The responseCode. */ public com.google.protobuf.ByteString getResponseCode() { return responseCode_; } /** * bytes response_code = 1; - * @param value The responseCode to set. - * @return This builder for chaining. */ public Builder setResponseCode(com.google.protobuf.ByteString value) { if (value == null) { @@ -422,7 +370,6 @@ public Builder setResponseCode(com.google.protobuf.ByteString value) { } /** * bytes response_code = 1; - * @return This builder for chaining. */ public Builder clearResponseCode() { @@ -430,16 +377,14 @@ public Builder clearResponseCode() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -458,12 +403,11 @@ public static Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse getDefaultIns private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public TransferFileBytesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TransferFileBytesResponse(input, extensionRegistry); + return new TransferFileBytesResponse(input, extensionRegistry); } }; @@ -476,7 +420,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesResponseOrBuilder.java index df59cae..1ae5a47 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesResponseOrBuilder.java @@ -9,7 +9,6 @@ public interface TransferFileBytesResponseOrBuilder extends /** * bytes response_code = 1; - * @return The responseCode. */ com.google.protobuf.ByteString getResponseCode(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressRequest.java index 72444e9..06cdefe 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressRequest.java @@ -10,36 +10,25 @@ public final class ValidateAddressRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) ValidateAddressRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use ValidateAddressRequest.newBuilder() to construct. private ValidateAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ValidateAddressRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ValidateAddressRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ValidateAddressRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private ValidateAddressRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private ValidateAddressRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private ValidateAddressRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ValidateAddressRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ValidateAddressRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private ValidateAddressRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.ValidateAddressRequest other = (Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.ValidateAddressRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.ValidateAddressRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.ValidateAddressRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.ValidateAddressRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.ValidateAddressRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ValidateAddressRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ValidateAddressRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ValidateAddressRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ValidateAddressRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ValidateAddressRequest build() { Catalyst.Protocol.Rpc.Node.ValidateAddressRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.ValidateAddressRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ValidateAddressRequest buildPartial() { Catalyst.Protocol.Rpc.Node.ValidateAddressRequest result = new Catalyst.Protocol.Rpc.Node.ValidateAddressRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.ValidateAddressRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.ValidateAddressRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.ValidateAddressRequest other if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.ValidateAddressRequest getDefaultInstan private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ValidateAddressRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidateAddressRequest(input, extensionRegistry); + return new ValidateAddressRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ValidateAddressRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressRequestOrBuilder.java index 999117c..e7a25af 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface ValidateAddressRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressResponse.java index a48689e..c6b7caa 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressResponse.java @@ -10,7 +10,6 @@ public final class ValidateAddressResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) ValidateAddressResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use ValidateAddressResponse.newBuilder() to construct. private ValidateAddressResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private ValidateAddressResponse() { query_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ValidateAddressResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ValidateAddressResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private ValidateAddressResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private ValidateAddressResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private ValidateAddressResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ValidateAddressResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ValidateAddressResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private ValidateAddressResponse( private volatile java.lang.Object query_; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -107,7 +91,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -124,7 +107,6 @@ public java.lang.String getQuery() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.ValidateAddressResponse other = (Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) obj; - if (!getQuery() - .equals(other.getQuery())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.ValidateAddressResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.ValidateAddressResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.ValidateAddressResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.ValidateAddressResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.ValidateAddressResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ValidateAddressResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ValidateAddressResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_ValidateAddressResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ValidateAddressResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ValidateAddressResponse build() { Catalyst.Protocol.Rpc.Node.ValidateAddressResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.ValidateAddressResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ValidateAddressResponse buildPartial() { Catalyst.Protocol.Rpc.Node.ValidateAddressResponse result = new Catalyst.Protocol.Rpc.Node.ValidateAddressResponse(this); result.query_ = query_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.ValidateAddressResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.ValidateAddressResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.ValidateAddressResponse othe query_ = other.query_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object query_ = ""; /** * string query = 1; - * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; @@ -444,7 +393,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { @@ -461,8 +409,6 @@ public java.lang.String getQuery() { } /** * string query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setQuery( } /** * string query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -486,8 +431,6 @@ public Builder clearQuery() { } /** * string query = 1; - * @param value The bytes for query to set. - * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setQueryBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.ValidateAddressResponse getDefaultInsta private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ValidateAddressResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidateAddressResponse(input, extensionRegistry); + return new ValidateAddressResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.ValidateAddressResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressResponseOrBuilder.java index 8dc3ad5..aeeb3f3 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/ValidateAddressResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface ValidateAddressResponseOrBuilder extends /** * string query = 1; - * @return The query. */ java.lang.String getQuery(); /** * string query = 1; - * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageRequest.java index 852a16a..50dc6df 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageRequest.java @@ -10,7 +10,6 @@ public final class VerifyMessageRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) VerifyMessageRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use VerifyMessageRequest.newBuilder() to construct. private VerifyMessageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -21,28 +20,17 @@ private VerifyMessageRequest() { message_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VerifyMessageRequest(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private VerifyMessageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -51,6 +39,12 @@ private VerifyMessageRequest( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { signature_ = input.readBytes(); @@ -79,13 +73,6 @@ private VerifyMessageRequest( break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,7 +81,6 @@ private VerifyMessageRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -103,7 +89,6 @@ private VerifyMessageRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VerifyMessageRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VerifyMessageRequest_fieldAccessorTable @@ -115,7 +100,6 @@ private VerifyMessageRequest( private com.google.protobuf.ByteString signature_; /** * bytes signature = 1; - * @return The signature. */ public com.google.protobuf.ByteString getSignature() { return signature_; @@ -125,7 +109,6 @@ public com.google.protobuf.ByteString getSignature() { private com.google.protobuf.ByteString publicKey_; /** * bytes public_key = 2; - * @return The publicKey. */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; @@ -135,7 +118,6 @@ public com.google.protobuf.ByteString getPublicKey() { private com.google.protobuf.ByteString message_; /** * bytes message = 3; - * @return The message. */ public com.google.protobuf.ByteString getMessage() { return message_; @@ -145,14 +127,12 @@ public com.google.protobuf.ByteString getMessage() { private Catalyst.Protocol.Cryptography.SigningContext signingContext_; /** * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; - * @return Whether the signingContext field is set. */ public boolean hasSigningContext() { return signingContext_ != null; } /** * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; - * @return The signingContext. */ public Catalyst.Protocol.Cryptography.SigningContext getSigningContext() { return signingContext_ == null ? Catalyst.Protocol.Cryptography.SigningContext.getDefaultInstance() : signingContext_; @@ -165,7 +145,6 @@ public Catalyst.Protocol.Cryptography.SigningContextOrBuilder getSigningContextO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -175,7 +154,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!signature_.isEmpty()) { @@ -190,10 +168,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (signingContext_ != null) { output.writeMessage(4, getSigningContext()); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -215,11 +191,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSigningContext()); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -230,19 +206,19 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.VerifyMessageRequest other = (Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) obj; - if (!getSignature() - .equals(other.getSignature())) return false; - if (!getPublicKey() - .equals(other.getPublicKey())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; - if (hasSigningContext() != other.hasSigningContext()) return false; + boolean result = true; + result = result && getSignature() + .equals(other.getSignature()); + result = result && getPublicKey() + .equals(other.getPublicKey()); + result = result && getMessage() + .equals(other.getMessage()); + result = result && (hasSigningContext() == other.hasSigningContext()); if (hasSigningContext()) { - if (!getSigningContext() - .equals(other.getSigningContext())) return false; + result = result && getSigningContext() + .equals(other.getSigningContext()); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + return result; } @java.lang.Override @@ -267,17 +243,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.VerifyMessageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.VerifyMessageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.VerifyMessageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -337,7 +302,6 @@ public static Catalyst.Protocol.Rpc.Node.VerifyMessageRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -345,7 +309,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.VerifyMessageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -369,7 +332,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VerifyMessageRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VerifyMessageRequest_fieldAccessorTable @@ -392,7 +354,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); signature_ = com.google.protobuf.ByteString.EMPTY; @@ -410,18 +371,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VerifyMessageRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VerifyMessageRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VerifyMessageRequest build() { Catalyst.Protocol.Rpc.Node.VerifyMessageRequest result = buildPartial(); if (!result.isInitialized()) { @@ -430,7 +388,6 @@ public Catalyst.Protocol.Rpc.Node.VerifyMessageRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VerifyMessageRequest buildPartial() { Catalyst.Protocol.Rpc.Node.VerifyMessageRequest result = new Catalyst.Protocol.Rpc.Node.VerifyMessageRequest(this); result.signature_ = signature_; @@ -445,39 +402,32 @@ public Catalyst.Protocol.Rpc.Node.VerifyMessageRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.VerifyMessageRequest)other); @@ -501,17 +451,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.VerifyMessageRequest other) if (other.hasSigningContext()) { mergeSigningContext(other.getSigningContext()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -533,15 +480,12 @@ public Builder mergeFrom( private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** * bytes signature = 1; - * @return The signature. */ public com.google.protobuf.ByteString getSignature() { return signature_; } /** * bytes signature = 1; - * @param value The signature to set. - * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { @@ -554,7 +498,6 @@ public Builder setSignature(com.google.protobuf.ByteString value) { } /** * bytes signature = 1; - * @return This builder for chaining. */ public Builder clearSignature() { @@ -566,15 +509,12 @@ public Builder clearSignature() { private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes public_key = 2; - * @return The publicKey. */ public com.google.protobuf.ByteString getPublicKey() { return publicKey_; } /** * bytes public_key = 2; - * @param value The publicKey to set. - * @return This builder for chaining. */ public Builder setPublicKey(com.google.protobuf.ByteString value) { if (value == null) { @@ -587,7 +527,6 @@ public Builder setPublicKey(com.google.protobuf.ByteString value) { } /** * bytes public_key = 2; - * @return This builder for chaining. */ public Builder clearPublicKey() { @@ -599,15 +538,12 @@ public Builder clearPublicKey() { private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; /** * bytes message = 3; - * @return The message. */ public com.google.protobuf.ByteString getMessage() { return message_; } /** * bytes message = 3; - * @param value The message to set. - * @return This builder for chaining. */ public Builder setMessage(com.google.protobuf.ByteString value) { if (value == null) { @@ -620,7 +556,6 @@ public Builder setMessage(com.google.protobuf.ByteString value) { } /** * bytes message = 3; - * @return This builder for chaining. */ public Builder clearMessage() { @@ -629,19 +564,17 @@ public Builder clearMessage() { return this; } - private Catalyst.Protocol.Cryptography.SigningContext signingContext_; + private Catalyst.Protocol.Cryptography.SigningContext signingContext_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Cryptography.SigningContext, Catalyst.Protocol.Cryptography.SigningContext.Builder, Catalyst.Protocol.Cryptography.SigningContextOrBuilder> signingContextBuilder_; /** * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; - * @return Whether the signingContext field is set. */ public boolean hasSigningContext() { return signingContextBuilder_ != null || signingContext_ != null; } /** * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; - * @return The signingContext. */ public Catalyst.Protocol.Cryptography.SigningContext getSigningContext() { if (signingContextBuilder_ == null) { @@ -747,16 +680,14 @@ public Catalyst.Protocol.Cryptography.SigningContextOrBuilder getSigningContextO } return signingContextBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -775,12 +706,11 @@ public static Catalyst.Protocol.Rpc.Node.VerifyMessageRequest getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public VerifyMessageRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VerifyMessageRequest(input, extensionRegistry); + return new VerifyMessageRequest(input, extensionRegistry); } }; @@ -793,7 +723,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VerifyMessageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageRequestOrBuilder.java index ad83933..925f1b0 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageRequestOrBuilder.java @@ -9,30 +9,25 @@ public interface VerifyMessageRequestOrBuilder extends /** * bytes signature = 1; - * @return The signature. */ com.google.protobuf.ByteString getSignature(); /** * bytes public_key = 2; - * @return The publicKey. */ com.google.protobuf.ByteString getPublicKey(); /** * bytes message = 3; - * @return The message. */ com.google.protobuf.ByteString getMessage(); /** * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; - * @return Whether the signingContext field is set. */ boolean hasSigningContext(); /** * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; - * @return The signingContext. */ Catalyst.Protocol.Cryptography.SigningContext getSigningContext(); /** diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageResponse.java index bf50f33..1a8f642 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageResponse.java @@ -10,36 +10,25 @@ public final class VerifyMessageResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) VerifyMessageResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use VerifyMessageResponse.newBuilder() to construct. private VerifyMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerifyMessageResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VerifyMessageResponse(); + isSignedByKey_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private VerifyMessageResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private VerifyMessageResponse( case 0: done = true; break; - case 8: { - - isSignedByKey_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + isSignedByKey_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private VerifyMessageResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private VerifyMessageResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VerifyMessageResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VerifyMessageResponse_fieldAccessorTable @@ -89,14 +75,12 @@ private VerifyMessageResponse( private boolean isSignedByKey_; /** * bool is_signed_by_key = 1; - * @return The isSignedByKey. */ public boolean getIsSignedByKey() { return isSignedByKey_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (isSignedByKey_ != false) { output.writeBool(1, isSignedByKey_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isSignedByKey_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.VerifyMessageResponse other = (Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) obj; - if (getIsSignedByKey() - != other.getIsSignedByKey()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getIsSignedByKey() + == other.getIsSignedByKey()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.VerifyMessageResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.VerifyMessageResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.VerifyMessageResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.VerifyMessageResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.VerifyMessageResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VerifyMessageResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VerifyMessageResponse_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); isSignedByKey_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VerifyMessageResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VerifyMessageResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VerifyMessageResponse build() { Catalyst.Protocol.Rpc.Node.VerifyMessageResponse result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.VerifyMessageResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VerifyMessageResponse buildPartial() { Catalyst.Protocol.Rpc.Node.VerifyMessageResponse result = new Catalyst.Protocol.Rpc.Node.VerifyMessageResponse(this); result.isSignedByKey_ = isSignedByKey_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.VerifyMessageResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.VerifyMessageResponse)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.VerifyMessageResponse other) if (other.getIsSignedByKey() != false) { setIsSignedByKey(other.getIsSignedByKey()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean isSignedByKey_ ; /** * bool is_signed_by_key = 1; - * @return The isSignedByKey. */ public boolean getIsSignedByKey() { return isSignedByKey_; } /** * bool is_signed_by_key = 1; - * @param value The isSignedByKey to set. - * @return This builder for chaining. */ public Builder setIsSignedByKey(boolean value) { @@ -419,7 +368,6 @@ public Builder setIsSignedByKey(boolean value) { } /** * bool is_signed_by_key = 1; - * @return This builder for chaining. */ public Builder clearIsSignedByKey() { @@ -427,16 +375,14 @@ public Builder clearIsSignedByKey() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.VerifyMessageResponse getDefaultInstanc private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public VerifyMessageResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VerifyMessageResponse(input, extensionRegistry); + return new VerifyMessageResponse(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VerifyMessageResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageResponseOrBuilder.java index 4e9b5bf..6c5742d 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VerifyMessageResponseOrBuilder.java @@ -9,7 +9,6 @@ public interface VerifyMessageResponseOrBuilder extends /** * bool is_signed_by_key = 1; - * @return The isSignedByKey. */ boolean getIsSignedByKey(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionRequest.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionRequest.java index b0a99b5..6cc8698 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionRequest.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionRequest.java @@ -10,36 +10,25 @@ public final class VersionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.VersionRequest) VersionRequestOrBuilder { -private static final long serialVersionUID = 0L; // Use VersionRequest.newBuilder() to construct. private VersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VersionRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VersionRequest(); + query_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private VersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,18 +37,17 @@ private VersionRequest( case 0: done = true; break; - case 8: { - - query_ = input.readBool(); - break; - } default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { + if (!input.skipField(tag)) { done = true; } break; } + case 8: { + + query_ = input.readBool(); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -68,7 +56,6 @@ private VersionRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -77,7 +64,6 @@ private VersionRequest( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VersionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VersionRequest_fieldAccessorTable @@ -89,14 +75,12 @@ private VersionRequest( private boolean query_; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -106,16 +90,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (query_ != false) { output.writeBool(1, query_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -125,11 +106,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, query_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -140,10 +121,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.VersionRequest other = (Catalyst.Protocol.Rpc.Node.VersionRequest) obj; - if (getQuery() - != other.getQuery()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && (getQuery() + == other.getQuery()); + return result; } @java.lang.Override @@ -161,17 +142,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.VersionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.VersionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.VersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -231,7 +201,6 @@ public static Catalyst.Protocol.Rpc.Node.VersionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -239,7 +208,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.VersionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -263,7 +231,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VersionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VersionRequest_fieldAccessorTable @@ -286,7 +253,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); query_ = false; @@ -294,18 +260,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VersionRequest_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VersionRequest getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.VersionRequest.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VersionRequest build() { Catalyst.Protocol.Rpc.Node.VersionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -314,7 +277,6 @@ public Catalyst.Protocol.Rpc.Node.VersionRequest build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VersionRequest buildPartial() { Catalyst.Protocol.Rpc.Node.VersionRequest result = new Catalyst.Protocol.Rpc.Node.VersionRequest(this); result.query_ = query_; @@ -322,39 +284,32 @@ public Catalyst.Protocol.Rpc.Node.VersionRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.VersionRequest) { return mergeFrom((Catalyst.Protocol.Rpc.Node.VersionRequest)other); @@ -369,17 +324,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.VersionRequest other) { if (other.getQuery() != false) { setQuery(other.getQuery()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -401,15 +353,12 @@ public Builder mergeFrom( private boolean query_ ; /** * bool query = 1; - * @return The query. */ public boolean getQuery() { return query_; } /** * bool query = 1; - * @param value The query to set. - * @return This builder for chaining. */ public Builder setQuery(boolean value) { @@ -419,7 +368,6 @@ public Builder setQuery(boolean value) { } /** * bool query = 1; - * @return This builder for chaining. */ public Builder clearQuery() { @@ -427,16 +375,14 @@ public Builder clearQuery() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -455,12 +401,11 @@ public static Catalyst.Protocol.Rpc.Node.VersionRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public VersionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VersionRequest(input, extensionRegistry); + return new VersionRequest(input, extensionRegistry); } }; @@ -473,7 +418,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionRequestOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionRequestOrBuilder.java index 832d1fa..812e005 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionRequestOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionRequestOrBuilder.java @@ -9,7 +9,6 @@ public interface VersionRequestOrBuilder extends /** * bool query = 1; - * @return The query. */ boolean getQuery(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionResponse.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionResponse.java index 84f0b43..1524d1e 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionResponse.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionResponse.java @@ -10,7 +10,6 @@ public final class VersionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Rpc.Node.VersionResponse) VersionResponseOrBuilder { -private static final long serialVersionUID = 0L; // Use VersionResponse.newBuilder() to construct. private VersionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -19,28 +18,17 @@ private VersionResponse() { version_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VersionResponse(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private VersionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -49,19 +37,18 @@ private VersionResponse( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); version_ = s; break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -70,7 +57,6 @@ private VersionResponse( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -79,7 +65,6 @@ private VersionResponse( return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VersionResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VersionResponse_fieldAccessorTable @@ -91,7 +76,6 @@ private VersionResponse( private volatile java.lang.Object version_; /** * string version = 1; - * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -107,7 +91,6 @@ public java.lang.String getVersion() { } /** * string version = 1; - * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { @@ -124,7 +107,6 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -134,16 +116,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -152,11 +131,11 @@ public int getSerializedSize() { if (!getVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -167,10 +146,10 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Rpc.Node.VersionResponse other = (Catalyst.Protocol.Rpc.Node.VersionResponse) obj; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getVersion() + .equals(other.getVersion()); + return result; } @java.lang.Override @@ -187,17 +166,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Rpc.Node.VersionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Rpc.Node.VersionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Rpc.Node.VersionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -257,7 +225,6 @@ public static Catalyst.Protocol.Rpc.Node.VersionResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -265,7 +232,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Rpc.Node.VersionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -289,7 +255,6 @@ public static final class Builder extends return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VersionResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VersionResponse_fieldAccessorTable @@ -312,7 +277,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); version_ = ""; @@ -320,18 +284,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Rpc.Node.Rpc.internal_static_Catalyst_Protocol_Rpc_Node_VersionResponse_descriptor; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VersionResponse getDefaultInstanceForType() { return Catalyst.Protocol.Rpc.Node.VersionResponse.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VersionResponse build() { Catalyst.Protocol.Rpc.Node.VersionResponse result = buildPartial(); if (!result.isInitialized()) { @@ -340,7 +301,6 @@ public Catalyst.Protocol.Rpc.Node.VersionResponse build() { return result; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VersionResponse buildPartial() { Catalyst.Protocol.Rpc.Node.VersionResponse result = new Catalyst.Protocol.Rpc.Node.VersionResponse(this); result.version_ = version_; @@ -348,39 +308,32 @@ public Catalyst.Protocol.Rpc.Node.VersionResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Rpc.Node.VersionResponse) { return mergeFrom((Catalyst.Protocol.Rpc.Node.VersionResponse)other); @@ -396,17 +349,14 @@ public Builder mergeFrom(Catalyst.Protocol.Rpc.Node.VersionResponse other) { version_ = other.version_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -428,7 +378,6 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** * string version = 1; - * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -444,7 +393,6 @@ public java.lang.String getVersion() { } /** * string version = 1; - * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { @@ -461,8 +409,6 @@ public java.lang.String getVersion() { } /** * string version = 1; - * @param value The version to set. - * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { @@ -476,7 +422,6 @@ public Builder setVersion( } /** * string version = 1; - * @return This builder for chaining. */ public Builder clearVersion() { @@ -486,8 +431,6 @@ public Builder clearVersion() { } /** * string version = 1; - * @param value The bytes for version to set. - * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { @@ -500,16 +443,14 @@ public Builder setVersionBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -528,12 +469,11 @@ public static Catalyst.Protocol.Rpc.Node.VersionResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public VersionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VersionResponse(input, extensionRegistry); + return new VersionResponse(input, extensionRegistry); } }; @@ -546,7 +486,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Rpc.Node.VersionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionResponseOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionResponseOrBuilder.java index b17285a..68af5ac 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionResponseOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Rpc/Node/VersionResponseOrBuilder.java @@ -9,12 +9,10 @@ public interface VersionResponseOrBuilder extends /** * string version = 1; - * @return The version. */ java.lang.String getVersion(); /** * string version = 1; - * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); diff --git a/packages/sdk-java/src/Catalyst/Protocol/Transaction/CoinbaseEntry.java b/packages/sdk-java/src/Catalyst/Protocol/Transaction/CoinbaseEntry.java index f8c55bb..b0b8d1e 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Transaction/CoinbaseEntry.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Transaction/CoinbaseEntry.java @@ -10,7 +10,6 @@ public final class CoinbaseEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Transaction.CoinbaseEntry) CoinbaseEntryOrBuilder { -private static final long serialVersionUID = 0L; // Use CoinbaseEntry.newBuilder() to construct. private CoinbaseEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -20,28 +19,17 @@ private CoinbaseEntry() { amount_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CoinbaseEntry(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CoinbaseEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -50,6 +38,12 @@ private CoinbaseEntry( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { receiverPublicKey_ = input.readBytes(); @@ -60,13 +54,6 @@ private CoinbaseEntry( amount_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -75,7 +62,6 @@ private CoinbaseEntry( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -84,7 +70,6 @@ private CoinbaseEntry( return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_CoinbaseEntry_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_CoinbaseEntry_fieldAccessorTable @@ -100,7 +85,6 @@ private CoinbaseEntry( * * * bytes receiver_public_key = 1; - * @return The receiverPublicKey. */ public com.google.protobuf.ByteString getReceiverPublicKey() { return receiverPublicKey_; @@ -114,14 +98,12 @@ public com.google.protobuf.ByteString getReceiverPublicKey() { * * * bytes amount = 2; - * @return The amount. */ public com.google.protobuf.ByteString getAmount() { return amount_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -131,7 +113,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!receiverPublicKey_.isEmpty()) { @@ -140,10 +121,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!amount_.isEmpty()) { output.writeBytes(2, amount_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -157,11 +136,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, amount_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -172,12 +151,12 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Transaction.CoinbaseEntry other = (Catalyst.Protocol.Transaction.CoinbaseEntry) obj; - if (!getReceiverPublicKey() - .equals(other.getReceiverPublicKey())) return false; - if (!getAmount() - .equals(other.getAmount())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getReceiverPublicKey() + .equals(other.getReceiverPublicKey()); + result = result && getAmount() + .equals(other.getAmount()); + return result; } @java.lang.Override @@ -196,17 +175,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Transaction.CoinbaseEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Transaction.CoinbaseEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Transaction.CoinbaseEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -266,7 +234,6 @@ public static Catalyst.Protocol.Transaction.CoinbaseEntry parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -274,7 +241,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Transaction.CoinbaseEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -298,7 +264,6 @@ public static final class Builder extends return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_CoinbaseEntry_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_CoinbaseEntry_fieldAccessorTable @@ -321,7 +286,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); receiverPublicKey_ = com.google.protobuf.ByteString.EMPTY; @@ -331,18 +295,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_CoinbaseEntry_descriptor; } - @java.lang.Override public Catalyst.Protocol.Transaction.CoinbaseEntry getDefaultInstanceForType() { return Catalyst.Protocol.Transaction.CoinbaseEntry.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Transaction.CoinbaseEntry build() { Catalyst.Protocol.Transaction.CoinbaseEntry result = buildPartial(); if (!result.isInitialized()) { @@ -351,7 +312,6 @@ public Catalyst.Protocol.Transaction.CoinbaseEntry build() { return result; } - @java.lang.Override public Catalyst.Protocol.Transaction.CoinbaseEntry buildPartial() { Catalyst.Protocol.Transaction.CoinbaseEntry result = new Catalyst.Protocol.Transaction.CoinbaseEntry(this); result.receiverPublicKey_ = receiverPublicKey_; @@ -360,39 +320,32 @@ public Catalyst.Protocol.Transaction.CoinbaseEntry buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Transaction.CoinbaseEntry) { return mergeFrom((Catalyst.Protocol.Transaction.CoinbaseEntry)other); @@ -410,17 +363,14 @@ public Builder mergeFrom(Catalyst.Protocol.Transaction.CoinbaseEntry other) { if (other.getAmount() != com.google.protobuf.ByteString.EMPTY) { setAmount(other.getAmount()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -446,7 +396,6 @@ public Builder mergeFrom( * * * bytes receiver_public_key = 1; - * @return The receiverPublicKey. */ public com.google.protobuf.ByteString getReceiverPublicKey() { return receiverPublicKey_; @@ -457,8 +406,6 @@ public com.google.protobuf.ByteString getReceiverPublicKey() { * * * bytes receiver_public_key = 1; - * @param value The receiverPublicKey to set. - * @return This builder for chaining. */ public Builder setReceiverPublicKey(com.google.protobuf.ByteString value) { if (value == null) { @@ -475,7 +422,6 @@ public Builder setReceiverPublicKey(com.google.protobuf.ByteString value) { * * * bytes receiver_public_key = 1; - * @return This builder for chaining. */ public Builder clearReceiverPublicKey() { @@ -491,7 +437,6 @@ public Builder clearReceiverPublicKey() { * * * bytes amount = 2; - * @return The amount. */ public com.google.protobuf.ByteString getAmount() { return amount_; @@ -502,8 +447,6 @@ public com.google.protobuf.ByteString getAmount() { * * * bytes amount = 2; - * @param value The amount to set. - * @return This builder for chaining. */ public Builder setAmount(com.google.protobuf.ByteString value) { if (value == null) { @@ -520,7 +463,6 @@ public Builder setAmount(com.google.protobuf.ByteString value) { * * * bytes amount = 2; - * @return This builder for chaining. */ public Builder clearAmount() { @@ -528,16 +470,14 @@ public Builder clearAmount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -556,12 +496,11 @@ public static Catalyst.Protocol.Transaction.CoinbaseEntry getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public CoinbaseEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CoinbaseEntry(input, extensionRegistry); + return new CoinbaseEntry(input, extensionRegistry); } }; @@ -574,7 +513,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Transaction.CoinbaseEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Transaction/CoinbaseEntryOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Transaction/CoinbaseEntryOrBuilder.java index 503c246..c24fc5a 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Transaction/CoinbaseEntryOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Transaction/CoinbaseEntryOrBuilder.java @@ -13,7 +13,6 @@ public interface CoinbaseEntryOrBuilder extends * * * bytes receiver_public_key = 1; - * @return The receiverPublicKey. */ com.google.protobuf.ByteString getReceiverPublicKey(); @@ -23,7 +22,6 @@ public interface CoinbaseEntryOrBuilder extends * * * bytes amount = 2; - * @return The amount. */ com.google.protobuf.ByteString getAmount(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Transaction/ConfidentialEntry.java b/packages/sdk-java/src/Catalyst/Protocol/Transaction/ConfidentialEntry.java index e7c204b..1efbd8a 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Transaction/ConfidentialEntry.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Transaction/ConfidentialEntry.java @@ -10,7 +10,6 @@ public final class ConfidentialEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Transaction.ConfidentialEntry) ConfidentialEntryOrBuilder { -private static final long serialVersionUID = 0L; // Use ConfidentialEntry.newBuilder() to construct. private ConfidentialEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -20,30 +19,20 @@ private ConfidentialEntry() { senderPublicKey_ = com.google.protobuf.ByteString.EMPTY; pedersenCommitment_ = com.google.protobuf.ByteString.EMPTY; transactionFees_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConfidentialEntry(); + nonce_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConfidentialEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -52,6 +41,12 @@ private ConfidentialEntry( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { receiverPublicKey_ = input.readBytes(); @@ -90,13 +85,6 @@ private ConfidentialEntry( nonce_ = input.readUInt64(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +93,6 @@ private ConfidentialEntry( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -114,7 +101,6 @@ private ConfidentialEntry( return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_ConfidentialEntry_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_ConfidentialEntry_fieldAccessorTable @@ -130,7 +116,6 @@ private ConfidentialEntry( * * * bytes receiver_public_key = 1; - * @return The receiverPublicKey. */ public com.google.protobuf.ByteString getReceiverPublicKey() { return receiverPublicKey_; @@ -144,7 +129,6 @@ public com.google.protobuf.ByteString getReceiverPublicKey() { * * * bytes sender_public_key = 2; - * @return The senderPublicKey. */ public com.google.protobuf.ByteString getSenderPublicKey() { return senderPublicKey_; @@ -158,7 +142,6 @@ public com.google.protobuf.ByteString getSenderPublicKey() { * * * bytes pedersen_commitment = 3; - * @return The pedersenCommitment. */ public com.google.protobuf.ByteString getPedersenCommitment() { return pedersenCommitment_; @@ -168,14 +151,12 @@ public com.google.protobuf.ByteString getPedersenCommitment() { private Catalyst.Protocol.Transaction.RangeProof rangeProof_; /** * .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; - * @return Whether the rangeProof field is set. */ public boolean hasRangeProof() { return rangeProof_ != null; } /** * .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; - * @return The rangeProof. */ public Catalyst.Protocol.Transaction.RangeProof getRangeProof() { return rangeProof_ == null ? Catalyst.Protocol.Transaction.RangeProof.getDefaultInstance() : rangeProof_; @@ -195,7 +176,6 @@ public Catalyst.Protocol.Transaction.RangeProofOrBuilder getRangeProofOrBuilder( * * * bytes transaction_fees = 5; - * @return The transactionFees. */ public com.google.protobuf.ByteString getTransactionFees() { return transactionFees_; @@ -209,14 +189,12 @@ public com.google.protobuf.ByteString getTransactionFees() { * * * uint64 nonce = 6; - * @return The nonce. */ public long getNonce() { return nonce_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -226,7 +204,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!receiverPublicKey_.isEmpty()) { @@ -247,10 +224,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (nonce_ != 0L) { output.writeUInt64(6, nonce_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -280,11 +255,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, nonce_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -295,23 +270,23 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Transaction.ConfidentialEntry other = (Catalyst.Protocol.Transaction.ConfidentialEntry) obj; - if (!getReceiverPublicKey() - .equals(other.getReceiverPublicKey())) return false; - if (!getSenderPublicKey() - .equals(other.getSenderPublicKey())) return false; - if (!getPedersenCommitment() - .equals(other.getPedersenCommitment())) return false; - if (hasRangeProof() != other.hasRangeProof()) return false; + boolean result = true; + result = result && getReceiverPublicKey() + .equals(other.getReceiverPublicKey()); + result = result && getSenderPublicKey() + .equals(other.getSenderPublicKey()); + result = result && getPedersenCommitment() + .equals(other.getPedersenCommitment()); + result = result && (hasRangeProof() == other.hasRangeProof()); if (hasRangeProof()) { - if (!getRangeProof() - .equals(other.getRangeProof())) return false; - } - if (!getTransactionFees() - .equals(other.getTransactionFees())) return false; - if (getNonce() - != other.getNonce()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + result = result && getRangeProof() + .equals(other.getRangeProof()); + } + result = result && getTransactionFees() + .equals(other.getTransactionFees()); + result = result && (getNonce() + == other.getNonce()); + return result; } @java.lang.Override @@ -341,17 +316,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Transaction.ConfidentialEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Transaction.ConfidentialEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Transaction.ConfidentialEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -411,7 +375,6 @@ public static Catalyst.Protocol.Transaction.ConfidentialEntry parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -419,7 +382,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Transaction.ConfidentialEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -443,7 +405,6 @@ public static final class Builder extends return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_ConfidentialEntry_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_ConfidentialEntry_fieldAccessorTable @@ -466,7 +427,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); receiverPublicKey_ = com.google.protobuf.ByteString.EMPTY; @@ -488,18 +448,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_ConfidentialEntry_descriptor; } - @java.lang.Override public Catalyst.Protocol.Transaction.ConfidentialEntry getDefaultInstanceForType() { return Catalyst.Protocol.Transaction.ConfidentialEntry.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Transaction.ConfidentialEntry build() { Catalyst.Protocol.Transaction.ConfidentialEntry result = buildPartial(); if (!result.isInitialized()) { @@ -508,7 +465,6 @@ public Catalyst.Protocol.Transaction.ConfidentialEntry build() { return result; } - @java.lang.Override public Catalyst.Protocol.Transaction.ConfidentialEntry buildPartial() { Catalyst.Protocol.Transaction.ConfidentialEntry result = new Catalyst.Protocol.Transaction.ConfidentialEntry(this); result.receiverPublicKey_ = receiverPublicKey_; @@ -525,39 +481,32 @@ public Catalyst.Protocol.Transaction.ConfidentialEntry buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Transaction.ConfidentialEntry) { return mergeFrom((Catalyst.Protocol.Transaction.ConfidentialEntry)other); @@ -587,17 +536,14 @@ public Builder mergeFrom(Catalyst.Protocol.Transaction.ConfidentialEntry other) if (other.getNonce() != 0L) { setNonce(other.getNonce()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -623,7 +569,6 @@ public Builder mergeFrom( * * * bytes receiver_public_key = 1; - * @return The receiverPublicKey. */ public com.google.protobuf.ByteString getReceiverPublicKey() { return receiverPublicKey_; @@ -634,8 +579,6 @@ public com.google.protobuf.ByteString getReceiverPublicKey() { * * * bytes receiver_public_key = 1; - * @param value The receiverPublicKey to set. - * @return This builder for chaining. */ public Builder setReceiverPublicKey(com.google.protobuf.ByteString value) { if (value == null) { @@ -652,7 +595,6 @@ public Builder setReceiverPublicKey(com.google.protobuf.ByteString value) { * * * bytes receiver_public_key = 1; - * @return This builder for chaining. */ public Builder clearReceiverPublicKey() { @@ -668,7 +610,6 @@ public Builder clearReceiverPublicKey() { * * * bytes sender_public_key = 2; - * @return The senderPublicKey. */ public com.google.protobuf.ByteString getSenderPublicKey() { return senderPublicKey_; @@ -679,8 +620,6 @@ public com.google.protobuf.ByteString getSenderPublicKey() { * * * bytes sender_public_key = 2; - * @param value The senderPublicKey to set. - * @return This builder for chaining. */ public Builder setSenderPublicKey(com.google.protobuf.ByteString value) { if (value == null) { @@ -697,7 +636,6 @@ public Builder setSenderPublicKey(com.google.protobuf.ByteString value) { * * * bytes sender_public_key = 2; - * @return This builder for chaining. */ public Builder clearSenderPublicKey() { @@ -713,7 +651,6 @@ public Builder clearSenderPublicKey() { * * * bytes pedersen_commitment = 3; - * @return The pedersenCommitment. */ public com.google.protobuf.ByteString getPedersenCommitment() { return pedersenCommitment_; @@ -724,8 +661,6 @@ public com.google.protobuf.ByteString getPedersenCommitment() { * * * bytes pedersen_commitment = 3; - * @param value The pedersenCommitment to set. - * @return This builder for chaining. */ public Builder setPedersenCommitment(com.google.protobuf.ByteString value) { if (value == null) { @@ -742,7 +677,6 @@ public Builder setPedersenCommitment(com.google.protobuf.ByteString value) { * * * bytes pedersen_commitment = 3; - * @return This builder for chaining. */ public Builder clearPedersenCommitment() { @@ -751,19 +685,17 @@ public Builder clearPedersenCommitment() { return this; } - private Catalyst.Protocol.Transaction.RangeProof rangeProof_; + private Catalyst.Protocol.Transaction.RangeProof rangeProof_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Transaction.RangeProof, Catalyst.Protocol.Transaction.RangeProof.Builder, Catalyst.Protocol.Transaction.RangeProofOrBuilder> rangeProofBuilder_; /** * .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; - * @return Whether the rangeProof field is set. */ public boolean hasRangeProof() { return rangeProofBuilder_ != null || rangeProof_ != null; } /** * .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; - * @return The rangeProof. */ public Catalyst.Protocol.Transaction.RangeProof getRangeProof() { if (rangeProofBuilder_ == null) { @@ -877,7 +809,6 @@ public Catalyst.Protocol.Transaction.RangeProofOrBuilder getRangeProofOrBuilder( * * * bytes transaction_fees = 5; - * @return The transactionFees. */ public com.google.protobuf.ByteString getTransactionFees() { return transactionFees_; @@ -888,8 +819,6 @@ public com.google.protobuf.ByteString getTransactionFees() { * * * bytes transaction_fees = 5; - * @param value The transactionFees to set. - * @return This builder for chaining. */ public Builder setTransactionFees(com.google.protobuf.ByteString value) { if (value == null) { @@ -906,7 +835,6 @@ public Builder setTransactionFees(com.google.protobuf.ByteString value) { * * * bytes transaction_fees = 5; - * @return This builder for chaining. */ public Builder clearTransactionFees() { @@ -922,7 +850,6 @@ public Builder clearTransactionFees() { * * * uint64 nonce = 6; - * @return The nonce. */ public long getNonce() { return nonce_; @@ -933,8 +860,6 @@ public long getNonce() { * * * uint64 nonce = 6; - * @param value The nonce to set. - * @return This builder for chaining. */ public Builder setNonce(long value) { @@ -948,7 +873,6 @@ public Builder setNonce(long value) { * * * uint64 nonce = 6; - * @return This builder for chaining. */ public Builder clearNonce() { @@ -956,16 +880,14 @@ public Builder clearNonce() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -984,12 +906,11 @@ public static Catalyst.Protocol.Transaction.ConfidentialEntry getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ConfidentialEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfidentialEntry(input, extensionRegistry); + return new ConfidentialEntry(input, extensionRegistry); } }; @@ -1002,7 +923,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Transaction.ConfidentialEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Transaction/ConfidentialEntryOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Transaction/ConfidentialEntryOrBuilder.java index ed64164..b029717 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Transaction/ConfidentialEntryOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Transaction/ConfidentialEntryOrBuilder.java @@ -13,7 +13,6 @@ public interface ConfidentialEntryOrBuilder extends * * * bytes receiver_public_key = 1; - * @return The receiverPublicKey. */ com.google.protobuf.ByteString getReceiverPublicKey(); @@ -23,7 +22,6 @@ public interface ConfidentialEntryOrBuilder extends * * * bytes sender_public_key = 2; - * @return The senderPublicKey. */ com.google.protobuf.ByteString getSenderPublicKey(); @@ -33,18 +31,15 @@ public interface ConfidentialEntryOrBuilder extends * * * bytes pedersen_commitment = 3; - * @return The pedersenCommitment. */ com.google.protobuf.ByteString getPedersenCommitment(); /** * .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; - * @return Whether the rangeProof field is set. */ boolean hasRangeProof(); /** * .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; - * @return The rangeProof. */ Catalyst.Protocol.Transaction.RangeProof getRangeProof(); /** @@ -58,7 +53,6 @@ public interface ConfidentialEntryOrBuilder extends * * * bytes transaction_fees = 5; - * @return The transactionFees. */ com.google.protobuf.ByteString getTransactionFees(); @@ -68,7 +62,6 @@ public interface ConfidentialEntryOrBuilder extends * * * uint64 nonce = 6; - * @return The nonce. */ long getNonce(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Transaction/PublicEntry.java b/packages/sdk-java/src/Catalyst/Protocol/Transaction/PublicEntry.java index 6daa68e..bab9596 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Transaction/PublicEntry.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Transaction/PublicEntry.java @@ -10,7 +10,6 @@ public final class PublicEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Transaction.PublicEntry) PublicEntryOrBuilder { -private static final long serialVersionUID = 0L; // Use PublicEntry.newBuilder() to construct. private PublicEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -21,30 +20,21 @@ private PublicEntry() { amount_ = com.google.protobuf.ByteString.EMPTY; data_ = com.google.protobuf.ByteString.EMPTY; gasPrice_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PublicEntry(); + gasLimit_ = 0L; + nonce_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PublicEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -53,6 +43,12 @@ private PublicEntry( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { receiverAddress_ = input.readBytes(); @@ -74,34 +70,21 @@ private PublicEntry( break; } case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timestamp_ != null) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { gasPrice_ = input.readBytes(); break; } - case 56: { + case 48: { gasLimit_ = input.readUInt64(); break; } - case 72: { + case 56: { nonce_ = input.readUInt64(); break; } - case 82: { + case 66: { Catalyst.Protocol.Cryptography.Signature.Builder subBuilder = null; if (signature_ != null) { subBuilder = signature_.toBuilder(); @@ -114,13 +97,6 @@ private PublicEntry( break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -129,7 +105,6 @@ private PublicEntry( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -138,7 +113,6 @@ private PublicEntry( return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_PublicEntry_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_PublicEntry_fieldAccessorTable @@ -154,7 +128,6 @@ private PublicEntry( * * * bytes receiver_address = 1; - * @return The receiverAddress. */ public com.google.protobuf.ByteString getReceiverAddress() { return receiverAddress_; @@ -168,7 +141,6 @@ public com.google.protobuf.ByteString getReceiverAddress() { * * * bytes sender_address = 2; - * @return The senderAddress. */ public com.google.protobuf.ByteString getSenderAddress() { return senderAddress_; @@ -182,7 +154,6 @@ public com.google.protobuf.ByteString getSenderAddress() { * * * bytes amount = 3; - * @return The amount. */ public com.google.protobuf.ByteString getAmount() { return amount_; @@ -196,78 +167,50 @@ public com.google.protobuf.ByteString getAmount() { * * * bytes data = 4; - * @return The data. */ public com.google.protobuf.ByteString getData() { return data_; } - public static final int TIMESTAMP_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp timestamp_; - /** - * .google.protobuf.Timestamp timestamp = 5; - * @return Whether the timestamp field is set. - */ - public boolean hasTimestamp() { - return timestamp_ != null; - } - /** - * .google.protobuf.Timestamp timestamp = 5; - * @return The timestamp. - */ - public com.google.protobuf.Timestamp getTimestamp() { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - /** - * .google.protobuf.Timestamp timestamp = 5; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - return getTimestamp(); - } - - public static final int GAS_PRICE_FIELD_NUMBER = 6; + public static final int GAS_PRICE_FIELD_NUMBER = 5; private com.google.protobuf.ByteString gasPrice_; /** - * bytes gas_price = 6; - * @return The gasPrice. + * bytes gas_price = 5; */ public com.google.protobuf.ByteString getGasPrice() { return gasPrice_; } - public static final int GAS_LIMIT_FIELD_NUMBER = 7; + public static final int GAS_LIMIT_FIELD_NUMBER = 6; private long gasLimit_; /** - * uint64 gas_limit = 7; - * @return The gasLimit. + * uint64 gas_limit = 6; */ public long getGasLimit() { return gasLimit_; } - public static final int NONCE_FIELD_NUMBER = 9; + public static final int NONCE_FIELD_NUMBER = 7; private long nonce_; /** *
    * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction
    * 
* - * uint64 nonce = 9; - * @return The nonce. + * uint64 nonce = 7; */ public long getNonce() { return nonce_; } - public static final int SIGNATURE_FIELD_NUMBER = 10; + public static final int SIGNATURE_FIELD_NUMBER = 8; private Catalyst.Protocol.Cryptography.Signature signature_; /** *
    * is the ed25519ph context signature
    * 
* - * .Catalyst.Protocol.Cryptography.Signature signature = 10; - * @return Whether the signature field is set. + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ public boolean hasSignature() { return signature_ != null; @@ -277,8 +220,7 @@ public boolean hasSignature() { * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; - * @return The signature. + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ public Catalyst.Protocol.Cryptography.Signature getSignature() { return signature_ == null ? Catalyst.Protocol.Cryptography.Signature.getDefaultInstance() : signature_; @@ -288,14 +230,13 @@ public Catalyst.Protocol.Cryptography.Signature getSignature() { * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ public Catalyst.Protocol.Cryptography.SignatureOrBuilder getSignatureOrBuilder() { return getSignature(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -305,7 +246,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!receiverAddress_.isEmpty()) { @@ -320,25 +260,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!data_.isEmpty()) { output.writeBytes(4, data_); } - if (timestamp_ != null) { - output.writeMessage(5, getTimestamp()); - } if (!gasPrice_.isEmpty()) { - output.writeBytes(6, gasPrice_); + output.writeBytes(5, gasPrice_); } if (gasLimit_ != 0L) { - output.writeUInt64(7, gasLimit_); + output.writeUInt64(6, gasLimit_); } if (nonce_ != 0L) { - output.writeUInt64(9, nonce_); + output.writeUInt64(7, nonce_); } if (signature_ != null) { - output.writeMessage(10, getSignature()); + output.writeMessage(8, getSignature()); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -360,31 +295,27 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, data_); } - if (timestamp_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTimestamp()); - } if (!gasPrice_.isEmpty()) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, gasPrice_); + .computeBytesSize(5, gasPrice_); } if (gasLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(7, gasLimit_); + .computeUInt64Size(6, gasLimit_); } if (nonce_ != 0L) { size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(9, nonce_); + .computeUInt64Size(7, nonce_); } if (signature_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getSignature()); + .computeMessageSize(8, getSignature()); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -395,32 +326,27 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Transaction.PublicEntry other = (Catalyst.Protocol.Transaction.PublicEntry) obj; - if (!getReceiverAddress() - .equals(other.getReceiverAddress())) return false; - if (!getSenderAddress() - .equals(other.getSenderAddress())) return false; - if (!getAmount() - .equals(other.getAmount())) return false; - if (!getData() - .equals(other.getData())) return false; - if (hasTimestamp() != other.hasTimestamp()) return false; - if (hasTimestamp()) { - if (!getTimestamp() - .equals(other.getTimestamp())) return false; - } - if (!getGasPrice() - .equals(other.getGasPrice())) return false; - if (getGasLimit() - != other.getGasLimit()) return false; - if (getNonce() - != other.getNonce()) return false; - if (hasSignature() != other.hasSignature()) return false; + boolean result = true; + result = result && getReceiverAddress() + .equals(other.getReceiverAddress()); + result = result && getSenderAddress() + .equals(other.getSenderAddress()); + result = result && getAmount() + .equals(other.getAmount()); + result = result && getData() + .equals(other.getData()); + result = result && getGasPrice() + .equals(other.getGasPrice()); + result = result && (getGasLimit() + == other.getGasLimit()); + result = result && (getNonce() + == other.getNonce()); + result = result && (hasSignature() == other.hasSignature()); if (hasSignature()) { - if (!getSignature() - .equals(other.getSignature())) return false; + result = result && getSignature() + .equals(other.getSignature()); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + return result; } @java.lang.Override @@ -438,10 +364,6 @@ public int hashCode() { hash = (53 * hash) + getAmount().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); - if (hasTimestamp()) { - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - } hash = (37 * hash) + GAS_PRICE_FIELD_NUMBER; hash = (53 * hash) + getGasPrice().hashCode(); hash = (37 * hash) + GAS_LIMIT_FIELD_NUMBER; @@ -459,17 +381,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Transaction.PublicEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Transaction.PublicEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Transaction.PublicEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -529,7 +440,6 @@ public static Catalyst.Protocol.Transaction.PublicEntry parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -537,7 +447,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Transaction.PublicEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -561,7 +470,6 @@ public static final class Builder extends return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_PublicEntry_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_PublicEntry_fieldAccessorTable @@ -584,7 +492,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); receiverAddress_ = com.google.protobuf.ByteString.EMPTY; @@ -595,12 +502,6 @@ public Builder clear() { data_ = com.google.protobuf.ByteString.EMPTY; - if (timestampBuilder_ == null) { - timestamp_ = null; - } else { - timestamp_ = null; - timestampBuilder_ = null; - } gasPrice_ = com.google.protobuf.ByteString.EMPTY; gasLimit_ = 0L; @@ -616,18 +517,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_PublicEntry_descriptor; } - @java.lang.Override public Catalyst.Protocol.Transaction.PublicEntry getDefaultInstanceForType() { return Catalyst.Protocol.Transaction.PublicEntry.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Transaction.PublicEntry build() { Catalyst.Protocol.Transaction.PublicEntry result = buildPartial(); if (!result.isInitialized()) { @@ -636,18 +534,12 @@ public Catalyst.Protocol.Transaction.PublicEntry build() { return result; } - @java.lang.Override public Catalyst.Protocol.Transaction.PublicEntry buildPartial() { Catalyst.Protocol.Transaction.PublicEntry result = new Catalyst.Protocol.Transaction.PublicEntry(this); result.receiverAddress_ = receiverAddress_; result.senderAddress_ = senderAddress_; result.amount_ = amount_; result.data_ = data_; - if (timestampBuilder_ == null) { - result.timestamp_ = timestamp_; - } else { - result.timestamp_ = timestampBuilder_.build(); - } result.gasPrice_ = gasPrice_; result.gasLimit_ = gasLimit_; result.nonce_ = nonce_; @@ -660,39 +552,32 @@ public Catalyst.Protocol.Transaction.PublicEntry buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Transaction.PublicEntry) { return mergeFrom((Catalyst.Protocol.Transaction.PublicEntry)other); @@ -716,9 +601,6 @@ public Builder mergeFrom(Catalyst.Protocol.Transaction.PublicEntry other) { if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } - if (other.hasTimestamp()) { - mergeTimestamp(other.getTimestamp()); - } if (other.getGasPrice() != com.google.protobuf.ByteString.EMPTY) { setGasPrice(other.getGasPrice()); } @@ -731,17 +613,14 @@ public Builder mergeFrom(Catalyst.Protocol.Transaction.PublicEntry other) { if (other.hasSignature()) { mergeSignature(other.getSignature()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -767,7 +646,6 @@ public Builder mergeFrom( * * * bytes receiver_address = 1; - * @return The receiverAddress. */ public com.google.protobuf.ByteString getReceiverAddress() { return receiverAddress_; @@ -778,8 +656,6 @@ public com.google.protobuf.ByteString getReceiverAddress() { * * * bytes receiver_address = 1; - * @param value The receiverAddress to set. - * @return This builder for chaining. */ public Builder setReceiverAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -796,7 +672,6 @@ public Builder setReceiverAddress(com.google.protobuf.ByteString value) { * * * bytes receiver_address = 1; - * @return This builder for chaining. */ public Builder clearReceiverAddress() { @@ -812,7 +687,6 @@ public Builder clearReceiverAddress() { * * * bytes sender_address = 2; - * @return The senderAddress. */ public com.google.protobuf.ByteString getSenderAddress() { return senderAddress_; @@ -823,8 +697,6 @@ public com.google.protobuf.ByteString getSenderAddress() { * * * bytes sender_address = 2; - * @param value The senderAddress to set. - * @return This builder for chaining. */ public Builder setSenderAddress(com.google.protobuf.ByteString value) { if (value == null) { @@ -841,7 +713,6 @@ public Builder setSenderAddress(com.google.protobuf.ByteString value) { * * * bytes sender_address = 2; - * @return This builder for chaining. */ public Builder clearSenderAddress() { @@ -857,7 +728,6 @@ public Builder clearSenderAddress() { * * * bytes amount = 3; - * @return The amount. */ public com.google.protobuf.ByteString getAmount() { return amount_; @@ -868,8 +738,6 @@ public com.google.protobuf.ByteString getAmount() { * * * bytes amount = 3; - * @param value The amount to set. - * @return This builder for chaining. */ public Builder setAmount(com.google.protobuf.ByteString value) { if (value == null) { @@ -886,7 +754,6 @@ public Builder setAmount(com.google.protobuf.ByteString value) { * * * bytes amount = 3; - * @return This builder for chaining. */ public Builder clearAmount() { @@ -902,7 +769,6 @@ public Builder clearAmount() { * * * bytes data = 4; - * @return The data. */ public com.google.protobuf.ByteString getData() { return data_; @@ -913,8 +779,6 @@ public com.google.protobuf.ByteString getData() { * * * bytes data = 4; - * @param value The data to set. - * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { @@ -931,7 +795,6 @@ public Builder setData(com.google.protobuf.ByteString value) { * * * bytes data = 4; - * @return This builder for chaining. */ public Builder clearData() { @@ -940,137 +803,15 @@ public Builder clearData() { return this; } - private com.google.protobuf.Timestamp timestamp_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; - /** - * .google.protobuf.Timestamp timestamp = 5; - * @return Whether the timestamp field is set. - */ - public boolean hasTimestamp() { - return timestampBuilder_ != null || timestamp_ != null; - } - /** - * .google.protobuf.Timestamp timestamp = 5; - * @return The timestamp. - */ - public com.google.protobuf.Timestamp getTimestamp() { - if (timestampBuilder_ == null) { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } else { - return timestampBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Timestamp timestamp = 5; - */ - public Builder setTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timestamp_ = value; - onChanged(); - } else { - timestampBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5; - */ - public Builder setTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampBuilder_ == null) { - timestamp_ = builderForValue.build(); - onChanged(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5; - */ - public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (timestamp_ != null) { - timestamp_ = - com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); - } else { - timestamp_ = value; - } - onChanged(); - } else { - timestampBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5; - */ - public Builder clearTimestamp() { - if (timestampBuilder_ == null) { - timestamp_ = null; - onChanged(); - } else { - timestamp_ = null; - timestampBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Timestamp timestamp = 5; - */ - public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { - - onChanged(); - return getTimestampFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp timestamp = 5; - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - if (timestampBuilder_ != null) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - return timestamp_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - } - /** - * .google.protobuf.Timestamp timestamp = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), - getParentForChildren(), - isClean()); - timestamp_ = null; - } - return timestampBuilder_; - } - private com.google.protobuf.ByteString gasPrice_ = com.google.protobuf.ByteString.EMPTY; /** - * bytes gas_price = 6; - * @return The gasPrice. + * bytes gas_price = 5; */ public com.google.protobuf.ByteString getGasPrice() { return gasPrice_; } /** - * bytes gas_price = 6; - * @param value The gasPrice to set. - * @return This builder for chaining. + * bytes gas_price = 5; */ public Builder setGasPrice(com.google.protobuf.ByteString value) { if (value == null) { @@ -1082,8 +823,7 @@ public Builder setGasPrice(com.google.protobuf.ByteString value) { return this; } /** - * bytes gas_price = 6; - * @return This builder for chaining. + * bytes gas_price = 5; */ public Builder clearGasPrice() { @@ -1094,16 +834,13 @@ public Builder clearGasPrice() { private long gasLimit_ ; /** - * uint64 gas_limit = 7; - * @return The gasLimit. + * uint64 gas_limit = 6; */ public long getGasLimit() { return gasLimit_; } /** - * uint64 gas_limit = 7; - * @param value The gasLimit to set. - * @return This builder for chaining. + * uint64 gas_limit = 6; */ public Builder setGasLimit(long value) { @@ -1112,8 +849,7 @@ public Builder setGasLimit(long value) { return this; } /** - * uint64 gas_limit = 7; - * @return This builder for chaining. + * uint64 gas_limit = 6; */ public Builder clearGasLimit() { @@ -1128,8 +864,7 @@ public Builder clearGasLimit() { * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction * * - * uint64 nonce = 9; - * @return The nonce. + * uint64 nonce = 7; */ public long getNonce() { return nonce_; @@ -1139,9 +874,7 @@ public long getNonce() { * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction * * - * uint64 nonce = 9; - * @param value The nonce to set. - * @return This builder for chaining. + * uint64 nonce = 7; */ public Builder setNonce(long value) { @@ -1154,8 +887,7 @@ public Builder setNonce(long value) { * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction * * - * uint64 nonce = 9; - * @return This builder for chaining. + * uint64 nonce = 7; */ public Builder clearNonce() { @@ -1164,7 +896,7 @@ public Builder clearNonce() { return this; } - private Catalyst.Protocol.Cryptography.Signature signature_; + private Catalyst.Protocol.Cryptography.Signature signature_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Cryptography.Signature, Catalyst.Protocol.Cryptography.Signature.Builder, Catalyst.Protocol.Cryptography.SignatureOrBuilder> signatureBuilder_; /** @@ -1172,8 +904,7 @@ public Builder clearNonce() { * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; - * @return Whether the signature field is set. + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ public boolean hasSignature() { return signatureBuilder_ != null || signature_ != null; @@ -1183,8 +914,7 @@ public boolean hasSignature() { * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; - * @return The signature. + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ public Catalyst.Protocol.Cryptography.Signature getSignature() { if (signatureBuilder_ == null) { @@ -1198,7 +928,7 @@ public Catalyst.Protocol.Cryptography.Signature getSignature() { * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ public Builder setSignature(Catalyst.Protocol.Cryptography.Signature value) { if (signatureBuilder_ == null) { @@ -1218,7 +948,7 @@ public Builder setSignature(Catalyst.Protocol.Cryptography.Signature value) { * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ public Builder setSignature( Catalyst.Protocol.Cryptography.Signature.Builder builderForValue) { @@ -1236,7 +966,7 @@ public Builder setSignature( * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ public Builder mergeSignature(Catalyst.Protocol.Cryptography.Signature value) { if (signatureBuilder_ == null) { @@ -1258,7 +988,7 @@ public Builder mergeSignature(Catalyst.Protocol.Cryptography.Signature value) { * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ public Builder clearSignature() { if (signatureBuilder_ == null) { @@ -1276,7 +1006,7 @@ public Builder clearSignature() { * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ public Catalyst.Protocol.Cryptography.Signature.Builder getSignatureBuilder() { @@ -1288,7 +1018,7 @@ public Catalyst.Protocol.Cryptography.Signature.Builder getSignatureBuilder() { * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ public Catalyst.Protocol.Cryptography.SignatureOrBuilder getSignatureOrBuilder() { if (signatureBuilder_ != null) { @@ -1303,7 +1033,7 @@ public Catalyst.Protocol.Cryptography.SignatureOrBuilder getSignatureOrBuilder() * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Cryptography.Signature, Catalyst.Protocol.Cryptography.Signature.Builder, Catalyst.Protocol.Cryptography.SignatureOrBuilder> @@ -1318,16 +1048,14 @@ public Catalyst.Protocol.Cryptography.SignatureOrBuilder getSignatureOrBuilder() } return signatureBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -1346,12 +1074,11 @@ public static Catalyst.Protocol.Transaction.PublicEntry getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PublicEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PublicEntry(input, extensionRegistry); + return new PublicEntry(input, extensionRegistry); } }; @@ -1364,7 +1091,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Transaction.PublicEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Transaction/PublicEntryOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Transaction/PublicEntryOrBuilder.java index acdf9fc..1681296 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Transaction/PublicEntryOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Transaction/PublicEntryOrBuilder.java @@ -13,7 +13,6 @@ public interface PublicEntryOrBuilder extends * * * bytes receiver_address = 1; - * @return The receiverAddress. */ com.google.protobuf.ByteString getReceiverAddress(); @@ -23,7 +22,6 @@ public interface PublicEntryOrBuilder extends * * * bytes sender_address = 2; - * @return The senderAddress. */ com.google.protobuf.ByteString getSenderAddress(); @@ -33,7 +31,6 @@ public interface PublicEntryOrBuilder extends * * * bytes amount = 3; - * @return The amount. */ com.google.protobuf.ByteString getAmount(); @@ -43,34 +40,16 @@ public interface PublicEntryOrBuilder extends * * * bytes data = 4; - * @return The data. */ com.google.protobuf.ByteString getData(); /** - * .google.protobuf.Timestamp timestamp = 5; - * @return Whether the timestamp field is set. - */ - boolean hasTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 5; - * @return The timestamp. - */ - com.google.protobuf.Timestamp getTimestamp(); - /** - * .google.protobuf.Timestamp timestamp = 5; - */ - com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); - - /** - * bytes gas_price = 6; - * @return The gasPrice. + * bytes gas_price = 5; */ com.google.protobuf.ByteString getGasPrice(); /** - * uint64 gas_limit = 7; - * @return The gasLimit. + * uint64 gas_limit = 6; */ long getGasLimit(); @@ -79,8 +58,7 @@ public interface PublicEntryOrBuilder extends * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction * * - * uint64 nonce = 9; - * @return The nonce. + * uint64 nonce = 7; */ long getNonce(); @@ -89,8 +67,7 @@ public interface PublicEntryOrBuilder extends * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; - * @return Whether the signature field is set. + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ boolean hasSignature(); /** @@ -98,8 +75,7 @@ public interface PublicEntryOrBuilder extends * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; - * @return The signature. + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ Catalyst.Protocol.Cryptography.Signature getSignature(); /** @@ -107,7 +83,7 @@ public interface PublicEntryOrBuilder extends * is the ed25519ph context signature * * - * .Catalyst.Protocol.Cryptography.Signature signature = 10; + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ Catalyst.Protocol.Cryptography.SignatureOrBuilder getSignatureOrBuilder(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Transaction/RangeProof.java b/packages/sdk-java/src/Catalyst/Protocol/Transaction/RangeProof.java index 23ec0d3..f28171b 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Transaction/RangeProof.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Transaction/RangeProof.java @@ -16,7 +16,6 @@ public final class RangeProof extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Transaction.RangeProof) RangeProofOrBuilder { -private static final long serialVersionUID = 0L; // Use RangeProof.newBuilder() to construct. private RangeProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -36,29 +35,17 @@ private RangeProof() { t_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RangeProof(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private RangeProof( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -67,8 +54,14 @@ private RangeProof( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { valueCommitment_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -106,17 +99,17 @@ private RangeProof( break; } case 66: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { aggregatedVectorPolynomialL_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000080; } aggregatedVectorPolynomialL_.add(input.readBytes()); break; } case 74: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { aggregatedVectorPolynomialR_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000100; } aggregatedVectorPolynomialR_.add(input.readBytes()); break; @@ -136,13 +129,6 @@ private RangeProof( t_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -151,16 +137,15 @@ private RangeProof( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - valueCommitment_ = java.util.Collections.unmodifiableList(valueCommitment_); // C + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + valueCommitment_ = java.util.Collections.unmodifiableList(valueCommitment_); } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - aggregatedVectorPolynomialL_ = java.util.Collections.unmodifiableList(aggregatedVectorPolynomialL_); // C + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + aggregatedVectorPolynomialL_ = java.util.Collections.unmodifiableList(aggregatedVectorPolynomialL_); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - aggregatedVectorPolynomialR_ = java.util.Collections.unmodifiableList(aggregatedVectorPolynomialR_); // C + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + aggregatedVectorPolynomialR_ = java.util.Collections.unmodifiableList(aggregatedVectorPolynomialR_); } - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -169,7 +154,6 @@ private RangeProof( return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_RangeProof_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_RangeProof_fieldAccessorTable @@ -177,6 +161,7 @@ private RangeProof( Catalyst.Protocol.Transaction.RangeProof.class, Catalyst.Protocol.Transaction.RangeProof.Builder.class); } + private int bitField0_; public static final int VALUE_COMMITMENT_FIELD_NUMBER = 1; private java.util.List valueCommitment_; /** @@ -185,7 +170,6 @@ private RangeProof( * * * repeated bytes value_commitment = 1; - * @return A list containing the valueCommitment. */ public java.util.List getValueCommitmentList() { @@ -197,7 +181,6 @@ private RangeProof( * * * repeated bytes value_commitment = 1; - * @return The count of valueCommitment. */ public int getValueCommitmentCount() { return valueCommitment_.size(); @@ -208,8 +191,6 @@ public int getValueCommitmentCount() { * * * repeated bytes value_commitment = 1; - * @param index The index of the element to return. - * @return The valueCommitment at the given index. */ public com.google.protobuf.ByteString getValueCommitment(int index) { return valueCommitment_.get(index); @@ -223,7 +204,6 @@ public com.google.protobuf.ByteString getValueCommitment(int index) { * * * bytes bit_commitment = 2; - * @return The bitCommitment. */ public com.google.protobuf.ByteString getBitCommitment() { return bitCommitment_; @@ -237,7 +217,6 @@ public com.google.protobuf.ByteString getBitCommitment() { * * * bytes per_bit_blinding_factor_commitment = 3; - * @return The perBitBlindingFactorCommitment. */ public com.google.protobuf.ByteString getPerBitBlindingFactorCommitment() { return perBitBlindingFactorCommitment_; @@ -251,7 +230,6 @@ public com.google.protobuf.ByteString getPerBitBlindingFactorCommitment() { * * * bytes poly_commitment_t1 = 4; - * @return The polyCommitmentT1. */ public com.google.protobuf.ByteString getPolyCommitmentT1() { return polyCommitmentT1_; @@ -265,7 +243,6 @@ public com.google.protobuf.ByteString getPolyCommitmentT1() { * * * bytes poly_commitment_t2 = 5; - * @return The polyCommitmentT2. */ public com.google.protobuf.ByteString getPolyCommitmentT2() { return polyCommitmentT2_; @@ -279,7 +256,6 @@ public com.google.protobuf.ByteString getPolyCommitmentT2() { * * * bytes proof_of_share_tau = 6; - * @return The proofOfShareTau. */ public com.google.protobuf.ByteString getProofOfShareTau() { return proofOfShareTau_; @@ -293,7 +269,6 @@ public com.google.protobuf.ByteString getProofOfShareTau() { * * * bytes proof_of_share_mu = 7; - * @return The proofOfShareMu. */ public com.google.protobuf.ByteString getProofOfShareMu() { return proofOfShareMu_; @@ -307,7 +282,6 @@ public com.google.protobuf.ByteString getProofOfShareMu() { * * * repeated bytes aggregated_vector_polynomial_l = 8; - * @return A list containing the aggregatedVectorPolynomialL. */ public java.util.List getAggregatedVectorPolynomialLList() { @@ -319,7 +293,6 @@ public com.google.protobuf.ByteString getProofOfShareMu() { * * * repeated bytes aggregated_vector_polynomial_l = 8; - * @return The count of aggregatedVectorPolynomialL. */ public int getAggregatedVectorPolynomialLCount() { return aggregatedVectorPolynomialL_.size(); @@ -330,8 +303,6 @@ public int getAggregatedVectorPolynomialLCount() { * * * repeated bytes aggregated_vector_polynomial_l = 8; - * @param index The index of the element to return. - * @return The aggregatedVectorPolynomialL at the given index. */ public com.google.protobuf.ByteString getAggregatedVectorPolynomialL(int index) { return aggregatedVectorPolynomialL_.get(index); @@ -345,7 +316,6 @@ public com.google.protobuf.ByteString getAggregatedVectorPolynomialL(int index) * * * repeated bytes aggregated_vector_polynomial_r = 9; - * @return A list containing the aggregatedVectorPolynomialR. */ public java.util.List getAggregatedVectorPolynomialRList() { @@ -357,7 +327,6 @@ public com.google.protobuf.ByteString getAggregatedVectorPolynomialL(int index) * * * repeated bytes aggregated_vector_polynomial_r = 9; - * @return The count of aggregatedVectorPolynomialR. */ public int getAggregatedVectorPolynomialRCount() { return aggregatedVectorPolynomialR_.size(); @@ -368,8 +337,6 @@ public int getAggregatedVectorPolynomialRCount() { * * * repeated bytes aggregated_vector_polynomial_r = 9; - * @param index The index of the element to return. - * @return The aggregatedVectorPolynomialR at the given index. */ public com.google.protobuf.ByteString getAggregatedVectorPolynomialR(int index) { return aggregatedVectorPolynomialR_.get(index); @@ -383,7 +350,6 @@ public com.google.protobuf.ByteString getAggregatedVectorPolynomialR(int index) * * * bytes a_prime_0 = 10; - * @return The aPrime0. */ public com.google.protobuf.ByteString getAPrime0() { return aPrime0_; @@ -397,7 +363,6 @@ public com.google.protobuf.ByteString getAPrime0() { * * * bytes b_prime_0 = 11; - * @return The bPrime0. */ public com.google.protobuf.ByteString getBPrime0() { return bPrime0_; @@ -407,14 +372,12 @@ public com.google.protobuf.ByteString getBPrime0() { private com.google.protobuf.ByteString t_; /** * bytes t = 12; - * @return The t. */ public com.google.protobuf.ByteString getT() { return t_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -424,7 +387,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < valueCommitment_.size(); i++) { @@ -463,10 +425,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!t_.isEmpty()) { output.writeBytes(12, t_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -535,11 +495,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, t_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -550,32 +510,32 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Transaction.RangeProof other = (Catalyst.Protocol.Transaction.RangeProof) obj; - if (!getValueCommitmentList() - .equals(other.getValueCommitmentList())) return false; - if (!getBitCommitment() - .equals(other.getBitCommitment())) return false; - if (!getPerBitBlindingFactorCommitment() - .equals(other.getPerBitBlindingFactorCommitment())) return false; - if (!getPolyCommitmentT1() - .equals(other.getPolyCommitmentT1())) return false; - if (!getPolyCommitmentT2() - .equals(other.getPolyCommitmentT2())) return false; - if (!getProofOfShareTau() - .equals(other.getProofOfShareTau())) return false; - if (!getProofOfShareMu() - .equals(other.getProofOfShareMu())) return false; - if (!getAggregatedVectorPolynomialLList() - .equals(other.getAggregatedVectorPolynomialLList())) return false; - if (!getAggregatedVectorPolynomialRList() - .equals(other.getAggregatedVectorPolynomialRList())) return false; - if (!getAPrime0() - .equals(other.getAPrime0())) return false; - if (!getBPrime0() - .equals(other.getBPrime0())) return false; - if (!getT() - .equals(other.getT())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getValueCommitmentList() + .equals(other.getValueCommitmentList()); + result = result && getBitCommitment() + .equals(other.getBitCommitment()); + result = result && getPerBitBlindingFactorCommitment() + .equals(other.getPerBitBlindingFactorCommitment()); + result = result && getPolyCommitmentT1() + .equals(other.getPolyCommitmentT1()); + result = result && getPolyCommitmentT2() + .equals(other.getPolyCommitmentT2()); + result = result && getProofOfShareTau() + .equals(other.getProofOfShareTau()); + result = result && getProofOfShareMu() + .equals(other.getProofOfShareMu()); + result = result && getAggregatedVectorPolynomialLList() + .equals(other.getAggregatedVectorPolynomialLList()); + result = result && getAggregatedVectorPolynomialRList() + .equals(other.getAggregatedVectorPolynomialRList()); + result = result && getAPrime0() + .equals(other.getAPrime0()); + result = result && getBPrime0() + .equals(other.getBPrime0()); + result = result && getT() + .equals(other.getT()); + return result; } @java.lang.Override @@ -620,17 +580,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Transaction.RangeProof parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Transaction.RangeProof parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Transaction.RangeProof parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -690,7 +639,6 @@ public static Catalyst.Protocol.Transaction.RangeProof parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -698,7 +646,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Transaction.RangeProof prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -728,7 +675,6 @@ public static final class Builder extends return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_RangeProof_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_RangeProof_fieldAccessorTable @@ -751,7 +697,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); valueCommitment_ = java.util.Collections.emptyList(); @@ -769,9 +714,9 @@ public Builder clear() { proofOfShareMu_ = com.google.protobuf.ByteString.EMPTY; aggregatedVectorPolynomialL_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); aggregatedVectorPolynomialR_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000100); aPrime0_ = com.google.protobuf.ByteString.EMPTY; bPrime0_ = com.google.protobuf.ByteString.EMPTY; @@ -781,18 +726,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Transaction.Transaction.internal_static_Catalyst_Protocol_Transaction_RangeProof_descriptor; } - @java.lang.Override public Catalyst.Protocol.Transaction.RangeProof getDefaultInstanceForType() { return Catalyst.Protocol.Transaction.RangeProof.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Transaction.RangeProof build() { Catalyst.Protocol.Transaction.RangeProof result = buildPartial(); if (!result.isInitialized()) { @@ -801,11 +743,11 @@ public Catalyst.Protocol.Transaction.RangeProof build() { return result; } - @java.lang.Override public Catalyst.Protocol.Transaction.RangeProof buildPartial() { Catalyst.Protocol.Transaction.RangeProof result = new Catalyst.Protocol.Transaction.RangeProof(this); int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { valueCommitment_ = java.util.Collections.unmodifiableList(valueCommitment_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -816,56 +758,50 @@ public Catalyst.Protocol.Transaction.RangeProof buildPartial() { result.polyCommitmentT2_ = polyCommitmentT2_; result.proofOfShareTau_ = proofOfShareTau_; result.proofOfShareMu_ = proofOfShareMu_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { aggregatedVectorPolynomialL_ = java.util.Collections.unmodifiableList(aggregatedVectorPolynomialL_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); } result.aggregatedVectorPolynomialL_ = aggregatedVectorPolynomialL_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { aggregatedVectorPolynomialR_ = java.util.Collections.unmodifiableList(aggregatedVectorPolynomialR_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000100); } result.aggregatedVectorPolynomialR_ = aggregatedVectorPolynomialR_; result.aPrime0_ = aPrime0_; result.bPrime0_ = bPrime0_; result.t_ = t_; + result.bitField0_ = to_bitField0_; onBuilt(); return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Transaction.RangeProof) { return mergeFrom((Catalyst.Protocol.Transaction.RangeProof)other); @@ -908,7 +844,7 @@ public Builder mergeFrom(Catalyst.Protocol.Transaction.RangeProof other) { if (!other.aggregatedVectorPolynomialL_.isEmpty()) { if (aggregatedVectorPolynomialL_.isEmpty()) { aggregatedVectorPolynomialL_ = other.aggregatedVectorPolynomialL_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureAggregatedVectorPolynomialLIsMutable(); aggregatedVectorPolynomialL_.addAll(other.aggregatedVectorPolynomialL_); @@ -918,7 +854,7 @@ public Builder mergeFrom(Catalyst.Protocol.Transaction.RangeProof other) { if (!other.aggregatedVectorPolynomialR_.isEmpty()) { if (aggregatedVectorPolynomialR_.isEmpty()) { aggregatedVectorPolynomialR_ = other.aggregatedVectorPolynomialR_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureAggregatedVectorPolynomialRIsMutable(); aggregatedVectorPolynomialR_.addAll(other.aggregatedVectorPolynomialR_); @@ -934,17 +870,14 @@ public Builder mergeFrom(Catalyst.Protocol.Transaction.RangeProof other) { if (other.getT() != com.google.protobuf.ByteString.EMPTY) { setT(other.getT()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -966,7 +899,7 @@ public Builder mergeFrom( private java.util.List valueCommitment_ = java.util.Collections.emptyList(); private void ensureValueCommitmentIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { valueCommitment_ = new java.util.ArrayList(valueCommitment_); bitField0_ |= 0x00000001; } @@ -977,12 +910,10 @@ private void ensureValueCommitmentIsMutable() { * * * repeated bytes value_commitment = 1; - * @return A list containing the valueCommitment. */ public java.util.List getValueCommitmentList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(valueCommitment_) : valueCommitment_; + return java.util.Collections.unmodifiableList(valueCommitment_); } /** *
@@ -990,7 +921,6 @@ private void ensureValueCommitmentIsMutable() {
      * 
* * repeated bytes value_commitment = 1; - * @return The count of valueCommitment. */ public int getValueCommitmentCount() { return valueCommitment_.size(); @@ -1001,8 +931,6 @@ public int getValueCommitmentCount() { * * * repeated bytes value_commitment = 1; - * @param index The index of the element to return. - * @return The valueCommitment at the given index. */ public com.google.protobuf.ByteString getValueCommitment(int index) { return valueCommitment_.get(index); @@ -1013,9 +941,6 @@ public com.google.protobuf.ByteString getValueCommitment(int index) { * * * repeated bytes value_commitment = 1; - * @param index The index to set the value at. - * @param value The valueCommitment to set. - * @return This builder for chaining. */ public Builder setValueCommitment( int index, com.google.protobuf.ByteString value) { @@ -1033,8 +958,6 @@ public Builder setValueCommitment( * * * repeated bytes value_commitment = 1; - * @param value The valueCommitment to add. - * @return This builder for chaining. */ public Builder addValueCommitment(com.google.protobuf.ByteString value) { if (value == null) { @@ -1051,8 +974,6 @@ public Builder addValueCommitment(com.google.protobuf.ByteString value) { * * * repeated bytes value_commitment = 1; - * @param values The valueCommitment to add. - * @return This builder for chaining. */ public Builder addAllValueCommitment( java.lang.Iterable values) { @@ -1068,7 +989,6 @@ public Builder addAllValueCommitment( * * * repeated bytes value_commitment = 1; - * @return This builder for chaining. */ public Builder clearValueCommitment() { valueCommitment_ = java.util.Collections.emptyList(); @@ -1084,7 +1004,6 @@ public Builder clearValueCommitment() { * * * bytes bit_commitment = 2; - * @return The bitCommitment. */ public com.google.protobuf.ByteString getBitCommitment() { return bitCommitment_; @@ -1095,8 +1014,6 @@ public com.google.protobuf.ByteString getBitCommitment() { * * * bytes bit_commitment = 2; - * @param value The bitCommitment to set. - * @return This builder for chaining. */ public Builder setBitCommitment(com.google.protobuf.ByteString value) { if (value == null) { @@ -1113,7 +1030,6 @@ public Builder setBitCommitment(com.google.protobuf.ByteString value) { * * * bytes bit_commitment = 2; - * @return This builder for chaining. */ public Builder clearBitCommitment() { @@ -1129,7 +1045,6 @@ public Builder clearBitCommitment() { * * * bytes per_bit_blinding_factor_commitment = 3; - * @return The perBitBlindingFactorCommitment. */ public com.google.protobuf.ByteString getPerBitBlindingFactorCommitment() { return perBitBlindingFactorCommitment_; @@ -1140,8 +1055,6 @@ public com.google.protobuf.ByteString getPerBitBlindingFactorCommitment() { * * * bytes per_bit_blinding_factor_commitment = 3; - * @param value The perBitBlindingFactorCommitment to set. - * @return This builder for chaining. */ public Builder setPerBitBlindingFactorCommitment(com.google.protobuf.ByteString value) { if (value == null) { @@ -1158,7 +1071,6 @@ public Builder setPerBitBlindingFactorCommitment(com.google.protobuf.ByteString * * * bytes per_bit_blinding_factor_commitment = 3; - * @return This builder for chaining. */ public Builder clearPerBitBlindingFactorCommitment() { @@ -1174,7 +1086,6 @@ public Builder clearPerBitBlindingFactorCommitment() { * * * bytes poly_commitment_t1 = 4; - * @return The polyCommitmentT1. */ public com.google.protobuf.ByteString getPolyCommitmentT1() { return polyCommitmentT1_; @@ -1185,8 +1096,6 @@ public com.google.protobuf.ByteString getPolyCommitmentT1() { * * * bytes poly_commitment_t1 = 4; - * @param value The polyCommitmentT1 to set. - * @return This builder for chaining. */ public Builder setPolyCommitmentT1(com.google.protobuf.ByteString value) { if (value == null) { @@ -1203,7 +1112,6 @@ public Builder setPolyCommitmentT1(com.google.protobuf.ByteString value) { * * * bytes poly_commitment_t1 = 4; - * @return This builder for chaining. */ public Builder clearPolyCommitmentT1() { @@ -1219,7 +1127,6 @@ public Builder clearPolyCommitmentT1() { * * * bytes poly_commitment_t2 = 5; - * @return The polyCommitmentT2. */ public com.google.protobuf.ByteString getPolyCommitmentT2() { return polyCommitmentT2_; @@ -1230,8 +1137,6 @@ public com.google.protobuf.ByteString getPolyCommitmentT2() { * * * bytes poly_commitment_t2 = 5; - * @param value The polyCommitmentT2 to set. - * @return This builder for chaining. */ public Builder setPolyCommitmentT2(com.google.protobuf.ByteString value) { if (value == null) { @@ -1248,7 +1153,6 @@ public Builder setPolyCommitmentT2(com.google.protobuf.ByteString value) { * * * bytes poly_commitment_t2 = 5; - * @return This builder for chaining. */ public Builder clearPolyCommitmentT2() { @@ -1264,7 +1168,6 @@ public Builder clearPolyCommitmentT2() { * * * bytes proof_of_share_tau = 6; - * @return The proofOfShareTau. */ public com.google.protobuf.ByteString getProofOfShareTau() { return proofOfShareTau_; @@ -1275,8 +1178,6 @@ public com.google.protobuf.ByteString getProofOfShareTau() { * * * bytes proof_of_share_tau = 6; - * @param value The proofOfShareTau to set. - * @return This builder for chaining. */ public Builder setProofOfShareTau(com.google.protobuf.ByteString value) { if (value == null) { @@ -1293,7 +1194,6 @@ public Builder setProofOfShareTau(com.google.protobuf.ByteString value) { * * * bytes proof_of_share_tau = 6; - * @return This builder for chaining. */ public Builder clearProofOfShareTau() { @@ -1309,7 +1209,6 @@ public Builder clearProofOfShareTau() { * * * bytes proof_of_share_mu = 7; - * @return The proofOfShareMu. */ public com.google.protobuf.ByteString getProofOfShareMu() { return proofOfShareMu_; @@ -1320,8 +1219,6 @@ public com.google.protobuf.ByteString getProofOfShareMu() { * * * bytes proof_of_share_mu = 7; - * @param value The proofOfShareMu to set. - * @return This builder for chaining. */ public Builder setProofOfShareMu(com.google.protobuf.ByteString value) { if (value == null) { @@ -1338,7 +1235,6 @@ public Builder setProofOfShareMu(com.google.protobuf.ByteString value) { * * * bytes proof_of_share_mu = 7; - * @return This builder for chaining. */ public Builder clearProofOfShareMu() { @@ -1349,9 +1245,9 @@ public Builder clearProofOfShareMu() { private java.util.List aggregatedVectorPolynomialL_ = java.util.Collections.emptyList(); private void ensureAggregatedVectorPolynomialLIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { aggregatedVectorPolynomialL_ = new java.util.ArrayList(aggregatedVectorPolynomialL_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000080; } } /** @@ -1360,12 +1256,10 @@ private void ensureAggregatedVectorPolynomialLIsMutable() { * * * repeated bytes aggregated_vector_polynomial_l = 8; - * @return A list containing the aggregatedVectorPolynomialL. */ public java.util.List getAggregatedVectorPolynomialLList() { - return ((bitField0_ & 0x00000002) != 0) ? - java.util.Collections.unmodifiableList(aggregatedVectorPolynomialL_) : aggregatedVectorPolynomialL_; + return java.util.Collections.unmodifiableList(aggregatedVectorPolynomialL_); } /** *
@@ -1373,7 +1267,6 @@ private void ensureAggregatedVectorPolynomialLIsMutable() {
      * 
* * repeated bytes aggregated_vector_polynomial_l = 8; - * @return The count of aggregatedVectorPolynomialL. */ public int getAggregatedVectorPolynomialLCount() { return aggregatedVectorPolynomialL_.size(); @@ -1384,8 +1277,6 @@ public int getAggregatedVectorPolynomialLCount() { * * * repeated bytes aggregated_vector_polynomial_l = 8; - * @param index The index of the element to return. - * @return The aggregatedVectorPolynomialL at the given index. */ public com.google.protobuf.ByteString getAggregatedVectorPolynomialL(int index) { return aggregatedVectorPolynomialL_.get(index); @@ -1396,9 +1287,6 @@ public com.google.protobuf.ByteString getAggregatedVectorPolynomialL(int index) * * * repeated bytes aggregated_vector_polynomial_l = 8; - * @param index The index to set the value at. - * @param value The aggregatedVectorPolynomialL to set. - * @return This builder for chaining. */ public Builder setAggregatedVectorPolynomialL( int index, com.google.protobuf.ByteString value) { @@ -1416,8 +1304,6 @@ public Builder setAggregatedVectorPolynomialL( * * * repeated bytes aggregated_vector_polynomial_l = 8; - * @param value The aggregatedVectorPolynomialL to add. - * @return This builder for chaining. */ public Builder addAggregatedVectorPolynomialL(com.google.protobuf.ByteString value) { if (value == null) { @@ -1434,8 +1320,6 @@ public Builder addAggregatedVectorPolynomialL(com.google.protobuf.ByteString val * * * repeated bytes aggregated_vector_polynomial_l = 8; - * @param values The aggregatedVectorPolynomialL to add. - * @return This builder for chaining. */ public Builder addAllAggregatedVectorPolynomialL( java.lang.Iterable values) { @@ -1451,20 +1335,19 @@ public Builder addAllAggregatedVectorPolynomialL( * * * repeated bytes aggregated_vector_polynomial_l = 8; - * @return This builder for chaining. */ public Builder clearAggregatedVectorPolynomialL() { aggregatedVectorPolynomialL_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } private java.util.List aggregatedVectorPolynomialR_ = java.util.Collections.emptyList(); private void ensureAggregatedVectorPolynomialRIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { aggregatedVectorPolynomialR_ = new java.util.ArrayList(aggregatedVectorPolynomialR_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000100; } } /** @@ -1473,12 +1356,10 @@ private void ensureAggregatedVectorPolynomialRIsMutable() { * * * repeated bytes aggregated_vector_polynomial_r = 9; - * @return A list containing the aggregatedVectorPolynomialR. */ public java.util.List getAggregatedVectorPolynomialRList() { - return ((bitField0_ & 0x00000004) != 0) ? - java.util.Collections.unmodifiableList(aggregatedVectorPolynomialR_) : aggregatedVectorPolynomialR_; + return java.util.Collections.unmodifiableList(aggregatedVectorPolynomialR_); } /** *
@@ -1486,7 +1367,6 @@ private void ensureAggregatedVectorPolynomialRIsMutable() {
      * 
* * repeated bytes aggregated_vector_polynomial_r = 9; - * @return The count of aggregatedVectorPolynomialR. */ public int getAggregatedVectorPolynomialRCount() { return aggregatedVectorPolynomialR_.size(); @@ -1497,8 +1377,6 @@ public int getAggregatedVectorPolynomialRCount() { * * * repeated bytes aggregated_vector_polynomial_r = 9; - * @param index The index of the element to return. - * @return The aggregatedVectorPolynomialR at the given index. */ public com.google.protobuf.ByteString getAggregatedVectorPolynomialR(int index) { return aggregatedVectorPolynomialR_.get(index); @@ -1509,9 +1387,6 @@ public com.google.protobuf.ByteString getAggregatedVectorPolynomialR(int index) * * * repeated bytes aggregated_vector_polynomial_r = 9; - * @param index The index to set the value at. - * @param value The aggregatedVectorPolynomialR to set. - * @return This builder for chaining. */ public Builder setAggregatedVectorPolynomialR( int index, com.google.protobuf.ByteString value) { @@ -1529,8 +1404,6 @@ public Builder setAggregatedVectorPolynomialR( * * * repeated bytes aggregated_vector_polynomial_r = 9; - * @param value The aggregatedVectorPolynomialR to add. - * @return This builder for chaining. */ public Builder addAggregatedVectorPolynomialR(com.google.protobuf.ByteString value) { if (value == null) { @@ -1547,8 +1420,6 @@ public Builder addAggregatedVectorPolynomialR(com.google.protobuf.ByteString val * * * repeated bytes aggregated_vector_polynomial_r = 9; - * @param values The aggregatedVectorPolynomialR to add. - * @return This builder for chaining. */ public Builder addAllAggregatedVectorPolynomialR( java.lang.Iterable values) { @@ -1564,11 +1435,10 @@ public Builder addAllAggregatedVectorPolynomialR( * * * repeated bytes aggregated_vector_polynomial_r = 9; - * @return This builder for chaining. */ public Builder clearAggregatedVectorPolynomialR() { aggregatedVectorPolynomialR_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -1580,7 +1450,6 @@ public Builder clearAggregatedVectorPolynomialR() { * * * bytes a_prime_0 = 10; - * @return The aPrime0. */ public com.google.protobuf.ByteString getAPrime0() { return aPrime0_; @@ -1591,8 +1460,6 @@ public com.google.protobuf.ByteString getAPrime0() { * * * bytes a_prime_0 = 10; - * @param value The aPrime0 to set. - * @return This builder for chaining. */ public Builder setAPrime0(com.google.protobuf.ByteString value) { if (value == null) { @@ -1609,7 +1476,6 @@ public Builder setAPrime0(com.google.protobuf.ByteString value) { * * * bytes a_prime_0 = 10; - * @return This builder for chaining. */ public Builder clearAPrime0() { @@ -1625,7 +1491,6 @@ public Builder clearAPrime0() { * * * bytes b_prime_0 = 11; - * @return The bPrime0. */ public com.google.protobuf.ByteString getBPrime0() { return bPrime0_; @@ -1636,8 +1501,6 @@ public com.google.protobuf.ByteString getBPrime0() { * * * bytes b_prime_0 = 11; - * @param value The bPrime0 to set. - * @return This builder for chaining. */ public Builder setBPrime0(com.google.protobuf.ByteString value) { if (value == null) { @@ -1654,7 +1517,6 @@ public Builder setBPrime0(com.google.protobuf.ByteString value) { * * * bytes b_prime_0 = 11; - * @return This builder for chaining. */ public Builder clearBPrime0() { @@ -1666,15 +1528,12 @@ public Builder clearBPrime0() { private com.google.protobuf.ByteString t_ = com.google.protobuf.ByteString.EMPTY; /** * bytes t = 12; - * @return The t. */ public com.google.protobuf.ByteString getT() { return t_; } /** * bytes t = 12; - * @param value The t to set. - * @return This builder for chaining. */ public Builder setT(com.google.protobuf.ByteString value) { if (value == null) { @@ -1687,7 +1546,6 @@ public Builder setT(com.google.protobuf.ByteString value) { } /** * bytes t = 12; - * @return This builder for chaining. */ public Builder clearT() { @@ -1695,16 +1553,14 @@ public Builder clearT() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -1723,12 +1579,11 @@ public static Catalyst.Protocol.Transaction.RangeProof getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public RangeProof parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RangeProof(input, extensionRegistry); + return new RangeProof(input, extensionRegistry); } }; @@ -1741,7 +1596,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Transaction.RangeProof getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Transaction/RangeProofOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Transaction/RangeProofOrBuilder.java index fa5a5b1..f5fd22a 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Transaction/RangeProofOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Transaction/RangeProofOrBuilder.java @@ -13,7 +13,6 @@ public interface RangeProofOrBuilder extends * * * repeated bytes value_commitment = 1; - * @return A list containing the valueCommitment. */ java.util.List getValueCommitmentList(); /** @@ -22,7 +21,6 @@ public interface RangeProofOrBuilder extends * * * repeated bytes value_commitment = 1; - * @return The count of valueCommitment. */ int getValueCommitmentCount(); /** @@ -31,8 +29,6 @@ public interface RangeProofOrBuilder extends * * * repeated bytes value_commitment = 1; - * @param index The index of the element to return. - * @return The valueCommitment at the given index. */ com.google.protobuf.ByteString getValueCommitment(int index); @@ -42,7 +38,6 @@ public interface RangeProofOrBuilder extends * * * bytes bit_commitment = 2; - * @return The bitCommitment. */ com.google.protobuf.ByteString getBitCommitment(); @@ -52,7 +47,6 @@ public interface RangeProofOrBuilder extends * * * bytes per_bit_blinding_factor_commitment = 3; - * @return The perBitBlindingFactorCommitment. */ com.google.protobuf.ByteString getPerBitBlindingFactorCommitment(); @@ -62,7 +56,6 @@ public interface RangeProofOrBuilder extends * * * bytes poly_commitment_t1 = 4; - * @return The polyCommitmentT1. */ com.google.protobuf.ByteString getPolyCommitmentT1(); @@ -72,7 +65,6 @@ public interface RangeProofOrBuilder extends * * * bytes poly_commitment_t2 = 5; - * @return The polyCommitmentT2. */ com.google.protobuf.ByteString getPolyCommitmentT2(); @@ -82,7 +74,6 @@ public interface RangeProofOrBuilder extends * * * bytes proof_of_share_tau = 6; - * @return The proofOfShareTau. */ com.google.protobuf.ByteString getProofOfShareTau(); @@ -92,7 +83,6 @@ public interface RangeProofOrBuilder extends * * * bytes proof_of_share_mu = 7; - * @return The proofOfShareMu. */ com.google.protobuf.ByteString getProofOfShareMu(); @@ -102,7 +92,6 @@ public interface RangeProofOrBuilder extends * * * repeated bytes aggregated_vector_polynomial_l = 8; - * @return A list containing the aggregatedVectorPolynomialL. */ java.util.List getAggregatedVectorPolynomialLList(); /** @@ -111,7 +100,6 @@ public interface RangeProofOrBuilder extends * * * repeated bytes aggregated_vector_polynomial_l = 8; - * @return The count of aggregatedVectorPolynomialL. */ int getAggregatedVectorPolynomialLCount(); /** @@ -120,8 +108,6 @@ public interface RangeProofOrBuilder extends * * * repeated bytes aggregated_vector_polynomial_l = 8; - * @param index The index of the element to return. - * @return The aggregatedVectorPolynomialL at the given index. */ com.google.protobuf.ByteString getAggregatedVectorPolynomialL(int index); @@ -131,7 +117,6 @@ public interface RangeProofOrBuilder extends * * * repeated bytes aggregated_vector_polynomial_r = 9; - * @return A list containing the aggregatedVectorPolynomialR. */ java.util.List getAggregatedVectorPolynomialRList(); /** @@ -140,7 +125,6 @@ public interface RangeProofOrBuilder extends * * * repeated bytes aggregated_vector_polynomial_r = 9; - * @return The count of aggregatedVectorPolynomialR. */ int getAggregatedVectorPolynomialRCount(); /** @@ -149,8 +133,6 @@ public interface RangeProofOrBuilder extends * * * repeated bytes aggregated_vector_polynomial_r = 9; - * @param index The index of the element to return. - * @return The aggregatedVectorPolynomialR at the given index. */ com.google.protobuf.ByteString getAggregatedVectorPolynomialR(int index); @@ -160,7 +142,6 @@ public interface RangeProofOrBuilder extends * * * bytes a_prime_0 = 10; - * @return The aPrime0. */ com.google.protobuf.ByteString getAPrime0(); @@ -170,13 +151,11 @@ public interface RangeProofOrBuilder extends * * * bytes b_prime_0 = 11; - * @return The bPrime0. */ com.google.protobuf.ByteString getBPrime0(); /** * bytes t = 12; - * @return The t. */ com.google.protobuf.ByteString getT(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Transaction/Transaction.java b/packages/sdk-java/src/Catalyst/Protocol/Transaction/Transaction.java index 88b1cda..6468ad8 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Transaction/Transaction.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Transaction/Transaction.java @@ -44,17 +44,15 @@ public static void registerAllExtensions( static { java.lang.String[] descriptorData = { "\n\021Transaction.proto\022\035Catalyst.Protocol.T" + - "ransaction\032\022Cryptography.proto\032\037google/p" + - "rotobuf/timestamp.proto\"\377\001\n\013PublicEntry\022" + - "\030\n\020receiver_address\030\001 \001(\014\022\026\n\016sender_addr" + - "ess\030\002 \001(\014\022\016\n\006amount\030\003 \001(\014\022\014\n\004data\030\004 \001(\014\022" + - "-\n\ttimestamp\030\005 \001(\0132\032.google.protobuf.Tim" + - "estamp\022\021\n\tgas_price\030\006 \001(\014\022\021\n\tgas_limit\030\007" + - " \001(\004\022\r\n\005nonce\030\t \001(\004\022<\n\tsignature\030\n \001(\0132)" + + "ransaction\032\022Cryptography.proto\"\320\001\n\013Publi" + + "cEntry\022\030\n\020receiver_address\030\001 \001(\014\022\026\n\016send" + + "er_address\030\002 \001(\014\022\016\n\006amount\030\003 \001(\014\022\014\n\004data" + + "\030\004 \001(\014\022\021\n\tgas_price\030\005 \001(\014\022\021\n\tgas_limit\030\006" + + " \001(\004\022\r\n\005nonce\030\007 \001(\004\022<\n\tsignature\030\010 \001(\0132)" + ".Catalyst.Protocol.Cryptography.Signatur" + "e\"\321\001\n\021ConfidentialEntry\022\033\n\023receiver_publ" + "ic_key\030\001 \001(\014\022\031\n\021sender_public_key\030\002 \001(\014\022" + - "\033\n\023pedersen_commitment\030\003 \001(\014\022>\n\013range_pr" + + "\033\n\023pedersen_commitment\030\003 \001(\014\022>\n\013range_pr", "oof\030\004 \001(\0132).Catalyst.Protocol.Transactio" + "n.RangeProof\022\030\n\020transaction_fees\030\005 \001(\014\022\r" + "\n\005nonce\030\006 \001(\004\"<\n\rCoinbaseEntry\022\033\n\023receiv" + @@ -64,25 +62,32 @@ public static void registerAllExtensions( "_factor_commitment\030\003 \001(\014\022\032\n\022poly_commitm" + "ent_t1\030\004 \001(\014\022\032\n\022poly_commitment_t2\030\005 \001(\014" + "\022\032\n\022proof_of_share_tau\030\006 \001(\014\022\031\n\021proof_of" + - "_share_mu\030\007 \001(\014\022&\n\036aggregated_vector_pol" + + "_share_mu\030\007 \001(\014\022&\n\036aggregated_vector_pol", "ynomial_l\030\010 \003(\014\022&\n\036aggregated_vector_pol" + "ynomial_r\030\t \003(\014\022\021\n\ta_prime_0\030\n \001(\014\022\021\n\tb_" + "prime_0\030\013 \001(\014\022\t\n\001t\030\014 \001(\014*M\n\017TransactionT" + "ype\022\034\n\030TRANSACTION_TYPE_UNKNOWN\020\000\022\n\n\006PUB" + "LIC\020\001\022\020\n\014CONFIDENTIAL\020\002B\002P\001b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Catalyst.Protocol.Cryptography.Cryptography.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); + }, assigner); internal_static_Catalyst_Protocol_Transaction_PublicEntry_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Catalyst_Protocol_Transaction_PublicEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Catalyst_Protocol_Transaction_PublicEntry_descriptor, - new java.lang.String[] { "ReceiverAddress", "SenderAddress", "Amount", "Data", "Timestamp", "GasPrice", "GasLimit", "Nonce", "Signature", }); + new java.lang.String[] { "ReceiverAddress", "SenderAddress", "Amount", "Data", "GasPrice", "GasLimit", "Nonce", "Signature", }); internal_static_Catalyst_Protocol_Transaction_ConfidentialEntry_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Catalyst_Protocol_Transaction_ConfidentialEntry_fieldAccessorTable = new @@ -102,7 +107,6 @@ public static void registerAllExtensions( internal_static_Catalyst_Protocol_Transaction_RangeProof_descriptor, new java.lang.String[] { "ValueCommitment", "BitCommitment", "PerBitBlindingFactorCommitment", "PolyCommitmentT1", "PolyCommitmentT2", "ProofOfShareTau", "ProofOfShareMu", "AggregatedVectorPolynomialL", "AggregatedVectorPolynomialR", "APrime0", "BPrime0", "T", }); Catalyst.Protocol.Cryptography.Cryptography.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/packages/sdk-java/src/Catalyst/Protocol/Transaction/TransactionType.java b/packages/sdk-java/src/Catalyst/Protocol/Transaction/TransactionType.java index 17c5dcc..44f801a 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Transaction/TransactionType.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Transaction/TransactionType.java @@ -70,8 +70,6 @@ public final int getNumber() { } /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated @@ -79,10 +77,6 @@ public static TransactionType valueOf(int value) { return forNumber(value); } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ public static TransactionType forNumber(int value) { switch (value) { case 0: return TRANSACTION_TYPE_UNKNOWN; diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/CandidateDeltaBroadcast.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/CandidateDeltaBroadcast.java index 7b703e7..359c38c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/CandidateDeltaBroadcast.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/CandidateDeltaBroadcast.java @@ -10,7 +10,6 @@ public final class CandidateDeltaBroadcast extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) CandidateDeltaBroadcastOrBuilder { -private static final long serialVersionUID = 0L; // Use CandidateDeltaBroadcast.newBuilder() to construct. private CandidateDeltaBroadcast(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -20,28 +19,17 @@ private CandidateDeltaBroadcast() { previousDeltaDfsHash_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CandidateDeltaBroadcast(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CandidateDeltaBroadcast( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -50,6 +38,12 @@ private CandidateDeltaBroadcast( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { hash_ = input.readBytes(); @@ -73,13 +67,6 @@ private CandidateDeltaBroadcast( previousDeltaDfsHash_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -88,7 +75,6 @@ private CandidateDeltaBroadcast( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -97,7 +83,6 @@ private CandidateDeltaBroadcast( return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_CandidateDeltaBroadcast_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_CandidateDeltaBroadcast_fieldAccessorTable @@ -113,7 +98,6 @@ private CandidateDeltaBroadcast( * * * bytes hash = 1; - * @return The hash. */ public com.google.protobuf.ByteString getHash() { return hash_; @@ -127,7 +111,6 @@ public com.google.protobuf.ByteString getHash() { * * * .Catalyst.Protocol.Peer.PeerId producer_id = 2; - * @return Whether the producerId field is set. */ public boolean hasProducerId() { return producerId_ != null; @@ -138,7 +121,6 @@ public boolean hasProducerId() { * * * .Catalyst.Protocol.Peer.PeerId producer_id = 2; - * @return The producerId. */ public Catalyst.Protocol.Peer.PeerId getProducerId() { return producerId_ == null ? Catalyst.Protocol.Peer.PeerId.getDefaultInstance() : producerId_; @@ -162,14 +144,12 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getProducerIdOrBuilder() { * * * bytes previous_delta_dfs_hash = 3; - * @return The previousDeltaDfsHash. */ public com.google.protobuf.ByteString getPreviousDeltaDfsHash() { return previousDeltaDfsHash_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -179,7 +159,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!hash_.isEmpty()) { @@ -191,10 +170,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!previousDeltaDfsHash_.isEmpty()) { output.writeBytes(3, previousDeltaDfsHash_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -212,11 +189,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, previousDeltaDfsHash_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -227,17 +204,17 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Wire.CandidateDeltaBroadcast other = (Catalyst.Protocol.Wire.CandidateDeltaBroadcast) obj; - if (!getHash() - .equals(other.getHash())) return false; - if (hasProducerId() != other.hasProducerId()) return false; + boolean result = true; + result = result && getHash() + .equals(other.getHash()); + result = result && (hasProducerId() == other.hasProducerId()); if (hasProducerId()) { - if (!getProducerId() - .equals(other.getProducerId())) return false; + result = result && getProducerId() + .equals(other.getProducerId()); } - if (!getPreviousDeltaDfsHash() - .equals(other.getPreviousDeltaDfsHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + result = result && getPreviousDeltaDfsHash() + .equals(other.getPreviousDeltaDfsHash()); + return result; } @java.lang.Override @@ -260,17 +237,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Wire.CandidateDeltaBroadcast parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Wire.CandidateDeltaBroadcast parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Wire.CandidateDeltaBroadcast parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -330,7 +296,6 @@ public static Catalyst.Protocol.Wire.CandidateDeltaBroadcast parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -338,7 +303,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Wire.CandidateDeltaBroadcast prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -362,7 +326,6 @@ public static final class Builder extends return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_CandidateDeltaBroadcast_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_CandidateDeltaBroadcast_fieldAccessorTable @@ -385,7 +348,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); hash_ = com.google.protobuf.ByteString.EMPTY; @@ -401,18 +363,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_CandidateDeltaBroadcast_descriptor; } - @java.lang.Override public Catalyst.Protocol.Wire.CandidateDeltaBroadcast getDefaultInstanceForType() { return Catalyst.Protocol.Wire.CandidateDeltaBroadcast.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Wire.CandidateDeltaBroadcast build() { Catalyst.Protocol.Wire.CandidateDeltaBroadcast result = buildPartial(); if (!result.isInitialized()) { @@ -421,7 +380,6 @@ public Catalyst.Protocol.Wire.CandidateDeltaBroadcast build() { return result; } - @java.lang.Override public Catalyst.Protocol.Wire.CandidateDeltaBroadcast buildPartial() { Catalyst.Protocol.Wire.CandidateDeltaBroadcast result = new Catalyst.Protocol.Wire.CandidateDeltaBroadcast(this); result.hash_ = hash_; @@ -435,39 +393,32 @@ public Catalyst.Protocol.Wire.CandidateDeltaBroadcast buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Wire.CandidateDeltaBroadcast) { return mergeFrom((Catalyst.Protocol.Wire.CandidateDeltaBroadcast)other); @@ -488,17 +439,14 @@ public Builder mergeFrom(Catalyst.Protocol.Wire.CandidateDeltaBroadcast other) { if (other.getPreviousDeltaDfsHash() != com.google.protobuf.ByteString.EMPTY) { setPreviousDeltaDfsHash(other.getPreviousDeltaDfsHash()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -524,7 +472,6 @@ public Builder mergeFrom( * * * bytes hash = 1; - * @return The hash. */ public com.google.protobuf.ByteString getHash() { return hash_; @@ -535,8 +482,6 @@ public com.google.protobuf.ByteString getHash() { * * * bytes hash = 1; - * @param value The hash to set. - * @return This builder for chaining. */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -553,7 +498,6 @@ public Builder setHash(com.google.protobuf.ByteString value) { * * * bytes hash = 1; - * @return This builder for chaining. */ public Builder clearHash() { @@ -562,7 +506,7 @@ public Builder clearHash() { return this; } - private Catalyst.Protocol.Peer.PeerId producerId_; + private Catalyst.Protocol.Peer.PeerId producerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Peer.PeerId, Catalyst.Protocol.Peer.PeerId.Builder, Catalyst.Protocol.Peer.PeerIdOrBuilder> producerIdBuilder_; /** @@ -571,7 +515,6 @@ public Builder clearHash() { * * * .Catalyst.Protocol.Peer.PeerId producer_id = 2; - * @return Whether the producerId field is set. */ public boolean hasProducerId() { return producerIdBuilder_ != null || producerId_ != null; @@ -582,7 +525,6 @@ public boolean hasProducerId() { * * * .Catalyst.Protocol.Peer.PeerId producer_id = 2; - * @return The producerId. */ public Catalyst.Protocol.Peer.PeerId getProducerId() { if (producerIdBuilder_ == null) { @@ -724,7 +666,6 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getProducerIdOrBuilder() { * * * bytes previous_delta_dfs_hash = 3; - * @return The previousDeltaDfsHash. */ public com.google.protobuf.ByteString getPreviousDeltaDfsHash() { return previousDeltaDfsHash_; @@ -735,8 +676,6 @@ public com.google.protobuf.ByteString getPreviousDeltaDfsHash() { * * * bytes previous_delta_dfs_hash = 3; - * @param value The previousDeltaDfsHash to set. - * @return This builder for chaining. */ public Builder setPreviousDeltaDfsHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -753,7 +692,6 @@ public Builder setPreviousDeltaDfsHash(com.google.protobuf.ByteString value) { * * * bytes previous_delta_dfs_hash = 3; - * @return This builder for chaining. */ public Builder clearPreviousDeltaDfsHash() { @@ -761,16 +699,14 @@ public Builder clearPreviousDeltaDfsHash() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -789,12 +725,11 @@ public static Catalyst.Protocol.Wire.CandidateDeltaBroadcast getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public CandidateDeltaBroadcast parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CandidateDeltaBroadcast(input, extensionRegistry); + return new CandidateDeltaBroadcast(input, extensionRegistry); } }; @@ -807,7 +742,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Wire.CandidateDeltaBroadcast getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/CandidateDeltaBroadcastOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/CandidateDeltaBroadcastOrBuilder.java index a4c965f..d4374aa 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/CandidateDeltaBroadcastOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/CandidateDeltaBroadcastOrBuilder.java @@ -13,7 +13,6 @@ public interface CandidateDeltaBroadcastOrBuilder extends * * * bytes hash = 1; - * @return The hash. */ com.google.protobuf.ByteString getHash(); @@ -23,7 +22,6 @@ public interface CandidateDeltaBroadcastOrBuilder extends * * * .Catalyst.Protocol.Peer.PeerId producer_id = 2; - * @return Whether the producerId field is set. */ boolean hasProducerId(); /** @@ -32,7 +30,6 @@ public interface CandidateDeltaBroadcastOrBuilder extends * * * .Catalyst.Protocol.Peer.PeerId producer_id = 2; - * @return The producerId. */ Catalyst.Protocol.Peer.PeerId getProducerId(); /** @@ -50,7 +47,6 @@ public interface CandidateDeltaBroadcastOrBuilder extends * * * bytes previous_delta_dfs_hash = 3; - * @return The previousDeltaDfsHash. */ com.google.protobuf.ByteString getPreviousDeltaDfsHash(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/DeltaDfsHashBroadcast.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/DeltaDfsHashBroadcast.java index 0952f7d..6cf7a8a 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/DeltaDfsHashBroadcast.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/DeltaDfsHashBroadcast.java @@ -10,7 +10,6 @@ public final class DeltaDfsHashBroadcast extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) DeltaDfsHashBroadcastOrBuilder { -private static final long serialVersionUID = 0L; // Use DeltaDfsHashBroadcast.newBuilder() to construct. private DeltaDfsHashBroadcast(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -20,28 +19,17 @@ private DeltaDfsHashBroadcast() { previousDeltaDfsHash_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeltaDfsHashBroadcast(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DeltaDfsHashBroadcast( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -50,6 +38,12 @@ private DeltaDfsHashBroadcast( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { deltaDfsHash_ = input.readBytes(); @@ -60,13 +54,6 @@ private DeltaDfsHashBroadcast( previousDeltaDfsHash_ = input.readBytes(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -75,7 +62,6 @@ private DeltaDfsHashBroadcast( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -84,7 +70,6 @@ private DeltaDfsHashBroadcast( return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_DeltaDfsHashBroadcast_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_DeltaDfsHashBroadcast_fieldAccessorTable @@ -100,7 +85,6 @@ private DeltaDfsHashBroadcast( * * * bytes delta_dfs_hash = 1; - * @return The deltaDfsHash. */ public com.google.protobuf.ByteString getDeltaDfsHash() { return deltaDfsHash_; @@ -114,14 +98,12 @@ public com.google.protobuf.ByteString getDeltaDfsHash() { * * * bytes previous_delta_dfs_hash = 2; - * @return The previousDeltaDfsHash. */ public com.google.protobuf.ByteString getPreviousDeltaDfsHash() { return previousDeltaDfsHash_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -131,7 +113,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!deltaDfsHash_.isEmpty()) { @@ -140,10 +121,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!previousDeltaDfsHash_.isEmpty()) { output.writeBytes(2, previousDeltaDfsHash_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -157,11 +136,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, previousDeltaDfsHash_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -172,12 +151,12 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Wire.DeltaDfsHashBroadcast other = (Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) obj; - if (!getDeltaDfsHash() - .equals(other.getDeltaDfsHash())) return false; - if (!getPreviousDeltaDfsHash() - .equals(other.getPreviousDeltaDfsHash())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + boolean result = true; + result = result && getDeltaDfsHash() + .equals(other.getDeltaDfsHash()); + result = result && getPreviousDeltaDfsHash() + .equals(other.getPreviousDeltaDfsHash()); + return result; } @java.lang.Override @@ -196,17 +175,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Wire.DeltaDfsHashBroadcast parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Wire.DeltaDfsHashBroadcast parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Wire.DeltaDfsHashBroadcast parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -266,7 +234,6 @@ public static Catalyst.Protocol.Wire.DeltaDfsHashBroadcast parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -274,7 +241,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Wire.DeltaDfsHashBroadcast prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -298,7 +264,6 @@ public static final class Builder extends return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_DeltaDfsHashBroadcast_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_DeltaDfsHashBroadcast_fieldAccessorTable @@ -321,7 +286,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); deltaDfsHash_ = com.google.protobuf.ByteString.EMPTY; @@ -331,18 +295,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_DeltaDfsHashBroadcast_descriptor; } - @java.lang.Override public Catalyst.Protocol.Wire.DeltaDfsHashBroadcast getDefaultInstanceForType() { return Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Wire.DeltaDfsHashBroadcast build() { Catalyst.Protocol.Wire.DeltaDfsHashBroadcast result = buildPartial(); if (!result.isInitialized()) { @@ -351,7 +312,6 @@ public Catalyst.Protocol.Wire.DeltaDfsHashBroadcast build() { return result; } - @java.lang.Override public Catalyst.Protocol.Wire.DeltaDfsHashBroadcast buildPartial() { Catalyst.Protocol.Wire.DeltaDfsHashBroadcast result = new Catalyst.Protocol.Wire.DeltaDfsHashBroadcast(this); result.deltaDfsHash_ = deltaDfsHash_; @@ -360,39 +320,32 @@ public Catalyst.Protocol.Wire.DeltaDfsHashBroadcast buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) { return mergeFrom((Catalyst.Protocol.Wire.DeltaDfsHashBroadcast)other); @@ -410,17 +363,14 @@ public Builder mergeFrom(Catalyst.Protocol.Wire.DeltaDfsHashBroadcast other) { if (other.getPreviousDeltaDfsHash() != com.google.protobuf.ByteString.EMPTY) { setPreviousDeltaDfsHash(other.getPreviousDeltaDfsHash()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -446,7 +396,6 @@ public Builder mergeFrom( * * * bytes delta_dfs_hash = 1; - * @return The deltaDfsHash. */ public com.google.protobuf.ByteString getDeltaDfsHash() { return deltaDfsHash_; @@ -457,8 +406,6 @@ public com.google.protobuf.ByteString getDeltaDfsHash() { * * * bytes delta_dfs_hash = 1; - * @param value The deltaDfsHash to set. - * @return This builder for chaining. */ public Builder setDeltaDfsHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -475,7 +422,6 @@ public Builder setDeltaDfsHash(com.google.protobuf.ByteString value) { * * * bytes delta_dfs_hash = 1; - * @return This builder for chaining. */ public Builder clearDeltaDfsHash() { @@ -491,7 +437,6 @@ public Builder clearDeltaDfsHash() { * * * bytes previous_delta_dfs_hash = 2; - * @return The previousDeltaDfsHash. */ public com.google.protobuf.ByteString getPreviousDeltaDfsHash() { return previousDeltaDfsHash_; @@ -502,8 +447,6 @@ public com.google.protobuf.ByteString getPreviousDeltaDfsHash() { * * * bytes previous_delta_dfs_hash = 2; - * @param value The previousDeltaDfsHash to set. - * @return This builder for chaining. */ public Builder setPreviousDeltaDfsHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -520,7 +463,6 @@ public Builder setPreviousDeltaDfsHash(com.google.protobuf.ByteString value) { * * * bytes previous_delta_dfs_hash = 2; - * @return This builder for chaining. */ public Builder clearPreviousDeltaDfsHash() { @@ -528,16 +470,14 @@ public Builder clearPreviousDeltaDfsHash() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -556,12 +496,11 @@ public static Catalyst.Protocol.Wire.DeltaDfsHashBroadcast getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public DeltaDfsHashBroadcast parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeltaDfsHashBroadcast(input, extensionRegistry); + return new DeltaDfsHashBroadcast(input, extensionRegistry); } }; @@ -574,7 +513,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Wire.DeltaDfsHashBroadcast getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/DeltaDfsHashBroadcastOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/DeltaDfsHashBroadcastOrBuilder.java index 72c91d4..70fa37c 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/DeltaDfsHashBroadcastOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/DeltaDfsHashBroadcastOrBuilder.java @@ -13,7 +13,6 @@ public interface DeltaDfsHashBroadcastOrBuilder extends * * * bytes delta_dfs_hash = 1; - * @return The deltaDfsHash. */ com.google.protobuf.ByteString getDeltaDfsHash(); @@ -23,7 +22,6 @@ public interface DeltaDfsHashBroadcastOrBuilder extends * * * bytes previous_delta_dfs_hash = 2; - * @return The previousDeltaDfsHash. */ com.google.protobuf.ByteString getPreviousDeltaDfsHash(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/FavouriteDeltaBroadcast.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/FavouriteDeltaBroadcast.java index 93a83cd..66cf465 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/FavouriteDeltaBroadcast.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/FavouriteDeltaBroadcast.java @@ -10,7 +10,6 @@ public final class FavouriteDeltaBroadcast extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) FavouriteDeltaBroadcastOrBuilder { -private static final long serialVersionUID = 0L; // Use FavouriteDeltaBroadcast.newBuilder() to construct. private FavouriteDeltaBroadcast(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -18,28 +17,17 @@ private FavouriteDeltaBroadcast(com.google.protobuf.GeneratedMessageV3.Builder * * .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; - * @return Whether the candidate field is set. */ public boolean hasCandidate() { return candidate_ != null; @@ -125,7 +109,6 @@ public boolean hasCandidate() { * * * .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; - * @return The candidate. */ public Catalyst.Protocol.Wire.CandidateDeltaBroadcast getCandidate() { return candidate_ == null ? Catalyst.Protocol.Wire.CandidateDeltaBroadcast.getDefaultInstance() : candidate_; @@ -149,7 +132,6 @@ public Catalyst.Protocol.Wire.CandidateDeltaBroadcastOrBuilder getCandidateOrBui * * * .Catalyst.Protocol.Peer.PeerId voter_id = 2; - * @return Whether the voterId field is set. */ public boolean hasVoterId() { return voterId_ != null; @@ -160,7 +142,6 @@ public boolean hasVoterId() { * * * .Catalyst.Protocol.Peer.PeerId voter_id = 2; - * @return The voterId. */ public Catalyst.Protocol.Peer.PeerId getVoterId() { return voterId_ == null ? Catalyst.Protocol.Peer.PeerId.getDefaultInstance() : voterId_; @@ -177,7 +158,6 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getVoterIdOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -187,7 +167,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (candidate_ != null) { @@ -196,10 +175,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (voterId_ != null) { output.writeMessage(2, getVoterId()); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -213,11 +190,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getVoterId()); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -228,18 +205,18 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Wire.FavouriteDeltaBroadcast other = (Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) obj; - if (hasCandidate() != other.hasCandidate()) return false; + boolean result = true; + result = result && (hasCandidate() == other.hasCandidate()); if (hasCandidate()) { - if (!getCandidate() - .equals(other.getCandidate())) return false; + result = result && getCandidate() + .equals(other.getCandidate()); } - if (hasVoterId() != other.hasVoterId()) return false; + result = result && (hasVoterId() == other.hasVoterId()); if (hasVoterId()) { - if (!getVoterId() - .equals(other.getVoterId())) return false; + result = result && getVoterId() + .equals(other.getVoterId()); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + return result; } @java.lang.Override @@ -262,17 +239,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Wire.FavouriteDeltaBroadcast parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Wire.FavouriteDeltaBroadcast parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Wire.FavouriteDeltaBroadcast parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -332,7 +298,6 @@ public static Catalyst.Protocol.Wire.FavouriteDeltaBroadcast parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -340,7 +305,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Wire.FavouriteDeltaBroadcast prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -364,7 +328,6 @@ public static final class Builder extends return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_FavouriteDeltaBroadcast_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_FavouriteDeltaBroadcast_fieldAccessorTable @@ -387,7 +350,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (candidateBuilder_ == null) { @@ -405,18 +367,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_FavouriteDeltaBroadcast_descriptor; } - @java.lang.Override public Catalyst.Protocol.Wire.FavouriteDeltaBroadcast getDefaultInstanceForType() { return Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Wire.FavouriteDeltaBroadcast build() { Catalyst.Protocol.Wire.FavouriteDeltaBroadcast result = buildPartial(); if (!result.isInitialized()) { @@ -425,7 +384,6 @@ public Catalyst.Protocol.Wire.FavouriteDeltaBroadcast build() { return result; } - @java.lang.Override public Catalyst.Protocol.Wire.FavouriteDeltaBroadcast buildPartial() { Catalyst.Protocol.Wire.FavouriteDeltaBroadcast result = new Catalyst.Protocol.Wire.FavouriteDeltaBroadcast(this); if (candidateBuilder_ == null) { @@ -442,39 +400,32 @@ public Catalyst.Protocol.Wire.FavouriteDeltaBroadcast buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) { return mergeFrom((Catalyst.Protocol.Wire.FavouriteDeltaBroadcast)other); @@ -492,17 +443,14 @@ public Builder mergeFrom(Catalyst.Protocol.Wire.FavouriteDeltaBroadcast other) { if (other.hasVoterId()) { mergeVoterId(other.getVoterId()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -521,7 +469,7 @@ public Builder mergeFrom( return this; } - private Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate_; + private Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Wire.CandidateDeltaBroadcast, Catalyst.Protocol.Wire.CandidateDeltaBroadcast.Builder, Catalyst.Protocol.Wire.CandidateDeltaBroadcastOrBuilder> candidateBuilder_; /** @@ -530,7 +478,6 @@ public Builder mergeFrom( * * * .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; - * @return Whether the candidate field is set. */ public boolean hasCandidate() { return candidateBuilder_ != null || candidate_ != null; @@ -541,7 +488,6 @@ public boolean hasCandidate() { * * * .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; - * @return The candidate. */ public Catalyst.Protocol.Wire.CandidateDeltaBroadcast getCandidate() { if (candidateBuilder_ == null) { @@ -676,7 +622,7 @@ public Catalyst.Protocol.Wire.CandidateDeltaBroadcastOrBuilder getCandidateOrBui return candidateBuilder_; } - private Catalyst.Protocol.Peer.PeerId voterId_; + private Catalyst.Protocol.Peer.PeerId voterId_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Peer.PeerId, Catalyst.Protocol.Peer.PeerId.Builder, Catalyst.Protocol.Peer.PeerIdOrBuilder> voterIdBuilder_; /** @@ -685,7 +631,6 @@ public Catalyst.Protocol.Wire.CandidateDeltaBroadcastOrBuilder getCandidateOrBui * * * .Catalyst.Protocol.Peer.PeerId voter_id = 2; - * @return Whether the voterId field is set. */ public boolean hasVoterId() { return voterIdBuilder_ != null || voterId_ != null; @@ -696,7 +641,6 @@ public boolean hasVoterId() { * * * .Catalyst.Protocol.Peer.PeerId voter_id = 2; - * @return The voterId. */ public Catalyst.Protocol.Peer.PeerId getVoterId() { if (voterIdBuilder_ == null) { @@ -830,16 +774,14 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getVoterIdOrBuilder() { } return voterIdBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -858,12 +800,11 @@ public static Catalyst.Protocol.Wire.FavouriteDeltaBroadcast getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public FavouriteDeltaBroadcast parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FavouriteDeltaBroadcast(input, extensionRegistry); + return new FavouriteDeltaBroadcast(input, extensionRegistry); } }; @@ -876,7 +817,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Wire.FavouriteDeltaBroadcast getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/FavouriteDeltaBroadcastOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/FavouriteDeltaBroadcastOrBuilder.java index 85e1dcd..d041de3 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/FavouriteDeltaBroadcastOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/FavouriteDeltaBroadcastOrBuilder.java @@ -13,7 +13,6 @@ public interface FavouriteDeltaBroadcastOrBuilder extends * * * .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; - * @return Whether the candidate field is set. */ boolean hasCandidate(); /** @@ -22,7 +21,6 @@ public interface FavouriteDeltaBroadcastOrBuilder extends * * * .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; - * @return The candidate. */ Catalyst.Protocol.Wire.CandidateDeltaBroadcast getCandidate(); /** @@ -40,7 +38,6 @@ public interface FavouriteDeltaBroadcastOrBuilder extends * * * .Catalyst.Protocol.Peer.PeerId voter_id = 2; - * @return Whether the voterId field is set. */ boolean hasVoterId(); /** @@ -49,7 +46,6 @@ public interface FavouriteDeltaBroadcastOrBuilder extends * * * .Catalyst.Protocol.Peer.PeerId voter_id = 2; - * @return The voterId. */ Catalyst.Protocol.Peer.PeerId getVoterId(); /** diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolErrorMessage.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolErrorMessage.java index 850eb5b..a0b41e9 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolErrorMessage.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolErrorMessage.java @@ -15,37 +15,26 @@ public final class ProtocolErrorMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Wire.ProtocolErrorMessage) ProtocolErrorMessageOrBuilder { -private static final long serialVersionUID = 0L; // Use ProtocolErrorMessage.newBuilder() to construct. private ProtocolErrorMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtocolErrorMessage() { correlationId_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProtocolErrorMessage(); + code_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ProtocolErrorMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -54,6 +43,12 @@ private ProtocolErrorMessage( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { Catalyst.Protocol.Cryptography.Signature.Builder subBuilder = null; if (signature_ != null) { @@ -90,13 +85,6 @@ private ProtocolErrorMessage( code_ = input.readInt32(); break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +93,6 @@ private ProtocolErrorMessage( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -114,7 +101,6 @@ private ProtocolErrorMessage( return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_ProtocolErrorMessage_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_ProtocolErrorMessage_fieldAccessorTable @@ -126,14 +112,12 @@ private ProtocolErrorMessage( private Catalyst.Protocol.Cryptography.Signature signature_; /** * .Catalyst.Protocol.Cryptography.Signature signature = 1; - * @return Whether the signature field is set. */ public boolean hasSignature() { return signature_ != null; } /** * .Catalyst.Protocol.Cryptography.Signature signature = 1; - * @return The signature. */ public Catalyst.Protocol.Cryptography.Signature getSignature() { return signature_ == null ? Catalyst.Protocol.Cryptography.Signature.getDefaultInstance() : signature_; @@ -149,14 +133,12 @@ public Catalyst.Protocol.Cryptography.SignatureOrBuilder getSignatureOrBuilder() private Catalyst.Protocol.Peer.PeerId peerId_; /** * .Catalyst.Protocol.Peer.PeerId peer_id = 2; - * @return Whether the peerId field is set. */ public boolean hasPeerId() { return peerId_ != null; } /** * .Catalyst.Protocol.Peer.PeerId peer_id = 2; - * @return The peerId. */ public Catalyst.Protocol.Peer.PeerId getPeerId() { return peerId_ == null ? Catalyst.Protocol.Peer.PeerId.getDefaultInstance() : peerId_; @@ -172,7 +154,6 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getPeerIdOrBuilder() { private com.google.protobuf.ByteString correlationId_; /** * bytes correlation_id = 3; - * @return The correlationId. */ public com.google.protobuf.ByteString getCorrelationId() { return correlationId_; @@ -182,14 +163,12 @@ public com.google.protobuf.ByteString getCorrelationId() { private int code_; /** * int32 code = 4; - * @return The code. */ public int getCode() { return code_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -199,7 +178,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (signature_ != null) { @@ -214,10 +192,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (code_ != 0) { output.writeInt32(4, code_); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -239,11 +215,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, code_); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -254,22 +230,22 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Wire.ProtocolErrorMessage other = (Catalyst.Protocol.Wire.ProtocolErrorMessage) obj; - if (hasSignature() != other.hasSignature()) return false; + boolean result = true; + result = result && (hasSignature() == other.hasSignature()); if (hasSignature()) { - if (!getSignature() - .equals(other.getSignature())) return false; + result = result && getSignature() + .equals(other.getSignature()); } - if (hasPeerId() != other.hasPeerId()) return false; + result = result && (hasPeerId() == other.hasPeerId()); if (hasPeerId()) { - if (!getPeerId() - .equals(other.getPeerId())) return false; - } - if (!getCorrelationId() - .equals(other.getCorrelationId())) return false; - if (getCode() - != other.getCode()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + result = result && getPeerId() + .equals(other.getPeerId()); + } + result = result && getCorrelationId() + .equals(other.getCorrelationId()); + result = result && (getCode() + == other.getCode()); + return result; } @java.lang.Override @@ -296,17 +272,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Wire.ProtocolErrorMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Wire.ProtocolErrorMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Wire.ProtocolErrorMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -366,7 +331,6 @@ public static Catalyst.Protocol.Wire.ProtocolErrorMessage parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -374,7 +338,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Wire.ProtocolErrorMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -403,7 +366,6 @@ public static final class Builder extends return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_ProtocolErrorMessage_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_ProtocolErrorMessage_fieldAccessorTable @@ -426,7 +388,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (signatureBuilder_ == null) { @@ -448,18 +409,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_ProtocolErrorMessage_descriptor; } - @java.lang.Override public Catalyst.Protocol.Wire.ProtocolErrorMessage getDefaultInstanceForType() { return Catalyst.Protocol.Wire.ProtocolErrorMessage.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Wire.ProtocolErrorMessage build() { Catalyst.Protocol.Wire.ProtocolErrorMessage result = buildPartial(); if (!result.isInitialized()) { @@ -468,7 +426,6 @@ public Catalyst.Protocol.Wire.ProtocolErrorMessage build() { return result; } - @java.lang.Override public Catalyst.Protocol.Wire.ProtocolErrorMessage buildPartial() { Catalyst.Protocol.Wire.ProtocolErrorMessage result = new Catalyst.Protocol.Wire.ProtocolErrorMessage(this); if (signatureBuilder_ == null) { @@ -487,39 +444,32 @@ public Catalyst.Protocol.Wire.ProtocolErrorMessage buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Wire.ProtocolErrorMessage) { return mergeFrom((Catalyst.Protocol.Wire.ProtocolErrorMessage)other); @@ -543,17 +493,14 @@ public Builder mergeFrom(Catalyst.Protocol.Wire.ProtocolErrorMessage other) { if (other.getCode() != 0) { setCode(other.getCode()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -572,19 +519,17 @@ public Builder mergeFrom( return this; } - private Catalyst.Protocol.Cryptography.Signature signature_; + private Catalyst.Protocol.Cryptography.Signature signature_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Cryptography.Signature, Catalyst.Protocol.Cryptography.Signature.Builder, Catalyst.Protocol.Cryptography.SignatureOrBuilder> signatureBuilder_; /** * .Catalyst.Protocol.Cryptography.Signature signature = 1; - * @return Whether the signature field is set. */ public boolean hasSignature() { return signatureBuilder_ != null || signature_ != null; } /** * .Catalyst.Protocol.Cryptography.Signature signature = 1; - * @return The signature. */ public Catalyst.Protocol.Cryptography.Signature getSignature() { if (signatureBuilder_ == null) { @@ -691,19 +636,17 @@ public Catalyst.Protocol.Cryptography.SignatureOrBuilder getSignatureOrBuilder() return signatureBuilder_; } - private Catalyst.Protocol.Peer.PeerId peerId_; + private Catalyst.Protocol.Peer.PeerId peerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Peer.PeerId, Catalyst.Protocol.Peer.PeerId.Builder, Catalyst.Protocol.Peer.PeerIdOrBuilder> peerIdBuilder_; /** * .Catalyst.Protocol.Peer.PeerId peer_id = 2; - * @return Whether the peerId field is set. */ public boolean hasPeerId() { return peerIdBuilder_ != null || peerId_ != null; } /** * .Catalyst.Protocol.Peer.PeerId peer_id = 2; - * @return The peerId. */ public Catalyst.Protocol.Peer.PeerId getPeerId() { if (peerIdBuilder_ == null) { @@ -813,15 +756,12 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getPeerIdOrBuilder() { private com.google.protobuf.ByteString correlationId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes correlation_id = 3; - * @return The correlationId. */ public com.google.protobuf.ByteString getCorrelationId() { return correlationId_; } /** * bytes correlation_id = 3; - * @param value The correlationId to set. - * @return This builder for chaining. */ public Builder setCorrelationId(com.google.protobuf.ByteString value) { if (value == null) { @@ -834,7 +774,6 @@ public Builder setCorrelationId(com.google.protobuf.ByteString value) { } /** * bytes correlation_id = 3; - * @return This builder for chaining. */ public Builder clearCorrelationId() { @@ -846,15 +785,12 @@ public Builder clearCorrelationId() { private int code_ ; /** * int32 code = 4; - * @return The code. */ public int getCode() { return code_; } /** * int32 code = 4; - * @param value The code to set. - * @return This builder for chaining. */ public Builder setCode(int value) { @@ -864,7 +800,6 @@ public Builder setCode(int value) { } /** * int32 code = 4; - * @return This builder for chaining. */ public Builder clearCode() { @@ -872,16 +807,14 @@ public Builder clearCode() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -900,12 +833,11 @@ public static Catalyst.Protocol.Wire.ProtocolErrorMessage getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ProtocolErrorMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ProtocolErrorMessage(input, extensionRegistry); + return new ProtocolErrorMessage(input, extensionRegistry); } }; @@ -918,7 +850,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Wire.ProtocolErrorMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolErrorMessageOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolErrorMessageOrBuilder.java index 81ff33a..11505d4 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolErrorMessageOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolErrorMessageOrBuilder.java @@ -9,12 +9,10 @@ public interface ProtocolErrorMessageOrBuilder extends /** * .Catalyst.Protocol.Cryptography.Signature signature = 1; - * @return Whether the signature field is set. */ boolean hasSignature(); /** * .Catalyst.Protocol.Cryptography.Signature signature = 1; - * @return The signature. */ Catalyst.Protocol.Cryptography.Signature getSignature(); /** @@ -24,12 +22,10 @@ public interface ProtocolErrorMessageOrBuilder extends /** * .Catalyst.Protocol.Peer.PeerId peer_id = 2; - * @return Whether the peerId field is set. */ boolean hasPeerId(); /** * .Catalyst.Protocol.Peer.PeerId peer_id = 2; - * @return The peerId. */ Catalyst.Protocol.Peer.PeerId getPeerId(); /** @@ -39,13 +35,11 @@ public interface ProtocolErrorMessageOrBuilder extends /** * bytes correlation_id = 3; - * @return The correlationId. */ com.google.protobuf.ByteString getCorrelationId(); /** * int32 code = 4; - * @return The code. */ int getCode(); } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolMessage.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolMessage.java index 98d4176..653bd87 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolMessage.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolMessage.java @@ -15,7 +15,6 @@ public final class ProtocolMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Wire.ProtocolMessage) ProtocolMessageOrBuilder { -private static final long serialVersionUID = 0L; // Use ProtocolMessage.newBuilder() to construct. private ProtocolMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -26,28 +25,17 @@ private ProtocolMessage() { value_ = com.google.protobuf.ByteString.EMPTY; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProtocolMessage(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ProtocolMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -56,6 +44,12 @@ private ProtocolMessage( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { Catalyst.Protocol.Peer.PeerId.Builder subBuilder = null; if (peerId_ != null) { @@ -98,13 +92,6 @@ private ProtocolMessage( break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,7 +100,6 @@ private ProtocolMessage( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -122,7 +108,6 @@ private ProtocolMessage( return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_ProtocolMessage_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_ProtocolMessage_fieldAccessorTable @@ -138,7 +123,6 @@ private ProtocolMessage( * * * .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return Whether the peerId field is set. */ public boolean hasPeerId() { return peerId_ != null; @@ -149,7 +133,6 @@ public boolean hasPeerId() { * * * .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return The peerId. */ public Catalyst.Protocol.Peer.PeerId getPeerId() { return peerId_ == null ? Catalyst.Protocol.Peer.PeerId.getDefaultInstance() : peerId_; @@ -173,7 +156,6 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getPeerIdOrBuilder() { * * * bytes correlation_id = 2; - * @return The correlationId. */ public com.google.protobuf.ByteString getCorrelationId() { return correlationId_; @@ -187,7 +169,6 @@ public com.google.protobuf.ByteString getCorrelationId() { * * * string type_url = 3; - * @return The typeUrl. */ public java.lang.String getTypeUrl() { java.lang.Object ref = typeUrl_; @@ -207,7 +188,6 @@ public java.lang.String getTypeUrl() { * * * string type_url = 3; - * @return The bytes for typeUrl. */ public com.google.protobuf.ByteString getTypeUrlBytes() { @@ -231,7 +211,6 @@ public java.lang.String getTypeUrl() { * * * bytes value = 4; - * @return The value. */ public com.google.protobuf.ByteString getValue() { return value_; @@ -245,7 +224,6 @@ public com.google.protobuf.ByteString getValue() { * * * .Catalyst.Protocol.Cryptography.Signature signature = 5; - * @return Whether the signature field is set. */ public boolean hasSignature() { return signature_ != null; @@ -256,7 +234,6 @@ public boolean hasSignature() { * * * .Catalyst.Protocol.Cryptography.Signature signature = 5; - * @return The signature. */ public Catalyst.Protocol.Cryptography.Signature getSignature() { return signature_ == null ? Catalyst.Protocol.Cryptography.Signature.getDefaultInstance() : signature_; @@ -273,7 +250,6 @@ public Catalyst.Protocol.Cryptography.SignatureOrBuilder getSignatureOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -283,7 +259,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (peerId_ != null) { @@ -301,10 +276,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (signature_ != null) { output.writeMessage(5, getSignature()); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -329,11 +302,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSignature()); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -344,24 +317,24 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Wire.ProtocolMessage other = (Catalyst.Protocol.Wire.ProtocolMessage) obj; - if (hasPeerId() != other.hasPeerId()) return false; + boolean result = true; + result = result && (hasPeerId() == other.hasPeerId()); if (hasPeerId()) { - if (!getPeerId() - .equals(other.getPeerId())) return false; - } - if (!getCorrelationId() - .equals(other.getCorrelationId())) return false; - if (!getTypeUrl() - .equals(other.getTypeUrl())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (hasSignature() != other.hasSignature()) return false; + result = result && getPeerId() + .equals(other.getPeerId()); + } + result = result && getCorrelationId() + .equals(other.getCorrelationId()); + result = result && getTypeUrl() + .equals(other.getTypeUrl()); + result = result && getValue() + .equals(other.getValue()); + result = result && (hasSignature() == other.hasSignature()); if (hasSignature()) { - if (!getSignature() - .equals(other.getSignature())) return false; + result = result && getSignature() + .equals(other.getSignature()); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + return result; } @java.lang.Override @@ -390,17 +363,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Wire.ProtocolMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Wire.ProtocolMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Wire.ProtocolMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -460,7 +422,6 @@ public static Catalyst.Protocol.Wire.ProtocolMessage parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -468,7 +429,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Wire.ProtocolMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -497,7 +457,6 @@ public static final class Builder extends return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_ProtocolMessage_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_ProtocolMessage_fieldAccessorTable @@ -520,7 +479,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (peerIdBuilder_ == null) { @@ -544,18 +502,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_ProtocolMessage_descriptor; } - @java.lang.Override public Catalyst.Protocol.Wire.ProtocolMessage getDefaultInstanceForType() { return Catalyst.Protocol.Wire.ProtocolMessage.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Wire.ProtocolMessage build() { Catalyst.Protocol.Wire.ProtocolMessage result = buildPartial(); if (!result.isInitialized()) { @@ -564,7 +519,6 @@ public Catalyst.Protocol.Wire.ProtocolMessage build() { return result; } - @java.lang.Override public Catalyst.Protocol.Wire.ProtocolMessage buildPartial() { Catalyst.Protocol.Wire.ProtocolMessage result = new Catalyst.Protocol.Wire.ProtocolMessage(this); if (peerIdBuilder_ == null) { @@ -584,39 +538,32 @@ public Catalyst.Protocol.Wire.ProtocolMessage buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Wire.ProtocolMessage) { return mergeFrom((Catalyst.Protocol.Wire.ProtocolMessage)other); @@ -644,17 +591,14 @@ public Builder mergeFrom(Catalyst.Protocol.Wire.ProtocolMessage other) { if (other.hasSignature()) { mergeSignature(other.getSignature()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -673,7 +617,7 @@ public Builder mergeFrom( return this; } - private Catalyst.Protocol.Peer.PeerId peerId_; + private Catalyst.Protocol.Peer.PeerId peerId_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Peer.PeerId, Catalyst.Protocol.Peer.PeerId.Builder, Catalyst.Protocol.Peer.PeerIdOrBuilder> peerIdBuilder_; /** @@ -682,7 +626,6 @@ public Builder mergeFrom( * * * .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return Whether the peerId field is set. */ public boolean hasPeerId() { return peerIdBuilder_ != null || peerId_ != null; @@ -693,7 +636,6 @@ public boolean hasPeerId() { * * * .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return The peerId. */ public Catalyst.Protocol.Peer.PeerId getPeerId() { if (peerIdBuilder_ == null) { @@ -835,7 +777,6 @@ public Catalyst.Protocol.Peer.PeerIdOrBuilder getPeerIdOrBuilder() { * * * bytes correlation_id = 2; - * @return The correlationId. */ public com.google.protobuf.ByteString getCorrelationId() { return correlationId_; @@ -846,8 +787,6 @@ public com.google.protobuf.ByteString getCorrelationId() { * * * bytes correlation_id = 2; - * @param value The correlationId to set. - * @return This builder for chaining. */ public Builder setCorrelationId(com.google.protobuf.ByteString value) { if (value == null) { @@ -864,7 +803,6 @@ public Builder setCorrelationId(com.google.protobuf.ByteString value) { * * * bytes correlation_id = 2; - * @return This builder for chaining. */ public Builder clearCorrelationId() { @@ -880,7 +818,6 @@ public Builder clearCorrelationId() { * * * string type_url = 3; - * @return The typeUrl. */ public java.lang.String getTypeUrl() { java.lang.Object ref = typeUrl_; @@ -900,7 +837,6 @@ public java.lang.String getTypeUrl() { * * * string type_url = 3; - * @return The bytes for typeUrl. */ public com.google.protobuf.ByteString getTypeUrlBytes() { @@ -921,8 +857,6 @@ public java.lang.String getTypeUrl() { * * * string type_url = 3; - * @param value The typeUrl to set. - * @return This builder for chaining. */ public Builder setTypeUrl( java.lang.String value) { @@ -940,7 +874,6 @@ public Builder setTypeUrl( * * * string type_url = 3; - * @return This builder for chaining. */ public Builder clearTypeUrl() { @@ -954,8 +887,6 @@ public Builder clearTypeUrl() { * * * string type_url = 3; - * @param value The bytes for typeUrl to set. - * @return This builder for chaining. */ public Builder setTypeUrlBytes( com.google.protobuf.ByteString value) { @@ -976,7 +907,6 @@ public Builder setTypeUrlBytes( * * * bytes value = 4; - * @return The value. */ public com.google.protobuf.ByteString getValue() { return value_; @@ -987,8 +917,6 @@ public com.google.protobuf.ByteString getValue() { * * * bytes value = 4; - * @param value The value to set. - * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { @@ -1005,7 +933,6 @@ public Builder setValue(com.google.protobuf.ByteString value) { * * * bytes value = 4; - * @return This builder for chaining. */ public Builder clearValue() { @@ -1014,7 +941,7 @@ public Builder clearValue() { return this; } - private Catalyst.Protocol.Cryptography.Signature signature_; + private Catalyst.Protocol.Cryptography.Signature signature_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Cryptography.Signature, Catalyst.Protocol.Cryptography.Signature.Builder, Catalyst.Protocol.Cryptography.SignatureOrBuilder> signatureBuilder_; /** @@ -1023,7 +950,6 @@ public Builder clearValue() { * * * .Catalyst.Protocol.Cryptography.Signature signature = 5; - * @return Whether the signature field is set. */ public boolean hasSignature() { return signatureBuilder_ != null || signature_ != null; @@ -1034,7 +960,6 @@ public boolean hasSignature() { * * * .Catalyst.Protocol.Cryptography.Signature signature = 5; - * @return The signature. */ public Catalyst.Protocol.Cryptography.Signature getSignature() { if (signatureBuilder_ == null) { @@ -1168,16 +1093,14 @@ public Catalyst.Protocol.Cryptography.SignatureOrBuilder getSignatureOrBuilder() } return signatureBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -1196,12 +1119,11 @@ public static Catalyst.Protocol.Wire.ProtocolMessage getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ProtocolMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ProtocolMessage(input, extensionRegistry); + return new ProtocolMessage(input, extensionRegistry); } }; @@ -1214,7 +1136,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Wire.ProtocolMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolMessageOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolMessageOrBuilder.java index d96f4d9..ada24cf 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolMessageOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/ProtocolMessageOrBuilder.java @@ -13,7 +13,6 @@ public interface ProtocolMessageOrBuilder extends * * * .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return Whether the peerId field is set. */ boolean hasPeerId(); /** @@ -22,7 +21,6 @@ public interface ProtocolMessageOrBuilder extends * * * .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return The peerId. */ Catalyst.Protocol.Peer.PeerId getPeerId(); /** @@ -40,7 +38,6 @@ public interface ProtocolMessageOrBuilder extends * * * bytes correlation_id = 2; - * @return The correlationId. */ com.google.protobuf.ByteString getCorrelationId(); @@ -50,7 +47,6 @@ public interface ProtocolMessageOrBuilder extends * * * string type_url = 3; - * @return The typeUrl. */ java.lang.String getTypeUrl(); /** @@ -59,7 +55,6 @@ public interface ProtocolMessageOrBuilder extends * * * string type_url = 3; - * @return The bytes for typeUrl. */ com.google.protobuf.ByteString getTypeUrlBytes(); @@ -70,7 +65,6 @@ public interface ProtocolMessageOrBuilder extends * * * bytes value = 4; - * @return The value. */ com.google.protobuf.ByteString getValue(); @@ -80,7 +74,6 @@ public interface ProtocolMessageOrBuilder extends * * * .Catalyst.Protocol.Cryptography.Signature signature = 5; - * @return Whether the signature field is set. */ boolean hasSignature(); /** @@ -89,7 +82,6 @@ public interface ProtocolMessageOrBuilder extends * * * .Catalyst.Protocol.Cryptography.Signature signature = 5; - * @return The signature. */ Catalyst.Protocol.Cryptography.Signature getSignature(); /** diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/TransactionBroadcast.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/TransactionBroadcast.java index d3b63d3..dc13842 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/TransactionBroadcast.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/TransactionBroadcast.java @@ -10,7 +10,6 @@ public final class TransactionBroadcast extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Catalyst.Protocol.Wire.TransactionBroadcast) TransactionBroadcastOrBuilder { -private static final long serialVersionUID = 0L; // Use TransactionBroadcast.newBuilder() to construct. private TransactionBroadcast(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -18,28 +17,17 @@ private TransactionBroadcast(com.google.protobuf.GeneratedMessageV3.Builder b private TransactionBroadcast() { } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TransactionBroadcast(); - } - @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private TransactionBroadcast( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); + int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { @@ -48,6 +36,12 @@ private TransactionBroadcast( case 0: done = true; break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } case 10: { Catalyst.Protocol.Transaction.PublicEntry.Builder subBuilder = null; if (publicEntry_ != null) { @@ -61,13 +55,6 @@ private TransactionBroadcast( break; } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,7 +63,6 @@ private TransactionBroadcast( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } @@ -85,7 +71,6 @@ private TransactionBroadcast( return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_TransactionBroadcast_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_TransactionBroadcast_fieldAccessorTable @@ -101,7 +86,6 @@ private TransactionBroadcast( * * * .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; - * @return Whether the publicEntry field is set. */ public boolean hasPublicEntry() { return publicEntry_ != null; @@ -112,7 +96,6 @@ public boolean hasPublicEntry() { * * * .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; - * @return The publicEntry. */ public Catalyst.Protocol.Transaction.PublicEntry getPublicEntry() { return publicEntry_ == null ? Catalyst.Protocol.Transaction.PublicEntry.getDefaultInstance() : publicEntry_; @@ -129,7 +112,6 @@ public Catalyst.Protocol.Transaction.PublicEntryOrBuilder getPublicEntryOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -139,16 +121,13 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (publicEntry_ != null) { output.writeMessage(1, getPublicEntry()); } - unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -158,11 +137,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPublicEntry()); } - size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } + private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { @@ -173,13 +152,13 @@ public boolean equals(final java.lang.Object obj) { } Catalyst.Protocol.Wire.TransactionBroadcast other = (Catalyst.Protocol.Wire.TransactionBroadcast) obj; - if (hasPublicEntry() != other.hasPublicEntry()) return false; + boolean result = true; + result = result && (hasPublicEntry() == other.hasPublicEntry()); if (hasPublicEntry()) { - if (!getPublicEntry() - .equals(other.getPublicEntry())) return false; + result = result && getPublicEntry() + .equals(other.getPublicEntry()); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + return result; } @java.lang.Override @@ -198,17 +177,6 @@ public int hashCode() { return hash; } - public static Catalyst.Protocol.Wire.TransactionBroadcast parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static Catalyst.Protocol.Wire.TransactionBroadcast parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } public static Catalyst.Protocol.Wire.TransactionBroadcast parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -268,7 +236,6 @@ public static Catalyst.Protocol.Wire.TransactionBroadcast parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -276,7 +243,6 @@ public static Builder newBuilder() { public static Builder newBuilder(Catalyst.Protocol.Wire.TransactionBroadcast prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -300,7 +266,6 @@ public static final class Builder extends return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_TransactionBroadcast_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_TransactionBroadcast_fieldAccessorTable @@ -323,7 +288,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (publicEntryBuilder_ == null) { @@ -335,18 +299,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Catalyst.Protocol.Wire.Wire.internal_static_Catalyst_Protocol_Wire_TransactionBroadcast_descriptor; } - @java.lang.Override public Catalyst.Protocol.Wire.TransactionBroadcast getDefaultInstanceForType() { return Catalyst.Protocol.Wire.TransactionBroadcast.getDefaultInstance(); } - @java.lang.Override public Catalyst.Protocol.Wire.TransactionBroadcast build() { Catalyst.Protocol.Wire.TransactionBroadcast result = buildPartial(); if (!result.isInitialized()) { @@ -355,7 +316,6 @@ public Catalyst.Protocol.Wire.TransactionBroadcast build() { return result; } - @java.lang.Override public Catalyst.Protocol.Wire.TransactionBroadcast buildPartial() { Catalyst.Protocol.Wire.TransactionBroadcast result = new Catalyst.Protocol.Wire.TransactionBroadcast(this); if (publicEntryBuilder_ == null) { @@ -367,39 +327,32 @@ public Catalyst.Protocol.Wire.TransactionBroadcast buildPartial() { return result; } - @java.lang.Override public Builder clone() { - return super.clone(); + return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + Object value) { + return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + Object value) { + return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Catalyst.Protocol.Wire.TransactionBroadcast) { return mergeFrom((Catalyst.Protocol.Wire.TransactionBroadcast)other); @@ -414,17 +367,14 @@ public Builder mergeFrom(Catalyst.Protocol.Wire.TransactionBroadcast other) { if (other.hasPublicEntry()) { mergePublicEntry(other.getPublicEntry()); } - this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -443,7 +393,7 @@ public Builder mergeFrom( return this; } - private Catalyst.Protocol.Transaction.PublicEntry publicEntry_; + private Catalyst.Protocol.Transaction.PublicEntry publicEntry_ = null; private com.google.protobuf.SingleFieldBuilderV3< Catalyst.Protocol.Transaction.PublicEntry, Catalyst.Protocol.Transaction.PublicEntry.Builder, Catalyst.Protocol.Transaction.PublicEntryOrBuilder> publicEntryBuilder_; /** @@ -452,7 +402,6 @@ public Builder mergeFrom( * * * .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; - * @return Whether the publicEntry field is set. */ public boolean hasPublicEntry() { return publicEntryBuilder_ != null || publicEntry_ != null; @@ -463,7 +412,6 @@ public boolean hasPublicEntry() { * * * .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; - * @return The publicEntry. */ public Catalyst.Protocol.Transaction.PublicEntry getPublicEntry() { if (publicEntryBuilder_ == null) { @@ -597,16 +545,14 @@ public Catalyst.Protocol.Transaction.PublicEntryOrBuilder getPublicEntryOrBuilde } return publicEntryBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + return this; } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + return this; } @@ -625,12 +571,11 @@ public static Catalyst.Protocol.Wire.TransactionBroadcast getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public TransactionBroadcast parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TransactionBroadcast(input, extensionRegistry); + return new TransactionBroadcast(input, extensionRegistry); } }; @@ -643,7 +588,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public Catalyst.Protocol.Wire.TransactionBroadcast getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/TransactionBroadcastOrBuilder.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/TransactionBroadcastOrBuilder.java index 02bf6c1..fcd67b9 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/TransactionBroadcastOrBuilder.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/TransactionBroadcastOrBuilder.java @@ -13,7 +13,6 @@ public interface TransactionBroadcastOrBuilder extends * * * .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; - * @return Whether the publicEntry field is set. */ boolean hasPublicEntry(); /** @@ -22,7 +21,6 @@ public interface TransactionBroadcastOrBuilder extends * * * .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; - * @return The publicEntry. */ Catalyst.Protocol.Transaction.PublicEntry getPublicEntry(); /** diff --git a/packages/sdk-java/src/Catalyst/Protocol/Wire/Wire.java b/packages/sdk-java/src/Catalyst/Protocol/Wire/Wire.java index 5a900e8..b27de02 100644 --- a/packages/sdk-java/src/Catalyst/Protocol/Wire/Wire.java +++ b/packages/sdk-java/src/Catalyst/Protocol/Wire/Wire.java @@ -62,7 +62,7 @@ public static void registerAllExtensions( "ocol.Peer.PeerId\022\026\n\016correlation_id\030\003 \001(\014" + "\022\014\n\004code\030\004 \001(\005\"\271\001\n\017ProtocolMessage\022/\n\007pe" + "er_id\030\001 \001(\0132\036.Catalyst.Protocol.Peer.Pee" + - "rId\022\026\n\016correlation_id\030\002 \001(\014\022\020\n\010type_url\030" + + "rId\022\026\n\016correlation_id\030\002 \001(\014\022\020\n\010type_url\030", "\003 \001(\t\022\r\n\005value\030\004 \001(\014\022<\n\tsignature\030\005 \001(\0132" + ").Catalyst.Protocol.Cryptography.Signatu" + "re\"X\n\024TransactionBroadcast\022@\n\014public_ent" + @@ -72,20 +72,28 @@ public static void registerAllExtensions( "alyst.Protocol.Peer.PeerId\022\037\n\027previous_d" + "elta_dfs_hash\030\003 \001(\014\"\217\001\n\027FavouriteDeltaBr" + "oadcast\022B\n\tcandidate\030\001 \001(\0132/.Catalyst.Pr" + - "otocol.Wire.CandidateDeltaBroadcast\0220\n\010v" + + "otocol.Wire.CandidateDeltaBroadcast\0220\n\010v", "oter_id\030\002 \001(\0132\036.Catalyst.Protocol.Peer.P" + "eerId\"P\n\025DeltaDfsHashBroadcast\022\026\n\016delta_" + "dfs_hash\030\001 \001(\014\022\037\n\027previous_delta_dfs_has" + "h\030\002 \001(\014B\002P\001b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Catalyst.Protocol.Cryptography.Cryptography.getDescriptor(), Catalyst.Protocol.Peer.Peer.getDescriptor(), Catalyst.Protocol.Transaction.Transaction.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - }); + }, assigner); internal_static_Catalyst_Protocol_Wire_ProtocolErrorMessage_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Catalyst_Protocol_Wire_ProtocolErrorMessage_fieldAccessorTable = new diff --git a/packages/sdk-js/package-lock.json b/packages/sdk-js/package-lock.json index f600045..259162a 100644 --- a/packages/sdk-js/package-lock.json +++ b/packages/sdk-js/package-lock.json @@ -1,38 +1,33 @@ { "name": "@catalystnetwork/protocol-sdk", - "version": "0.0.2", + "version": "0.0.6", "lockfileVersion": 1, "requires": true, "dependencies": { "@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=", - "dev": true + "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=" }, "@protobufjs/base64": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", - "dev": true + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" }, "@protobufjs/codegen": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", - "dev": true + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" }, "@protobufjs/eventemitter": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=", - "dev": true + "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=" }, "@protobufjs/fetch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", - "dev": true, "requires": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" @@ -41,32 +36,27 @@ "@protobufjs/float": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=", - "dev": true + "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=" }, "@protobufjs/inquire": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=", - "dev": true + "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=" }, "@protobufjs/path": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=", - "dev": true + "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=" }, "@protobufjs/pool": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=", - "dev": true + "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=" }, "@protobufjs/utf8": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=", - "dev": true + "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" }, "@types/google-protobuf": { "version": "3.7.2", @@ -76,32 +66,27 @@ "@types/long": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.0.tgz", - "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==", - "dev": true + "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" }, "@types/node": { "version": "10.14.14", "resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.14.tgz", - "integrity": "sha512-xXD08vZsvpv4xptQXj1+ky22f7ZoKu5ZNI/4l+/BXG3X+XaeZsmaFbbTKuhSE3NjjvRuZFxFf9sQBMXIcZNFMQ==", - "dev": true + "integrity": "sha512-xXD08vZsvpv4xptQXj1+ky22f7ZoKu5ZNI/4l+/BXG3X+XaeZsmaFbbTKuhSE3NjjvRuZFxFf9sQBMXIcZNFMQ==" }, "google-protobuf": { "version": "3.11.2", "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.11.2.tgz", - "integrity": "sha512-T4fin7lcYLUPj2ChUZ4DvfuuHtg3xi1621qeRZt2J7SvOQusOzq+sDT4vbotWTCjUXJoR36CA016LlhtPy80uQ==", - "dev": true + "integrity": "sha512-T4fin7lcYLUPj2ChUZ4DvfuuHtg3xi1621qeRZt2J7SvOQusOzq+sDT4vbotWTCjUXJoR36CA016LlhtPy80uQ==" }, "long": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==", - "dev": true + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, "protobufjs": { "version": "6.8.8", "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.8.tgz", "integrity": "sha512-AAmHtD5pXgZfi7GMpllpO3q1Xw1OYldr+dMUlAnffGTAhqkg72WdmSY71uKBF/JuyiKs8psYbtKrhi0ASCD8qw==", - "dev": true, "requires": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", diff --git a/packages/sdk-js/package.json b/packages/sdk-js/package.json index 378ccc4..ef5fdd9 100644 --- a/packages/sdk-js/package.json +++ b/packages/sdk-js/package.json @@ -4,7 +4,7 @@ "type": "git", "url": "git+https://github.com/catalyst-network/protocol.git" }, - "version": "0.0.6", + "version": "0.1.6", "description": "Catalyst Protocol SDK-JS", "main": "src/index.js", "scripts": { diff --git a/packages/sdk-js/src/Account_pb.js b/packages/sdk-js/src/Account_pb.js index 97ffdb7..5c6bbe4 100644 --- a/packages/sdk-js/src/Account_pb.js +++ b/packages/sdk-js/src/Account_pb.js @@ -1,9 +1,6 @@ -// source: Account.proto /** * @fileoverview * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! @@ -13,11 +10,10 @@ var goog = jspb; var global = Function('return this')(); var Cryptography_pb = require('./Cryptography_pb.js'); -goog.object.extend(proto, Cryptography_pb); var Network_pb = require('./Network_pb.js'); -goog.object.extend(proto, Network_pb); goog.exportSymbol('proto.Catalyst.Protocol.Account.AccountType', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Account.Address', null, global); + /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -33,26 +29,19 @@ proto.Catalyst.Protocol.Account.Address = function(opt_data) { }; goog.inherits(proto.Catalyst.Protocol.Account.Address, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ proto.Catalyst.Protocol.Account.Address.displayName = 'proto.Catalyst.Protocol.Account.Address'; } - if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Account.Address.prototype.toObject = function(opt_includeInstance) { @@ -62,12 +51,11 @@ proto.Catalyst.Protocol.Account.Address.prototype.toObject = function(opt_includ /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Account.Address} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Account.Address.toObject = function(includeInstance, msg) { var f, obj = { @@ -147,7 +135,6 @@ proto.Catalyst.Protocol.Account.Address.prototype.serializeBinary = function() { * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Account.Address} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Account.Address.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -184,12 +171,9 @@ proto.Catalyst.Protocol.Account.Address.prototype.getNetworkType = function() { }; -/** - * @param {!proto.Catalyst.Protocol.Network.NetworkType} value - * @return {!proto.Catalyst.Protocol.Account.Address} returns this - */ +/** @param {!proto.Catalyst.Protocol.Network.NetworkType} value */ proto.Catalyst.Protocol.Account.Address.prototype.setNetworkType = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -202,12 +186,9 @@ proto.Catalyst.Protocol.Account.Address.prototype.getAccountType = function() { }; -/** - * @param {!proto.Catalyst.Protocol.Account.AccountType} value - * @return {!proto.Catalyst.Protocol.Account.Address} returns this - */ +/** @param {!proto.Catalyst.Protocol.Account.AccountType} value */ proto.Catalyst.Protocol.Account.Address.prototype.setAccountType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -244,12 +225,9 @@ proto.Catalyst.Protocol.Account.Address.prototype.getPublicKeyHash_asU8 = functi }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Account.Address} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Account.Address.prototype.setPublicKeyHash = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); + jspb.Message.setField(this, 3, value); }; diff --git a/packages/sdk-js/src/Cryptography_pb.js b/packages/sdk-js/src/Cryptography_pb.js index 86beb2e..e8df2a2 100644 --- a/packages/sdk-js/src/Cryptography_pb.js +++ b/packages/sdk-js/src/Cryptography_pb.js @@ -1,9 +1,6 @@ -// source: Cryptography.proto /** * @fileoverview * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! @@ -13,12 +10,12 @@ var goog = jspb; var global = Function('return this')(); var Network_pb = require('./Network_pb.js'); -goog.object.extend(proto, Network_pb); goog.exportSymbol('proto.Catalyst.Protocol.Cryptography.ErrorCode', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Cryptography.Signature', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Cryptography.SignatureBatch', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Cryptography.SignatureType', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Cryptography.SigningContext', null, global); + /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -34,68 +31,19 @@ proto.Catalyst.Protocol.Cryptography.Signature = function(opt_data) { }; goog.inherits(proto.Catalyst.Protocol.Cryptography.Signature, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ proto.Catalyst.Protocol.Cryptography.Signature.displayName = 'proto.Catalyst.Protocol.Cryptography.Signature'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Cryptography.SigningContext = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Cryptography.SigningContext, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Cryptography.SigningContext.displayName = 'proto.Catalyst.Protocol.Cryptography.SigningContext'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Cryptography.SignatureBatch = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.Cryptography.SignatureBatch.repeatedFields_, null); -}; -goog.inherits(proto.Catalyst.Protocol.Cryptography.SignatureBatch, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Cryptography.SignatureBatch.displayName = 'proto.Catalyst.Protocol.Cryptography.SignatureBatch'; -} - if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Cryptography.Signature.prototype.toObject = function(opt_includeInstance) { @@ -105,12 +53,11 @@ proto.Catalyst.Protocol.Cryptography.Signature.prototype.toObject = function(opt /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Cryptography.Signature} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Cryptography.Signature.toObject = function(includeInstance, msg) { var f, obj = { @@ -186,7 +133,6 @@ proto.Catalyst.Protocol.Cryptography.Signature.prototype.serializeBinary = funct * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Cryptography.Signature} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Cryptography.Signature.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -218,27 +164,20 @@ proto.Catalyst.Protocol.Cryptography.Signature.prototype.getSigningContext = fun }; -/** - * @param {?proto.Catalyst.Protocol.Cryptography.SigningContext|undefined} value - * @return {!proto.Catalyst.Protocol.Cryptography.Signature} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Cryptography.SigningContext|undefined} value */ proto.Catalyst.Protocol.Cryptography.Signature.prototype.setSigningContext = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + jspb.Message.setWrapperField(this, 1, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Cryptography.Signature} returns this - */ proto.Catalyst.Protocol.Cryptography.Signature.prototype.clearSigningContext = function() { - return this.setSigningContext(undefined); + this.setSigningContext(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Cryptography.Signature.prototype.hasSigningContext = function() { return jspb.Message.getField(this, 1) != null; @@ -278,29 +217,41 @@ proto.Catalyst.Protocol.Cryptography.Signature.prototype.getRawBytes_asU8 = func }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Cryptography.Signature} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Cryptography.Signature.prototype.setRawBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Cryptography.SigningContext = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Cryptography.SigningContext, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Cryptography.SigningContext.displayName = 'proto.Catalyst.Protocol.Cryptography.SigningContext'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Cryptography.SigningContext.prototype.toObject = function(opt_includeInstance) { @@ -310,12 +261,11 @@ proto.Catalyst.Protocol.Cryptography.SigningContext.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Cryptography.SigningContext} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Cryptography.SigningContext.toObject = function(includeInstance, msg) { var f, obj = { @@ -390,7 +340,6 @@ proto.Catalyst.Protocol.Cryptography.SigningContext.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Cryptography.SigningContext} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Cryptography.SigningContext.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -420,12 +369,9 @@ proto.Catalyst.Protocol.Cryptography.SigningContext.prototype.getNetworkType = f }; -/** - * @param {!proto.Catalyst.Protocol.Network.NetworkType} value - * @return {!proto.Catalyst.Protocol.Cryptography.SigningContext} returns this - */ +/** @param {!proto.Catalyst.Protocol.Network.NetworkType} value */ proto.Catalyst.Protocol.Cryptography.SigningContext.prototype.setNetworkType = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -438,16 +384,30 @@ proto.Catalyst.Protocol.Cryptography.SigningContext.prototype.getSignatureType = }; -/** - * @param {!proto.Catalyst.Protocol.Cryptography.SignatureType} value - * @return {!proto.Catalyst.Protocol.Cryptography.SigningContext} returns this - */ +/** @param {!proto.Catalyst.Protocol.Cryptography.SignatureType} value */ proto.Catalyst.Protocol.Cryptography.SigningContext.prototype.setSignatureType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); + jspb.Message.setField(this, 2, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Cryptography.SignatureBatch = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.Cryptography.SignatureBatch.repeatedFields_, null); +}; +goog.inherits(proto.Catalyst.Protocol.Cryptography.SignatureBatch, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Cryptography.SignatureBatch.displayName = 'proto.Catalyst.Protocol.Cryptography.SignatureBatch'; +} /** * List of repeated fields within this message type. * @private {!Array} @@ -459,15 +419,13 @@ proto.Catalyst.Protocol.Cryptography.SignatureBatch.repeatedFields_ = [1,2,3]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.toObject = function(opt_includeInstance) { @@ -477,12 +435,11 @@ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Cryptography.SignatureBatch} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.toObject = function(includeInstance, msg) { var f, obj = { @@ -567,7 +524,6 @@ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Cryptography.SignatureBatch} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -604,184 +560,178 @@ proto.Catalyst.Protocol.Cryptography.SignatureBatch.serializeBinaryToWriter = fu /** * repeated bytes signatures = 1; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * @return {!(Array|Array)} */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.getSignaturesList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 1)); + return /** @type {!(Array|Array)} */ (jspb.Message.getField(this, 1)); }; /** * repeated bytes signatures = 1; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * This is a type-conversion wrapper around `getSignaturesList()` - * @return {!Array} + * @return {!Array.} */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.getSignaturesList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + return /** @type {!Array.} */ (jspb.Message.bytesListAsB64( this.getSignaturesList())); }; /** * repeated bytes signatures = 1; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getSignaturesList()` - * @return {!Array} + * @return {!Array.} */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.getSignaturesList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + return /** @type {!Array.} */ (jspb.Message.bytesListAsU8( this.getSignaturesList())); }; -/** - * @param {!(Array|Array)} value - * @return {!proto.Catalyst.Protocol.Cryptography.SignatureBatch} returns this - */ +/** @param {!(Array|Array)} value */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.setSignaturesList = function(value) { - return jspb.Message.setField(this, 1, value || []); + jspb.Message.setField(this, 1, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index - * @return {!proto.Catalyst.Protocol.Cryptography.SignatureBatch} returns this */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.addSignatures = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); + jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.Cryptography.SignatureBatch} returns this - */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.clearSignaturesList = function() { - return this.setSignaturesList([]); + this.setSignaturesList([]); }; /** * repeated bytes public_keys = 2; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * @return {!(Array|Array)} */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.getPublicKeysList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 2)); + return /** @type {!(Array|Array)} */ (jspb.Message.getField(this, 2)); }; /** * repeated bytes public_keys = 2; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * This is a type-conversion wrapper around `getPublicKeysList()` - * @return {!Array} + * @return {!Array.} */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.getPublicKeysList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + return /** @type {!Array.} */ (jspb.Message.bytesListAsB64( this.getPublicKeysList())); }; /** * repeated bytes public_keys = 2; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getPublicKeysList()` - * @return {!Array} + * @return {!Array.} */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.getPublicKeysList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + return /** @type {!Array.} */ (jspb.Message.bytesListAsU8( this.getPublicKeysList())); }; -/** - * @param {!(Array|Array)} value - * @return {!proto.Catalyst.Protocol.Cryptography.SignatureBatch} returns this - */ +/** @param {!(Array|Array)} value */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.setPublicKeysList = function(value) { - return jspb.Message.setField(this, 2, value || []); + jspb.Message.setField(this, 2, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index - * @return {!proto.Catalyst.Protocol.Cryptography.SignatureBatch} returns this */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.addPublicKeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); + jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.Cryptography.SignatureBatch} returns this - */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.clearPublicKeysList = function() { - return this.setPublicKeysList([]); + this.setPublicKeysList([]); }; /** * repeated bytes messages = 3; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * @return {!(Array|Array)} */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.getMessagesList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 3)); + return /** @type {!(Array|Array)} */ (jspb.Message.getField(this, 3)); }; /** * repeated bytes messages = 3; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * This is a type-conversion wrapper around `getMessagesList()` - * @return {!Array} + * @return {!Array.} */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.getMessagesList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + return /** @type {!Array.} */ (jspb.Message.bytesListAsB64( this.getMessagesList())); }; /** * repeated bytes messages = 3; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getMessagesList()` - * @return {!Array} + * @return {!Array.} */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.getMessagesList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + return /** @type {!Array.} */ (jspb.Message.bytesListAsU8( this.getMessagesList())); }; -/** - * @param {!(Array|Array)} value - * @return {!proto.Catalyst.Protocol.Cryptography.SignatureBatch} returns this - */ +/** @param {!(Array|Array)} value */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.setMessagesList = function(value) { - return jspb.Message.setField(this, 3, value || []); + jspb.Message.setField(this, 3, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index - * @return {!proto.Catalyst.Protocol.Cryptography.SignatureBatch} returns this */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.addMessages = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); + jspb.Message.addToRepeatedField(this, 3, value, opt_index); }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.Cryptography.SignatureBatch} returns this - */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.clearMessagesList = function() { - return this.setMessagesList([]); + this.setMessagesList([]); }; @@ -818,12 +768,9 @@ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.getContext_asU8 = }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Cryptography.SignatureBatch} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Cryptography.SignatureBatch.prototype.setContext = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); + jspb.Message.setField(this, 4, value); }; diff --git a/packages/sdk-js/src/Deltas_pb.d.ts b/packages/sdk-js/src/Deltas_pb.d.ts index 3b2f673..83ba93a 100644 --- a/packages/sdk-js/src/Deltas_pb.d.ts +++ b/packages/sdk-js/src/Deltas_pb.d.ts @@ -75,6 +75,9 @@ export class Delta extends jspb.Message { getDeltaNumber(): number; setDeltaNumber(value: number): void; + getGasUsed(): number; + setGasUsed(value: number): void; + serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Delta.AsObject; static toObject(includeInstance: boolean, msg: Delta): Delta.AsObject; @@ -96,6 +99,7 @@ export namespace Delta { coinbaseEntriesList: Array, stateRoot: Uint8Array | string, deltaNumber: number, + gasUsed: number, } } diff --git a/packages/sdk-js/src/Deltas_pb.js b/packages/sdk-js/src/Deltas_pb.js index 388039f..dd6500e 100644 --- a/packages/sdk-js/src/Deltas_pb.js +++ b/packages/sdk-js/src/Deltas_pb.js @@ -1,9 +1,6 @@ -// source: Deltas.proto /** * @fileoverview * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! @@ -13,11 +10,10 @@ var goog = jspb; var global = Function('return this')(); var Transaction_pb = require('./Transaction_pb.js'); -goog.object.extend(proto, Transaction_pb); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); goog.exportSymbol('proto.Catalyst.Protocol.Deltas.Delta', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Deltas.DeltaIndex', null, global); + /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -33,47 +29,19 @@ proto.Catalyst.Protocol.Deltas.DeltaIndex = function(opt_data) { }; goog.inherits(proto.Catalyst.Protocol.Deltas.DeltaIndex, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ proto.Catalyst.Protocol.Deltas.DeltaIndex.displayName = 'proto.Catalyst.Protocol.Deltas.DeltaIndex'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Deltas.Delta = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.Deltas.Delta.repeatedFields_, null); -}; -goog.inherits(proto.Catalyst.Protocol.Deltas.Delta, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Deltas.Delta.displayName = 'proto.Catalyst.Protocol.Deltas.Delta'; -} - if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Deltas.DeltaIndex.prototype.toObject = function(opt_includeInstance) { @@ -83,12 +51,11 @@ proto.Catalyst.Protocol.Deltas.DeltaIndex.prototype.toObject = function(opt_incl /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Deltas.DeltaIndex} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Deltas.DeltaIndex.toObject = function(includeInstance, msg) { var f, obj = { @@ -163,7 +130,6 @@ proto.Catalyst.Protocol.Deltas.DeltaIndex.prototype.serializeBinary = function() * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Deltas.DeltaIndex} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Deltas.DeltaIndex.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -193,12 +159,9 @@ proto.Catalyst.Protocol.Deltas.DeltaIndex.prototype.getHeight = function() { }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Deltas.DeltaIndex} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Deltas.DeltaIndex.prototype.setHeight = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -235,16 +198,30 @@ proto.Catalyst.Protocol.Deltas.DeltaIndex.prototype.getCid_asU8 = function() { }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Deltas.DeltaIndex} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Deltas.DeltaIndex.prototype.setCid = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Deltas.Delta = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.Deltas.Delta.repeatedFields_, null); +}; +goog.inherits(proto.Catalyst.Protocol.Deltas.Delta, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Deltas.Delta.displayName = 'proto.Catalyst.Protocol.Deltas.Delta'; +} /** * List of repeated fields within this message type. * @private {!Array} @@ -256,15 +233,13 @@ proto.Catalyst.Protocol.Deltas.Delta.repeatedFields_ = [5,6,7]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Deltas.Delta.prototype.toObject = function(opt_includeInstance) { @@ -274,12 +249,11 @@ proto.Catalyst.Protocol.Deltas.Delta.prototype.toObject = function(opt_includeIn /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Deltas.Delta} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Deltas.Delta.toObject = function(includeInstance, msg) { var f, obj = { @@ -294,7 +268,8 @@ proto.Catalyst.Protocol.Deltas.Delta.toObject = function(includeInstance, msg) { coinbaseEntriesList: jspb.Message.toObjectList(msg.getCoinbaseEntriesList(), Transaction_pb.CoinbaseEntry.toObject, includeInstance), stateRoot: msg.getStateRoot_asB64(), - deltaNumber: jspb.Message.getFieldWithDefault(msg, 9, 0) + deltaNumber: jspb.Message.getFieldWithDefault(msg, 9, 0), + gasUsed: jspb.Message.getFieldWithDefault(msg, 10, 0) }; if (includeInstance) { @@ -371,6 +346,10 @@ proto.Catalyst.Protocol.Deltas.Delta.deserializeBinaryFromReader = function(msg, var value = /** @type {number} */ (reader.readInt64()); msg.setDeltaNumber(value); break; + case 10: + var value = /** @type {number} */ (reader.readInt64()); + msg.setGasUsed(value); + break; default: reader.skipField(); break; @@ -396,7 +375,6 @@ proto.Catalyst.Protocol.Deltas.Delta.prototype.serializeBinary = function() { * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Deltas.Delta} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Deltas.Delta.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -467,6 +445,13 @@ proto.Catalyst.Protocol.Deltas.Delta.serializeBinaryToWriter = function(message, f ); } + f = message.getGasUsed(); + if (f !== 0) { + writer.writeInt64( + 10, + f + ); + } }; @@ -503,12 +488,9 @@ proto.Catalyst.Protocol.Deltas.Delta.prototype.getPreviousDeltaDfsHash_asU8 = fu }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Deltas.Delta.prototype.setPreviousDeltaDfsHash = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -545,12 +527,9 @@ proto.Catalyst.Protocol.Deltas.Delta.prototype.getMerkleRoot_asU8 = function() { }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Deltas.Delta.prototype.setMerkleRoot = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -587,12 +566,9 @@ proto.Catalyst.Protocol.Deltas.Delta.prototype.getMerklePoda_asU8 = function() { }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Deltas.Delta.prototype.setMerklePoda = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); + jspb.Message.setField(this, 3, value); }; @@ -606,27 +582,20 @@ proto.Catalyst.Protocol.Deltas.Delta.prototype.getTimeStamp = function() { }; -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this -*/ +/** @param {?proto.google.protobuf.Timestamp|undefined} value */ proto.Catalyst.Protocol.Deltas.Delta.prototype.setTimeStamp = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + jspb.Message.setWrapperField(this, 4, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this - */ proto.Catalyst.Protocol.Deltas.Delta.prototype.clearTimeStamp = function() { - return this.setTimeStamp(undefined); + this.setTimeStamp(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Deltas.Delta.prototype.hasTimeStamp = function() { return jspb.Message.getField(this, 4) != null; @@ -635,20 +604,19 @@ proto.Catalyst.Protocol.Deltas.Delta.prototype.hasTimeStamp = function() { /** * repeated Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; - * @return {!Array} + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. + * @return {!Array.} */ proto.Catalyst.Protocol.Deltas.Delta.prototype.getPublicEntriesList = function() { - return /** @type{!Array} */ ( + return /** @type{!Array.} */ ( jspb.Message.getRepeatedWrapperField(this, Transaction_pb.PublicEntry, 5)); }; -/** - * @param {!Array} value - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this -*/ +/** @param {!Array.} value */ proto.Catalyst.Protocol.Deltas.Delta.prototype.setPublicEntriesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); + jspb.Message.setRepeatedWrapperField(this, 5, value); }; @@ -662,31 +630,26 @@ proto.Catalyst.Protocol.Deltas.Delta.prototype.addPublicEntries = function(opt_v }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this - */ proto.Catalyst.Protocol.Deltas.Delta.prototype.clearPublicEntriesList = function() { - return this.setPublicEntriesList([]); + this.setPublicEntriesList([]); }; /** * repeated Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; - * @return {!Array} + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. + * @return {!Array.} */ proto.Catalyst.Protocol.Deltas.Delta.prototype.getConfidentialEntriesList = function() { - return /** @type{!Array} */ ( + return /** @type{!Array.} */ ( jspb.Message.getRepeatedWrapperField(this, Transaction_pb.ConfidentialEntry, 6)); }; -/** - * @param {!Array} value - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this -*/ +/** @param {!Array.} value */ proto.Catalyst.Protocol.Deltas.Delta.prototype.setConfidentialEntriesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 6, value); + jspb.Message.setRepeatedWrapperField(this, 6, value); }; @@ -700,31 +663,26 @@ proto.Catalyst.Protocol.Deltas.Delta.prototype.addConfidentialEntries = function }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this - */ proto.Catalyst.Protocol.Deltas.Delta.prototype.clearConfidentialEntriesList = function() { - return this.setConfidentialEntriesList([]); + this.setConfidentialEntriesList([]); }; /** * repeated Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; - * @return {!Array} + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. + * @return {!Array.} */ proto.Catalyst.Protocol.Deltas.Delta.prototype.getCoinbaseEntriesList = function() { - return /** @type{!Array} */ ( + return /** @type{!Array.} */ ( jspb.Message.getRepeatedWrapperField(this, Transaction_pb.CoinbaseEntry, 7)); }; -/** - * @param {!Array} value - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this -*/ +/** @param {!Array.} value */ proto.Catalyst.Protocol.Deltas.Delta.prototype.setCoinbaseEntriesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 7, value); + jspb.Message.setRepeatedWrapperField(this, 7, value); }; @@ -738,12 +696,8 @@ proto.Catalyst.Protocol.Deltas.Delta.prototype.addCoinbaseEntries = function(opt }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this - */ proto.Catalyst.Protocol.Deltas.Delta.prototype.clearCoinbaseEntriesList = function() { - return this.setCoinbaseEntriesList([]); + this.setCoinbaseEntriesList([]); }; @@ -780,12 +734,9 @@ proto.Catalyst.Protocol.Deltas.Delta.prototype.getStateRoot_asU8 = function() { }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Deltas.Delta.prototype.setStateRoot = function(value) { - return jspb.Message.setProto3BytesField(this, 8, value); + jspb.Message.setField(this, 8, value); }; @@ -798,12 +749,24 @@ proto.Catalyst.Protocol.Deltas.Delta.prototype.getDeltaNumber = function() { }; +/** @param {number} value */ +proto.Catalyst.Protocol.Deltas.Delta.prototype.setDeltaNumber = function(value) { + jspb.Message.setField(this, 9, value); +}; + + /** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Deltas.Delta} returns this + * optional int64 gas_used = 10; + * @return {number} */ -proto.Catalyst.Protocol.Deltas.Delta.prototype.setDeltaNumber = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); +proto.Catalyst.Protocol.Deltas.Delta.prototype.getGasUsed = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); +}; + + +/** @param {number} value */ +proto.Catalyst.Protocol.Deltas.Delta.prototype.setGasUsed = function(value) { + jspb.Message.setField(this, 10, value); }; diff --git a/packages/sdk-js/src/DfsMarketplace_pb.js b/packages/sdk-js/src/DfsMarketplace_pb.js index 907c97a..e1ec702 100644 --- a/packages/sdk-js/src/DfsMarketplace_pb.js +++ b/packages/sdk-js/src/DfsMarketplace_pb.js @@ -1,9 +1,6 @@ -// source: DfsMarketplace.proto /** * @fileoverview * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! @@ -13,10 +10,10 @@ var goog = jspb; var global = Function('return this')(); var Peer_pb = require('./Peer_pb.js'); -goog.object.extend(proto, Peer_pb); goog.exportSymbol('proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast', null, global); goog.exportSymbol('proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest', null, global); goog.exportSymbol('proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse', null, global); + /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -32,68 +29,19 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest = function(opt_data }; goog.inherits(proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.displayName = 'proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.displayName = 'proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.displayName = 'proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast'; -} - if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.prototype.toObject = function(opt_includeInstance) { @@ -103,12 +51,11 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.prototype.toObject /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -188,7 +135,6 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.prototype.serialize * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -225,12 +171,9 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.prototype.getChalle }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.prototype.setChallengeSalt = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -243,12 +186,9 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.prototype.getMainFi }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.prototype.setMainFileCid = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -285,29 +225,41 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.prototype.getBlockI }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.prototype.setBlockIdxRandomGuid = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); + jspb.Message.setField(this, 3, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.displayName = 'proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.prototype.toObject = function(opt_includeInstance) { @@ -317,12 +269,11 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.prototype.toObject /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -397,7 +348,6 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.prototype.serializ * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -427,12 +377,9 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.prototype.getAnswe }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.prototype.setAnswer = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -445,29 +392,41 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.prototype.getBlock }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.prototype.setBlockChallengeRequestHash = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + jspb.Message.setField(this, 2, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.displayName = 'proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.toObject = function(opt_includeInstance) { @@ -477,12 +436,11 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.toObjec /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.toObject = function(includeInstance, msg) { var f, obj = { @@ -570,7 +528,6 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.seriali * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -618,27 +575,20 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.getOrig }; -/** - * @param {?proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest|undefined} value - * @return {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast} returns this -*/ +/** @param {?proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest|undefined} value */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.setOriginalChallenge = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + jspb.Message.setWrapperField(this, 1, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast} returns this - */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.clearOriginalChallenge = function() { - return this.setOriginalChallenge(undefined); + this.setOriginalChallenge(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.hasOriginalChallenge = function() { return jspb.Message.getField(this, 1) != null; @@ -654,12 +604,9 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.getAnsw }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.setAnswer = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -673,27 +620,20 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.getChal }; -/** - * @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value - * @return {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.setChallengedPeer = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + jspb.Message.setWrapperField(this, 3, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast} returns this - */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.clearChallengedPeer = function() { - return this.setChallengedPeer(undefined); + this.setChallengedPeer(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.hasChallengedPeer = function() { return jspb.Message.getField(this, 3) != null; @@ -710,27 +650,20 @@ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.getChal }; -/** - * @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value - * @return {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.setChallengedBy = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + jspb.Message.setWrapperField(this, 4, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast} returns this - */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.clearChallengedBy = function() { - return this.setChallengedBy(undefined); + this.setChallengedBy(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.prototype.hasChallengedBy = function() { return jspb.Message.getField(this, 4) != null; diff --git a/packages/sdk-js/src/IPPN_pb.d.ts b/packages/sdk-js/src/IPPN_pb.d.ts index f0a0b38..0681c60 100644 --- a/packages/sdk-js/src/IPPN_pb.d.ts +++ b/packages/sdk-js/src/IPPN_pb.d.ts @@ -92,10 +92,13 @@ export namespace LatestDeltaHashRequest { } export class LatestDeltaHashResponse extends jspb.Message { - hasResult(): boolean; - clearResult(): void; - getResult(): Deltas_pb.DeltaIndex | undefined; - setResult(value?: Deltas_pb.DeltaIndex): void; + getIssync(): boolean; + setIssync(value: boolean): void; + + hasDeltaindex(): boolean; + clearDeltaindex(): void; + getDeltaindex(): Deltas_pb.DeltaIndex | undefined; + setDeltaindex(value?: Deltas_pb.DeltaIndex): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): LatestDeltaHashResponse.AsObject; @@ -109,7 +112,8 @@ export class LatestDeltaHashResponse extends jspb.Message { export namespace LatestDeltaHashResponse { export type AsObject = { - result?: Deltas_pb.DeltaIndex.AsObject, + issync: boolean, + deltaindex?: Deltas_pb.DeltaIndex.AsObject, } } @@ -138,10 +142,10 @@ export namespace DeltaHistoryRequest { } export class DeltaHistoryResponse extends jspb.Message { - clearResultList(): void; - getResultList(): Array; - setResultList(value: Array): void; - addResult(value?: Deltas_pb.DeltaIndex, index?: number): Deltas_pb.DeltaIndex; + clearDeltaindexList(): void; + getDeltaindexList(): Array; + setDeltaindexList(value: Array): void; + addDeltaindex(value?: Deltas_pb.DeltaIndex, index?: number): Deltas_pb.DeltaIndex; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): DeltaHistoryResponse.AsObject; @@ -155,7 +159,7 @@ export class DeltaHistoryResponse extends jspb.Message { export namespace DeltaHistoryResponse { export type AsObject = { - resultList: Array, + deltaindexList: Array, } } diff --git a/packages/sdk-js/src/IPPN_pb.js b/packages/sdk-js/src/IPPN_pb.js index 483a817..e948bd8 100644 --- a/packages/sdk-js/src/IPPN_pb.js +++ b/packages/sdk-js/src/IPPN_pb.js @@ -1,9 +1,6 @@ -// source: IPPN.proto /** * @fileoverview * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! @@ -13,9 +10,7 @@ var goog = jspb; var global = Function('return this')(); var Peer_pb = require('./Peer_pb.js'); -goog.object.extend(proto, Peer_pb); var Deltas_pb = require('./Deltas_pb.js'); -goog.object.extend(proto, Deltas_pb); goog.exportSymbol('proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest', null, global); goog.exportSymbol('proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse', null, global); goog.exportSymbol('proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest', null, global); @@ -24,6 +19,7 @@ goog.exportSymbol('proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest', null, glo goog.exportSymbol('proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse', null, global); goog.exportSymbol('proto.Catalyst.Protocol.IPPN.PingRequest', null, global); goog.exportSymbol('proto.Catalyst.Protocol.IPPN.PingResponse', null, global); + /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -39,173 +35,19 @@ proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest = function(opt_data) { }; goog.inherits(proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest.displayName = 'proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.repeatedFields_, null); -}; -goog.inherits(proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.displayName = 'proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.IPPN.PingRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.IPPN.PingRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.IPPN.PingRequest.displayName = 'proto.Catalyst.Protocol.IPPN.PingRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.IPPN.PingResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.IPPN.PingResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.IPPN.PingResponse.displayName = 'proto.Catalyst.Protocol.IPPN.PingResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest.displayName = 'proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.displayName = 'proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest.displayName = 'proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.repeatedFields_, null); -}; -goog.inherits(proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.displayName = 'proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse'; -} - if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest.prototype.toObject = function(opt_includeInstance) { @@ -215,12 +57,11 @@ proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest.prototype.toObject = function( /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -286,7 +127,6 @@ proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest.prototype.serializeBinary = fu * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -294,6 +134,23 @@ proto.Catalyst.Protocol.IPPN.PeerNeighborsRequest.serializeBinaryToWriter = func +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.repeatedFields_, null); +}; +goog.inherits(proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.displayName = 'proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse'; +} /** * List of repeated fields within this message type. * @private {!Array} @@ -305,15 +162,13 @@ proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.prototype.toObject = function(opt_includeInstance) { @@ -323,12 +178,11 @@ proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.prototype.toObject = function /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -400,7 +254,6 @@ proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.prototype.serializeBinary = f * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -417,20 +270,19 @@ proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.serializeBinaryToWriter = fun /** * repeated Catalyst.Protocol.Peer.PeerId peers = 1; - * @return {!Array} + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. + * @return {!Array.} */ proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.prototype.getPeersList = function() { - return /** @type{!Array} */ ( + return /** @type{!Array.} */ ( jspb.Message.getRepeatedWrapperField(this, Peer_pb.PeerId, 1)); }; -/** - * @param {!Array} value - * @return {!proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse} returns this -*/ +/** @param {!Array.} value */ proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.prototype.setPeersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); + jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -444,29 +296,40 @@ proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.prototype.addPeers = function }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse} returns this - */ proto.Catalyst.Protocol.IPPN.PeerNeighborsResponse.prototype.clearPeersList = function() { - return this.setPeersList([]); + this.setPeersList([]); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.IPPN.PingRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.IPPN.PingRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.IPPN.PingRequest.displayName = 'proto.Catalyst.Protocol.IPPN.PingRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.IPPN.PingRequest.prototype.toObject = function(opt_includeInstance) { @@ -476,12 +339,11 @@ proto.Catalyst.Protocol.IPPN.PingRequest.prototype.toObject = function(opt_inclu /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.IPPN.PingRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.PingRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -547,7 +409,6 @@ proto.Catalyst.Protocol.IPPN.PingRequest.prototype.serializeBinary = function() * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.IPPN.PingRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.PingRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -555,19 +416,34 @@ proto.Catalyst.Protocol.IPPN.PingRequest.serializeBinaryToWriter = function(mess +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.IPPN.PingResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.IPPN.PingResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.IPPN.PingResponse.displayName = 'proto.Catalyst.Protocol.IPPN.PingResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.IPPN.PingResponse.prototype.toObject = function(opt_includeInstance) { @@ -577,12 +453,11 @@ proto.Catalyst.Protocol.IPPN.PingResponse.prototype.toObject = function(opt_incl /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.IPPN.PingResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.PingResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -648,7 +523,6 @@ proto.Catalyst.Protocol.IPPN.PingResponse.prototype.serializeBinary = function() * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.IPPN.PingResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.PingResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -656,19 +530,34 @@ proto.Catalyst.Protocol.IPPN.PingResponse.serializeBinaryToWriter = function(mes +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest.displayName = 'proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest.prototype.toObject = function(opt_includeInstance) { @@ -678,12 +567,11 @@ proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -749,7 +637,6 @@ proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -757,19 +644,34 @@ proto.Catalyst.Protocol.IPPN.LatestDeltaHashRequest.serializeBinaryToWriter = fu +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.displayName = 'proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.toObject = function(opt_includeInstance) { @@ -779,16 +681,16 @@ proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.toObject = functi /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.toObject = function(includeInstance, msg) { var f, obj = { - result: (f = msg.getResult()) && Deltas_pb.DeltaIndex.toObject(includeInstance, f) + issync: jspb.Message.getFieldWithDefault(msg, 1, false), + deltaindex: (f = msg.getDeltaindex()) && Deltas_pb.DeltaIndex.toObject(includeInstance, f) }; if (includeInstance) { @@ -826,9 +728,13 @@ proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.deserializeBinaryFromReader var field = reader.getFieldNumber(); switch (field) { case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIssync(value); + break; + case 2: var value = new Deltas_pb.DeltaIndex; reader.readMessage(value,Deltas_pb.DeltaIndex.deserializeBinaryFromReader); - msg.setResult(value); + msg.setDeltaindex(value); break; default: reader.skipField(); @@ -855,14 +761,20 @@ proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getResult(); + f = message.getIssync(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getDeltaindex(); if (f != null) { writer.writeMessage( - 1, + 2, f, Deltas_pb.DeltaIndex.serializeBinaryToWriter ); @@ -871,56 +783,81 @@ proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.serializeBinaryToWriter = f /** - * optional Catalyst.Protocol.Deltas.DeltaIndex result = 1; - * @return {?proto.Catalyst.Protocol.Deltas.DeltaIndex} + * optional bool isSync = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. + * @return {boolean} */ -proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.getResult = function() { - return /** @type{?proto.Catalyst.Protocol.Deltas.DeltaIndex} */ ( - jspb.Message.getWrapperField(this, Deltas_pb.DeltaIndex, 1)); +proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.getIssync = function() { + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {?proto.Catalyst.Protocol.Deltas.DeltaIndex|undefined} value - * @return {!proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse} returns this -*/ -proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.setResult = function(value) { - return jspb.Message.setWrapperField(this, 1, value); +/** @param {boolean} value */ +proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.setIssync = function(value) { + jspb.Message.setField(this, 1, value); }; /** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse} returns this + * optional Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; + * @return {?proto.Catalyst.Protocol.Deltas.DeltaIndex} */ -proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.clearResult = function() { - return this.setResult(undefined); +proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.getDeltaindex = function() { + return /** @type{?proto.Catalyst.Protocol.Deltas.DeltaIndex} */ ( + jspb.Message.getWrapperField(this, Deltas_pb.DeltaIndex, 2)); +}; + + +/** @param {?proto.Catalyst.Protocol.Deltas.DeltaIndex|undefined} value */ +proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.setDeltaindex = function(value) { + jspb.Message.setWrapperField(this, 2, value); +}; + + +proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.clearDeltaindex = function() { + this.setDeltaindex(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ -proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.hasResult = function() { - return jspb.Message.getField(this, 1) != null; +proto.Catalyst.Protocol.IPPN.LatestDeltaHashResponse.prototype.hasDeltaindex = function() { + return jspb.Message.getField(this, 2) != null; }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest.displayName = 'proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest.prototype.toObject = function(opt_includeInstance) { @@ -930,12 +867,11 @@ proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest.prototype.toObject = function(o /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -1010,7 +946,6 @@ proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest.prototype.serializeBinary = fun * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -1040,12 +975,9 @@ proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest.prototype.getRange = function() }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest.prototype.setRange = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -1058,16 +990,30 @@ proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest.prototype.getHeight = function( }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.IPPN.DeltaHistoryRequest.prototype.setHeight = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + jspb.Message.setField(this, 2, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.repeatedFields_, null); +}; +goog.inherits(proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.displayName = 'proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse'; +} /** * List of repeated fields within this message type. * @private {!Array} @@ -1079,15 +1025,13 @@ proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.prototype.toObject = function(opt_includeInstance) { @@ -1097,16 +1041,15 @@ proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.prototype.toObject = function( /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.toObject = function(includeInstance, msg) { var f, obj = { - resultList: jspb.Message.toObjectList(msg.getResultList(), + deltaindexList: jspb.Message.toObjectList(msg.getDeltaindexList(), Deltas_pb.DeltaIndex.toObject, includeInstance) }; @@ -1147,7 +1090,7 @@ proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.deserializeBinaryFromReader = case 1: var value = new Deltas_pb.DeltaIndex; reader.readMessage(value,Deltas_pb.DeltaIndex.deserializeBinaryFromReader); - msg.addResult(value); + msg.addDeltaindex(value); break; default: reader.skipField(); @@ -1174,11 +1117,10 @@ proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.prototype.serializeBinary = fu * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getResultList(); + f = message.getDeltaindexList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, @@ -1190,21 +1132,20 @@ proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.serializeBinaryToWriter = func /** - * repeated Catalyst.Protocol.Deltas.DeltaIndex result = 1; - * @return {!Array} + * repeated Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. + * @return {!Array.} */ -proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.prototype.getResultList = function() { - return /** @type{!Array} */ ( +proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.prototype.getDeltaindexList = function() { + return /** @type{!Array.} */ ( jspb.Message.getRepeatedWrapperField(this, Deltas_pb.DeltaIndex, 1)); }; -/** - * @param {!Array} value - * @return {!proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse} returns this -*/ -proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.prototype.setResultList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); +/** @param {!Array.} value */ +proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.prototype.setDeltaindexList = function(value) { + jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -1213,17 +1154,13 @@ proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.prototype.setResultList = func * @param {number=} opt_index * @return {!proto.Catalyst.Protocol.Deltas.DeltaIndex} */ -proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.prototype.addResult = function(opt_value, opt_index) { +proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.prototype.addDeltaindex = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Catalyst.Protocol.Deltas.DeltaIndex, opt_index); }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse} returns this - */ -proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.prototype.clearResultList = function() { - return this.setResultList([]); +proto.Catalyst.Protocol.IPPN.DeltaHistoryResponse.prototype.clearDeltaindexList = function() { + this.setDeltaindexList([]); }; diff --git a/packages/sdk-js/src/Network_pb.js b/packages/sdk-js/src/Network_pb.js index 86d9809..d70bbfe 100644 --- a/packages/sdk-js/src/Network_pb.js +++ b/packages/sdk-js/src/Network_pb.js @@ -1,9 +1,6 @@ -// source: Network.proto /** * @fileoverview * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! diff --git a/packages/sdk-js/src/Peer_pb.js b/packages/sdk-js/src/Peer_pb.js index 9d3cc4e..da88e22 100644 --- a/packages/sdk-js/src/Peer_pb.js +++ b/packages/sdk-js/src/Peer_pb.js @@ -1,9 +1,6 @@ -// source: Peer.proto /** * @fileoverview * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! @@ -13,11 +10,10 @@ var goog = jspb; var global = Function('return this')(); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); -goog.object.extend(proto, google_protobuf_duration_pb); goog.exportSymbol('proto.Catalyst.Protocol.Peer.PeerId', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Peer.PeerInfo', null, global); + /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -33,47 +29,19 @@ proto.Catalyst.Protocol.Peer.PeerId = function(opt_data) { }; goog.inherits(proto.Catalyst.Protocol.Peer.PeerId, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ proto.Catalyst.Protocol.Peer.PeerId.displayName = 'proto.Catalyst.Protocol.Peer.PeerId'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Peer.PeerInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Peer.PeerInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Peer.PeerInfo.displayName = 'proto.Catalyst.Protocol.Peer.PeerInfo'; -} - if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Peer.PeerId.prototype.toObject = function(opt_includeInstance) { @@ -83,12 +51,11 @@ proto.Catalyst.Protocol.Peer.PeerId.prototype.toObject = function(opt_includeIns /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Peer.PeerId} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Peer.PeerId.toObject = function(includeInstance, msg) { var f, obj = { @@ -168,7 +135,6 @@ proto.Catalyst.Protocol.Peer.PeerId.prototype.serializeBinary = function() { * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Peer.PeerId} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Peer.PeerId.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -229,12 +195,9 @@ proto.Catalyst.Protocol.Peer.PeerId.prototype.getIp_asU8 = function() { }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Peer.PeerId} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Peer.PeerId.prototype.setIp = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -247,12 +210,9 @@ proto.Catalyst.Protocol.Peer.PeerId.prototype.getPort = function() { }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Peer.PeerId} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Peer.PeerId.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -289,29 +249,41 @@ proto.Catalyst.Protocol.Peer.PeerId.prototype.getPublicKey_asU8 = function() { }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Peer.PeerId} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Peer.PeerId.prototype.setPublicKey = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); + jspb.Message.setField(this, 3, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Peer.PeerInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Peer.PeerInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Peer.PeerInfo.displayName = 'proto.Catalyst.Protocol.Peer.PeerInfo'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.toObject = function(opt_includeInstance) { @@ -321,19 +293,18 @@ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.toObject = function(opt_includeI /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Peer.PeerInfo} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Peer.PeerInfo.toObject = function(includeInstance, msg) { var f, obj = { peerId: (f = msg.getPeerId()) && proto.Catalyst.Protocol.Peer.PeerId.toObject(includeInstance, f), reputation: jspb.Message.getFieldWithDefault(msg, 2, 0), - isBlacklisted: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - isUnreachable: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), + isBlacklisted: jspb.Message.getFieldWithDefault(msg, 3, false), + isUnreachable: jspb.Message.getFieldWithDefault(msg, 4, false), inactiveFor: (f = msg.getInactiveFor()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), lastSeen: (f = msg.getLastSeen()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), modified: (f = msg.getModified()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), @@ -436,7 +407,6 @@ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.serializeBinary = function() { * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Peer.PeerInfo} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Peer.PeerInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -514,27 +484,20 @@ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.getPeerId = function() { }; -/** - * @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.setPeerId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + jspb.Message.setWrapperField(this, 1, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this - */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.clearPeerId = function() { - return this.setPeerId(undefined); + this.setPeerId(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.hasPeerId = function() { return jspb.Message.getField(this, 1) != null; @@ -550,48 +513,43 @@ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.getReputation = function() { }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.setReputation = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); + jspb.Message.setField(this, 2, value); }; /** * optional bool is_blacklisted = 3; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.getIsBlacklisted = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.setIsBlacklisted = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); + jspb.Message.setField(this, 3, value); }; /** * optional bool is_unreachable = 4; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.getIsUnreachable = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 4, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.setIsUnreachable = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); + jspb.Message.setField(this, 4, value); }; @@ -605,27 +563,20 @@ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.getInactiveFor = function() { }; -/** - * @param {?proto.google.protobuf.Duration|undefined} value - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this -*/ +/** @param {?proto.google.protobuf.Duration|undefined} value */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.setInactiveFor = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + jspb.Message.setWrapperField(this, 5, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this - */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.clearInactiveFor = function() { - return this.setInactiveFor(undefined); + this.setInactiveFor(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.hasInactiveFor = function() { return jspb.Message.getField(this, 5) != null; @@ -642,27 +593,20 @@ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.getLastSeen = function() { }; -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this -*/ +/** @param {?proto.google.protobuf.Timestamp|undefined} value */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.setLastSeen = function(value) { - return jspb.Message.setWrapperField(this, 6, value); + jspb.Message.setWrapperField(this, 6, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this - */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.clearLastSeen = function() { - return this.setLastSeen(undefined); + this.setLastSeen(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.hasLastSeen = function() { return jspb.Message.getField(this, 6) != null; @@ -679,27 +623,20 @@ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.getModified = function() { }; -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this -*/ +/** @param {?proto.google.protobuf.Timestamp|undefined} value */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.setModified = function(value) { - return jspb.Message.setWrapperField(this, 7, value); + jspb.Message.setWrapperField(this, 7, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this - */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.clearModified = function() { - return this.setModified(undefined); + this.setModified(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.hasModified = function() { return jspb.Message.getField(this, 7) != null; @@ -716,27 +653,20 @@ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.getCreated = function() { }; -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this -*/ +/** @param {?proto.google.protobuf.Timestamp|undefined} value */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.setCreated = function(value) { - return jspb.Message.setWrapperField(this, 8, value); + jspb.Message.setWrapperField(this, 8, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Peer.PeerInfo} returns this - */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.clearCreated = function() { - return this.setCreated(undefined); + this.setCreated(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Peer.PeerInfo.prototype.hasCreated = function() { return jspb.Message.getField(this, 8) != null; diff --git a/packages/sdk-js/src/Rpc_pb.js b/packages/sdk-js/src/Rpc_pb.js index dc40b55..7a1f958 100644 --- a/packages/sdk-js/src/Rpc_pb.js +++ b/packages/sdk-js/src/Rpc_pb.js @@ -1,9 +1,6 @@ -// source: Rpc.proto /** * @fileoverview * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! @@ -13,15 +10,10 @@ var goog = jspb; var global = Function('return this')(); var Peer_pb = require('./Peer_pb.js'); -goog.object.extend(proto, Peer_pb); var Cryptography_pb = require('./Cryptography_pb.js'); -goog.object.extend(proto, Cryptography_pb); var Deltas_pb = require('./Deltas_pb.js'); -goog.object.extend(proto, Deltas_pb); var Wire_pb = require('./Wire_pb.js'); -goog.object.extend(proto, Wire_pb); var Transaction_pb = require('./Transaction_pb.js'); -goog.object.extend(proto, Transaction_pb); goog.exportSymbol('proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest', null, global); @@ -91,6 +83,7 @@ goog.exportSymbol('proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest', null, goog.exportSymbol('proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Rpc.Node.VersionRequest', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Rpc.Node.VersionResponse', null, global); + /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -101,1438 +94,24 @@ goog.exportSymbol('proto.Catalyst.Protocol.Rpc.Node.VersionResponse', null, glob * @extends {jspb.Message} * @constructor */ -proto.Catalyst.Protocol.Rpc.Node.VersionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.VersionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.VersionRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.VersionRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.VersionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.VersionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.VersionResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.VersionResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SendToRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendToRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SendToRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendToRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SendToResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendToResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SendToResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendToResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SendManyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendManyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SendManyRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendManyRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SendManyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendManyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SendManyResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendManyResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.repeatedFields_, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.repeatedFields_, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.repeatedFields_, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse = function(opt_data) { +proto.Catalyst.Protocol.Rpc.Node.VersionRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse, jspb.Message); +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.VersionRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse'; + proto.Catalyst.Protocol.Rpc.Node.VersionRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.VersionRequest'; } - if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.VersionRequest.prototype.toObject = function(opt_includeInstance) { @@ -1542,16 +121,15 @@ proto.Catalyst.Protocol.Rpc.Node.VersionRequest.prototype.toObject = function(op /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.VersionRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.VersionRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -1617,7 +195,6 @@ proto.Catalyst.Protocol.Rpc.Node.VersionRequest.prototype.serializeBinary = func * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.VersionRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.VersionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -1633,36 +210,50 @@ proto.Catalyst.Protocol.Rpc.Node.VersionRequest.serializeBinaryToWriter = functi /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.VersionRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.VersionRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.VersionRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.VersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.VersionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.VersionResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.VersionResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.VersionResponse.prototype.toObject = function(opt_includeInstance) { @@ -1672,12 +263,11 @@ proto.Catalyst.Protocol.Rpc.Node.VersionResponse.prototype.toObject = function(o /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.VersionResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.VersionResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -1747,7 +337,6 @@ proto.Catalyst.Protocol.Rpc.Node.VersionResponse.prototype.serializeBinary = fun * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.VersionResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.VersionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -1770,29 +359,41 @@ proto.Catalyst.Protocol.Rpc.Node.VersionResponse.prototype.getVersion = function }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.VersionResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.VersionResponse.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -1802,16 +403,15 @@ proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest.prototype.toObject = function(op /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -1877,7 +477,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest.prototype.serializeBinary = func * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -1893,36 +492,50 @@ proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest.serializeBinaryToWriter = functi /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.GetInfoRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse.prototype.toObject = function(opt_includeInstance) { @@ -1932,12 +545,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse.prototype.toObject = function(o /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -2007,7 +619,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse.prototype.serializeBinary = fun * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -2030,29 +641,41 @@ proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse.prototype.getQuery = function() }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.GetInfoResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest.prototype.toObject = function(opt_includeInstance) { @@ -2062,16 +685,15 @@ proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest.prototype.toObject = functi /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -2137,7 +759,6 @@ proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -2153,36 +774,50 @@ proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest.serializeBinaryToWriter = f /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.CreateWalletRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse.prototype.toObject = function(opt_includeInstance) { @@ -2192,12 +827,11 @@ proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse.prototype.toObject = funct /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -2267,7 +901,6 @@ proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse.prototype.serializeBinary * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -2290,29 +923,41 @@ proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse.prototype.getQuery = funct }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.CreateWalletResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest.prototype.toObject = function(opt_includeInstance) { @@ -2322,16 +967,15 @@ proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest.prototype.toObject = function /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -2397,7 +1041,6 @@ proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest.prototype.serializeBinary = f * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -2413,36 +1056,50 @@ proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest.serializeBinaryToWriter = fun /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.ListWalletRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse.prototype.toObject = function(opt_includeInstance) { @@ -2452,12 +1109,11 @@ proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -2527,7 +1183,6 @@ proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -2550,29 +1205,41 @@ proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse.prototype.getQuery = functio }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.ListWalletResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest.prototype.toObject = function(opt_includeInstance) { @@ -2582,16 +1249,15 @@ proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest.prototype.toObject = funct /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -2657,7 +1323,6 @@ proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest.prototype.serializeBinary * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -2673,36 +1338,50 @@ proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest.serializeBinaryToWriter = /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.CreateAddressRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse.prototype.toObject = function(opt_includeInstance) { @@ -2712,12 +1391,11 @@ proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse.prototype.toObject = func /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -2787,7 +1465,6 @@ proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse.prototype.serializeBinary * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -2810,29 +1487,41 @@ proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse.prototype.getQuery = func }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.CreateAddressResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest.prototype.toObject = function(opt_includeInstance) { @@ -2842,16 +1531,15 @@ proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest.prototype.toObject = function /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -2917,7 +1605,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest.prototype.serializeBinary = f * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -2933,36 +1620,50 @@ proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest.serializeBinaryToWriter = fun /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.GetAddressRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse.prototype.toObject = function(opt_includeInstance) { @@ -2972,12 +1673,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -3047,7 +1747,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -3070,29 +1769,41 @@ proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse.prototype.getQuery = functio }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.GetAddressResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest.prototype.toObject = function(opt_includeInstance) { @@ -3102,16 +1813,15 @@ proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -3177,7 +1887,6 @@ proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -3193,36 +1902,50 @@ proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest.serializeBinaryToWriter = fu /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.ListAddressRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse.prototype.toObject = function(opt_includeInstance) { @@ -3232,12 +1955,11 @@ proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse.prototype.toObject = functi /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -3307,7 +2029,6 @@ proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -3330,29 +2051,41 @@ proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse.prototype.getQuery = functi }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.ListAddressResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.prototype.toObject = function(opt_includeInstance) { @@ -3362,16 +2095,15 @@ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.prototype.toObject = fun /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -3437,7 +2169,6 @@ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.prototype.serializeBinar * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -3453,36 +2184,50 @@ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.serializeBinaryToWriter /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.prototype.toObject = function(opt_includeInstance) { @@ -3492,12 +2237,11 @@ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.prototype.toObject = fu /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -3567,7 +2311,6 @@ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.prototype.serializeBina * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -3590,29 +2333,41 @@ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.prototype.getQuery = fu }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest.prototype.toObject = function(opt_includeInstance) { @@ -3622,16 +2377,15 @@ proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest.prototype.toObject = function /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -3697,7 +2451,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest.prototype.serializeBinary = f * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -3713,36 +2466,50 @@ proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest.serializeBinaryToWriter = fun /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.GetBalanceRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse.prototype.toObject = function(opt_includeInstance) { @@ -3752,12 +2519,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -3827,7 +2593,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -3850,29 +2615,41 @@ proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse.prototype.getQuery = functio }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.GetBalanceResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.prototype.toObject = function(opt_includeInstance) { @@ -3882,16 +2659,15 @@ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.prototype.toObject /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -3957,7 +2733,6 @@ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.prototype.serialize * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -3973,36 +2748,50 @@ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.serializeBinaryToWr /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.prototype.toObject = function(opt_includeInstance) { @@ -4012,12 +2801,11 @@ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.prototype.toObject /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -4087,7 +2875,6 @@ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.prototype.serializ * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -4110,29 +2897,41 @@ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.prototype.getQuery }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.prototype.toObject = function(opt_includeInstance) { @@ -4142,16 +2941,15 @@ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.prototype.toObject = /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -4217,7 +3015,6 @@ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.prototype.serializeBi * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -4233,36 +3030,50 @@ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.serializeBinaryToWrit /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.prototype.toObject = function(opt_includeInstance) { @@ -4272,12 +3083,11 @@ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.prototype.toObject = /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -4347,7 +3157,6 @@ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.prototype.serializeB * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -4370,29 +3179,41 @@ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.prototype.getQuery = }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.prototype.toObject = function(opt_includeInstance) { @@ -4402,16 +3223,15 @@ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.prototype.toObject /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -4477,7 +3297,6 @@ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.prototype.serialize * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -4493,36 +3312,50 @@ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.serializeBinaryToWr /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.prototype.toObject = function(opt_includeInstance) { @@ -4532,12 +3365,11 @@ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.prototype.toObject /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -4607,7 +3439,6 @@ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.prototype.serializ * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -4630,29 +3461,41 @@ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.prototype.getQuery }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.prototype.toObject = function(opt_includeInstance) { @@ -4662,12 +3505,11 @@ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.prototype.toObje /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -4738,7 +3580,6 @@ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.prototype.serial * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -4763,27 +3604,20 @@ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.prototype.getTra }; -/** - * @param {?proto.Catalyst.Protocol.Wire.TransactionBroadcast|undefined} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Wire.TransactionBroadcast|undefined} value */ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.prototype.setTransaction = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + jspb.Message.setWrapperField(this, 1, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest} returns this - */ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.prototype.clearTransaction = function() { - return this.setTransaction(undefined); + this.setTransaction(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.prototype.hasTransaction = function() { return jspb.Message.getField(this, 1) != null; @@ -4791,19 +3625,34 @@ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest.prototype.hasTra +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.prototype.toObject = function(opt_includeInstance) { @@ -4813,12 +3662,11 @@ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.prototype.toObj /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -4888,7 +3736,6 @@ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.prototype.seria * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -4911,29 +3758,41 @@ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.prototype.getRe }; -/** - * @param {!proto.Catalyst.Protocol.Rpc.Node.ResponseCode} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse} returns this - */ +/** @param {!proto.Catalyst.Protocol.Rpc.Node.ResponseCode} value */ proto.Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse.prototype.setResponseCode = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SendToRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendToRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SendToRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendToRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SendToRequest.prototype.toObject = function(opt_includeInstance) { @@ -4943,16 +3802,15 @@ proto.Catalyst.Protocol.Rpc.Node.SendToRequest.prototype.toObject = function(opt /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SendToRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendToRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -5018,7 +3876,6 @@ proto.Catalyst.Protocol.Rpc.Node.SendToRequest.prototype.serializeBinary = funct * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SendToRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendToRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -5034,36 +3891,50 @@ proto.Catalyst.Protocol.Rpc.Node.SendToRequest.serializeBinaryToWriter = functio /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.SendToRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SendToRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.SendToRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SendToResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendToResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SendToResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendToResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SendToResponse.prototype.toObject = function(opt_includeInstance) { @@ -5073,12 +3944,11 @@ proto.Catalyst.Protocol.Rpc.Node.SendToResponse.prototype.toObject = function(op /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SendToResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendToResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -5148,7 +4018,6 @@ proto.Catalyst.Protocol.Rpc.Node.SendToResponse.prototype.serializeBinary = func * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SendToResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendToResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -5171,29 +4040,41 @@ proto.Catalyst.Protocol.Rpc.Node.SendToResponse.prototype.getQuery = function() }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SendToResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.SendToResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest.prototype.toObject = function(opt_includeInstance) { @@ -5203,16 +4084,15 @@ proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest.prototype.toObject = function /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -5278,7 +4158,6 @@ proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest.prototype.serializeBinary = f * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -5294,36 +4173,50 @@ proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest.serializeBinaryToWriter = fun /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.SendToFromRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse.prototype.toObject = function(opt_includeInstance) { @@ -5333,12 +4226,11 @@ proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -5408,7 +4300,6 @@ proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -5431,29 +4322,41 @@ proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse.prototype.getQuery = functio }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.SendToFromResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SendManyRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendManyRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SendManyRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendManyRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SendManyRequest.prototype.toObject = function(opt_includeInstance) { @@ -5463,16 +4366,15 @@ proto.Catalyst.Protocol.Rpc.Node.SendManyRequest.prototype.toObject = function(o /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SendManyRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendManyRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -5538,7 +4440,6 @@ proto.Catalyst.Protocol.Rpc.Node.SendManyRequest.prototype.serializeBinary = fun * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SendManyRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendManyRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -5554,36 +4455,50 @@ proto.Catalyst.Protocol.Rpc.Node.SendManyRequest.serializeBinaryToWriter = funct /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.SendManyRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SendManyRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.SendManyRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SendManyResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendManyResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SendManyResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendManyResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SendManyResponse.prototype.toObject = function(opt_includeInstance) { @@ -5593,12 +4508,11 @@ proto.Catalyst.Protocol.Rpc.Node.SendManyResponse.prototype.toObject = function( /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SendManyResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendManyResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -5668,7 +4582,6 @@ proto.Catalyst.Protocol.Rpc.Node.SendManyResponse.prototype.serializeBinary = fu * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SendManyResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendManyResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -5691,29 +4604,41 @@ proto.Catalyst.Protocol.Rpc.Node.SendManyResponse.prototype.getQuery = function( }; +/** @param {string} value */ +proto.Catalyst.Protocol.Rpc.Node.SendManyResponse.prototype.setQuery = function(value) { + jspb.Message.setField(this, 1, value); +}; + + + /** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SendManyResponse} returns this + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.Catalyst.Protocol.Rpc.Node.SendManyResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); +proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - - +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest.prototype.toObject = function(opt_includeInstance) { @@ -5723,16 +4648,15 @@ proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest.prototype.toObject = functi /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -5798,7 +4722,6 @@ proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -5814,36 +4737,50 @@ proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest.serializeBinaryToWriter = f /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.SendFromManyRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse.prototype.toObject = function(opt_includeInstance) { @@ -5853,12 +4790,11 @@ proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse.prototype.toObject = funct /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -5928,7 +4864,6 @@ proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse.prototype.serializeBinary * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -5951,29 +4886,41 @@ proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse.prototype.getQuery = funct }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.SendFromManyResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest.prototype.toObject = function(opt_includeInstance) { @@ -5983,16 +4930,15 @@ proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest.prototype.toObject = function(op /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -6058,7 +5004,6 @@ proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest.prototype.serializeBinary = func * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -6074,36 +5019,50 @@ proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest.serializeBinaryToWriter = functi /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.AddNodeRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse.prototype.toObject = function(opt_includeInstance) { @@ -6113,12 +5072,11 @@ proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse.prototype.toObject = function(o /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -6188,7 +5146,6 @@ proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse.prototype.serializeBinary = fun * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -6211,29 +5168,41 @@ proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse.prototype.getQuery = function() }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.AddNodeResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest.prototype.toObject = function(opt_includeInstance) { @@ -6243,12 +5212,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -6314,7 +5282,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -6322,6 +5289,23 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerListRequest.serializeBinaryToWriter = fu +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.repeatedFields_, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse'; +} /** * List of repeated fields within this message type. * @private {!Array} @@ -6333,15 +5317,13 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.prototype.toObject = function(opt_includeInstance) { @@ -6351,12 +5333,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.prototype.toObject = functi /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -6428,7 +5409,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -6445,20 +5425,19 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.serializeBinaryToWriter = f /** * repeated Catalyst.Protocol.Peer.PeerId peers = 1; - * @return {!Array} + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. + * @return {!Array.} */ proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.prototype.getPeersList = function() { - return /** @type{!Array} */ ( + return /** @type{!Array.} */ ( jspb.Message.getRepeatedWrapperField(this, Peer_pb.PeerId, 1)); }; -/** - * @param {!Array} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse} returns this -*/ +/** @param {!Array.} value */ proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.prototype.setPeersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); + jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -6472,29 +5451,40 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.prototype.addPeers = functi }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse} returns this - */ proto.Catalyst.Protocol.Rpc.Node.GetPeerListResponse.prototype.clearPeersList = function() { - return this.setPeersList([]); + this.setPeersList([]); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.prototype.toObject = function(opt_includeInstance) { @@ -6504,12 +5494,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.prototype.toObject = f /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -6584,7 +5573,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.prototype.serializeBin * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -6638,12 +5626,9 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.prototype.getPublicKey }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.prototype.setPublicKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -6680,29 +5665,41 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.prototype.getIp_asU8 = }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.prototype.setIp = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.prototype.toObject = function(opt_includeInstance) { @@ -6712,12 +5709,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.prototype.toObject = /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -6787,7 +5783,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.prototype.serializeBi * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -6810,29 +5805,41 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.prototype.getReputati }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse.prototype.setReputation = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.prototype.toObject = function(opt_includeInstance) { @@ -6842,18 +5849,17 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.prototype.toObject = fu /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.toObject = function(includeInstance, msg) { var f, obj = { publicKey: msg.getPublicKey_asB64(), ip: msg.getIp_asB64(), - blacklist: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) + blacklist: jspb.Message.getFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -6927,7 +5933,6 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.prototype.serializeBina * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -6988,12 +5993,9 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.prototype.getPublicKey_ }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.prototype.setPublicKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -7030,47 +6032,58 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.prototype.getIp_asU8 = }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.prototype.setIp = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; /** * optional bool blacklist = 3; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.prototype.getBlacklist = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.prototype.setBlacklist = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); + jspb.Message.setField(this, 3, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.prototype.toObject = function(opt_includeInstance) { @@ -7080,18 +6093,17 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.prototype.toObject = f /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.toObject = function(includeInstance, msg) { var f, obj = { publicKey: msg.getPublicKey_asB64(), ip: msg.getIp_asB64(), - blacklist: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) + blacklist: jspb.Message.getFieldWithDefault(msg, 3, false) }; if (includeInstance) { @@ -7165,7 +6177,6 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.prototype.serializeBin * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -7226,12 +6237,9 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.prototype.getPublicKey }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.prototype.setPublicKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -7268,47 +6276,58 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.prototype.getIp_asU8 = }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.prototype.setIp = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; /** * optional bool blacklist = 3; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.prototype.getBlacklist = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 3, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.prototype.setBlacklist = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); + jspb.Message.setField(this, 3, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.prototype.toObject = function(opt_includeInstance) { @@ -7318,12 +6337,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -7398,7 +6416,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -7452,12 +6469,9 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.prototype.getPublicKey_asU8 }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.prototype.setPublicKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -7494,16 +6508,30 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.prototype.getIp_asU8 = funct }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.prototype.setIp = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.repeatedFields_, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse'; +} /** * List of repeated fields within this message type. * @private {!Array} @@ -7515,15 +6543,13 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.prototype.toObject = function(opt_includeInstance) { @@ -7533,12 +6559,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.prototype.toObject = functi /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -7610,7 +6635,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -7627,20 +6651,19 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.serializeBinaryToWriter = f /** * repeated Catalyst.Protocol.Peer.PeerInfo peer_info = 1; - * @return {!Array} + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. + * @return {!Array.} */ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.prototype.getPeerInfoList = function() { - return /** @type{!Array} */ ( + return /** @type{!Array.} */ ( jspb.Message.getRepeatedWrapperField(this, Peer_pb.PeerInfo, 1)); }; -/** - * @param {!Array} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse} returns this -*/ +/** @param {!Array.} value */ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.prototype.setPeerInfoList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); + jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -7654,29 +6677,40 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.prototype.addPeerInfo = fun }; +proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.prototype.clearPeerInfoList = function() { + this.setPeerInfoList([]); +}; + + + /** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse} returns this + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor */ -proto.Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse.prototype.clearPeerInfoList = function() { - return this.setPeerInfoList([]); +proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; - - - +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.prototype.toObject = function(opt_includeInstance) { @@ -7686,16 +6720,15 @@ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.prototype.toObject = /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -7761,7 +6794,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.prototype.serializeBi * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -7777,36 +6809,50 @@ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.serializeBinaryToWrit /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.prototype.toObject = function(opt_includeInstance) { @@ -7816,12 +6862,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.prototype.toObject = /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -7891,7 +6936,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.prototype.serializeB * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -7914,29 +6958,41 @@ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.prototype.getQuery = }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest.prototype.toObject = function(opt_includeInstance) { @@ -7946,12 +7002,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest.prototype.toObject = function(o /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -8021,7 +7076,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest.prototype.serializeBinary = fun * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -8068,29 +7122,41 @@ proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest.prototype.getDeltaDfsHash_asU8 }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.GetDeltaRequest.prototype.setDeltaDfsHash = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse.prototype.toObject = function(opt_includeInstance) { @@ -8100,12 +7166,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse.prototype.toObject = function( /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -8176,7 +7241,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse.prototype.serializeBinary = fu * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -8201,27 +7265,20 @@ proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse.prototype.getDelta = function( }; -/** - * @param {?proto.Catalyst.Protocol.Deltas.Delta|undefined} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Deltas.Delta|undefined} value */ proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse.prototype.setDelta = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + jspb.Message.setWrapperField(this, 1, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse} returns this - */ proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse.prototype.clearDelta = function() { - return this.setDelta(undefined); + this.setDelta(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse.prototype.hasDelta = function() { return jspb.Message.getField(this, 1) != null; @@ -8229,19 +7286,34 @@ proto.Catalyst.Protocol.Rpc.Node.GetDeltaResponse.prototype.hasDelta = function( +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest.prototype.toObject = function(opt_includeInstance) { @@ -8251,16 +7323,15 @@ proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest.prototype.toObject = function /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -8326,7 +7397,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest.prototype.serializeBinary = f * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -8342,23 +7412,39 @@ proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest.serializeBinaryToWriter = fun /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.GetMempoolRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.repeatedFields_, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse'; +} /** * List of repeated fields within this message type. * @private {!Array} @@ -8370,15 +7456,13 @@ proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.prototype.toObject = function(opt_includeInstance) { @@ -8388,12 +7472,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -8465,7 +7548,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -8482,20 +7564,19 @@ proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.serializeBinaryToWriter = fu /** * repeated Catalyst.Protocol.Transaction.PublicEntry transactions = 1; - * @return {!Array} + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. + * @return {!Array.} */ proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.prototype.getTransactionsList = function() { - return /** @type{!Array} */ ( + return /** @type{!Array.} */ ( jspb.Message.getRepeatedWrapperField(this, Transaction_pb.PublicEntry, 1)); }; -/** - * @param {!Array} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse} returns this -*/ +/** @param {!Array.} value */ proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.prototype.setTransactionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); + jspb.Message.setRepeatedWrapperField(this, 1, value); }; @@ -8509,29 +7590,40 @@ proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.prototype.addTransactions = }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse} returns this - */ proto.Catalyst.Protocol.Rpc.Node.GetMempoolResponse.prototype.clearTransactionsList = function() { - return this.setTransactionsList([]); + this.setTransactionsList([]); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.prototype.toObject = function(opt_includeInstance) { @@ -8541,12 +7633,11 @@ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -8627,7 +7718,6 @@ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -8689,12 +7779,9 @@ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.prototype.getMessage_asU8 = }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.prototype.setMessage = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -8707,12 +7794,9 @@ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.prototype.getKeyId = functio }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.prototype.setKeyId = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -8726,27 +7810,20 @@ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.prototype.getSigningContext }; -/** - * @param {?proto.Catalyst.Protocol.Cryptography.SigningContext|undefined} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Cryptography.SigningContext|undefined} value */ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.prototype.setSigningContext = function(value) { - return jspb.Message.setWrapperField(this, 3, value); + jspb.Message.setWrapperField(this, 3, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest} returns this - */ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.prototype.clearSigningContext = function() { - return this.setSigningContext(undefined); + this.setSigningContext(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.prototype.hasSigningContext = function() { return jspb.Message.getField(this, 3) != null; @@ -8754,19 +7831,34 @@ proto.Catalyst.Protocol.Rpc.Node.SignMessageRequest.prototype.hasSigningContext +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.prototype.toObject = function(opt_includeInstance) { @@ -8776,12 +7868,11 @@ proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.prototype.toObject = functi /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -8861,7 +7952,6 @@ proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -8922,12 +8012,9 @@ proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.prototype.getSignature_asU8 }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -8964,12 +8051,9 @@ proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.prototype.getPublicKey_asU8 }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.prototype.setPublicKey = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -9006,29 +8090,41 @@ proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.prototype.getOriginalMessag }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.SignMessageResponse.prototype.setOriginalMessage = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); + jspb.Message.setField(this, 3, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.toObject = function(opt_includeInstance) { @@ -9038,12 +8134,11 @@ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.toObject = funct /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -9129,7 +8224,6 @@ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.serializeBinary * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -9198,12 +8292,9 @@ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.getSignature_asU }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.setSignature = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -9240,12 +8331,9 @@ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.getPublicKey_asU }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.setPublicKey = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -9282,12 +8370,9 @@ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.getMessage_asU8 }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.setMessage = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); + jspb.Message.setField(this, 3, value); }; @@ -9301,27 +8386,20 @@ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.getSigningContex }; -/** - * @param {?proto.Catalyst.Protocol.Cryptography.SigningContext|undefined} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Cryptography.SigningContext|undefined} value */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.setSigningContext = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + jspb.Message.setWrapperField(this, 4, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest} returns this - */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.clearSigningContext = function() { - return this.setSigningContext(undefined); + this.setSigningContext(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.hasSigningContext = function() { return jspb.Message.getField(this, 4) != null; @@ -9329,19 +8407,34 @@ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.prototype.hasSigningContex +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.prototype.toObject = function(opt_includeInstance) { @@ -9351,16 +8444,15 @@ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.prototype.toObject = func /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.toObject = function(includeInstance, msg) { var f, obj = { - isSignedByKey: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + isSignedByKey: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -9426,7 +8518,6 @@ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.prototype.serializeBinary * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -9442,36 +8533,50 @@ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.serializeBinaryToWriter = /** * optional bool is_signed_by_key = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.prototype.getIsSignedByKey = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.VerifyMessageResponse.prototype.setIsSignedByKey = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.prototype.toObject = function(opt_includeInstance) { @@ -9481,16 +8586,15 @@ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.prototype.toObject = funct /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -9556,7 +8660,6 @@ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.prototype.serializeBinary * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -9572,36 +8675,50 @@ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.serializeBinaryToWriter = /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusRequest.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.prototype.toObject = function(opt_includeInstance) { @@ -9611,12 +8728,11 @@ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.prototype.toObject = func /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -9686,7 +8802,6 @@ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.prototype.serializeBinary * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -9709,29 +8824,41 @@ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.prototype.getQuery = func }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.prototype.toObject = function(opt_includeInstance) { @@ -9741,12 +8868,11 @@ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.prototype.toObject = functi /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -9826,7 +8952,6 @@ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -9863,12 +8988,9 @@ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.prototype.getFileSize = fun }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.prototype.setFileSize = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -9881,12 +9003,9 @@ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.prototype.getFileName = fun }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.prototype.setFileName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -9899,29 +9018,41 @@ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.prototype.getNode = functio }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.prototype.setNode = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); + jspb.Message.setField(this, 3, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.prototype.toObject = function(opt_includeInstance) { @@ -9931,12 +9062,11 @@ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.prototype.toObject = funct /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -10011,7 +9141,6 @@ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.prototype.serializeBinary * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -10065,12 +9194,9 @@ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.prototype.getResponseCode_ }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.prototype.setResponseCode = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -10083,29 +9209,41 @@ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.prototype.getDfsHash = fun }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.prototype.setDfsHash = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); + jspb.Message.setField(this, 2, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.prototype.toObject = function(opt_includeInstance) { @@ -10115,12 +9253,11 @@ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.prototype.toObject = f /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -10200,7 +9337,6 @@ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.prototype.serializeBin * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -10237,12 +9373,9 @@ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.prototype.getChunkId = }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.prototype.setChunkId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -10279,12 +9412,9 @@ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.prototype.getChunkByte }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.prototype.setChunkBytes = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -10321,29 +9451,41 @@ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.prototype.getCorrelati }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.prototype.setCorrelationFileName = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); + jspb.Message.setField(this, 3, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.prototype.toObject = function(opt_includeInstance) { @@ -10353,12 +9495,11 @@ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.prototype.toObject = /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -10428,7 +9569,6 @@ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.prototype.serializeBi * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -10475,29 +9615,41 @@ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.prototype.getResponse }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.prototype.setResponseCode = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest.prototype.toObject = function(opt_includeInstance) { @@ -10507,12 +9659,11 @@ proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest.prototype.toObject = function /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -10587,7 +9738,6 @@ proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest.prototype.serializeBinary = f * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -10641,12 +9791,9 @@ proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest.prototype.getPeerIp_asU8 = fu }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest.prototype.setPeerIp = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -10683,29 +9830,41 @@ proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest.prototype.getPublicKey_asU8 = }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.RemovePeerRequest.prototype.setPublicKey = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse.prototype.toObject = function(opt_includeInstance) { @@ -10715,12 +9874,11 @@ proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse.prototype.toObject = functio /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -10790,7 +9948,6 @@ proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -10813,29 +9970,41 @@ proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse.prototype.getDeletedCount = }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Rpc.Node.RemovePeerResponse.prototype.setDeletedCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest.prototype.toObject = function(opt_includeInstance) { @@ -10845,12 +10014,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest.prototype.toObject = functi /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -10916,7 +10084,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -10924,19 +10091,34 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountRequest.serializeBinaryToWriter = f +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.prototype.toObject = function(opt_includeInstance) { @@ -10946,12 +10128,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.prototype.toObject = funct /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -11021,7 +10202,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.prototype.serializeBinary * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -11044,29 +10224,41 @@ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.prototype.getPeerCount = f }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Rpc.Node.GetPeerCountResponse.prototype.setPeerCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.prototype.toObject = function(opt_includeInstance) { @@ -11076,12 +10268,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.prototype.toObject = func /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -11151,7 +10342,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.prototype.serializeBinary * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -11174,29 +10364,41 @@ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.prototype.getDfsHash = fu }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.prototype.setDfsHash = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.prototype.toObject = function(opt_includeInstance) { @@ -11206,12 +10408,11 @@ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.prototype.toObject = fun /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.toObject = function(includeInstance, msg) { var f, obj = { @@ -11286,7 +10487,6 @@ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.prototype.serializeBinar * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -11316,12 +10516,9 @@ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.prototype.getFileSize = }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.prototype.setFileSize = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -11358,29 +10555,41 @@ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.prototype.getResponseCod }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.prototype.setResponseCode = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.prototype.toObject = function(opt_includeInstance) { @@ -11390,12 +10599,11 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.prototype.toObject = f /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.toObject = function(includeInstance, msg) { var f, obj = { @@ -11465,7 +10673,6 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.prototype.serializeBin * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -11488,29 +10695,41 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.prototype.getDataFolde }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.prototype.setDataFolder = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); + jspb.Message.setField(this, 1, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.displayName = 'proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.prototype.toObject = function(opt_includeInstance) { @@ -11520,16 +10739,15 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.prototype.toObject = /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.toObject = function(includeInstance, msg) { var f, obj = { - query: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) + query: jspb.Message.getFieldWithDefault(msg, 1, false) }; if (includeInstance) { @@ -11595,7 +10813,6 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.prototype.serializeBi * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -11611,19 +10828,18 @@ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.serializeBinaryToWrit /** * optional bool query = 1; + * Note that Boolean fields may be set to 0/1 when serialized from a Java server. + * You should avoid comparisons like {@code val === true/false} in those cases. * @return {boolean} */ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.prototype.getQuery = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); + return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 1, false)); }; -/** - * @param {boolean} value - * @return {!proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse} returns this - */ +/** @param {boolean} value */ proto.Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse.prototype.setQuery = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); + jspb.Message.setField(this, 1, value); }; diff --git a/packages/sdk-js/src/Transaction_pb.d.ts b/packages/sdk-js/src/Transaction_pb.d.ts index 930a9d8..5be9cfc 100644 --- a/packages/sdk-js/src/Transaction_pb.d.ts +++ b/packages/sdk-js/src/Transaction_pb.d.ts @@ -3,7 +3,6 @@ import * as jspb from "google-protobuf"; import * as Cryptography_pb from "./Cryptography_pb"; -import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; export class PublicEntry extends jspb.Message { getReceiverAddress(): Uint8Array | string; @@ -26,11 +25,6 @@ export class PublicEntry extends jspb.Message { getData_asB64(): string; setData(value: Uint8Array | string): void; - hasTimestamp(): boolean; - clearTimestamp(): void; - getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined; - setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): void; - getGasPrice(): Uint8Array | string; getGasPrice_asU8(): Uint8Array; getGasPrice_asB64(): string; @@ -63,7 +57,6 @@ export namespace PublicEntry { senderAddress: Uint8Array | string, amount: Uint8Array | string, data: Uint8Array | string, - timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject, gasPrice: Uint8Array | string, gasLimit: number, nonce: number, diff --git a/packages/sdk-js/src/Transaction_pb.js b/packages/sdk-js/src/Transaction_pb.js index 8cd8af5..0edb3f4 100644 --- a/packages/sdk-js/src/Transaction_pb.js +++ b/packages/sdk-js/src/Transaction_pb.js @@ -1,9 +1,6 @@ -// source: Transaction.proto /** * @fileoverview * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! @@ -13,14 +10,12 @@ var goog = jspb; var global = Function('return this')(); var Cryptography_pb = require('./Cryptography_pb.js'); -goog.object.extend(proto, Cryptography_pb); -var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); goog.exportSymbol('proto.Catalyst.Protocol.Transaction.CoinbaseEntry', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Transaction.ConfidentialEntry', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Transaction.PublicEntry', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Transaction.RangeProof', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Transaction.TransactionType', null, global); + /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -36,89 +31,19 @@ proto.Catalyst.Protocol.Transaction.PublicEntry = function(opt_data) { }; goog.inherits(proto.Catalyst.Protocol.Transaction.PublicEntry, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ proto.Catalyst.Protocol.Transaction.PublicEntry.displayName = 'proto.Catalyst.Protocol.Transaction.PublicEntry'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Transaction.ConfidentialEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Transaction.ConfidentialEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Transaction.ConfidentialEntry.displayName = 'proto.Catalyst.Protocol.Transaction.ConfidentialEntry'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Transaction.CoinbaseEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Transaction.CoinbaseEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Transaction.CoinbaseEntry.displayName = 'proto.Catalyst.Protocol.Transaction.CoinbaseEntry'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Transaction.RangeProof = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.Transaction.RangeProof.repeatedFields_, null); -}; -goog.inherits(proto.Catalyst.Protocol.Transaction.RangeProof, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Transaction.RangeProof.displayName = 'proto.Catalyst.Protocol.Transaction.RangeProof'; -} - if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.toObject = function(opt_includeInstance) { @@ -128,12 +53,11 @@ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.toObject = function(op /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Transaction.PublicEntry} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Transaction.PublicEntry.toObject = function(includeInstance, msg) { var f, obj = { @@ -141,10 +65,9 @@ proto.Catalyst.Protocol.Transaction.PublicEntry.toObject = function(includeInsta senderAddress: msg.getSenderAddress_asB64(), amount: msg.getAmount_asB64(), data: msg.getData_asB64(), - timestamp: (f = msg.getTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), gasPrice: msg.getGasPrice_asB64(), - gasLimit: jspb.Message.getFieldWithDefault(msg, 7, 0), - nonce: jspb.Message.getFieldWithDefault(msg, 9, 0), + gasLimit: jspb.Message.getFieldWithDefault(msg, 6, 0), + nonce: jspb.Message.getFieldWithDefault(msg, 7, 0), signature: (f = msg.getSignature()) && Cryptography_pb.Signature.toObject(includeInstance, f) }; @@ -199,23 +122,18 @@ proto.Catalyst.Protocol.Transaction.PublicEntry.deserializeBinaryFromReader = fu msg.setData(value); break; case 5: - var value = new google_protobuf_timestamp_pb.Timestamp; - reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); - msg.setTimestamp(value); - break; - case 6: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setGasPrice(value); break; - case 7: + case 6: var value = /** @type {number} */ (reader.readUint64()); msg.setGasLimit(value); break; - case 9: + case 7: var value = /** @type {number} */ (reader.readUint64()); msg.setNonce(value); break; - case 10: + case 8: var value = new Cryptography_pb.Signature; reader.readMessage(value,Cryptography_pb.Signature.deserializeBinaryFromReader); msg.setSignature(value); @@ -245,7 +163,6 @@ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.serializeBinary = func * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Transaction.PublicEntry} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Transaction.PublicEntry.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -277,39 +194,31 @@ proto.Catalyst.Protocol.Transaction.PublicEntry.serializeBinaryToWriter = functi f ); } - f = message.getTimestamp(); - if (f != null) { - writer.writeMessage( - 5, - f, - google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter - ); - } f = message.getGasPrice_asU8(); if (f.length > 0) { writer.writeBytes( - 6, + 5, f ); } f = message.getGasLimit(); if (f !== 0) { writer.writeUint64( - 7, + 6, f ); } f = message.getNonce(); if (f !== 0) { writer.writeUint64( - 9, + 7, f ); } f = message.getSignature(); if (f != null) { writer.writeMessage( - 10, + 8, f, Cryptography_pb.Signature.serializeBinaryToWriter ); @@ -350,12 +259,9 @@ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.getReceiverAddress_asU }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.PublicEntry} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.setReceiverAddress = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -392,12 +298,9 @@ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.getSenderAddress_asU8 }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.PublicEntry} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.setSenderAddress = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -434,12 +337,9 @@ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.getAmount_asU8 = funct }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.PublicEntry} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.setAmount = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); + jspb.Message.setField(this, 3, value); }; @@ -476,63 +376,23 @@ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.getData_asU8 = functio }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.PublicEntry} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional google.protobuf.Timestamp timestamp = 5; - * @return {?proto.google.protobuf.Timestamp} - */ -proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.getTimestamp = function() { - return /** @type{?proto.google.protobuf.Timestamp} */ ( - jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); -}; - - -/** - * @param {?proto.google.protobuf.Timestamp|undefined} value - * @return {!proto.Catalyst.Protocol.Transaction.PublicEntry} returns this -*/ -proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.setTimestamp = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Transaction.PublicEntry} returns this - */ -proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.clearTimestamp = function() { - return this.setTimestamp(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.hasTimestamp = function() { - return jspb.Message.getField(this, 5) != null; + jspb.Message.setField(this, 4, value); }; /** - * optional bytes gas_price = 6; + * optional bytes gas_price = 5; * @return {!(string|Uint8Array)} */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.getGasPrice = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** - * optional bytes gas_price = 6; + * optional bytes gas_price = 5; * This is a type-conversion wrapper around `getGasPrice()` * @return {string} */ @@ -543,7 +403,7 @@ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.getGasPrice_asB64 = fu /** - * optional bytes gas_price = 6; + * optional bytes gas_price = 5; * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getGasPrice()` @@ -555,102 +415,101 @@ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.getGasPrice_asU8 = fun }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.PublicEntry} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.setGasPrice = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); + jspb.Message.setField(this, 5, value); }; /** - * optional uint64 gas_limit = 7; + * optional uint64 gas_limit = 6; * @return {number} */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.getGasLimit = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Transaction.PublicEntry} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.setGasLimit = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); + jspb.Message.setField(this, 6, value); }; /** - * optional uint64 nonce = 9; + * optional uint64 nonce = 7; * @return {number} */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.getNonce = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Transaction.PublicEntry} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.setNonce = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); + jspb.Message.setField(this, 7, value); }; /** - * optional Catalyst.Protocol.Cryptography.Signature signature = 10; + * optional Catalyst.Protocol.Cryptography.Signature signature = 8; * @return {?proto.Catalyst.Protocol.Cryptography.Signature} */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.getSignature = function() { return /** @type{?proto.Catalyst.Protocol.Cryptography.Signature} */ ( - jspb.Message.getWrapperField(this, Cryptography_pb.Signature, 10)); + jspb.Message.getWrapperField(this, Cryptography_pb.Signature, 8)); }; -/** - * @param {?proto.Catalyst.Protocol.Cryptography.Signature|undefined} value - * @return {!proto.Catalyst.Protocol.Transaction.PublicEntry} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Cryptography.Signature|undefined} value */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.setSignature = function(value) { - return jspb.Message.setWrapperField(this, 10, value); + jspb.Message.setWrapperField(this, 8, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Transaction.PublicEntry} returns this - */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.clearSignature = function() { - return this.setSignature(undefined); + this.setSignature(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Transaction.PublicEntry.prototype.hasSignature = function() { - return jspb.Message.getField(this, 10) != null; + return jspb.Message.getField(this, 8) != null; }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Transaction.ConfidentialEntry = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Transaction.ConfidentialEntry, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Transaction.ConfidentialEntry.displayName = 'proto.Catalyst.Protocol.Transaction.ConfidentialEntry'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.toObject = function(opt_includeInstance) { @@ -660,12 +519,11 @@ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.toObject = funct /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Transaction.ConfidentialEntry} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.toObject = function(includeInstance, msg) { var f, obj = { @@ -761,7 +619,6 @@ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.serializeBinary * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Transaction.ConfidentialEntry} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -844,12 +701,9 @@ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.getReceiverPubli }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.ConfidentialEntry} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.setReceiverPublicKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -886,12 +740,9 @@ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.getSenderPublicK }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.ConfidentialEntry} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.setSenderPublicKey = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -928,12 +779,9 @@ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.getPedersenCommi }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.ConfidentialEntry} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.setPedersenCommitment = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); + jspb.Message.setField(this, 3, value); }; @@ -947,27 +795,20 @@ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.getRangeProof = }; -/** - * @param {?proto.Catalyst.Protocol.Transaction.RangeProof|undefined} value - * @return {!proto.Catalyst.Protocol.Transaction.ConfidentialEntry} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Transaction.RangeProof|undefined} value */ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.setRangeProof = function(value) { - return jspb.Message.setWrapperField(this, 4, value); + jspb.Message.setWrapperField(this, 4, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Transaction.ConfidentialEntry} returns this - */ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.clearRangeProof = function() { - return this.setRangeProof(undefined); + this.setRangeProof(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.hasRangeProof = function() { return jspb.Message.getField(this, 4) != null; @@ -1007,12 +848,9 @@ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.getTransactionFe }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.ConfidentialEntry} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.setTransactionFees = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); + jspb.Message.setField(this, 5, value); }; @@ -1025,29 +863,41 @@ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.getNonce = funct }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Transaction.ConfidentialEntry} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Transaction.ConfidentialEntry.prototype.setNonce = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); + jspb.Message.setField(this, 6, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Transaction.CoinbaseEntry = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Transaction.CoinbaseEntry, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Transaction.CoinbaseEntry.displayName = 'proto.Catalyst.Protocol.Transaction.CoinbaseEntry'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Transaction.CoinbaseEntry.prototype.toObject = function(opt_includeInstance) { @@ -1057,12 +907,11 @@ proto.Catalyst.Protocol.Transaction.CoinbaseEntry.prototype.toObject = function( /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Transaction.CoinbaseEntry} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Transaction.CoinbaseEntry.toObject = function(includeInstance, msg) { var f, obj = { @@ -1137,7 +986,6 @@ proto.Catalyst.Protocol.Transaction.CoinbaseEntry.prototype.serializeBinary = fu * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Transaction.CoinbaseEntry} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Transaction.CoinbaseEntry.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -1191,12 +1039,9 @@ proto.Catalyst.Protocol.Transaction.CoinbaseEntry.prototype.getReceiverPublicKey }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.CoinbaseEntry} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.CoinbaseEntry.prototype.setReceiverPublicKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -1233,16 +1078,30 @@ proto.Catalyst.Protocol.Transaction.CoinbaseEntry.prototype.getAmount_asU8 = fun }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.CoinbaseEntry} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.CoinbaseEntry.prototype.setAmount = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Transaction.RangeProof = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.Catalyst.Protocol.Transaction.RangeProof.repeatedFields_, null); +}; +goog.inherits(proto.Catalyst.Protocol.Transaction.RangeProof, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Transaction.RangeProof.displayName = 'proto.Catalyst.Protocol.Transaction.RangeProof'; +} /** * List of repeated fields within this message type. * @private {!Array} @@ -1254,15 +1113,13 @@ proto.Catalyst.Protocol.Transaction.RangeProof.repeatedFields_ = [1,8,9]; if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.toObject = function(opt_includeInstance) { @@ -1272,12 +1129,11 @@ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.toObject = function(opt /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Transaction.RangeProof} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Transaction.RangeProof.toObject = function(includeInstance, msg) { var f, obj = { @@ -1402,7 +1258,6 @@ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.serializeBinary = funct * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Transaction.RangeProof} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Transaction.RangeProof.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -1495,62 +1350,60 @@ proto.Catalyst.Protocol.Transaction.RangeProof.serializeBinaryToWriter = functio /** * repeated bytes value_commitment = 1; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * @return {!(Array|Array)} */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getValueCommitmentList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 1)); + return /** @type {!(Array|Array)} */ (jspb.Message.getField(this, 1)); }; /** * repeated bytes value_commitment = 1; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * This is a type-conversion wrapper around `getValueCommitmentList()` - * @return {!Array} + * @return {!Array.} */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getValueCommitmentList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + return /** @type {!Array.} */ (jspb.Message.bytesListAsB64( this.getValueCommitmentList())); }; /** * repeated bytes value_commitment = 1; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getValueCommitmentList()` - * @return {!Array} + * @return {!Array.} */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getValueCommitmentList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + return /** @type {!Array.} */ (jspb.Message.bytesListAsU8( this.getValueCommitmentList())); }; -/** - * @param {!(Array|Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ +/** @param {!(Array|Array)} value */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.setValueCommitmentList = function(value) { - return jspb.Message.setField(this, 1, value || []); + jspb.Message.setField(this, 1, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.addValueCommitment = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); + jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.clearValueCommitmentList = function() { - return this.setValueCommitmentList([]); + this.setValueCommitmentList([]); }; @@ -1587,12 +1440,9 @@ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getBitCommitment_asU8 = }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.setBitCommitment = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -1629,12 +1479,9 @@ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getPerBitBlindingFactor }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.setPerBitBlindingFactorCommitment = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); + jspb.Message.setField(this, 3, value); }; @@ -1671,12 +1518,9 @@ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getPolyCommitmentT1_asU }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.setPolyCommitmentT1 = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); + jspb.Message.setField(this, 4, value); }; @@ -1713,12 +1557,9 @@ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getPolyCommitmentT2_asU }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.setPolyCommitmentT2 = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); + jspb.Message.setField(this, 5, value); }; @@ -1755,12 +1596,9 @@ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getProofOfShareTau_asU8 }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.setProofOfShareTau = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); + jspb.Message.setField(this, 6, value); }; @@ -1797,134 +1635,127 @@ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getProofOfShareMu_asU8 }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.setProofOfShareMu = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); + jspb.Message.setField(this, 7, value); }; /** * repeated bytes aggregated_vector_polynomial_l = 8; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * @return {!(Array|Array)} */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getAggregatedVectorPolynomialLList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 8)); + return /** @type {!(Array|Array)} */ (jspb.Message.getField(this, 8)); }; /** * repeated bytes aggregated_vector_polynomial_l = 8; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * This is a type-conversion wrapper around `getAggregatedVectorPolynomialLList()` - * @return {!Array} + * @return {!Array.} */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getAggregatedVectorPolynomialLList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + return /** @type {!Array.} */ (jspb.Message.bytesListAsB64( this.getAggregatedVectorPolynomialLList())); }; /** * repeated bytes aggregated_vector_polynomial_l = 8; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getAggregatedVectorPolynomialLList()` - * @return {!Array} + * @return {!Array.} */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getAggregatedVectorPolynomialLList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + return /** @type {!Array.} */ (jspb.Message.bytesListAsU8( this.getAggregatedVectorPolynomialLList())); }; -/** - * @param {!(Array|Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ +/** @param {!(Array|Array)} value */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.setAggregatedVectorPolynomialLList = function(value) { - return jspb.Message.setField(this, 8, value || []); + jspb.Message.setField(this, 8, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.addAggregatedVectorPolynomialL = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 8, value, opt_index); + jspb.Message.addToRepeatedField(this, 8, value, opt_index); }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.clearAggregatedVectorPolynomialLList = function() { - return this.setAggregatedVectorPolynomialLList([]); + this.setAggregatedVectorPolynomialLList([]); }; /** * repeated bytes aggregated_vector_polynomial_r = 9; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * @return {!(Array|Array)} */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getAggregatedVectorPolynomialRList = function() { - return /** @type {!(Array|Array)} */ (jspb.Message.getRepeatedField(this, 9)); + return /** @type {!(Array|Array)} */ (jspb.Message.getField(this, 9)); }; /** * repeated bytes aggregated_vector_polynomial_r = 9; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * This is a type-conversion wrapper around `getAggregatedVectorPolynomialRList()` - * @return {!Array} + * @return {!Array.} */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getAggregatedVectorPolynomialRList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( + return /** @type {!Array.} */ (jspb.Message.bytesListAsB64( this.getAggregatedVectorPolynomialRList())); }; /** * repeated bytes aggregated_vector_polynomial_r = 9; + * If you change this array by adding, removing or replacing elements, or if you + * replace the array itself, then you must call the setter to update it. * Note that Uint8Array is not supported on all browsers. * @see http://caniuse.com/Uint8Array * This is a type-conversion wrapper around `getAggregatedVectorPolynomialRList()` - * @return {!Array} + * @return {!Array.} */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getAggregatedVectorPolynomialRList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( + return /** @type {!Array.} */ (jspb.Message.bytesListAsU8( this.getAggregatedVectorPolynomialRList())); }; -/** - * @param {!(Array|Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ +/** @param {!(Array|Array)} value */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.setAggregatedVectorPolynomialRList = function(value) { - return jspb.Message.setField(this, 9, value || []); + jspb.Message.setField(this, 9, value || []); }; /** * @param {!(string|Uint8Array)} value * @param {number=} opt_index - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.addAggregatedVectorPolynomialR = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 9, value, opt_index); + jspb.Message.addToRepeatedField(this, 9, value, opt_index); }; -/** - * Clears the list making it empty but non-null. - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.clearAggregatedVectorPolynomialRList = function() { - return this.setAggregatedVectorPolynomialRList([]); + this.setAggregatedVectorPolynomialRList([]); }; @@ -1961,12 +1792,9 @@ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getAPrime0_asU8 = funct }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.setAPrime0 = function(value) { - return jspb.Message.setProto3BytesField(this, 10, value); + jspb.Message.setField(this, 10, value); }; @@ -2003,12 +1831,9 @@ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getBPrime0_asU8 = funct }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.setBPrime0 = function(value) { - return jspb.Message.setProto3BytesField(this, 11, value); + jspb.Message.setField(this, 11, value); }; @@ -2045,12 +1870,9 @@ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.getT_asU8 = function() }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Transaction.RangeProof} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Transaction.RangeProof.prototype.setT = function(value) { - return jspb.Message.setProto3BytesField(this, 12, value); + jspb.Message.setField(this, 12, value); }; diff --git a/packages/sdk-js/src/Wire_pb.js b/packages/sdk-js/src/Wire_pb.js index 68c753b..72d4508 100644 --- a/packages/sdk-js/src/Wire_pb.js +++ b/packages/sdk-js/src/Wire_pb.js @@ -1,9 +1,6 @@ -// source: Wire.proto /** * @fileoverview * @enhanceable - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! @@ -13,19 +10,16 @@ var goog = jspb; var global = Function('return this')(); var Cryptography_pb = require('./Cryptography_pb.js'); -goog.object.extend(proto, Cryptography_pb); var Peer_pb = require('./Peer_pb.js'); -goog.object.extend(proto, Peer_pb); var Transaction_pb = require('./Transaction_pb.js'); -goog.object.extend(proto, Transaction_pb); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); -goog.object.extend(proto, google_protobuf_timestamp_pb); goog.exportSymbol('proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Wire.ProtocolErrorMessage', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Wire.ProtocolMessage', null, global); goog.exportSymbol('proto.Catalyst.Protocol.Wire.TransactionBroadcast', null, global); + /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -41,131 +35,19 @@ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage = function(opt_data) { }; goog.inherits(proto.Catalyst.Protocol.Wire.ProtocolErrorMessage, jspb.Message); if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.displayName = 'proto.Catalyst.Protocol.Wire.ProtocolErrorMessage'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Wire.ProtocolMessage = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Wire.ProtocolMessage, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Wire.ProtocolMessage.displayName = 'proto.Catalyst.Protocol.Wire.ProtocolMessage'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Wire.TransactionBroadcast = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Wire.TransactionBroadcast, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Wire.TransactionBroadcast.displayName = 'proto.Catalyst.Protocol.Wire.TransactionBroadcast'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.displayName = 'proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.displayName = 'proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.displayName = 'proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast'; -} - if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.toObject = function(opt_includeInstance) { @@ -175,12 +57,11 @@ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.toObject = function( /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Wire.ProtocolErrorMessage} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.toObject = function(includeInstance, msg) { var f, obj = { @@ -267,7 +148,6 @@ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.serializeBinary = fu * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Wire.ProtocolErrorMessage} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -314,27 +194,20 @@ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.getSignature = funct }; -/** - * @param {?proto.Catalyst.Protocol.Cryptography.Signature|undefined} value - * @return {!proto.Catalyst.Protocol.Wire.ProtocolErrorMessage} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Cryptography.Signature|undefined} value */ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.setSignature = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + jspb.Message.setWrapperField(this, 1, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Wire.ProtocolErrorMessage} returns this - */ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.clearSignature = function() { - return this.setSignature(undefined); + this.setSignature(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.hasSignature = function() { return jspb.Message.getField(this, 1) != null; @@ -351,27 +224,20 @@ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.getPeerId = function }; -/** - * @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value - * @return {!proto.Catalyst.Protocol.Wire.ProtocolErrorMessage} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value */ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.setPeerId = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + jspb.Message.setWrapperField(this, 2, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Wire.ProtocolErrorMessage} returns this - */ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.clearPeerId = function() { - return this.setPeerId(undefined); + this.setPeerId(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.hasPeerId = function() { return jspb.Message.getField(this, 2) != null; @@ -411,12 +277,9 @@ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.getCorrelationId_asU }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Wire.ProtocolErrorMessage} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.setCorrelationId = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); + jspb.Message.setField(this, 3, value); }; @@ -429,29 +292,41 @@ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.getCode = function() }; -/** - * @param {number} value - * @return {!proto.Catalyst.Protocol.Wire.ProtocolErrorMessage} returns this - */ +/** @param {number} value */ proto.Catalyst.Protocol.Wire.ProtocolErrorMessage.prototype.setCode = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); + jspb.Message.setField(this, 4, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Wire.ProtocolMessage = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Wire.ProtocolMessage, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Wire.ProtocolMessage.displayName = 'proto.Catalyst.Protocol.Wire.ProtocolMessage'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.toObject = function(opt_includeInstance) { @@ -461,12 +336,11 @@ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.toObject = function(opt_i /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Wire.ProtocolMessage} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Wire.ProtocolMessage.toObject = function(includeInstance, msg) { var f, obj = { @@ -558,7 +432,6 @@ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.serializeBinary = functio * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Wire.ProtocolMessage} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Wire.ProtocolMessage.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -612,27 +485,20 @@ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.getPeerId = function() { }; -/** - * @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value - * @return {!proto.Catalyst.Protocol.Wire.ProtocolMessage} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value */ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.setPeerId = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + jspb.Message.setWrapperField(this, 1, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Wire.ProtocolMessage} returns this - */ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.clearPeerId = function() { - return this.setPeerId(undefined); + this.setPeerId(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.hasPeerId = function() { return jspb.Message.getField(this, 1) != null; @@ -672,12 +538,9 @@ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.getCorrelationId_asU8 = f }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Wire.ProtocolMessage} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.setCorrelationId = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; @@ -690,12 +553,9 @@ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.getTypeUrl = function() { }; -/** - * @param {string} value - * @return {!proto.Catalyst.Protocol.Wire.ProtocolMessage} returns this - */ +/** @param {string} value */ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.setTypeUrl = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); + jspb.Message.setField(this, 3, value); }; @@ -732,12 +592,9 @@ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.getValue_asU8 = function( }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Wire.ProtocolMessage} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.setValue = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); + jspb.Message.setField(this, 4, value); }; @@ -751,27 +608,20 @@ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.getSignature = function() }; -/** - * @param {?proto.Catalyst.Protocol.Cryptography.Signature|undefined} value - * @return {!proto.Catalyst.Protocol.Wire.ProtocolMessage} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Cryptography.Signature|undefined} value */ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.setSignature = function(value) { - return jspb.Message.setWrapperField(this, 5, value); + jspb.Message.setWrapperField(this, 5, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Wire.ProtocolMessage} returns this - */ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.clearSignature = function() { - return this.setSignature(undefined); + this.setSignature(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.hasSignature = function() { return jspb.Message.getField(this, 5) != null; @@ -779,19 +629,34 @@ proto.Catalyst.Protocol.Wire.ProtocolMessage.prototype.hasSignature = function() +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Wire.TransactionBroadcast = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Wire.TransactionBroadcast, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Wire.TransactionBroadcast.displayName = 'proto.Catalyst.Protocol.Wire.TransactionBroadcast'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Wire.TransactionBroadcast.prototype.toObject = function(opt_includeInstance) { @@ -801,12 +666,11 @@ proto.Catalyst.Protocol.Wire.TransactionBroadcast.prototype.toObject = function( /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Wire.TransactionBroadcast} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Wire.TransactionBroadcast.toObject = function(includeInstance, msg) { var f, obj = { @@ -877,7 +741,6 @@ proto.Catalyst.Protocol.Wire.TransactionBroadcast.prototype.serializeBinary = fu * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Wire.TransactionBroadcast} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Wire.TransactionBroadcast.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -902,27 +765,20 @@ proto.Catalyst.Protocol.Wire.TransactionBroadcast.prototype.getPublicEntry = fun }; -/** - * @param {?proto.Catalyst.Protocol.Transaction.PublicEntry|undefined} value - * @return {!proto.Catalyst.Protocol.Wire.TransactionBroadcast} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Transaction.PublicEntry|undefined} value */ proto.Catalyst.Protocol.Wire.TransactionBroadcast.prototype.setPublicEntry = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + jspb.Message.setWrapperField(this, 1, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Wire.TransactionBroadcast} returns this - */ proto.Catalyst.Protocol.Wire.TransactionBroadcast.prototype.clearPublicEntry = function() { - return this.setPublicEntry(undefined); + this.setPublicEntry(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Wire.TransactionBroadcast.prototype.hasPublicEntry = function() { return jspb.Message.getField(this, 1) != null; @@ -930,19 +786,34 @@ proto.Catalyst.Protocol.Wire.TransactionBroadcast.prototype.hasPublicEntry = fun +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.displayName = 'proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.prototype.toObject = function(opt_includeInstance) { @@ -952,12 +823,11 @@ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.prototype.toObject = functi /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.toObject = function(includeInstance, msg) { var f, obj = { @@ -1038,7 +908,6 @@ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -1100,12 +969,9 @@ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.prototype.getHash_asU8 = fu }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.prototype.setHash = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -1119,27 +985,20 @@ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.prototype.getProducerId = f }; -/** - * @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value - * @return {!proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value */ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.prototype.setProducerId = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + jspb.Message.setWrapperField(this, 2, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast} returns this - */ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.prototype.clearProducerId = function() { - return this.setProducerId(undefined); + this.setProducerId(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.prototype.hasProducerId = function() { return jspb.Message.getField(this, 2) != null; @@ -1179,29 +1038,41 @@ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.prototype.getPreviousDeltaD }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast.prototype.setPreviousDeltaDfsHash = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); + jspb.Message.setField(this, 3, value); }; +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.displayName = 'proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.prototype.toObject = function(opt_includeInstance) { @@ -1211,12 +1082,11 @@ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.prototype.toObject = functi /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.toObject = function(includeInstance, msg) { var f, obj = { @@ -1293,7 +1163,6 @@ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.prototype.serializeBinary = * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -1326,27 +1195,20 @@ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.prototype.getCandidate = fu }; -/** - * @param {?proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast|undefined} value - * @return {!proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Wire.CandidateDeltaBroadcast|undefined} value */ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.prototype.setCandidate = function(value) { - return jspb.Message.setWrapperField(this, 1, value); + jspb.Message.setWrapperField(this, 1, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast} returns this - */ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.prototype.clearCandidate = function() { - return this.setCandidate(undefined); + this.setCandidate(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.prototype.hasCandidate = function() { return jspb.Message.getField(this, 1) != null; @@ -1363,27 +1225,20 @@ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.prototype.getVoterId = func }; -/** - * @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value - * @return {!proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast} returns this -*/ +/** @param {?proto.Catalyst.Protocol.Peer.PeerId|undefined} value */ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.prototype.setVoterId = function(value) { - return jspb.Message.setWrapperField(this, 2, value); + jspb.Message.setWrapperField(this, 2, value); }; -/** - * Clears the message field making it undefined. - * @return {!proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast} returns this - */ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.prototype.clearVoterId = function() { - return this.setVoterId(undefined); + this.setVoterId(undefined); }; /** * Returns whether this field is set. - * @return {boolean} + * @return {!boolean} */ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.prototype.hasVoterId = function() { return jspb.Message.getField(this, 2) != null; @@ -1391,19 +1246,34 @@ proto.Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.prototype.hasVoterId = func +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast, jspb.Message); +if (goog.DEBUG && !COMPILED) { + proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.displayName = 'proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast'; +} if (jspb.Message.GENERATE_TO_OBJECT) { /** - * Creates an object representation of this proto. + * Creates an object representation of this proto suitable for use in Soy templates. * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_, eg, foo.pb_default. * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration + * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. + * @param {boolean=} opt_includeInstance Whether to include the JSPB instance + * for transitional soy proto support: http://goto/soy-param-migration * @return {!Object} */ proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.prototype.toObject = function(opt_includeInstance) { @@ -1413,12 +1283,11 @@ proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.prototype.toObject = function /** * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: + * @param {boolean|undefined} includeInstance Whether to include the JSPB + * instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast} msg The msg instance to transform. * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.toObject = function(includeInstance, msg) { var f, obj = { @@ -1493,7 +1362,6 @@ proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.prototype.serializeBinary = f * format), writing to the given BinaryWriter. * @param {!proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast} message * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.serializeBinaryToWriter = function(message, writer) { var f = undefined; @@ -1547,12 +1415,9 @@ proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.prototype.getDeltaDfsHash_asU }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.prototype.setDeltaDfsHash = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + jspb.Message.setField(this, 1, value); }; @@ -1589,12 +1454,9 @@ proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.prototype.getPreviousDeltaDfs }; -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast} returns this - */ +/** @param {!(string|Uint8Array)} value */ proto.Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.prototype.setPreviousDeltaDfsHash = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + jspb.Message.setField(this, 2, value); }; diff --git a/packages/sdk-objc/src/Account.pbobjc.h b/packages/sdk-objc/src/Account.pbobjc.h index ad28fc5..7c544de 100644 --- a/packages/sdk-objc/src/Account.pbobjc.h +++ b/packages/sdk-objc/src/Account.pbobjc.h @@ -8,7 +8,7 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers.h" #endif diff --git a/packages/sdk-objc/src/Account.pbobjc.m b/packages/sdk-objc/src/Account.pbobjc.m index c409b77..5adfd72 100644 --- a/packages/sdk-objc/src/Account.pbobjc.m +++ b/packages/sdk-objc/src/Account.pbobjc.m @@ -8,16 +8,14 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers_RuntimeSupport.h" #endif -#import - -#import "Account.pbobjc.h" -#import "Cryptography.pbobjc.h" -#import "Network.pbobjc.h" + #import "Account.pbobjc.h" + #import "Cryptography.pbobjc.h" + #import "Network.pbobjc.h" // @@protoc_insertion_point(imports) #pragma clang diagnostic push @@ -49,7 +47,7 @@ @implementation AccountRoot #pragma mark - Enum AccountType GPBEnumDescriptor *AccountType_EnumDescriptor(void) { - static _Atomic(GPBEnumDescriptor*) descriptor = nil; + static GPBEnumDescriptor *descriptor = NULL; if (!descriptor) { static const char *valueNames = "AccountTypeUnknown\000PublicAccount\000Confide" @@ -66,8 +64,7 @@ @implementation AccountRoot values:values count:(uint32_t)(sizeof(values) / sizeof(int32_t)) enumVerifier:AccountType_IsValidValue]; - GPBEnumDescriptor *expected = nil; - if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) { + if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) { [worker release]; } } @@ -143,9 +140,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(Address__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; diff --git a/packages/sdk-objc/src/Cryptography.pbobjc.h b/packages/sdk-objc/src/Cryptography.pbobjc.h index 2856f63..6b799d8 100644 --- a/packages/sdk-objc/src/Cryptography.pbobjc.h +++ b/packages/sdk-objc/src/Cryptography.pbobjc.h @@ -8,7 +8,7 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers.h" #endif diff --git a/packages/sdk-objc/src/Cryptography.pbobjc.m b/packages/sdk-objc/src/Cryptography.pbobjc.m index d35421d..f30f54c 100644 --- a/packages/sdk-objc/src/Cryptography.pbobjc.m +++ b/packages/sdk-objc/src/Cryptography.pbobjc.m @@ -8,15 +8,13 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers_RuntimeSupport.h" #endif -#import - -#import "Cryptography.pbobjc.h" -#import "Network.pbobjc.h" + #import "Cryptography.pbobjc.h" + #import "Network.pbobjc.h" // @@protoc_insertion_point(imports) #pragma clang diagnostic push @@ -48,7 +46,7 @@ @implementation CryptographyRoot #pragma mark - Enum SignatureType GPBEnumDescriptor *SignatureType_EnumDescriptor(void) { - static _Atomic(GPBEnumDescriptor*) descriptor = nil; + static GPBEnumDescriptor *descriptor = NULL; if (!descriptor) { static const char *valueNames = "SignatureTypeUnknown\000TransactionPublic\000T" @@ -68,8 +66,7 @@ @implementation CryptographyRoot values:values count:(uint32_t)(sizeof(values) / sizeof(int32_t)) enumVerifier:SignatureType_IsValidValue]; - GPBEnumDescriptor *expected = nil; - if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) { + if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) { [worker release]; } } @@ -93,7 +90,7 @@ BOOL SignatureType_IsValidValue(int32_t value__) { #pragma mark - Enum ErrorCode GPBEnumDescriptor *ErrorCode_EnumDescriptor(void) { - static _Atomic(GPBEnumDescriptor*) descriptor = nil; + static GPBEnumDescriptor *descriptor = NULL; if (!descriptor) { static const char *valueNames = "ErrorCodeUnknown\000InvalidSignature\000Invali" @@ -119,8 +116,7 @@ BOOL SignatureType_IsValidValue(int32_t value__) { values:values count:(uint32_t)(sizeof(values) / sizeof(int32_t)) enumVerifier:ErrorCode_IsValidValue]; - GPBEnumDescriptor *expected = nil; - if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) { + if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) { [worker release]; } } @@ -191,9 +187,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(Signature__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -247,9 +241,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SigningContext__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -349,9 +341,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SignatureBatch__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; diff --git a/packages/sdk-objc/src/Deltas.pbobjc.h b/packages/sdk-objc/src/Deltas.pbobjc.h index 7ab2c0e..ed8d815 100644 --- a/packages/sdk-objc/src/Deltas.pbobjc.h +++ b/packages/sdk-objc/src/Deltas.pbobjc.h @@ -8,7 +8,7 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers.h" #endif @@ -76,6 +76,7 @@ typedef GPB_ENUM(Delta_FieldNumber) { Delta_FieldNumber_CoinbaseEntriesArray = 7, Delta_FieldNumber_StateRoot = 8, Delta_FieldNumber_DeltaNumber = 9, + Delta_FieldNumber_GasUsed = 10, }; @interface Delta : GPBMessage @@ -111,6 +112,9 @@ typedef GPB_ENUM(Delta_FieldNumber) { /** the consecutive delta number */ @property(nonatomic, readwrite) int64_t deltaNumber; +/** the gas used in the delta */ +@property(nonatomic, readwrite) int64_t gasUsed; + @end NS_ASSUME_NONNULL_END diff --git a/packages/sdk-objc/src/Deltas.pbobjc.m b/packages/sdk-objc/src/Deltas.pbobjc.m index 7669131..de20f36 100644 --- a/packages/sdk-objc/src/Deltas.pbobjc.m +++ b/packages/sdk-objc/src/Deltas.pbobjc.m @@ -8,13 +8,19 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers_RuntimeSupport.h" #endif -#import "Deltas.pbobjc.h" -#import "Transaction.pbobjc.h" +#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS + #import +#else + #import "google/protobuf/Timestamp.pbobjc.h" +#endif + + #import "Deltas.pbobjc.h" + #import "Transaction.pbobjc.h" // @@protoc_insertion_point(imports) #pragma clang diagnostic push @@ -89,9 +95,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(DeltaIndex__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -112,6 +116,7 @@ @implementation Delta @dynamic coinbaseEntriesArray, coinbaseEntriesArray_Count; @dynamic stateRoot; @dynamic deltaNumber; +@dynamic gasUsed; typedef struct Delta__storage_ { uint32_t _has_storage_[1]; @@ -124,6 +129,7 @@ @implementation Delta NSMutableArray *coinbaseEntriesArray; NSData *stateRoot; int64_t deltaNumber; + int64_t gasUsed; } Delta__storage_; // This method is threadsafe because it is initially called @@ -213,6 +219,15 @@ + (GPBDescriptor *)descriptor { .flags = GPBFieldOptional, .dataType = GPBDataTypeInt64, }, + { + .name = "gasUsed", + .dataTypeSpecific.className = NULL, + .number = Delta_FieldNumber_GasUsed, + .hasIndex = 6, + .offset = (uint32_t)offsetof(Delta__storage_, gasUsed), + .flags = GPBFieldOptional, + .dataType = GPBDataTypeInt64, + }, }; GPBDescriptor *localDescriptor = [GPBDescriptor allocDescriptorForClass:[Delta class] @@ -222,9 +237,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(Delta__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; diff --git a/packages/sdk-objc/src/DfsMarketplace.pbobjc.h b/packages/sdk-objc/src/DfsMarketplace.pbobjc.h index d9d6d1d..a891977 100644 --- a/packages/sdk-objc/src/DfsMarketplace.pbobjc.h +++ b/packages/sdk-objc/src/DfsMarketplace.pbobjc.h @@ -8,7 +8,7 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers.h" #endif diff --git a/packages/sdk-objc/src/DfsMarketplace.pbobjc.m b/packages/sdk-objc/src/DfsMarketplace.pbobjc.m index 43f7f65..e1dfbf9 100644 --- a/packages/sdk-objc/src/DfsMarketplace.pbobjc.m +++ b/packages/sdk-objc/src/DfsMarketplace.pbobjc.m @@ -8,13 +8,13 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers_RuntimeSupport.h" #endif -#import "DfsMarketplace.pbobjc.h" -#import "Peer.pbobjc.h" + #import "DfsMarketplace.pbobjc.h" + #import "Peer.pbobjc.h" // @@protoc_insertion_point(imports) #pragma clang diagnostic push @@ -100,9 +100,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(BlockChallengeRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -156,9 +154,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(BlockChallengeResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -234,9 +230,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(BlockChallengeBroadcast__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; diff --git a/packages/sdk-objc/src/Ippn.pbobjc.h b/packages/sdk-objc/src/Ippn.pbobjc.h index 4e0b1ec..76e72a3 100644 --- a/packages/sdk-objc/src/Ippn.pbobjc.h +++ b/packages/sdk-objc/src/Ippn.pbobjc.h @@ -8,7 +8,7 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers.h" #endif @@ -89,15 +89,18 @@ typedef GPB_ENUM(PeerNeighborsResponse_FieldNumber) { #pragma mark - LatestDeltaHashResponse typedef GPB_ENUM(LatestDeltaHashResponse_FieldNumber) { - LatestDeltaHashResponse_FieldNumber_Result = 1, + LatestDeltaHashResponse_FieldNumber_IsSync = 1, + LatestDeltaHashResponse_FieldNumber_DeltaIndex = 2, }; @interface LatestDeltaHashResponse : GPBMessage +@property(nonatomic, readwrite) BOOL isSync; + /** K given del */ -@property(nonatomic, readwrite, strong, null_resettable) DeltaIndex *result; -/** Test to see if @c result has been set. */ -@property(nonatomic, readwrite) BOOL hasResult; +@property(nonatomic, readwrite, strong, null_resettable) DeltaIndex *deltaIndex; +/** Test to see if @c deltaIndex has been set. */ +@property(nonatomic, readwrite) BOOL hasDeltaIndex; @end @@ -121,15 +124,15 @@ typedef GPB_ENUM(DeltaHistoryRequest_FieldNumber) { #pragma mark - DeltaHistoryResponse typedef GPB_ENUM(DeltaHistoryResponse_FieldNumber) { - DeltaHistoryResponse_FieldNumber_ResultArray = 1, + DeltaHistoryResponse_FieldNumber_DeltaIndexArray = 1, }; @interface DeltaHistoryResponse : GPBMessage /** K given del */ -@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *resultArray; -/** The number of items in @c resultArray without causing the array to be created. */ -@property(nonatomic, readonly) NSUInteger resultArray_Count; +@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *deltaIndexArray; +/** The number of items in @c deltaIndexArray without causing the array to be created. */ +@property(nonatomic, readonly) NSUInteger deltaIndexArray_Count; @end diff --git a/packages/sdk-objc/src/Ippn.pbobjc.m b/packages/sdk-objc/src/Ippn.pbobjc.m index fa8b1a0..876d074 100644 --- a/packages/sdk-objc/src/Ippn.pbobjc.m +++ b/packages/sdk-objc/src/Ippn.pbobjc.m @@ -8,14 +8,14 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers_RuntimeSupport.h" #endif -#import "Ippn.pbobjc.h" -#import "Peer.pbobjc.h" -#import "Deltas.pbobjc.h" + #import "Ippn.pbobjc.h" + #import "Peer.pbobjc.h" + #import "Deltas.pbobjc.h" // @@protoc_insertion_point(imports) #pragma clang diagnostic push @@ -66,9 +66,7 @@ + (GPBDescriptor *)descriptor { fieldCount:0 storageSize:sizeof(PeerNeighborsRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -111,9 +109,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(PeerNeighborsResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -143,9 +139,7 @@ + (GPBDescriptor *)descriptor { fieldCount:0 storageSize:sizeof(PingRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -175,9 +169,7 @@ + (GPBDescriptor *)descriptor { fieldCount:0 storageSize:sizeof(PingResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -207,9 +199,7 @@ + (GPBDescriptor *)descriptor { fieldCount:0 storageSize:sizeof(LatestDeltaHashRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -221,11 +211,12 @@ + (GPBDescriptor *)descriptor { @implementation LatestDeltaHashResponse -@dynamic hasResult, result; +@dynamic isSync; +@dynamic hasDeltaIndex, deltaIndex; typedef struct LatestDeltaHashResponse__storage_ { uint32_t _has_storage_[1]; - DeltaIndex *result; + DeltaIndex *deltaIndex; } LatestDeltaHashResponse__storage_; // This method is threadsafe because it is initially called @@ -235,12 +226,21 @@ + (GPBDescriptor *)descriptor { if (!descriptor) { static GPBMessageFieldDescription fields[] = { { - .name = "result", - .dataTypeSpecific.className = GPBStringifySymbol(DeltaIndex), - .number = LatestDeltaHashResponse_FieldNumber_Result, + .name = "isSync", + .dataTypeSpecific.className = NULL, + .number = LatestDeltaHashResponse_FieldNumber_IsSync, .hasIndex = 0, - .offset = (uint32_t)offsetof(LatestDeltaHashResponse__storage_, result), - .flags = GPBFieldOptional, + .offset = 1, // Stored in _has_storage_ to save space. + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom), + .dataType = GPBDataTypeBool, + }, + { + .name = "deltaIndex", + .dataTypeSpecific.className = GPBStringifySymbol(DeltaIndex), + .number = LatestDeltaHashResponse_FieldNumber_DeltaIndex, + .hasIndex = 2, + .offset = (uint32_t)offsetof(LatestDeltaHashResponse__storage_, deltaIndex), + .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldTextFormatNameCustom), .dataType = GPBDataTypeMessage, }, }; @@ -252,9 +252,12 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(LatestDeltaHashResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG +#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS + static const char *extraTextFormatInfo = + "\002\001\006\000\002\n\000"; + [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; +#endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -308,9 +311,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(DeltaHistoryRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -322,11 +323,11 @@ + (GPBDescriptor *)descriptor { @implementation DeltaHistoryResponse -@dynamic resultArray, resultArray_Count; +@dynamic deltaIndexArray, deltaIndexArray_Count; typedef struct DeltaHistoryResponse__storage_ { uint32_t _has_storage_[1]; - NSMutableArray *resultArray; + NSMutableArray *deltaIndexArray; } DeltaHistoryResponse__storage_; // This method is threadsafe because it is initially called @@ -336,12 +337,12 @@ + (GPBDescriptor *)descriptor { if (!descriptor) { static GPBMessageFieldDescription fields[] = { { - .name = "resultArray", + .name = "deltaIndexArray", .dataTypeSpecific.className = GPBStringifySymbol(DeltaIndex), - .number = DeltaHistoryResponse_FieldNumber_ResultArray, + .number = DeltaHistoryResponse_FieldNumber_DeltaIndexArray, .hasIndex = GPBNoHasBit, - .offset = (uint32_t)offsetof(DeltaHistoryResponse__storage_, resultArray), - .flags = GPBFieldRepeated, + .offset = (uint32_t)offsetof(DeltaHistoryResponse__storage_, deltaIndexArray), + .flags = (GPBFieldFlags)(GPBFieldRepeated | GPBFieldTextFormatNameCustom), .dataType = GPBDataTypeMessage, }, }; @@ -353,9 +354,12 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(DeltaHistoryResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG +#if !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS + static const char *extraTextFormatInfo = + "\001\001\000deltaIndex\000"; + [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; +#endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; diff --git a/packages/sdk-objc/src/Network.pbobjc.h b/packages/sdk-objc/src/Network.pbobjc.h index 77cbcc3..67ee987 100644 --- a/packages/sdk-objc/src/Network.pbobjc.h +++ b/packages/sdk-objc/src/Network.pbobjc.h @@ -8,7 +8,7 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers.h" #endif diff --git a/packages/sdk-objc/src/Network.pbobjc.m b/packages/sdk-objc/src/Network.pbobjc.m index 5a149a8..28e5f42 100644 --- a/packages/sdk-objc/src/Network.pbobjc.m +++ b/packages/sdk-objc/src/Network.pbobjc.m @@ -8,14 +8,12 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers_RuntimeSupport.h" #endif -#import - -#import "Network.pbobjc.h" + #import "Network.pbobjc.h" // @@protoc_insertion_point(imports) #pragma clang diagnostic push @@ -33,7 +31,7 @@ @implementation NetworkRoot #pragma mark - Enum NetworkType GPBEnumDescriptor *NetworkType_EnumDescriptor(void) { - static _Atomic(GPBEnumDescriptor*) descriptor = nil; + static GPBEnumDescriptor *descriptor = NULL; if (!descriptor) { static const char *valueNames = "NetworkTypeUnknown\000Mainnet\000Devnet\000Testne" @@ -50,8 +48,7 @@ @implementation NetworkRoot values:values count:(uint32_t)(sizeof(values) / sizeof(int32_t)) enumVerifier:NetworkType_IsValidValue]; - GPBEnumDescriptor *expected = nil; - if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) { + if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) { [worker release]; } } diff --git a/packages/sdk-objc/src/Peer.pbobjc.h b/packages/sdk-objc/src/Peer.pbobjc.h index df71d93..99410b9 100644 --- a/packages/sdk-objc/src/Peer.pbobjc.h +++ b/packages/sdk-objc/src/Peer.pbobjc.h @@ -8,7 +8,7 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers.h" #endif diff --git a/packages/sdk-objc/src/Peer.pbobjc.m b/packages/sdk-objc/src/Peer.pbobjc.m index 941fe3e..44016d1 100644 --- a/packages/sdk-objc/src/Peer.pbobjc.m +++ b/packages/sdk-objc/src/Peer.pbobjc.m @@ -8,12 +8,20 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers_RuntimeSupport.h" #endif -#import "Peer.pbobjc.h" +#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS + #import + #import +#else + #import "google/protobuf/Timestamp.pbobjc.h" + #import "google/protobuf/Duration.pbobjc.h" +#endif + + #import "Peer.pbobjc.h" // @@protoc_insertion_point(imports) #pragma clang diagnostic push @@ -99,9 +107,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(PeerId__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -219,9 +225,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(PeerInfo__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; diff --git a/packages/sdk-objc/src/Rpc.pbobjc.h b/packages/sdk-objc/src/Rpc.pbobjc.h index 6299461..555dd04 100644 --- a/packages/sdk-objc/src/Rpc.pbobjc.h +++ b/packages/sdk-objc/src/Rpc.pbobjc.h @@ -8,7 +8,7 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers.h" #endif diff --git a/packages/sdk-objc/src/Rpc.pbobjc.m b/packages/sdk-objc/src/Rpc.pbobjc.m index e4595e5..886ee9c 100644 --- a/packages/sdk-objc/src/Rpc.pbobjc.m +++ b/packages/sdk-objc/src/Rpc.pbobjc.m @@ -8,19 +8,17 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers_RuntimeSupport.h" #endif -#import - -#import "Rpc.pbobjc.h" -#import "Peer.pbobjc.h" -#import "Cryptography.pbobjc.h" -#import "Deltas.pbobjc.h" -#import "Wire.pbobjc.h" -#import "Transaction.pbobjc.h" + #import "Rpc.pbobjc.h" + #import "Peer.pbobjc.h" + #import "Cryptography.pbobjc.h" + #import "Deltas.pbobjc.h" + #import "Wire.pbobjc.h" + #import "Transaction.pbobjc.h" // @@protoc_insertion_point(imports) #pragma clang diagnostic push @@ -52,7 +50,7 @@ @implementation RpcRoot #pragma mark - Enum ResponseCode GPBEnumDescriptor *ResponseCode_EnumDescriptor(void) { - static _Atomic(GPBEnumDescriptor*) descriptor = nil; + static GPBEnumDescriptor *descriptor = NULL; if (!descriptor) { static const char *valueNames = "Pending\000Successful\000Error\000Finished\000Expire" @@ -72,8 +70,7 @@ @implementation RpcRoot values:values count:(uint32_t)(sizeof(values) / sizeof(int32_t)) enumVerifier:ResponseCode_IsValidValue]; - GPBEnumDescriptor *expected = nil; - if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) { + if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) { [worker release]; } } @@ -129,9 +126,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(VersionRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -174,9 +169,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(VersionResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -218,9 +211,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetInfoRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -263,9 +254,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetInfoResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -307,9 +296,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(CreateWalletRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -352,9 +339,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(CreateWalletResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -396,9 +381,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(ListWalletRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -441,9 +424,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(ListWalletResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -485,9 +466,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(CreateAddressRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -530,9 +509,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(CreateAddressResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -574,9 +551,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetAddressRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -619,9 +594,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetAddressResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -663,9 +636,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(ListAddressRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -708,9 +679,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(ListAddressResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -752,9 +721,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(ValidateAddressRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -797,9 +764,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(ValidateAddressResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -841,9 +806,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetBalanceRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -886,9 +849,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetBalanceResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -930,9 +891,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(CreateRawTransactionRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -975,9 +934,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(CreateRawTransactionResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1019,9 +976,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SignRawTransactionRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1064,9 +1019,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SignRawTransactionResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1108,9 +1061,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(DecodeRawTransactionRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1153,9 +1104,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(DecodeRawTransactionResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1198,9 +1147,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(BroadcastRawTransactionRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1243,9 +1190,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(BroadcastRawTransactionResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1299,9 +1244,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SendToRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1344,9 +1287,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SendToResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1388,9 +1329,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SendToFromRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1433,9 +1372,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SendToFromResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1477,9 +1414,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SendManyRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1522,9 +1457,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SendManyResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1566,9 +1499,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SendFromManyRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1611,9 +1542,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SendFromManyResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1655,9 +1584,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(AddNodeRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1700,9 +1627,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(AddNodeResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1732,9 +1657,7 @@ + (GPBDescriptor *)descriptor { fieldCount:0 storageSize:sizeof(GetPeerListRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1777,9 +1700,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetPeerListResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1833,9 +1754,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetPeerReputationRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1878,9 +1797,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetPeerReputationResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -1944,9 +1861,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SetPeerBlackListRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2010,9 +1925,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SetPeerBlackListResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2066,9 +1979,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetPeerInfoRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2111,9 +2022,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetPeerInfoResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2155,9 +2064,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetConnectionCountRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2200,9 +2107,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetConnectionCountResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2245,9 +2150,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetDeltaRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2290,9 +2193,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetDeltaResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2334,9 +2235,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetMempoolRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2379,9 +2278,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetMempoolResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2446,9 +2343,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SignMessageRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2513,9 +2408,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SignMessageResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2591,9 +2484,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(VerifyMessageRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2635,9 +2526,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(VerifyMessageResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2679,9 +2568,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(ServiceStatusRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2724,9 +2611,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(ServiceStatusResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2791,9 +2676,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(AddFileToDfsRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2847,9 +2730,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(AddFileToDfsResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2914,9 +2795,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(TransferFileBytesRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -2959,9 +2838,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(TransferFileBytesResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -3015,9 +2892,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(RemovePeerRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -3060,9 +2935,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(RemovePeerResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -3092,9 +2965,7 @@ + (GPBDescriptor *)descriptor { fieldCount:0 storageSize:sizeof(GetPeerCountRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -3137,9 +3008,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetPeerCountResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -3182,9 +3051,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetFileFromDfsRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -3238,9 +3105,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(GetFileFromDfsResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -3283,9 +3148,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SetPeerDataFolderRequest__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -3327,9 +3190,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(SetPeerDataFolderResponse__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; diff --git a/packages/sdk-objc/src/Transaction.pbobjc.h b/packages/sdk-objc/src/Transaction.pbobjc.h index ec090a7..13a7d05 100644 --- a/packages/sdk-objc/src/Transaction.pbobjc.h +++ b/packages/sdk-objc/src/Transaction.pbobjc.h @@ -8,7 +8,7 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers.h" #endif @@ -27,7 +27,6 @@ CF_EXTERN_C_BEGIN -@class GPBTimestamp; @class RangeProof; @class Signature; @@ -82,11 +81,10 @@ typedef GPB_ENUM(PublicEntry_FieldNumber) { PublicEntry_FieldNumber_SenderAddress = 2, PublicEntry_FieldNumber_Amount = 3, PublicEntry_FieldNumber_Data_p = 4, - PublicEntry_FieldNumber_Timestamp = 5, - PublicEntry_FieldNumber_GasPrice = 6, - PublicEntry_FieldNumber_GasLimit = 7, - PublicEntry_FieldNumber_Nonce = 9, - PublicEntry_FieldNumber_Signature = 10, + PublicEntry_FieldNumber_GasPrice = 5, + PublicEntry_FieldNumber_GasLimit = 6, + PublicEntry_FieldNumber_Nonce = 7, + PublicEntry_FieldNumber_Signature = 8, }; @interface PublicEntry : GPBMessage @@ -103,10 +101,6 @@ typedef GPB_ENUM(PublicEntry_FieldNumber) { /** Smart contract data. */ @property(nonatomic, readwrite, copy, null_resettable) NSData *data_p; -@property(nonatomic, readwrite, strong, null_resettable) GPBTimestamp *timestamp; -/** Test to see if @c timestamp has been set. */ -@property(nonatomic, readwrite) BOOL hasTimestamp; - @property(nonatomic, readwrite, copy, null_resettable) NSData *gasPrice; @property(nonatomic, readwrite) uint64_t gasLimit; diff --git a/packages/sdk-objc/src/Transaction.pbobjc.m b/packages/sdk-objc/src/Transaction.pbobjc.m index 69fe260..21a0f9d 100644 --- a/packages/sdk-objc/src/Transaction.pbobjc.m +++ b/packages/sdk-objc/src/Transaction.pbobjc.m @@ -8,15 +8,13 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers_RuntimeSupport.h" #endif -#import - -#import "Transaction.pbobjc.h" -#import "Cryptography.pbobjc.h" + #import "Transaction.pbobjc.h" + #import "Cryptography.pbobjc.h" // @@protoc_insertion_point(imports) #pragma clang diagnostic push @@ -48,7 +46,7 @@ @implementation TransactionRoot #pragma mark - Enum TransactionType GPBEnumDescriptor *TransactionType_EnumDescriptor(void) { - static _Atomic(GPBEnumDescriptor*) descriptor = nil; + static GPBEnumDescriptor *descriptor = NULL; if (!descriptor) { static const char *valueNames = "TransactionTypeUnknown\000Public\000Confidenti" @@ -64,8 +62,7 @@ @implementation TransactionRoot values:values count:(uint32_t)(sizeof(values) / sizeof(int32_t)) enumVerifier:TransactionType_IsValidValue]; - GPBEnumDescriptor *expected = nil; - if (!atomic_compare_exchange_strong(&descriptor, &expected, worker)) { + if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) { [worker release]; } } @@ -91,7 +88,6 @@ @implementation PublicEntry @dynamic senderAddress; @dynamic amount; @dynamic data_p; -@dynamic hasTimestamp, timestamp; @dynamic gasPrice; @dynamic gasLimit; @dynamic nonce; @@ -103,7 +99,6 @@ @implementation PublicEntry NSData *senderAddress; NSData *amount; NSData *data_p; - GPBTimestamp *timestamp; NSData *gasPrice; Signature *signature; uint64_t gasLimit; @@ -152,20 +147,11 @@ + (GPBDescriptor *)descriptor { .flags = GPBFieldOptional, .dataType = GPBDataTypeBytes, }, - { - .name = "timestamp", - .dataTypeSpecific.className = GPBStringifySymbol(GPBTimestamp), - .number = PublicEntry_FieldNumber_Timestamp, - .hasIndex = 4, - .offset = (uint32_t)offsetof(PublicEntry__storage_, timestamp), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, { .name = "gasPrice", .dataTypeSpecific.className = NULL, .number = PublicEntry_FieldNumber_GasPrice, - .hasIndex = 5, + .hasIndex = 4, .offset = (uint32_t)offsetof(PublicEntry__storage_, gasPrice), .flags = GPBFieldOptional, .dataType = GPBDataTypeBytes, @@ -174,7 +160,7 @@ + (GPBDescriptor *)descriptor { .name = "gasLimit", .dataTypeSpecific.className = NULL, .number = PublicEntry_FieldNumber_GasLimit, - .hasIndex = 6, + .hasIndex = 5, .offset = (uint32_t)offsetof(PublicEntry__storage_, gasLimit), .flags = GPBFieldOptional, .dataType = GPBDataTypeUInt64, @@ -183,7 +169,7 @@ + (GPBDescriptor *)descriptor { .name = "nonce", .dataTypeSpecific.className = NULL, .number = PublicEntry_FieldNumber_Nonce, - .hasIndex = 7, + .hasIndex = 6, .offset = (uint32_t)offsetof(PublicEntry__storage_, nonce), .flags = GPBFieldOptional, .dataType = GPBDataTypeUInt64, @@ -192,7 +178,7 @@ + (GPBDescriptor *)descriptor { .name = "signature", .dataTypeSpecific.className = GPBStringifySymbol(Signature), .number = PublicEntry_FieldNumber_Signature, - .hasIndex = 8, + .hasIndex = 7, .offset = (uint32_t)offsetof(PublicEntry__storage_, signature), .flags = GPBFieldOptional, .dataType = GPBDataTypeMessage, @@ -206,9 +192,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(PublicEntry__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -306,9 +290,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(ConfidentialEntry__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -362,9 +344,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(CoinbaseEntry__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -533,9 +513,7 @@ + (GPBDescriptor *)descriptor { "\002\n\001\245\201\000\013\001\245\201\000"; [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; diff --git a/packages/sdk-objc/src/Wire.pbobjc.h b/packages/sdk-objc/src/Wire.pbobjc.h index c70b17a..4979f31 100644 --- a/packages/sdk-objc/src/Wire.pbobjc.h +++ b/packages/sdk-objc/src/Wire.pbobjc.h @@ -8,7 +8,7 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers.h" #endif diff --git a/packages/sdk-objc/src/Wire.pbobjc.m b/packages/sdk-objc/src/Wire.pbobjc.m index 52c6e82..7387833 100644 --- a/packages/sdk-objc/src/Wire.pbobjc.m +++ b/packages/sdk-objc/src/Wire.pbobjc.m @@ -8,15 +8,21 @@ #endif #if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS - #import + #import #else #import "GPBProtocolBuffers_RuntimeSupport.h" #endif -#import "Wire.pbobjc.h" -#import "Cryptography.pbobjc.h" -#import "Peer.pbobjc.h" -#import "Transaction.pbobjc.h" +#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS + #import +#else + #import "google/protobuf/Timestamp.pbobjc.h" +#endif + + #import "Wire.pbobjc.h" + #import "Cryptography.pbobjc.h" + #import "Peer.pbobjc.h" + #import "Transaction.pbobjc.h" // @@protoc_insertion_point(imports) #pragma clang diagnostic push @@ -113,9 +119,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(ProtocolErrorMessage__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -207,9 +211,7 @@ + (GPBDescriptor *)descriptor { "\001\003\004\241!!\000"; [localDescriptor setupExtraTextInfo:extraTextFormatInfo]; #endif // !GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -252,9 +254,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(TransactionBroadcast__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -319,9 +319,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(CandidateDeltaBroadcast__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -375,9 +373,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(FavouriteDeltaBroadcast__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; @@ -431,9 +427,7 @@ + (GPBDescriptor *)descriptor { fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) storageSize:sizeof(DeltaDfsHashBroadcast__storage_) flags:GPBDescriptorInitializationFlag_None]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG + NSAssert(descriptor == nil, @"Startup recursed!"); descriptor = localDescriptor; } return descriptor; diff --git a/packages/sdk-php/src/Catalyst/Protocol/Account/AccountType.php b/packages/sdk-php/src/Catalyst/Protocol/Account/AccountType.php index 7c6191a..4eacc09 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Account/AccountType.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Account/AccountType.php @@ -4,65 +4,46 @@ namespace Catalyst\Protocol\Account; -use UnexpectedValueException; - /** + *
  * We need to leave the 3 first bits for the NetworkType and can use the rest for the AccountType
+ * 
* - * Protobuf type Catalyst.Protocol.Account.AccountType + * Protobuf enum Catalyst.Protocol.Account.AccountType */ class AccountType { /** + *
      * Un-known account type.
+     * 
* - * Generated from protobuf enum ACCOUNT_TYPE_UNKNOWN = 0; + * ACCOUNT_TYPE_UNKNOWN = 0; */ const ACCOUNT_TYPE_UNKNOWN = 0; /** + *
      * Public account type.
+     * 
* - * Generated from protobuf enum PUBLIC_ACCOUNT = 8; + * PUBLIC_ACCOUNT = 8; */ const PUBLIC_ACCOUNT = 8; /** + *
      * Confidential account type.
+     * 
* - * Generated from protobuf enum CONFIDENTIAL_ACCOUNT = 16; + * CONFIDENTIAL_ACCOUNT = 16; */ const CONFIDENTIAL_ACCOUNT = 16; /** + *
      * Smart contract account type {TO BE DEPRECATED}. 
+     * 
* - * Generated from protobuf enum SMART_CONTRACT_ACCOUNT = 24; + * SMART_CONTRACT_ACCOUNT = 24; */ const SMART_CONTRACT_ACCOUNT = 24; - - private static $valueToName = [ - self::ACCOUNT_TYPE_UNKNOWN => 'ACCOUNT_TYPE_UNKNOWN', - self::PUBLIC_ACCOUNT => 'PUBLIC_ACCOUNT', - self::CONFIDENTIAL_ACCOUNT => 'CONFIDENTIAL_ACCOUNT', - self::SMART_CONTRACT_ACCOUNT => 'SMART_CONTRACT_ACCOUNT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Account/Address.php b/packages/sdk-php/src/Catalyst/Protocol/Account/Address.php index b974fd7..45c9321 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Account/Address.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Account/Address.php @@ -9,53 +9,46 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Account.Address + * Protobuf type Catalyst.Protocol.Account.Address */ class Address extends \Google\Protobuf\Internal\Message { /** + *
      * bit signalling the network type
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Network.NetworkType network_type = 1; + * .Catalyst.Protocol.Network.NetworkType network_type = 1; */ - protected $network_type = 0; + private $network_type = 0; /** + *
      * bit signalling the type of account
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Account.AccountType account_type = 2; + * .Catalyst.Protocol.Account.AccountType account_type = 2; */ - protected $account_type = 0; + private $account_type = 0; /** + *
      * multihash of the public key
+     * 
* - * Generated from protobuf field bytes public_key_hash = 3; + * bytes public_key_hash = 3; */ - protected $public_key_hash = ''; + private $public_key_hash = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $network_type - * bit signalling the network type - * @type int $account_type - * bit signalling the type of account - * @type string $public_key_hash - * multihash of the public key - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Account::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * bit signalling the network type
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return int + * .Catalyst.Protocol.Network.NetworkType network_type = 1; */ public function getNetworkType() { @@ -63,25 +56,24 @@ public function getNetworkType() } /** + *
      * bit signalling the network type
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @param int $var - * @return $this + * .Catalyst.Protocol.Network.NetworkType network_type = 1; */ public function setNetworkType($var) { GPBUtil::checkEnum($var, \Catalyst\Protocol\Network\NetworkType::class); $this->network_type = $var; - - return $this; } /** + *
      * bit signalling the type of account
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Account.AccountType account_type = 2; - * @return int + * .Catalyst.Protocol.Account.AccountType account_type = 2; */ public function getAccountType() { @@ -89,25 +81,24 @@ public function getAccountType() } /** + *
      * bit signalling the type of account
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Account.AccountType account_type = 2; - * @param int $var - * @return $this + * .Catalyst.Protocol.Account.AccountType account_type = 2; */ public function setAccountType($var) { GPBUtil::checkEnum($var, \Catalyst\Protocol\Account\AccountType::class); $this->account_type = $var; - - return $this; } /** + *
      * multihash of the public key
+     * 
* - * Generated from protobuf field bytes public_key_hash = 3; - * @return string + * bytes public_key_hash = 3; */ public function getPublicKeyHash() { @@ -115,18 +106,16 @@ public function getPublicKeyHash() } /** + *
      * multihash of the public key
+     * 
* - * Generated from protobuf field bytes public_key_hash = 3; - * @param string $var - * @return $this + * bytes public_key_hash = 3; */ public function setPublicKeyHash($var) { GPBUtil::checkString($var, False); $this->public_key_hash = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Cryptography/ErrorCode.php b/packages/sdk-php/src/Catalyst/Protocol/Cryptography/ErrorCode.php index 067dcca..72f2454 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Cryptography/ErrorCode.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Cryptography/ErrorCode.php @@ -4,105 +4,90 @@ namespace Catalyst\Protocol\Cryptography; -use UnexpectedValueException; - /** - * Protobuf type Catalyst.Protocol.Cryptography.ErrorCode + * Protobuf enum Catalyst.Protocol.Cryptography.ErrorCode */ class ErrorCode { /** + *
      * Unknown error.
+     * 
* - * Generated from protobuf enum ERROR_CODE_UNKNOWN = 0; + * ERROR_CODE_UNKNOWN = 0; */ const ERROR_CODE_UNKNOWN = 0; /** + *
      * Signature is of incorrect length or does not correspond to a valid point.
+     * 
* - * Generated from protobuf enum INVALID_SIGNATURE = 1; + * INVALID_SIGNATURE = 1; */ const INVALID_SIGNATURE = 1; /** + *
      * Public key is of incorrect length or cannot be decompressed to a valid point.
+     * 
* - * Generated from protobuf enum INVALID_PUBLIC_KEY = 2; + * INVALID_PUBLIC_KEY = 2; */ const INVALID_PUBLIC_KEY = 2; /** + *
      * Private key is of incorrect length.
+     * 
* - * Generated from protobuf enum INVALID_PRIVATE_KEY = 3; + * INVALID_PRIVATE_KEY = 3; */ const INVALID_PRIVATE_KEY = 3; /** + *
      * Signature cannot be verified against the provided information.
+     * 
* - * Generated from protobuf enum SIGNATURE_VERIFICATION_FAILURE = 4; + * SIGNATURE_VERIFICATION_FAILURE = 4; */ const SIGNATURE_VERIFICATION_FAILURE = 4; /** + *
      * Context exceed the maximum allowed length.
+     * 
* - * Generated from protobuf enum INVALID_CONTEXT_LENGTH = 5; + * INVALID_CONTEXT_LENGTH = 5; */ const INVALID_CONTEXT_LENGTH = 5; /** + *
      * Unable to convert message to valid data. 
+     * 
* - * Generated from protobuf enum INVALID_BATCH_MESSAGE = 6; + * INVALID_BATCH_MESSAGE = 6; */ const INVALID_BATCH_MESSAGE = 6; /** + *
      * Cannot perform batch verification as an unequal number of messages/signatures/keys were provided.
+     * 
* - * Generated from protobuf enum ARRAYS_NOT_EQUAL_LENGTH = 7; + * ARRAYS_NOT_EQUAL_LENGTH = 7; */ const ARRAYS_NOT_EQUAL_LENGTH = 7; /** + *
      * One or more signatures cannot be verified.
+     * 
* - * Generated from protobuf enum BATCH_VERIFICATION_FAILURE = 8; + * BATCH_VERIFICATION_FAILURE = 8; */ const BATCH_VERIFICATION_FAILURE = 8; /** + *
      * No error (just a teapot).
+     * 
* - * Generated from protobuf enum NO_ERROR = 418; + * NO_ERROR = 418; */ const NO_ERROR = 418; - - private static $valueToName = [ - self::ERROR_CODE_UNKNOWN => 'ERROR_CODE_UNKNOWN', - self::INVALID_SIGNATURE => 'INVALID_SIGNATURE', - self::INVALID_PUBLIC_KEY => 'INVALID_PUBLIC_KEY', - self::INVALID_PRIVATE_KEY => 'INVALID_PRIVATE_KEY', - self::SIGNATURE_VERIFICATION_FAILURE => 'SIGNATURE_VERIFICATION_FAILURE', - self::INVALID_CONTEXT_LENGTH => 'INVALID_CONTEXT_LENGTH', - self::INVALID_BATCH_MESSAGE => 'INVALID_BATCH_MESSAGE', - self::ARRAYS_NOT_EQUAL_LENGTH => 'ARRAYS_NOT_EQUAL_LENGTH', - self::BATCH_VERIFICATION_FAILURE => 'BATCH_VERIFICATION_FAILURE', - self::NO_ERROR => 'NO_ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Cryptography/Signature.php b/packages/sdk-php/src/Catalyst/Protocol/Cryptography/Signature.php index 8ef19e5..a72a405 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Cryptography/Signature.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Cryptography/Signature.php @@ -9,45 +9,38 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Cryptography.Signature + * Protobuf type Catalyst.Protocol.Cryptography.Signature */ class Signature extends \Google\Protobuf\Internal\Message { /** + *
      * system domain context.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; + * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; */ - protected $signing_context = null; + private $signing_context = null; /** + *
      * signature digest.
+     * 
* - * Generated from protobuf field bytes raw_bytes = 2; + * bytes raw_bytes = 2; */ - protected $raw_bytes = ''; + private $raw_bytes = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Cryptography\SigningContext $signing_context - * system domain context. - * @type string $raw_bytes - * signature digest. - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Cryptography::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * system domain context.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; - * @return \Catalyst\Protocol\Cryptography\SigningContext + * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; */ public function getSigningContext() { @@ -55,25 +48,24 @@ public function getSigningContext() } /** + *
      * system domain context.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; - * @param \Catalyst\Protocol\Cryptography\SigningContext $var - * @return $this + * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 1; */ - public function setSigningContext($var) + public function setSigningContext(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Cryptography\SigningContext::class); $this->signing_context = $var; - - return $this; } /** + *
      * signature digest.
+     * 
* - * Generated from protobuf field bytes raw_bytes = 2; - * @return string + * bytes raw_bytes = 2; */ public function getRawBytes() { @@ -81,18 +73,16 @@ public function getRawBytes() } /** + *
      * signature digest.
+     * 
* - * Generated from protobuf field bytes raw_bytes = 2; - * @param string $var - * @return $this + * bytes raw_bytes = 2; */ public function setRawBytes($var) { GPBUtil::checkString($var, False); $this->raw_bytes = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Cryptography/SignatureBatch.php b/packages/sdk-php/src/Catalyst/Protocol/Cryptography/SignatureBatch.php index c3c95eb..0e736d5 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Cryptography/SignatureBatch.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Cryptography/SignatureBatch.php @@ -9,49 +9,38 @@ use Google\Protobuf\Internal\GPBUtil; /** + *
  *Holds data for batch verification of signatures.
+ * 
* - * Generated from protobuf message Catalyst.Protocol.Cryptography.SignatureBatch + * Protobuf type Catalyst.Protocol.Cryptography.SignatureBatch */ class SignatureBatch extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field repeated bytes signatures = 1; + * repeated bytes signatures = 1; */ private $signatures; /** - * Generated from protobuf field repeated bytes public_keys = 2; + * repeated bytes public_keys = 2; */ private $public_keys; /** - * Generated from protobuf field repeated bytes messages = 3; + * repeated bytes messages = 3; */ private $messages; /** - * Generated from protobuf field bytes context = 4; + * bytes context = 4; */ - protected $context = ''; + private $context = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $signatures - * @type string[]|\Google\Protobuf\Internal\RepeatedField $public_keys - * @type string[]|\Google\Protobuf\Internal\RepeatedField $messages - * @type string $context - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Cryptography::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field repeated bytes signatures = 1; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated bytes signatures = 1; */ public function getSignatures() { @@ -59,21 +48,16 @@ public function getSignatures() } /** - * Generated from protobuf field repeated bytes signatures = 1; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated bytes signatures = 1; */ - public function setSignatures($var) + public function setSignatures(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->signatures = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); + $this->signatures = $var; } /** - * Generated from protobuf field repeated bytes public_keys = 2; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated bytes public_keys = 2; */ public function getPublicKeys() { @@ -81,21 +65,16 @@ public function getPublicKeys() } /** - * Generated from protobuf field repeated bytes public_keys = 2; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated bytes public_keys = 2; */ - public function setPublicKeys($var) + public function setPublicKeys(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->public_keys = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); + $this->public_keys = $var; } /** - * Generated from protobuf field repeated bytes messages = 3; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated bytes messages = 3; */ public function getMessages() { @@ -103,21 +82,16 @@ public function getMessages() } /** - * Generated from protobuf field repeated bytes messages = 3; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated bytes messages = 3; */ - public function setMessages($var) + public function setMessages(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->messages = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); + $this->messages = $var; } /** - * Generated from protobuf field bytes context = 4; - * @return string + * bytes context = 4; */ public function getContext() { @@ -125,16 +99,12 @@ public function getContext() } /** - * Generated from protobuf field bytes context = 4; - * @param string $var - * @return $this + * bytes context = 4; */ public function setContext($var) { GPBUtil::checkString($var, False); $this->context = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Cryptography/SignatureType.php b/packages/sdk-php/src/Catalyst/Protocol/Cryptography/SignatureType.php index 57c017d..89e9f7f 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Cryptography/SignatureType.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Cryptography/SignatureType.php @@ -4,79 +4,62 @@ namespace Catalyst\Protocol\Cryptography; -use UnexpectedValueException; - /** + *
  * Represents domains of a node.
+ * 
* - * Protobuf type Catalyst.Protocol.Cryptography.SignatureType + * Protobuf enum Catalyst.Protocol.Cryptography.SignatureType */ class SignatureType { /** + *
      * Unknown signature.
+     * 
* - * Generated from protobuf enum SIGNATURE_TYPE_UNKNOWN = 0; + * SIGNATURE_TYPE_UNKNOWN = 0; */ const SIGNATURE_TYPE_UNKNOWN = 0; /** + *
      * Signatures for public transactions.
+     * 
* - * Generated from protobuf enum TRANSACTION_PUBLIC = 1; + * TRANSACTION_PUBLIC = 1; */ const TRANSACTION_PUBLIC = 1; /** + *
      * Signatures for confidential transactions.
+     * 
* - * Generated from protobuf enum TRANSACTION_CONFIDENTIAL = 2; + * TRANSACTION_CONFIDENTIAL = 2; */ const TRANSACTION_CONFIDENTIAL = 2; /** + *
      * Signatures for rpc messages.
+     * 
* - * Generated from protobuf enum PROTOCOL_RPC = 3; + * PROTOCOL_RPC = 3; */ const PROTOCOL_RPC = 3; /** + *
      * Signatures for peer protocol messages.
+     * 
* - * Generated from protobuf enum PROTOCOL_PEER = 4; + * PROTOCOL_PEER = 4; */ const PROTOCOL_PEER = 4; /** + *
      * Signatures for messages in the wen3 provider.
+     * 
* - * Generated from protobuf enum WEB3_MESSAGE = 5; + * WEB3_MESSAGE = 5; */ const WEB3_MESSAGE = 5; - - private static $valueToName = [ - self::SIGNATURE_TYPE_UNKNOWN => 'SIGNATURE_TYPE_UNKNOWN', - self::TRANSACTION_PUBLIC => 'TRANSACTION_PUBLIC', - self::TRANSACTION_CONFIDENTIAL => 'TRANSACTION_CONFIDENTIAL', - self::PROTOCOL_RPC => 'PROTOCOL_RPC', - self::PROTOCOL_PEER => 'PROTOCOL_PEER', - self::WEB3_MESSAGE => 'WEB3_MESSAGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Cryptography/SigningContext.php b/packages/sdk-php/src/Catalyst/Protocol/Cryptography/SigningContext.php index 8f34426..ae9a32d 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Cryptography/SigningContext.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Cryptography/SigningContext.php @@ -9,45 +9,38 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Cryptography.SigningContext + * Protobuf type Catalyst.Protocol.Cryptography.SigningContext */ class SigningContext extends \Google\Protobuf\Internal\Message { /** + *
      * is the network enum (mainet / devnet etc).
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Network.NetworkType network_type = 1; + * .Catalyst.Protocol.Network.NetworkType network_type = 1; */ - protected $network_type = 0; + private $network_type = 0; /** + *
      * contains info on whether the signature is for a protocol message or a transaction.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; + * .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; */ - protected $signature_type = 0; + private $signature_type = 0; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $network_type - * is the network enum (mainet / devnet etc). - * @type int $signature_type - * contains info on whether the signature is for a protocol message or a transaction. - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Cryptography::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * is the network enum (mainet / devnet etc).
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @return int + * .Catalyst.Protocol.Network.NetworkType network_type = 1; */ public function getNetworkType() { @@ -55,25 +48,24 @@ public function getNetworkType() } /** + *
      * is the network enum (mainet / devnet etc).
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Network.NetworkType network_type = 1; - * @param int $var - * @return $this + * .Catalyst.Protocol.Network.NetworkType network_type = 1; */ public function setNetworkType($var) { GPBUtil::checkEnum($var, \Catalyst\Protocol\Network\NetworkType::class); $this->network_type = $var; - - return $this; } /** + *
      * contains info on whether the signature is for a protocol message or a transaction.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; - * @return int + * .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; */ public function getSignatureType() { @@ -81,18 +73,16 @@ public function getSignatureType() } /** + *
      * contains info on whether the signature is for a protocol message or a transaction.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; - * @param int $var - * @return $this + * .Catalyst.Protocol.Cryptography.SignatureType signature_type = 2; */ public function setSignatureType($var) { GPBUtil::checkEnum($var, \Catalyst\Protocol\Cryptography\SignatureType::class); $this->signature_type = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Deltas/Delta.php b/packages/sdk-php/src/Catalyst/Protocol/Deltas/Delta.php index 793bc1d..64d6dda 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Deltas/Delta.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Deltas/Delta.php @@ -9,89 +9,86 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Deltas.Delta + * Protobuf type Catalyst.Protocol.Deltas.Delta */ class Delta extends \Google\Protobuf\Internal\Message { /** + *
      *  address for the content of the previous delta on the DFS
+     * 
* - * Generated from protobuf field bytes previous_delta_dfs_hash = 1; + * bytes previous_delta_dfs_hash = 1; */ - protected $previous_delta_dfs_hash = ''; + private $previous_delta_dfs_hash = ''; /** - * Generated from protobuf field bytes merkle_root = 2; + * bytes merkle_root = 2; */ - protected $merkle_root = ''; + private $merkle_root = ''; /** + *
      * proof of delegated authority for active wokers
+     * 
* - * Generated from protobuf field bytes merkle_poda = 3; + * bytes merkle_poda = 3; */ - protected $merkle_poda = ''; + private $merkle_poda = ''; /** - * Generated from protobuf field .google.protobuf.Timestamp time_stamp = 4; + * .google.protobuf.Timestamp time_stamp = 4; */ - protected $time_stamp = null; + private $time_stamp = null; /** - * Generated from protobuf field repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; + * repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; */ private $public_entries; /** - * Generated from protobuf field repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; + * repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; */ private $confidential_entries; /** + *
      * one per active worker
+     * 
* - * Generated from protobuf field repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; + * repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; */ private $coinbase_entries; /** + *
      * the hash of the state root
+     * 
* - * Generated from protobuf field bytes state_root = 8; + * bytes state_root = 8; */ - protected $state_root = ''; + private $state_root = ''; /** + *
      * the consecutive delta number
+     * 
* - * Generated from protobuf field int64 delta_number = 9; + * int64 delta_number = 9; */ - protected $delta_number = 0; - + private $delta_number = 0; /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. + *
+     * the gas used in the delta
+     * 
* - * @type string $previous_delta_dfs_hash - * address for the content of the previous delta on the DFS - * @type string $merkle_root - * @type string $merkle_poda - * proof of delegated authority for active wokers - * @type \Google\Protobuf\Timestamp $time_stamp - * @type \Catalyst\Protocol\Transaction\PublicEntry[]|\Google\Protobuf\Internal\RepeatedField $public_entries - * @type \Catalyst\Protocol\Transaction\ConfidentialEntry[]|\Google\Protobuf\Internal\RepeatedField $confidential_entries - * @type \Catalyst\Protocol\Transaction\CoinbaseEntry[]|\Google\Protobuf\Internal\RepeatedField $coinbase_entries - * one per active worker - * @type string $state_root - * the hash of the state root - * @type int|string $delta_number - * the consecutive delta number - * } + * int64 gas_used = 10; */ - public function __construct($data = NULL) { + private $gas_used = 0; + + public function __construct() { \GPBMetadata\Deltas::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      *  address for the content of the previous delta on the DFS
+     * 
* - * Generated from protobuf field bytes previous_delta_dfs_hash = 1; - * @return string + * bytes previous_delta_dfs_hash = 1; */ public function getPreviousDeltaDfsHash() { @@ -99,23 +96,20 @@ public function getPreviousDeltaDfsHash() } /** + *
      *  address for the content of the previous delta on the DFS
+     * 
* - * Generated from protobuf field bytes previous_delta_dfs_hash = 1; - * @param string $var - * @return $this + * bytes previous_delta_dfs_hash = 1; */ public function setPreviousDeltaDfsHash($var) { GPBUtil::checkString($var, False); $this->previous_delta_dfs_hash = $var; - - return $this; } /** - * Generated from protobuf field bytes merkle_root = 2; - * @return string + * bytes merkle_root = 2; */ public function getMerkleRoot() { @@ -123,23 +117,20 @@ public function getMerkleRoot() } /** - * Generated from protobuf field bytes merkle_root = 2; - * @param string $var - * @return $this + * bytes merkle_root = 2; */ public function setMerkleRoot($var) { GPBUtil::checkString($var, False); $this->merkle_root = $var; - - return $this; } /** + *
      * proof of delegated authority for active wokers
+     * 
* - * Generated from protobuf field bytes merkle_poda = 3; - * @return string + * bytes merkle_poda = 3; */ public function getMerklePoda() { @@ -147,23 +138,20 @@ public function getMerklePoda() } /** + *
      * proof of delegated authority for active wokers
+     * 
* - * Generated from protobuf field bytes merkle_poda = 3; - * @param string $var - * @return $this + * bytes merkle_poda = 3; */ public function setMerklePoda($var) { GPBUtil::checkString($var, False); $this->merkle_poda = $var; - - return $this; } /** - * Generated from protobuf field .google.protobuf.Timestamp time_stamp = 4; - * @return \Google\Protobuf\Timestamp + * .google.protobuf.Timestamp time_stamp = 4; */ public function getTimeStamp() { @@ -171,21 +159,16 @@ public function getTimeStamp() } /** - * Generated from protobuf field .google.protobuf.Timestamp time_stamp = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this + * .google.protobuf.Timestamp time_stamp = 4; */ - public function setTimeStamp($var) + public function setTimeStamp(&$var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->time_stamp = $var; - - return $this; } /** - * Generated from protobuf field repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; */ public function getPublicEntries() { @@ -193,21 +176,16 @@ public function getPublicEntries() } /** - * Generated from protobuf field repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; - * @param \Catalyst\Protocol\Transaction\PublicEntry[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated .Catalyst.Protocol.Transaction.PublicEntry public_entries = 5; */ - public function setPublicEntries($var) + public function setPublicEntries(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Transaction\PublicEntry::class); - $this->public_entries = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Transaction\PublicEntry::class); + $this->public_entries = $var; } /** - * Generated from protobuf field repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; */ public function getConfidentialEntries() { @@ -215,23 +193,20 @@ public function getConfidentialEntries() } /** - * Generated from protobuf field repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; - * @param \Catalyst\Protocol\Transaction\ConfidentialEntry[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated .Catalyst.Protocol.Transaction.ConfidentialEntry confidential_entries = 6; */ - public function setConfidentialEntries($var) + public function setConfidentialEntries(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Transaction\ConfidentialEntry::class); - $this->confidential_entries = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Transaction\ConfidentialEntry::class); + $this->confidential_entries = $var; } /** + *
      * one per active worker
+     * 
* - * Generated from protobuf field repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; */ public function getCoinbaseEntries() { @@ -239,25 +214,24 @@ public function getCoinbaseEntries() } /** + *
      * one per active worker
+     * 
* - * Generated from protobuf field repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; - * @param \Catalyst\Protocol\Transaction\CoinbaseEntry[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated .Catalyst.Protocol.Transaction.CoinbaseEntry coinbase_entries = 7; */ - public function setCoinbaseEntries($var) + public function setCoinbaseEntries(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Transaction\CoinbaseEntry::class); - $this->coinbase_entries = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Transaction\CoinbaseEntry::class); + $this->coinbase_entries = $var; } /** + *
      * the hash of the state root
+     * 
* - * Generated from protobuf field bytes state_root = 8; - * @return string + * bytes state_root = 8; */ public function getStateRoot() { @@ -265,25 +239,24 @@ public function getStateRoot() } /** + *
      * the hash of the state root
+     * 
* - * Generated from protobuf field bytes state_root = 8; - * @param string $var - * @return $this + * bytes state_root = 8; */ public function setStateRoot($var) { GPBUtil::checkString($var, False); $this->state_root = $var; - - return $this; } /** + *
      * the consecutive delta number
+     * 
* - * Generated from protobuf field int64 delta_number = 9; - * @return int|string + * int64 delta_number = 9; */ public function getDeltaNumber() { @@ -291,18 +264,41 @@ public function getDeltaNumber() } /** + *
      * the consecutive delta number
+     * 
* - * Generated from protobuf field int64 delta_number = 9; - * @param int|string $var - * @return $this + * int64 delta_number = 9; */ public function setDeltaNumber($var) { GPBUtil::checkInt64($var); $this->delta_number = $var; + } - return $this; + /** + *
+     * the gas used in the delta
+     * 
+ * + * int64 gas_used = 10; + */ + public function getGasUsed() + { + return $this->gas_used; + } + + /** + *
+     * the gas used in the delta
+     * 
+ * + * int64 gas_used = 10; + */ + public function setGasUsed($var) + { + GPBUtil::checkInt64($var); + $this->gas_used = $var; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Deltas/DeltaIndex.php b/packages/sdk-php/src/Catalyst/Protocol/Deltas/DeltaIndex.php index 9d5c427..cd0feed 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Deltas/DeltaIndex.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Deltas/DeltaIndex.php @@ -9,37 +9,26 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Deltas.DeltaIndex + * Protobuf type Catalyst.Protocol.Deltas.DeltaIndex */ class DeltaIndex extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field uint32 height = 1; + * uint32 height = 1; */ - protected $height = 0; + private $height = 0; /** - * Generated from protobuf field bytes cid = 2; + * bytes cid = 2; */ - protected $cid = ''; + private $cid = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $height - * @type string $cid - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Deltas::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field uint32 height = 1; - * @return int + * uint32 height = 1; */ public function getHeight() { @@ -47,21 +36,16 @@ public function getHeight() } /** - * Generated from protobuf field uint32 height = 1; - * @param int $var - * @return $this + * uint32 height = 1; */ public function setHeight($var) { GPBUtil::checkUint32($var); $this->height = $var; - - return $this; } /** - * Generated from protobuf field bytes cid = 2; - * @return string + * bytes cid = 2; */ public function getCid() { @@ -69,16 +53,12 @@ public function getCid() } /** - * Generated from protobuf field bytes cid = 2; - * @param string $var - * @return $this + * bytes cid = 2; */ public function setCid($var) { GPBUtil::checkString($var, False); $this->cid = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeBroadcast.php b/packages/sdk-php/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeBroadcast.php index d19770e..6389059 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeBroadcast.php +++ b/packages/sdk-php/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeBroadcast.php @@ -9,47 +9,34 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast + * Protobuf type Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast */ class BlockChallengeBroadcast extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; + * .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; */ - protected $original_challenge = null; + private $original_challenge = null; /** - * Generated from protobuf field string answer = 2; + * string answer = 2; */ - protected $answer = ''; + private $answer = ''; /** - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; + * .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; */ - protected $challenged_peer = null; + private $challenged_peer = null; /** - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId challenged_by = 4; + * .Catalyst.Protocol.Peer.PeerId challenged_by = 4; */ - protected $challenged_by = null; + private $challenged_by = null; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\DfsMarketplace\BlockChallengeRequest $original_challenge - * @type string $answer - * @type \Catalyst\Protocol\Peer\PeerId $challenged_peer - * @type \Catalyst\Protocol\Peer\PeerId $challenged_by - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\DfsMarketplace::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; - * @return \Catalyst\Protocol\DfsMarketplace\BlockChallengeRequest + * .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; */ public function getOriginalChallenge() { @@ -57,21 +44,16 @@ public function getOriginalChallenge() } /** - * Generated from protobuf field .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; - * @param \Catalyst\Protocol\DfsMarketplace\BlockChallengeRequest $var - * @return $this + * .Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest original_challenge = 1; */ - public function setOriginalChallenge($var) + public function setOriginalChallenge(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\DfsMarketplace\BlockChallengeRequest::class); $this->original_challenge = $var; - - return $this; } /** - * Generated from protobuf field string answer = 2; - * @return string + * string answer = 2; */ public function getAnswer() { @@ -79,21 +61,16 @@ public function getAnswer() } /** - * Generated from protobuf field string answer = 2; - * @param string $var - * @return $this + * string answer = 2; */ public function setAnswer($var) { GPBUtil::checkString($var, True); $this->answer = $var; - - return $this; } /** - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; - * @return \Catalyst\Protocol\Peer\PeerId + * .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; */ public function getChallengedPeer() { @@ -101,21 +78,16 @@ public function getChallengedPeer() } /** - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; - * @param \Catalyst\Protocol\Peer\PeerId $var - * @return $this + * .Catalyst.Protocol.Peer.PeerId challenged_peer = 3; */ - public function setChallengedPeer($var) + public function setChallengedPeer(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Peer\PeerId::class); $this->challenged_peer = $var; - - return $this; } /** - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId challenged_by = 4; - * @return \Catalyst\Protocol\Peer\PeerId + * .Catalyst.Protocol.Peer.PeerId challenged_by = 4; */ public function getChallengedBy() { @@ -123,16 +95,12 @@ public function getChallengedBy() } /** - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId challenged_by = 4; - * @param \Catalyst\Protocol\Peer\PeerId $var - * @return $this + * .Catalyst.Protocol.Peer.PeerId challenged_by = 4; */ - public function setChallengedBy($var) + public function setChallengedBy(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Peer\PeerId::class); $this->challenged_by = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeRequest.php b/packages/sdk-php/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeRequest.php index 0c08abb..a8e9c41 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeRequest.php @@ -9,42 +9,30 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest + * Protobuf type Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest */ class BlockChallengeRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string challenge_salt = 1; + * string challenge_salt = 1; */ - protected $challenge_salt = ''; + private $challenge_salt = ''; /** - * Generated from protobuf field string main_file_cid = 2; + * string main_file_cid = 2; */ - protected $main_file_cid = ''; + private $main_file_cid = ''; /** - * Generated from protobuf field bytes block_idx_random_guid = 3; + * bytes block_idx_random_guid = 3; */ - protected $block_idx_random_guid = ''; + private $block_idx_random_guid = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $challenge_salt - * @type string $main_file_cid - * @type string $block_idx_random_guid - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\DfsMarketplace::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string challenge_salt = 1; - * @return string + * string challenge_salt = 1; */ public function getChallengeSalt() { @@ -52,21 +40,16 @@ public function getChallengeSalt() } /** - * Generated from protobuf field string challenge_salt = 1; - * @param string $var - * @return $this + * string challenge_salt = 1; */ public function setChallengeSalt($var) { GPBUtil::checkString($var, True); $this->challenge_salt = $var; - - return $this; } /** - * Generated from protobuf field string main_file_cid = 2; - * @return string + * string main_file_cid = 2; */ public function getMainFileCid() { @@ -74,21 +57,16 @@ public function getMainFileCid() } /** - * Generated from protobuf field string main_file_cid = 2; - * @param string $var - * @return $this + * string main_file_cid = 2; */ public function setMainFileCid($var) { GPBUtil::checkString($var, True); $this->main_file_cid = $var; - - return $this; } /** - * Generated from protobuf field bytes block_idx_random_guid = 3; - * @return string + * bytes block_idx_random_guid = 3; */ public function getBlockIdxRandomGuid() { @@ -96,16 +74,12 @@ public function getBlockIdxRandomGuid() } /** - * Generated from protobuf field bytes block_idx_random_guid = 3; - * @param string $var - * @return $this + * bytes block_idx_random_guid = 3; */ public function setBlockIdxRandomGuid($var) { GPBUtil::checkString($var, False); $this->block_idx_random_guid = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeResponse.php b/packages/sdk-php/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeResponse.php index c392ecc..8376a88 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/DfsMarketplace/BlockChallengeResponse.php @@ -9,37 +9,26 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse + * Protobuf type Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse */ class BlockChallengeResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string answer = 1; + * string answer = 1; */ - protected $answer = ''; + private $answer = ''; /** - * Generated from protobuf field string block_challenge_request_hash = 2; + * string block_challenge_request_hash = 2; */ - protected $block_challenge_request_hash = ''; + private $block_challenge_request_hash = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $answer - * @type string $block_challenge_request_hash - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\DfsMarketplace::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string answer = 1; - * @return string + * string answer = 1; */ public function getAnswer() { @@ -47,21 +36,16 @@ public function getAnswer() } /** - * Generated from protobuf field string answer = 1; - * @param string $var - * @return $this + * string answer = 1; */ public function setAnswer($var) { GPBUtil::checkString($var, True); $this->answer = $var; - - return $this; } /** - * Generated from protobuf field string block_challenge_request_hash = 2; - * @return string + * string block_challenge_request_hash = 2; */ public function getBlockChallengeRequestHash() { @@ -69,16 +53,12 @@ public function getBlockChallengeRequestHash() } /** - * Generated from protobuf field string block_challenge_request_hash = 2; - * @param string $var - * @return $this + * string block_challenge_request_hash = 2; */ public function setBlockChallengeRequestHash($var) { GPBUtil::checkString($var, True); $this->block_challenge_request_hash = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/IPPN/DeltaHistoryRequest.php b/packages/sdk-php/src/Catalyst/Protocol/IPPN/DeltaHistoryRequest.php index 06f0d6c..11214dc 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/IPPN/DeltaHistoryRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/IPPN/DeltaHistoryRequest.php @@ -9,45 +9,38 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.IPPN.DeltaHistoryRequest + * Protobuf type Catalyst.Protocol.IPPN.DeltaHistoryRequest */ class DeltaHistoryRequest extends \Google\Protobuf\Internal\Message { /** + *
      * The number of deltas CIDs a node requests.
+     * 
* - * Generated from protobuf field uint32 range = 1; + * uint32 range = 1; */ - protected $range = 0; + private $range = 0; /** + *
      * The given height the node wants the range from.
+     * 
* - * Generated from protobuf field uint32 height = 2; + * uint32 height = 2; */ - protected $height = 0; + private $height = 0; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $range - * The number of deltas CIDs a node requests. - * @type int $height - * The given height the node wants the range from. - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\IPPN::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * The number of deltas CIDs a node requests.
+     * 
* - * Generated from protobuf field uint32 range = 1; - * @return int + * uint32 range = 1; */ public function getRange() { @@ -55,25 +48,24 @@ public function getRange() } /** + *
      * The number of deltas CIDs a node requests.
+     * 
* - * Generated from protobuf field uint32 range = 1; - * @param int $var - * @return $this + * uint32 range = 1; */ public function setRange($var) { GPBUtil::checkUint32($var); $this->range = $var; - - return $this; } /** + *
      * The given height the node wants the range from.
+     * 
* - * Generated from protobuf field uint32 height = 2; - * @return int + * uint32 height = 2; */ public function getHeight() { @@ -81,18 +73,16 @@ public function getHeight() } /** + *
      * The given height the node wants the range from.
+     * 
* - * Generated from protobuf field uint32 height = 2; - * @param int $var - * @return $this + * uint32 height = 2; */ public function setHeight($var) { GPBUtil::checkUint32($var); $this->height = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/IPPN/DeltaHistoryResponse.php b/packages/sdk-php/src/Catalyst/Protocol/IPPN/DeltaHistoryResponse.php index b171454..1606231 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/IPPN/DeltaHistoryResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/IPPN/DeltaHistoryResponse.php @@ -9,56 +9,47 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.IPPN.DeltaHistoryResponse + * Protobuf type Catalyst.Protocol.IPPN.DeltaHistoryResponse */ class DeltaHistoryResponse extends \Google\Protobuf\Internal\Message { /** + *
      * K given del
+     * 
* - * Generated from protobuf field repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - private $result; + private $deltaIndex; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Deltas\DeltaIndex[]|\Google\Protobuf\Internal\RepeatedField $result - * K given del - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\IPPN::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * K given del
+     * 
* - * Generated from protobuf field repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public function getResult() + public function getDeltaIndex() { - return $this->result; + return $this->deltaIndex; } /** + *
      * K given del
+     * 
* - * Generated from protobuf field repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - * @param \Catalyst\Protocol\Deltas\DeltaIndex[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; */ - public function setResult($var) + public function setDeltaIndex(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Deltas\DeltaIndex::class); - $this->result = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Deltas\DeltaIndex::class); + $this->deltaIndex = $var; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/IPPN/LatestDeltaHashRequest.php b/packages/sdk-php/src/Catalyst/Protocol/IPPN/LatestDeltaHashRequest.php index 69cbf24..917c3db 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/IPPN/LatestDeltaHashRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/IPPN/LatestDeltaHashRequest.php @@ -9,22 +9,14 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.IPPN.LatestDeltaHashRequest + * Protobuf type Catalyst.Protocol.IPPN.LatestDeltaHashRequest */ class LatestDeltaHashRequest extends \Google\Protobuf\Internal\Message { - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\IPPN::initOnce(); - parent::__construct($data); + parent::__construct(); } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/IPPN/LatestDeltaHashResponse.php b/packages/sdk-php/src/Catalyst/Protocol/IPPN/LatestDeltaHashResponse.php index 4868b5f..25f0c2b 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/IPPN/LatestDeltaHashResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/IPPN/LatestDeltaHashResponse.php @@ -9,56 +9,68 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.IPPN.LatestDeltaHashResponse + * Protobuf type Catalyst.Protocol.IPPN.LatestDeltaHashResponse */ class LatestDeltaHashResponse extends \Google\Protobuf\Internal\Message { /** + * bool isSync = 1; + */ + private $isSync = false; + /** + *
      * K given del
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - protected $result = null; + private $deltaIndex = null; + + public function __construct() { + \GPBMetadata\IPPN::initOnce(); + parent::__construct(); + } /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Deltas\DeltaIndex $result - * K given del - * } + * bool isSync = 1; */ - public function __construct($data = NULL) { - \GPBMetadata\IPPN::initOnce(); - parent::__construct($data); + public function getIsSync() + { + return $this->isSync; } /** + * bool isSync = 1; + */ + public function setIsSync($var) + { + GPBUtil::checkBool($var); + $this->isSync = $var; + } + + /** + *
      * K given del
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - * @return \Catalyst\Protocol\Deltas\DeltaIndex + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public function getResult() + public function getDeltaIndex() { - return $this->result; + return $this->deltaIndex; } /** + *
      * K given del
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Deltas.DeltaIndex result = 1; - * @param \Catalyst\Protocol\Deltas\DeltaIndex $var - * @return $this + * .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; */ - public function setResult($var) + public function setDeltaIndex(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Deltas\DeltaIndex::class); - $this->result = $var; - - return $this; + $this->deltaIndex = $var; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/IPPN/PeerNeighborsRequest.php b/packages/sdk-php/src/Catalyst/Protocol/IPPN/PeerNeighborsRequest.php index 129fad9..44942f5 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/IPPN/PeerNeighborsRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/IPPN/PeerNeighborsRequest.php @@ -9,22 +9,14 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.IPPN.PeerNeighborsRequest + * Protobuf type Catalyst.Protocol.IPPN.PeerNeighborsRequest */ class PeerNeighborsRequest extends \Google\Protobuf\Internal\Message { - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\IPPN::initOnce(); - parent::__construct($data); + parent::__construct(); } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/IPPN/PeerNeighborsResponse.php b/packages/sdk-php/src/Catalyst/Protocol/IPPN/PeerNeighborsResponse.php index e92be8a..154517e 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/IPPN/PeerNeighborsResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/IPPN/PeerNeighborsResponse.php @@ -9,37 +9,30 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.IPPN.PeerNeighborsResponse + * Protobuf type Catalyst.Protocol.IPPN.PeerNeighborsResponse */ class PeerNeighborsResponse extends \Google\Protobuf\Internal\Message { /** + *
      * Random subset of a nodes peer db.
+     * 
* - * Generated from protobuf field repeated .Catalyst.Protocol.Peer.PeerId peers = 1; + * repeated .Catalyst.Protocol.Peer.PeerId peers = 1; */ private $peers; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Peer\PeerId[]|\Google\Protobuf\Internal\RepeatedField $peers - * Random subset of a nodes peer db. - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\IPPN::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * Random subset of a nodes peer db.
+     * 
* - * Generated from protobuf field repeated .Catalyst.Protocol.Peer.PeerId peers = 1; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated .Catalyst.Protocol.Peer.PeerId peers = 1; */ public function getPeers() { @@ -47,18 +40,16 @@ public function getPeers() } /** + *
      * Random subset of a nodes peer db.
+     * 
* - * Generated from protobuf field repeated .Catalyst.Protocol.Peer.PeerId peers = 1; - * @param \Catalyst\Protocol\Peer\PeerId[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated .Catalyst.Protocol.Peer.PeerId peers = 1; */ - public function setPeers($var) + public function setPeers(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Peer\PeerId::class); - $this->peers = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Peer\PeerId::class); + $this->peers = $var; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/IPPN/PingRequest.php b/packages/sdk-php/src/Catalyst/Protocol/IPPN/PingRequest.php index ac1b852..424294f 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/IPPN/PingRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/IPPN/PingRequest.php @@ -9,22 +9,14 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.IPPN.PingRequest + * Protobuf type Catalyst.Protocol.IPPN.PingRequest */ class PingRequest extends \Google\Protobuf\Internal\Message { - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\IPPN::initOnce(); - parent::__construct($data); + parent::__construct(); } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/IPPN/PingResponse.php b/packages/sdk-php/src/Catalyst/Protocol/IPPN/PingResponse.php index aeb185e..585f982 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/IPPN/PingResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/IPPN/PingResponse.php @@ -9,22 +9,14 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.IPPN.PingResponse + * Protobuf type Catalyst.Protocol.IPPN.PingResponse */ class PingResponse extends \Google\Protobuf\Internal\Message { - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\IPPN::initOnce(); - parent::__construct($data); + parent::__construct(); } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Network/NetworkType.php b/packages/sdk-php/src/Catalyst/Protocol/Network/NetworkType.php index 7bad4d1..5ab6b2f 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Network/NetworkType.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Network/NetworkType.php @@ -4,63 +4,42 @@ namespace Catalyst\Protocol\Network; -use UnexpectedValueException; - /** - * Protobuf type Catalyst.Protocol.Network.NetworkType + * Protobuf enum Catalyst.Protocol.Network.NetworkType */ class NetworkType { /** + *
      * un-known network
+     * 
* - * Generated from protobuf enum NETWORK_TYPE_UNKNOWN = 0; + * NETWORK_TYPE_UNKNOWN = 0; */ const NETWORK_TYPE_UNKNOWN = 0; /** + *
      * main live network
+     * 
* - * Generated from protobuf enum MAINNET = 1; + * MAINNET = 1; */ const MAINNET = 1; /** + *
      * local devnet
+     * 
* - * Generated from protobuf enum DEVNET = 2; + * DEVNET = 2; */ const DEVNET = 2; /** + *
      * public testnet
+     * 
* - * Generated from protobuf enum TESTNET = 3; + * TESTNET = 3; */ const TESTNET = 3; - - private static $valueToName = [ - self::NETWORK_TYPE_UNKNOWN => 'NETWORK_TYPE_UNKNOWN', - self::MAINNET => 'MAINNET', - self::DEVNET => 'DEVNET', - self::TESTNET => 'TESTNET', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Peer/PeerId.php b/packages/sdk-php/src/Catalyst/Protocol/Peer/PeerId.php index 11c4cd4..20a938a 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Peer/PeerId.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Peer/PeerId.php @@ -9,57 +9,52 @@ use Google\Protobuf\Internal\GPBUtil; /** + *
  **
  * Aggregated size of the fields in PeerId should be 42 bytes as specified in
  * https://github.com/catalyst-network/protocol-blueprint/blob/master/PeerProtocol.md
+ * 
* - * Generated from protobuf message Catalyst.Protocol.Peer.PeerId + * Protobuf type Catalyst.Protocol.Peer.PeerId */ class PeerId extends \Google\Protobuf\Internal\Message { /** + *
      * 16 bytes
+     * 
* - * Generated from protobuf field bytes ip = 1; + * bytes ip = 1; */ - protected $ip = ''; + private $ip = ''; /** + *
      * 2 bytes
+     * 
* - * Generated from protobuf field uint32 port = 2; + * uint32 port = 2; */ - protected $port = 0; + private $port = 0; /** + *
      * Peers public key, node operators are encouraged to use the same, public key across all their nodes.
+     * 
* - * Generated from protobuf field bytes public_key = 3; + * bytes public_key = 3; */ - protected $public_key = ''; + private $public_key = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $ip - * 16 bytes - * @type int $port - * 2 bytes - * @type string $public_key - * Peers public key, node operators are encouraged to use the same, public key across all their nodes. - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Peer::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * 16 bytes
+     * 
* - * Generated from protobuf field bytes ip = 1; - * @return string + * bytes ip = 1; */ public function getIp() { @@ -67,25 +62,24 @@ public function getIp() } /** + *
      * 16 bytes
+     * 
* - * Generated from protobuf field bytes ip = 1; - * @param string $var - * @return $this + * bytes ip = 1; */ public function setIp($var) { GPBUtil::checkString($var, False); $this->ip = $var; - - return $this; } /** + *
      * 2 bytes
+     * 
* - * Generated from protobuf field uint32 port = 2; - * @return int + * uint32 port = 2; */ public function getPort() { @@ -93,25 +87,24 @@ public function getPort() } /** + *
      * 2 bytes
+     * 
* - * Generated from protobuf field uint32 port = 2; - * @param int $var - * @return $this + * uint32 port = 2; */ public function setPort($var) { GPBUtil::checkUint32($var); $this->port = $var; - - return $this; } /** + *
      * Peers public key, node operators are encouraged to use the same, public key across all their nodes.
+     * 
* - * Generated from protobuf field bytes public_key = 3; - * @return string + * bytes public_key = 3; */ public function getPublicKey() { @@ -119,18 +112,16 @@ public function getPublicKey() } /** + *
      * Peers public key, node operators are encouraged to use the same, public key across all their nodes.
+     * 
* - * Generated from protobuf field bytes public_key = 3; - * @param string $var - * @return $this + * bytes public_key = 3; */ public function setPublicKey($var) { GPBUtil::checkString($var, False); $this->public_key = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Peer/PeerInfo.php b/packages/sdk-php/src/Catalyst/Protocol/Peer/PeerInfo.php index bc17883..56ed9b4 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Peer/PeerInfo.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Peer/PeerInfo.php @@ -9,93 +9,86 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Peer.PeerInfo + * Protobuf type Catalyst.Protocol.Peer.PeerInfo */ class PeerInfo extends \Google\Protobuf\Internal\Message { /** + *
      * is peerId of network
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId peer_id = 1; + * .Catalyst.Protocol.Peer.PeerId peer_id = 1; */ - protected $peer_id = null; + private $peer_id = null; /** + *
      * reputation of peer
+     * 
* - * Generated from protobuf field sint32 reputation = 2; + * sint32 reputation = 2; */ - protected $reputation = 0; + private $reputation = 0; /** + *
      * is to check if the peer is blackListed
+     * 
* - * Generated from protobuf field bool is_blacklisted = 3; + * bool is_blacklisted = 3; */ - protected $is_blacklisted = false; + private $is_blacklisted = false; /** + *
      * is when the peer cannot be reached on the network
+     * 
* - * Generated from protobuf field bool is_unreachable = 4; + * bool is_unreachable = 4; */ - protected $is_unreachable = false; + private $is_unreachable = false; /** + *
      * is how long the peer has beekn inactive for
+     * 
* - * Generated from protobuf field .google.protobuf.Duration inactive_for = 5; + * .google.protobuf.Duration inactive_for = 5; */ - protected $inactive_for = null; + private $inactive_for = null; /** + *
      * is when the peer was last seen
+     * 
* - * Generated from protobuf field .google.protobuf.Timestamp last_seen = 6; + * .google.protobuf.Timestamp last_seen = 6; */ - protected $last_seen = null; + private $last_seen = null; /** + *
      * modified is when the peer was last modified
+     * 
* - * Generated from protobuf field .google.protobuf.Timestamp modified = 7; + * .google.protobuf.Timestamp modified = 7; */ - protected $modified = null; + private $modified = null; /** + *
      * created is when the peer was created
+     * 
* - * Generated from protobuf field .google.protobuf.Timestamp created = 8; + * .google.protobuf.Timestamp created = 8; */ - protected $created = null; + private $created = null; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Peer\PeerId $peer_id - * is peerId of network - * @type int $reputation - * reputation of peer - * @type bool $is_blacklisted - * is to check if the peer is blackListed - * @type bool $is_unreachable - * is when the peer cannot be reached on the network - * @type \Google\Protobuf\Duration $inactive_for - * is how long the peer has beekn inactive for - * @type \Google\Protobuf\Timestamp $last_seen - * is when the peer was last seen - * @type \Google\Protobuf\Timestamp $modified - * modified is when the peer was last modified - * @type \Google\Protobuf\Timestamp $created - * created is when the peer was created - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Peer::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * is peerId of network
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return \Catalyst\Protocol\Peer\PeerId + * .Catalyst.Protocol.Peer.PeerId peer_id = 1; */ public function getPeerId() { @@ -103,25 +96,24 @@ public function getPeerId() } /** + *
      * is peerId of network
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @param \Catalyst\Protocol\Peer\PeerId $var - * @return $this + * .Catalyst.Protocol.Peer.PeerId peer_id = 1; */ - public function setPeerId($var) + public function setPeerId(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Peer\PeerId::class); $this->peer_id = $var; - - return $this; } /** + *
      * reputation of peer
+     * 
* - * Generated from protobuf field sint32 reputation = 2; - * @return int + * sint32 reputation = 2; */ public function getReputation() { @@ -129,25 +121,24 @@ public function getReputation() } /** + *
      * reputation of peer
+     * 
* - * Generated from protobuf field sint32 reputation = 2; - * @param int $var - * @return $this + * sint32 reputation = 2; */ public function setReputation($var) { GPBUtil::checkInt32($var); $this->reputation = $var; - - return $this; } /** + *
      * is to check if the peer is blackListed
+     * 
* - * Generated from protobuf field bool is_blacklisted = 3; - * @return bool + * bool is_blacklisted = 3; */ public function getIsBlacklisted() { @@ -155,25 +146,24 @@ public function getIsBlacklisted() } /** + *
      * is to check if the peer is blackListed
+     * 
* - * Generated from protobuf field bool is_blacklisted = 3; - * @param bool $var - * @return $this + * bool is_blacklisted = 3; */ public function setIsBlacklisted($var) { GPBUtil::checkBool($var); $this->is_blacklisted = $var; - - return $this; } /** + *
      * is when the peer cannot be reached on the network
+     * 
* - * Generated from protobuf field bool is_unreachable = 4; - * @return bool + * bool is_unreachable = 4; */ public function getIsUnreachable() { @@ -181,25 +171,24 @@ public function getIsUnreachable() } /** + *
      * is when the peer cannot be reached on the network
+     * 
* - * Generated from protobuf field bool is_unreachable = 4; - * @param bool $var - * @return $this + * bool is_unreachable = 4; */ public function setIsUnreachable($var) { GPBUtil::checkBool($var); $this->is_unreachable = $var; - - return $this; } /** + *
      * is how long the peer has beekn inactive for
+     * 
* - * Generated from protobuf field .google.protobuf.Duration inactive_for = 5; - * @return \Google\Protobuf\Duration + * .google.protobuf.Duration inactive_for = 5; */ public function getInactiveFor() { @@ -207,25 +196,24 @@ public function getInactiveFor() } /** + *
      * is how long the peer has beekn inactive for
+     * 
* - * Generated from protobuf field .google.protobuf.Duration inactive_for = 5; - * @param \Google\Protobuf\Duration $var - * @return $this + * .google.protobuf.Duration inactive_for = 5; */ - public function setInactiveFor($var) + public function setInactiveFor(&$var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->inactive_for = $var; - - return $this; } /** + *
      * is when the peer was last seen
+     * 
* - * Generated from protobuf field .google.protobuf.Timestamp last_seen = 6; - * @return \Google\Protobuf\Timestamp + * .google.protobuf.Timestamp last_seen = 6; */ public function getLastSeen() { @@ -233,25 +221,24 @@ public function getLastSeen() } /** + *
      * is when the peer was last seen
+     * 
* - * Generated from protobuf field .google.protobuf.Timestamp last_seen = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this + * .google.protobuf.Timestamp last_seen = 6; */ - public function setLastSeen($var) + public function setLastSeen(&$var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->last_seen = $var; - - return $this; } /** + *
      * modified is when the peer was last modified
+     * 
* - * Generated from protobuf field .google.protobuf.Timestamp modified = 7; - * @return \Google\Protobuf\Timestamp + * .google.protobuf.Timestamp modified = 7; */ public function getModified() { @@ -259,25 +246,24 @@ public function getModified() } /** + *
      * modified is when the peer was last modified
+     * 
* - * Generated from protobuf field .google.protobuf.Timestamp modified = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this + * .google.protobuf.Timestamp modified = 7; */ - public function setModified($var) + public function setModified(&$var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->modified = $var; - - return $this; } /** + *
      * created is when the peer was created
+     * 
* - * Generated from protobuf field .google.protobuf.Timestamp created = 8; - * @return \Google\Protobuf\Timestamp + * .google.protobuf.Timestamp created = 8; */ public function getCreated() { @@ -285,18 +271,16 @@ public function getCreated() } /** + *
      * created is when the peer was created
+     * 
* - * Generated from protobuf field .google.protobuf.Timestamp created = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this + * .google.protobuf.Timestamp created = 8; */ - public function setCreated($var) + public function setCreated(&$var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->created = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsRequest.php index bf1475f..9f365df 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsRequest.php @@ -9,42 +9,30 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest */ class AddFileToDfsRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field uint64 file_size = 1; + * uint64 file_size = 1; */ - protected $file_size = 0; + private $file_size = 0; /** - * Generated from protobuf field string file_name = 2; + * string file_name = 2; */ - protected $file_name = ''; + private $file_name = ''; /** - * Generated from protobuf field string node = 3; + * string node = 3; */ - protected $node = ''; + private $node = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $file_size - * @type string $file_name - * @type string $node - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field uint64 file_size = 1; - * @return int|string + * uint64 file_size = 1; */ public function getFileSize() { @@ -52,21 +40,16 @@ public function getFileSize() } /** - * Generated from protobuf field uint64 file_size = 1; - * @param int|string $var - * @return $this + * uint64 file_size = 1; */ public function setFileSize($var) { GPBUtil::checkUint64($var); $this->file_size = $var; - - return $this; } /** - * Generated from protobuf field string file_name = 2; - * @return string + * string file_name = 2; */ public function getFileName() { @@ -74,21 +57,16 @@ public function getFileName() } /** - * Generated from protobuf field string file_name = 2; - * @param string $var - * @return $this + * string file_name = 2; */ public function setFileName($var) { GPBUtil::checkString($var, True); $this->file_name = $var; - - return $this; } /** - * Generated from protobuf field string node = 3; - * @return string + * string node = 3; */ public function getNode() { @@ -96,16 +74,12 @@ public function getNode() } /** - * Generated from protobuf field string node = 3; - * @param string $var - * @return $this + * string node = 3; */ public function setNode($var) { GPBUtil::checkString($var, True); $this->node = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsResponse.php index 2162a59..04e8c25 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddFileToDfsResponse.php @@ -9,37 +9,26 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse */ class AddFileToDfsResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bytes response_code = 1; + * bytes response_code = 1; */ - protected $response_code = ''; + private $response_code = ''; /** - * Generated from protobuf field string dfs_hash = 2; + * string dfs_hash = 2; */ - protected $dfs_hash = ''; + private $dfs_hash = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $response_code - * @type string $dfs_hash - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bytes response_code = 1; - * @return string + * bytes response_code = 1; */ public function getResponseCode() { @@ -47,21 +36,16 @@ public function getResponseCode() } /** - * Generated from protobuf field bytes response_code = 1; - * @param string $var - * @return $this + * bytes response_code = 1; */ public function setResponseCode($var) { GPBUtil::checkString($var, False); $this->response_code = $var; - - return $this; } /** - * Generated from protobuf field string dfs_hash = 2; - * @return string + * string dfs_hash = 2; */ public function getDfsHash() { @@ -69,16 +53,12 @@ public function getDfsHash() } /** - * Generated from protobuf field string dfs_hash = 2; - * @param string $var - * @return $this + * string dfs_hash = 2; */ public function setDfsHash($var) { GPBUtil::checkString($var, True); $this->dfs_hash = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddNodeRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddNodeRequest.php index 5d6e3c5..11cb39f 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddNodeRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddNodeRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.AddNodeRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.AddNodeRequest */ class AddNodeRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddNodeResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddNodeResponse.php index 370bccd..cd847ba 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddNodeResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/AddNodeResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.AddNodeResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.AddNodeResponse */ class AddNodeResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionRequest.php index 08f0f38..8066f56 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest */ class BroadcastRawTransactionRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; + * .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; */ - protected $transaction = null; + private $transaction = null; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Wire\TransactionBroadcast $transaction - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; - * @return \Catalyst\Protocol\Wire\TransactionBroadcast + * .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; */ public function getTransaction() { @@ -42,16 +32,12 @@ public function getTransaction() } /** - * Generated from protobuf field .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; - * @param \Catalyst\Protocol\Wire\TransactionBroadcast $var - * @return $this + * .Catalyst.Protocol.Wire.TransactionBroadcast transaction = 1; */ - public function setTransaction($var) + public function setTransaction(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Wire\TransactionBroadcast::class); $this->transaction = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionResponse.php index 7929b89..c1a023b 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/BroadcastRawTransactionResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse */ class BroadcastRawTransactionResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; + * .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; */ - protected $response_code = 0; + private $response_code = 0; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $response_code - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; - * @return int + * .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; */ public function getResponseCode() { @@ -42,16 +32,12 @@ public function getResponseCode() } /** - * Generated from protobuf field .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; - * @param int $var - * @return $this + * .Catalyst.Protocol.Rpc.Node.ResponseCode response_code = 1; */ public function setResponseCode($var) { GPBUtil::checkEnum($var, \Catalyst\Protocol\Rpc\Node\ResponseCode::class); $this->response_code = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateAddressRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateAddressRequest.php index b969f92..22101c5 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateAddressRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateAddressRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.CreateAddressRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.CreateAddressRequest */ class CreateAddressRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateAddressResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateAddressResponse.php index 4f5fc34..752618a 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateAddressResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateAddressResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.CreateAddressResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.CreateAddressResponse */ class CreateAddressResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionRequest.php index 606e6dc..d38fbaf 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest */ class CreateRawTransactionRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionResponse.php index ca17f19..ce289e7 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateRawTransactionResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse */ class CreateRawTransactionResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateWalletRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateWalletRequest.php index 7b4f2ba..d9616c8 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateWalletRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateWalletRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.CreateWalletRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.CreateWalletRequest */ class CreateWalletRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateWalletResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateWalletResponse.php index 4d40bf0..37cd16c 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateWalletResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/CreateWalletResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.CreateWalletResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.CreateWalletResponse */ class CreateWalletResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionRequest.php index 561823d..c004d9e 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest */ class DecodeRawTransactionRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionResponse.php index 0f2d46c..8a8cff8 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/DecodeRawTransactionResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse */ class DecodeRawTransactionResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetAddressRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetAddressRequest.php index f9586bc..21637f1 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetAddressRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetAddressRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetAddressRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.GetAddressRequest */ class GetAddressRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetAddressResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetAddressResponse.php index 73d038b..8340808 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetAddressResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetAddressResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetAddressResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.GetAddressResponse */ class GetAddressResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetBalanceRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetBalanceRequest.php index 4a871f3..a4252c0 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetBalanceRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetBalanceRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetBalanceRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.GetBalanceRequest */ class GetBalanceRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetBalanceResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetBalanceResponse.php index a9db6c3..0ccc3ae 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetBalanceResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetBalanceResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetBalanceResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.GetBalanceResponse */ class GetBalanceResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountRequest.php index 9c7a62d..0f2eff4 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest */ class GetConnectionCountRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountResponse.php index f8c3e1e..78e22d0 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetConnectionCountResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse */ class GetConnectionCountResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetDeltaRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetDeltaRequest.php index 9dbe501..4d8beeb 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetDeltaRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetDeltaRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetDeltaRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.GetDeltaRequest */ class GetDeltaRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bytes delta_dfs_hash = 1; + * bytes delta_dfs_hash = 1; */ - protected $delta_dfs_hash = ''; + private $delta_dfs_hash = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $delta_dfs_hash - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bytes delta_dfs_hash = 1; - * @return string + * bytes delta_dfs_hash = 1; */ public function getDeltaDfsHash() { @@ -42,16 +32,12 @@ public function getDeltaDfsHash() } /** - * Generated from protobuf field bytes delta_dfs_hash = 1; - * @param string $var - * @return $this + * bytes delta_dfs_hash = 1; */ public function setDeltaDfsHash($var) { GPBUtil::checkString($var, False); $this->delta_dfs_hash = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetDeltaResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetDeltaResponse.php index 6068f3f..3a4ed55 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetDeltaResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetDeltaResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetDeltaResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.GetDeltaResponse */ class GetDeltaResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field .Catalyst.Protocol.Deltas.Delta delta = 1; + * .Catalyst.Protocol.Deltas.Delta delta = 1; */ - protected $delta = null; + private $delta = null; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Deltas\Delta $delta - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field .Catalyst.Protocol.Deltas.Delta delta = 1; - * @return \Catalyst\Protocol\Deltas\Delta + * .Catalyst.Protocol.Deltas.Delta delta = 1; */ public function getDelta() { @@ -42,16 +32,12 @@ public function getDelta() } /** - * Generated from protobuf field .Catalyst.Protocol.Deltas.Delta delta = 1; - * @param \Catalyst\Protocol\Deltas\Delta $var - * @return $this + * .Catalyst.Protocol.Deltas.Delta delta = 1; */ - public function setDelta($var) + public function setDelta(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Deltas\Delta::class); $this->delta = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsRequest.php index d42b12e..629f136 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest */ class GetFileFromDfsRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string dfs_hash = 1; + * string dfs_hash = 1; */ - protected $dfs_hash = ''; + private $dfs_hash = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dfs_hash - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string dfs_hash = 1; - * @return string + * string dfs_hash = 1; */ public function getDfsHash() { @@ -42,16 +32,12 @@ public function getDfsHash() } /** - * Generated from protobuf field string dfs_hash = 1; - * @param string $var - * @return $this + * string dfs_hash = 1; */ public function setDfsHash($var) { GPBUtil::checkString($var, True); $this->dfs_hash = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsResponse.php index b99bce0..b33f48f 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetFileFromDfsResponse.php @@ -9,37 +9,26 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse */ class GetFileFromDfsResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field uint64 file_size = 1; + * uint64 file_size = 1; */ - protected $file_size = 0; + private $file_size = 0; /** - * Generated from protobuf field bytes response_code = 2; + * bytes response_code = 2; */ - protected $response_code = ''; + private $response_code = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $file_size - * @type string $response_code - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field uint64 file_size = 1; - * @return int|string + * uint64 file_size = 1; */ public function getFileSize() { @@ -47,21 +36,16 @@ public function getFileSize() } /** - * Generated from protobuf field uint64 file_size = 1; - * @param int|string $var - * @return $this + * uint64 file_size = 1; */ public function setFileSize($var) { GPBUtil::checkUint64($var); $this->file_size = $var; - - return $this; } /** - * Generated from protobuf field bytes response_code = 2; - * @return string + * bytes response_code = 2; */ public function getResponseCode() { @@ -69,16 +53,12 @@ public function getResponseCode() } /** - * Generated from protobuf field bytes response_code = 2; - * @param string $var - * @return $this + * bytes response_code = 2; */ public function setResponseCode($var) { GPBUtil::checkString($var, False); $this->response_code = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetInfoRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetInfoRequest.php index 9ce61eb..3e5270b 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetInfoRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetInfoRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetInfoRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.GetInfoRequest */ class GetInfoRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetInfoResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetInfoResponse.php index ca4d594..0d8c303 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetInfoResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetInfoResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetInfoResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.GetInfoResponse */ class GetInfoResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetMempoolRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetMempoolRequest.php index 985fbf5..be2ead4 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetMempoolRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetMempoolRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetMempoolRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.GetMempoolRequest */ class GetMempoolRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetMempoolResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetMempoolResponse.php index 0aa5f47..965ba2e 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetMempoolResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetMempoolResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetMempoolResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.GetMempoolResponse */ class GetMempoolResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; + * repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; */ private $transactions; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Transaction\PublicEntry[]|\Google\Protobuf\Internal\RepeatedField $transactions - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; */ public function getTransactions() { @@ -42,16 +32,12 @@ public function getTransactions() } /** - * Generated from protobuf field repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; - * @param \Catalyst\Protocol\Transaction\PublicEntry[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated .Catalyst.Protocol.Transaction.PublicEntry transactions = 1; */ - public function setTransactions($var) + public function setTransactions(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Transaction\PublicEntry::class); - $this->transactions = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Transaction\PublicEntry::class); + $this->transactions = $var; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerCountRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerCountRequest.php index 0293e81..b3367e5 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerCountRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerCountRequest.php @@ -9,22 +9,14 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetPeerCountRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.GetPeerCountRequest */ class GetPeerCountRequest extends \Google\Protobuf\Internal\Message { - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerCountResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerCountResponse.php index cc58aaa..85cc7fe 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerCountResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerCountResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetPeerCountResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.GetPeerCountResponse */ class GetPeerCountResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field int32 peer_count = 1; + * int32 peer_count = 1; */ - protected $peer_count = 0; + private $peer_count = 0; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $peer_count - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field int32 peer_count = 1; - * @return int + * int32 peer_count = 1; */ public function getPeerCount() { @@ -42,16 +32,12 @@ public function getPeerCount() } /** - * Generated from protobuf field int32 peer_count = 1; - * @param int $var - * @return $this + * int32 peer_count = 1; */ public function setPeerCount($var) { GPBUtil::checkInt32($var); $this->peer_count = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoRequest.php index 9fc4934..de4796f 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoRequest.php @@ -9,37 +9,26 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest */ class GetPeerInfoRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bytes public_key = 1; + * bytes public_key = 1; */ - protected $public_key = ''; + private $public_key = ''; /** - * Generated from protobuf field bytes ip = 2; + * bytes ip = 2; */ - protected $ip = ''; + private $ip = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $public_key - * @type string $ip - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bytes public_key = 1; - * @return string + * bytes public_key = 1; */ public function getPublicKey() { @@ -47,21 +36,16 @@ public function getPublicKey() } /** - * Generated from protobuf field bytes public_key = 1; - * @param string $var - * @return $this + * bytes public_key = 1; */ public function setPublicKey($var) { GPBUtil::checkString($var, False); $this->public_key = $var; - - return $this; } /** - * Generated from protobuf field bytes ip = 2; - * @return string + * bytes ip = 2; */ public function getIp() { @@ -69,16 +53,12 @@ public function getIp() } /** - * Generated from protobuf field bytes ip = 2; - * @param string $var - * @return $this + * bytes ip = 2; */ public function setIp($var) { GPBUtil::checkString($var, False); $this->ip = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoResponse.php index 1abdee2..a5b4acd 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerInfoResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse */ class GetPeerInfoResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; + * repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; */ private $peer_info; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Peer\PeerInfo[]|\Google\Protobuf\Internal\RepeatedField $peer_info - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; */ public function getPeerInfo() { @@ -42,16 +32,12 @@ public function getPeerInfo() } /** - * Generated from protobuf field repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; - * @param \Catalyst\Protocol\Peer\PeerInfo[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated .Catalyst.Protocol.Peer.PeerInfo peer_info = 1; */ - public function setPeerInfo($var) + public function setPeerInfo(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Peer\PeerInfo::class); - $this->peer_info = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Peer\PeerInfo::class); + $this->peer_info = $var; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerListRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerListRequest.php index 3fbe0f4..b71c624 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerListRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerListRequest.php @@ -9,22 +9,14 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetPeerListRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.GetPeerListRequest */ class GetPeerListRequest extends \Google\Protobuf\Internal\Message { - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerListResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerListResponse.php index 4e1dca0..60970e3 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerListResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerListResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetPeerListResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.GetPeerListResponse */ class GetPeerListResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field repeated .Catalyst.Protocol.Peer.PeerId peers = 1; + * repeated .Catalyst.Protocol.Peer.PeerId peers = 1; */ private $peers; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Peer\PeerId[]|\Google\Protobuf\Internal\RepeatedField $peers - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field repeated .Catalyst.Protocol.Peer.PeerId peers = 1; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated .Catalyst.Protocol.Peer.PeerId peers = 1; */ public function getPeers() { @@ -42,16 +32,12 @@ public function getPeers() } /** - * Generated from protobuf field repeated .Catalyst.Protocol.Peer.PeerId peers = 1; - * @param \Catalyst\Protocol\Peer\PeerId[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated .Catalyst.Protocol.Peer.PeerId peers = 1; */ - public function setPeers($var) + public function setPeers(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Peer\PeerId::class); - $this->peers = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Catalyst\Protocol\Peer\PeerId::class); + $this->peers = $var; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationRequest.php index 8a5bd00..eae212e 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationRequest.php @@ -9,37 +9,26 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest */ class GetPeerReputationRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bytes public_key = 1; + * bytes public_key = 1; */ - protected $public_key = ''; + private $public_key = ''; /** - * Generated from protobuf field bytes ip = 2; + * bytes ip = 2; */ - protected $ip = ''; + private $ip = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $public_key - * @type string $ip - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bytes public_key = 1; - * @return string + * bytes public_key = 1; */ public function getPublicKey() { @@ -47,21 +36,16 @@ public function getPublicKey() } /** - * Generated from protobuf field bytes public_key = 1; - * @param string $var - * @return $this + * bytes public_key = 1; */ public function setPublicKey($var) { GPBUtil::checkString($var, False); $this->public_key = $var; - - return $this; } /** - * Generated from protobuf field bytes ip = 2; - * @return string + * bytes ip = 2; */ public function getIp() { @@ -69,16 +53,12 @@ public function getIp() } /** - * Generated from protobuf field bytes ip = 2; - * @param string $var - * @return $this + * bytes ip = 2; */ public function setIp($var) { GPBUtil::checkString($var, False); $this->ip = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationResponse.php index 49286c8..eb96b38 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/GetPeerReputationResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse */ class GetPeerReputationResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field int32 reputation = 1; + * int32 reputation = 1; */ - protected $reputation = 0; + private $reputation = 0; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $reputation - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field int32 reputation = 1; - * @return int + * int32 reputation = 1; */ public function getReputation() { @@ -42,16 +32,12 @@ public function getReputation() } /** - * Generated from protobuf field int32 reputation = 1; - * @param int $var - * @return $this + * int32 reputation = 1; */ public function setReputation($var) { GPBUtil::checkInt32($var); $this->reputation = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListAddressRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListAddressRequest.php index f0f63b5..5e4e539 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListAddressRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListAddressRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.ListAddressRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.ListAddressRequest */ class ListAddressRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListAddressResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListAddressResponse.php index 260387d..ad6404d 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListAddressResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListAddressResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.ListAddressResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.ListAddressResponse */ class ListAddressResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListWalletRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListWalletRequest.php index 68e66b1..a0aec96 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListWalletRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListWalletRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.ListWalletRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.ListWalletRequest */ class ListWalletRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListWalletResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListWalletResponse.php index b21fb29..bffca83 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListWalletResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ListWalletResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.ListWalletResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.ListWalletResponse */ class ListWalletResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/RemovePeerRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/RemovePeerRequest.php index b144ab9..02249eb 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/RemovePeerRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/RemovePeerRequest.php @@ -9,37 +9,26 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.RemovePeerRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.RemovePeerRequest */ class RemovePeerRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bytes peer_ip = 1; + * bytes peer_ip = 1; */ - protected $peer_ip = ''; + private $peer_ip = ''; /** - * Generated from protobuf field bytes public_key = 2; + * bytes public_key = 2; */ - protected $public_key = ''; + private $public_key = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $peer_ip - * @type string $public_key - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bytes peer_ip = 1; - * @return string + * bytes peer_ip = 1; */ public function getPeerIp() { @@ -47,21 +36,16 @@ public function getPeerIp() } /** - * Generated from protobuf field bytes peer_ip = 1; - * @param string $var - * @return $this + * bytes peer_ip = 1; */ public function setPeerIp($var) { GPBUtil::checkString($var, False); $this->peer_ip = $var; - - return $this; } /** - * Generated from protobuf field bytes public_key = 2; - * @return string + * bytes public_key = 2; */ public function getPublicKey() { @@ -69,16 +53,12 @@ public function getPublicKey() } /** - * Generated from protobuf field bytes public_key = 2; - * @param string $var - * @return $this + * bytes public_key = 2; */ public function setPublicKey($var) { GPBUtil::checkString($var, False); $this->public_key = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/RemovePeerResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/RemovePeerResponse.php index f255953..c6c6164 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/RemovePeerResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/RemovePeerResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.RemovePeerResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.RemovePeerResponse */ class RemovePeerResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field uint32 deleted_count = 1; + * uint32 deleted_count = 1; */ - protected $deleted_count = 0; + private $deleted_count = 0; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $deleted_count - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field uint32 deleted_count = 1; - * @return int + * uint32 deleted_count = 1; */ public function getDeletedCount() { @@ -42,16 +32,12 @@ public function getDeletedCount() } /** - * Generated from protobuf field uint32 deleted_count = 1; - * @param int $var - * @return $this + * uint32 deleted_count = 1; */ public function setDeletedCount($var) { GPBUtil::checkUint32($var); $this->deleted_count = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ResponseCode.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ResponseCode.php index 903dc69..48850c4 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ResponseCode.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ResponseCode.php @@ -4,70 +4,38 @@ namespace Catalyst\Protocol\Rpc\Node; -use UnexpectedValueException; - /** - * Protobuf type Catalyst.Protocol.Rpc.Node.ResponseCode + * Protobuf enum Catalyst.Protocol.Rpc.Node.ResponseCode */ class ResponseCode { /** - * Generated from protobuf enum PENDING = 0; + * PENDING = 0; */ const PENDING = 0; /** - * Generated from protobuf enum SUCCESSFUL = 1; + * SUCCESSFUL = 1; */ const SUCCESSFUL = 1; /** - * Generated from protobuf enum ERROR = 2; + * ERROR = 2; */ const ERROR = 2; /** - * Generated from protobuf enum FINISHED = 3; + * FINISHED = 3; */ const FINISHED = 3; /** - * Generated from protobuf enum EXPIRED = 4; + * EXPIRED = 4; */ const EXPIRED = 4; /** - * Generated from protobuf enum FAILED = 5; + * FAILED = 5; */ const FAILED = 5; /** - * Generated from protobuf enum EXISTS = 6; + * EXISTS = 6; */ const EXISTS = 6; - - private static $valueToName = [ - self::PENDING => 'PENDING', - self::SUCCESSFUL => 'SUCCESSFUL', - self::ERROR => 'ERROR', - self::FINISHED => 'FINISHED', - self::EXPIRED => 'EXPIRED', - self::FAILED => 'FAILED', - self::EXISTS => 'EXISTS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendFromManyRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendFromManyRequest.php index e52280a..015df6a 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendFromManyRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendFromManyRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SendFromManyRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.SendFromManyRequest */ class SendFromManyRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendFromManyResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendFromManyResponse.php index 38959be..2f6e9d6 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendFromManyResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendFromManyResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SendFromManyResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.SendFromManyResponse */ class SendFromManyResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendManyRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendManyRequest.php index 2a627f2..1d7f112 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendManyRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendManyRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SendManyRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.SendManyRequest */ class SendManyRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendManyResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendManyResponse.php index e9a6db6..380906b 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendManyResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendManyResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SendManyResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.SendManyResponse */ class SendManyResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToFromRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToFromRequest.php index f6ab2da..97d352b 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToFromRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToFromRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SendToFromRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.SendToFromRequest */ class SendToFromRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToFromResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToFromResponse.php index 208c81a..d30ac6a 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToFromResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToFromResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SendToFromResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.SendToFromResponse */ class SendToFromResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToRequest.php index 3d64cb5..76c0bc2 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SendToRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.SendToRequest */ class SendToRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToResponse.php index 1b7b542..d7d9a97 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SendToResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SendToResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.SendToResponse */ class SendToResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ServiceStatusRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ServiceStatusRequest.php index e7ab35f..6cf388b 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ServiceStatusRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ServiceStatusRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.ServiceStatusRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.ServiceStatusRequest */ class ServiceStatusRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ServiceStatusResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ServiceStatusResponse.php index 127b56c..e5c1d0e 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ServiceStatusResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ServiceStatusResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.ServiceStatusResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.ServiceStatusResponse */ class ServiceStatusResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListRequest.php new file mode 100644 index 0000000..43a8ffb --- /dev/null +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListRequest.php @@ -0,0 +1,86 @@ +Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest + */ +class SetPeerBlackListRequest extends \Google\Protobuf\Internal\Message +{ + /** + * bytes public_key = 1; + */ + private $public_key = ''; + /** + * bytes ip = 2; + */ + private $ip = ''; + /** + * bool blacklist = 3; + */ + private $blacklist = false; + + public function __construct() { + \GPBMetadata\Rpc::initOnce(); + parent::__construct(); + } + + /** + * bytes public_key = 1; + */ + public function getPublicKey() + { + return $this->public_key; + } + + /** + * bytes public_key = 1; + */ + public function setPublicKey($var) + { + GPBUtil::checkString($var, False); + $this->public_key = $var; + } + + /** + * bytes ip = 2; + */ + public function getIp() + { + return $this->ip; + } + + /** + * bytes ip = 2; + */ + public function setIp($var) + { + GPBUtil::checkString($var, False); + $this->ip = $var; + } + + /** + * bool blacklist = 3; + */ + public function getBlacklist() + { + return $this->blacklist; + } + + /** + * bool blacklist = 3; + */ + public function setBlacklist($var) + { + GPBUtil::checkBool($var); + $this->blacklist = $var; + } + +} + diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListResponse.php new file mode 100644 index 0000000..bf3000b --- /dev/null +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerBlackListResponse.php @@ -0,0 +1,86 @@ +Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse + */ +class SetPeerBlackListResponse extends \Google\Protobuf\Internal\Message +{ + /** + * bytes public_key = 1; + */ + private $public_key = ''; + /** + * bytes ip = 2; + */ + private $ip = ''; + /** + * bool blacklist = 3; + */ + private $blacklist = false; + + public function __construct() { + \GPBMetadata\Rpc::initOnce(); + parent::__construct(); + } + + /** + * bytes public_key = 1; + */ + public function getPublicKey() + { + return $this->public_key; + } + + /** + * bytes public_key = 1; + */ + public function setPublicKey($var) + { + GPBUtil::checkString($var, False); + $this->public_key = $var; + } + + /** + * bytes ip = 2; + */ + public function getIp() + { + return $this->ip; + } + + /** + * bytes ip = 2; + */ + public function setIp($var) + { + GPBUtil::checkString($var, False); + $this->ip = $var; + } + + /** + * bool blacklist = 3; + */ + public function getBlacklist() + { + return $this->blacklist; + } + + /** + * bool blacklist = 3; + */ + public function setBlacklist($var) + { + GPBUtil::checkBool($var); + $this->blacklist = $var; + } + +} + diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderRequest.php index 2716cfb..74f599a 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest */ class SetPeerDataFolderRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string data_folder = 1; + * string data_folder = 1; */ - protected $data_folder = ''; + private $data_folder = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $data_folder - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string data_folder = 1; - * @return string + * string data_folder = 1; */ public function getDataFolder() { @@ -42,16 +32,12 @@ public function getDataFolder() } /** - * Generated from protobuf field string data_folder = 1; - * @param string $var - * @return $this + * string data_folder = 1; */ public function setDataFolder($var) { GPBUtil::checkString($var, True); $this->data_folder = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderResponse.php index eee3c90..7a75d51 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SetPeerDataFolderResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse */ class SetPeerDataFolderResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignMessageRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignMessageRequest.php index cf2086c..f4c1e13 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignMessageRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignMessageRequest.php @@ -9,42 +9,30 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SignMessageRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.SignMessageRequest */ class SignMessageRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bytes message = 1; + * bytes message = 1; */ - protected $message = ''; + private $message = ''; /** - * Generated from protobuf field string key_id = 2; + * string key_id = 2; */ - protected $key_id = ''; + private $key_id = ''; /** - * Generated from protobuf field .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; + * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; */ - protected $signing_context = null; + private $signing_context = null; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * @type string $key_id - * @type \Catalyst\Protocol\Cryptography\SigningContext $signing_context - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bytes message = 1; - * @return string + * bytes message = 1; */ public function getMessage() { @@ -52,21 +40,16 @@ public function getMessage() } /** - * Generated from protobuf field bytes message = 1; - * @param string $var - * @return $this + * bytes message = 1; */ public function setMessage($var) { GPBUtil::checkString($var, False); $this->message = $var; - - return $this; } /** - * Generated from protobuf field string key_id = 2; - * @return string + * string key_id = 2; */ public function getKeyId() { @@ -74,21 +57,16 @@ public function getKeyId() } /** - * Generated from protobuf field string key_id = 2; - * @param string $var - * @return $this + * string key_id = 2; */ public function setKeyId($var) { GPBUtil::checkString($var, True); $this->key_id = $var; - - return $this; } /** - * Generated from protobuf field .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; - * @return \Catalyst\Protocol\Cryptography\SigningContext + * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; */ public function getSigningContext() { @@ -96,16 +74,12 @@ public function getSigningContext() } /** - * Generated from protobuf field .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; - * @param \Catalyst\Protocol\Cryptography\SigningContext $var - * @return $this + * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 3; */ - public function setSigningContext($var) + public function setSigningContext(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Cryptography\SigningContext::class); $this->signing_context = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignMessageResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignMessageResponse.php index 604710b..0fdd830 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignMessageResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignMessageResponse.php @@ -9,42 +9,30 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SignMessageResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.SignMessageResponse */ class SignMessageResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bytes signature = 1; + * bytes signature = 1; */ - protected $signature = ''; + private $signature = ''; /** - * Generated from protobuf field bytes public_key = 2; + * bytes public_key = 2; */ - protected $public_key = ''; + private $public_key = ''; /** - * Generated from protobuf field bytes original_message = 3; + * bytes original_message = 3; */ - protected $original_message = ''; + private $original_message = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $signature - * @type string $public_key - * @type string $original_message - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bytes signature = 1; - * @return string + * bytes signature = 1; */ public function getSignature() { @@ -52,21 +40,16 @@ public function getSignature() } /** - * Generated from protobuf field bytes signature = 1; - * @param string $var - * @return $this + * bytes signature = 1; */ public function setSignature($var) { GPBUtil::checkString($var, False); $this->signature = $var; - - return $this; } /** - * Generated from protobuf field bytes public_key = 2; - * @return string + * bytes public_key = 2; */ public function getPublicKey() { @@ -74,21 +57,16 @@ public function getPublicKey() } /** - * Generated from protobuf field bytes public_key = 2; - * @param string $var - * @return $this + * bytes public_key = 2; */ public function setPublicKey($var) { GPBUtil::checkString($var, False); $this->public_key = $var; - - return $this; } /** - * Generated from protobuf field bytes original_message = 3; - * @return string + * bytes original_message = 3; */ public function getOriginalMessage() { @@ -96,16 +74,12 @@ public function getOriginalMessage() } /** - * Generated from protobuf field bytes original_message = 3; - * @param string $var - * @return $this + * bytes original_message = 3; */ public function setOriginalMessage($var) { GPBUtil::checkString($var, False); $this->original_message = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionRequest.php index 23ac08b..f7b5db5 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest */ class SignRawTransactionRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionResponse.php index 9035fd3..d812035 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/SignRawTransactionResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse */ class SignRawTransactionResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesRequest.php index 63f1529..1634cf9 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesRequest.php @@ -9,42 +9,30 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest */ class TransferFileBytesRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field uint32 chunk_id = 1; + * uint32 chunk_id = 1; */ - protected $chunk_id = 0; + private $chunk_id = 0; /** - * Generated from protobuf field bytes chunk_bytes = 2; + * bytes chunk_bytes = 2; */ - protected $chunk_bytes = ''; + private $chunk_bytes = ''; /** - * Generated from protobuf field bytes correlation_file_name = 3; + * bytes correlation_file_name = 3; */ - protected $correlation_file_name = ''; + private $correlation_file_name = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $chunk_id - * @type string $chunk_bytes - * @type string $correlation_file_name - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field uint32 chunk_id = 1; - * @return int + * uint32 chunk_id = 1; */ public function getChunkId() { @@ -52,21 +40,16 @@ public function getChunkId() } /** - * Generated from protobuf field uint32 chunk_id = 1; - * @param int $var - * @return $this + * uint32 chunk_id = 1; */ public function setChunkId($var) { GPBUtil::checkUint32($var); $this->chunk_id = $var; - - return $this; } /** - * Generated from protobuf field bytes chunk_bytes = 2; - * @return string + * bytes chunk_bytes = 2; */ public function getChunkBytes() { @@ -74,21 +57,16 @@ public function getChunkBytes() } /** - * Generated from protobuf field bytes chunk_bytes = 2; - * @param string $var - * @return $this + * bytes chunk_bytes = 2; */ public function setChunkBytes($var) { GPBUtil::checkString($var, False); $this->chunk_bytes = $var; - - return $this; } /** - * Generated from protobuf field bytes correlation_file_name = 3; - * @return string + * bytes correlation_file_name = 3; */ public function getCorrelationFileName() { @@ -96,16 +74,12 @@ public function getCorrelationFileName() } /** - * Generated from protobuf field bytes correlation_file_name = 3; - * @param string $var - * @return $this + * bytes correlation_file_name = 3; */ public function setCorrelationFileName($var) { GPBUtil::checkString($var, False); $this->correlation_file_name = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesResponse.php index fdeb2d4..a846ce9 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/TransferFileBytesResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse */ class TransferFileBytesResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bytes response_code = 1; + * bytes response_code = 1; */ - protected $response_code = ''; + private $response_code = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $response_code - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bytes response_code = 1; - * @return string + * bytes response_code = 1; */ public function getResponseCode() { @@ -42,16 +32,12 @@ public function getResponseCode() } /** - * Generated from protobuf field bytes response_code = 1; - * @param string $var - * @return $this + * bytes response_code = 1; */ public function setResponseCode($var) { GPBUtil::checkString($var, False); $this->response_code = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ValidateAddressRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ValidateAddressRequest.php index 21fc6bf..785996c 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ValidateAddressRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ValidateAddressRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.ValidateAddressRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.ValidateAddressRequest */ class ValidateAddressRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ValidateAddressResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ValidateAddressResponse.php index e5d5fad..49d30da 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ValidateAddressResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/ValidateAddressResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.ValidateAddressResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.ValidateAddressResponse */ class ValidateAddressResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string query = 1; + * string query = 1; */ - protected $query = ''; + private $query = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string query = 1; - * @return string + * string query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field string query = 1; - * @param string $var - * @return $this + * string query = 1; */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VerifyMessageRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VerifyMessageRequest.php index 2142c4e..f93ab3b 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VerifyMessageRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VerifyMessageRequest.php @@ -9,47 +9,34 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.VerifyMessageRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.VerifyMessageRequest */ class VerifyMessageRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bytes signature = 1; + * bytes signature = 1; */ - protected $signature = ''; + private $signature = ''; /** - * Generated from protobuf field bytes public_key = 2; + * bytes public_key = 2; */ - protected $public_key = ''; + private $public_key = ''; /** - * Generated from protobuf field bytes message = 3; + * bytes message = 3; */ - protected $message = ''; + private $message = ''; /** - * Generated from protobuf field .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; + * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; */ - protected $signing_context = null; + private $signing_context = null; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $signature - * @type string $public_key - * @type string $message - * @type \Catalyst\Protocol\Cryptography\SigningContext $signing_context - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bytes signature = 1; - * @return string + * bytes signature = 1; */ public function getSignature() { @@ -57,21 +44,16 @@ public function getSignature() } /** - * Generated from protobuf field bytes signature = 1; - * @param string $var - * @return $this + * bytes signature = 1; */ public function setSignature($var) { GPBUtil::checkString($var, False); $this->signature = $var; - - return $this; } /** - * Generated from protobuf field bytes public_key = 2; - * @return string + * bytes public_key = 2; */ public function getPublicKey() { @@ -79,21 +61,16 @@ public function getPublicKey() } /** - * Generated from protobuf field bytes public_key = 2; - * @param string $var - * @return $this + * bytes public_key = 2; */ public function setPublicKey($var) { GPBUtil::checkString($var, False); $this->public_key = $var; - - return $this; } /** - * Generated from protobuf field bytes message = 3; - * @return string + * bytes message = 3; */ public function getMessage() { @@ -101,21 +78,16 @@ public function getMessage() } /** - * Generated from protobuf field bytes message = 3; - * @param string $var - * @return $this + * bytes message = 3; */ public function setMessage($var) { GPBUtil::checkString($var, False); $this->message = $var; - - return $this; } /** - * Generated from protobuf field .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; - * @return \Catalyst\Protocol\Cryptography\SigningContext + * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; */ public function getSigningContext() { @@ -123,16 +95,12 @@ public function getSigningContext() } /** - * Generated from protobuf field .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; - * @param \Catalyst\Protocol\Cryptography\SigningContext $var - * @return $this + * .Catalyst.Protocol.Cryptography.SigningContext signing_context = 4; */ - public function setSigningContext($var) + public function setSigningContext(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Cryptography\SigningContext::class); $this->signing_context = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VerifyMessageResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VerifyMessageResponse.php index 701fadd..a6e7b7e 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VerifyMessageResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VerifyMessageResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.VerifyMessageResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.VerifyMessageResponse */ class VerifyMessageResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool is_signed_by_key = 1; + * bool is_signed_by_key = 1; */ - protected $is_signed_by_key = false; + private $is_signed_by_key = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $is_signed_by_key - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool is_signed_by_key = 1; - * @return bool + * bool is_signed_by_key = 1; */ public function getIsSignedByKey() { @@ -42,16 +32,12 @@ public function getIsSignedByKey() } /** - * Generated from protobuf field bool is_signed_by_key = 1; - * @param bool $var - * @return $this + * bool is_signed_by_key = 1; */ public function setIsSignedByKey($var) { GPBUtil::checkBool($var); $this->is_signed_by_key = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VersionRequest.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VersionRequest.php index 6232acb..01279ba 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VersionRequest.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VersionRequest.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.VersionRequest + * Protobuf type Catalyst.Protocol.Rpc.Node.VersionRequest */ class VersionRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field bool query = 1; + * bool query = 1; */ - protected $query = false; + private $query = false; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $query - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field bool query = 1; - * @return bool + * bool query = 1; */ public function getQuery() { @@ -42,16 +32,12 @@ public function getQuery() } /** - * Generated from protobuf field bool query = 1; - * @param bool $var - * @return $this + * bool query = 1; */ public function setQuery($var) { GPBUtil::checkBool($var); $this->query = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VersionResponse.php b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VersionResponse.php index 282227d..fdefc6c 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VersionResponse.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Rpc/Node/VersionResponse.php @@ -9,32 +9,22 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Rpc.Node.VersionResponse + * Protobuf type Catalyst.Protocol.Rpc.Node.VersionResponse */ class VersionResponse extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field string version = 1; + * string version = 1; */ - protected $version = ''; + private $version = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Rpc::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field string version = 1; - * @return string + * string version = 1; */ public function getVersion() { @@ -42,16 +32,12 @@ public function getVersion() } /** - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this + * string version = 1; */ public function setVersion($var) { GPBUtil::checkString($var, True); $this->version = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Transaction/CoinbaseEntry.php b/packages/sdk-php/src/Catalyst/Protocol/Transaction/CoinbaseEntry.php index b4ec66a..61f36df 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Transaction/CoinbaseEntry.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Transaction/CoinbaseEntry.php @@ -9,45 +9,38 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Transaction.CoinbaseEntry + * Protobuf type Catalyst.Protocol.Transaction.CoinbaseEntry */ class CoinbaseEntry extends \Google\Protobuf\Internal\Message { /** + *
      * public key behind the address where the Coinbase will be credited
+     * 
* - * Generated from protobuf field bytes receiver_public_key = 1; + * bytes receiver_public_key = 1; */ - protected $receiver_public_key = ''; + private $receiver_public_key = ''; /** + *
      * uint256 amount
+     * 
* - * Generated from protobuf field bytes amount = 2; + * bytes amount = 2; */ - protected $amount = ''; + private $amount = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $receiver_public_key - * public key behind the address where the Coinbase will be credited - * @type string $amount - * uint256 amount - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Transaction::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * public key behind the address where the Coinbase will be credited
+     * 
* - * Generated from protobuf field bytes receiver_public_key = 1; - * @return string + * bytes receiver_public_key = 1; */ public function getReceiverPublicKey() { @@ -55,25 +48,24 @@ public function getReceiverPublicKey() } /** + *
      * public key behind the address where the Coinbase will be credited
+     * 
* - * Generated from protobuf field bytes receiver_public_key = 1; - * @param string $var - * @return $this + * bytes receiver_public_key = 1; */ public function setReceiverPublicKey($var) { GPBUtil::checkString($var, False); $this->receiver_public_key = $var; - - return $this; } /** + *
      * uint256 amount
+     * 
* - * Generated from protobuf field bytes amount = 2; - * @return string + * bytes amount = 2; */ public function getAmount() { @@ -81,18 +73,16 @@ public function getAmount() } /** + *
      * uint256 amount
+     * 
* - * Generated from protobuf field bytes amount = 2; - * @param string $var - * @return $this + * bytes amount = 2; */ public function setAmount($var) { GPBUtil::checkString($var, False); $this->amount = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Transaction/ConfidentialEntry.php b/packages/sdk-php/src/Catalyst/Protocol/Transaction/ConfidentialEntry.php index c576963..8c7ca82 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Transaction/ConfidentialEntry.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Transaction/ConfidentialEntry.php @@ -9,74 +9,66 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Transaction.ConfidentialEntry + * Protobuf type Catalyst.Protocol.Transaction.ConfidentialEntry */ class ConfidentialEntry extends \Google\Protobuf\Internal\Message { /** + *
      * PublicKey of receiver.
+     * 
* - * Generated from protobuf field bytes receiver_public_key = 1; + * bytes receiver_public_key = 1; */ - protected $receiver_public_key = ''; + private $receiver_public_key = ''; /** + *
      * PublicKey of sender.
+     * 
* - * Generated from protobuf field bytes sender_public_key = 2; + * bytes sender_public_key = 2; */ - protected $sender_public_key = ''; + private $sender_public_key = ''; /** + *
      * 32 bytes
+     * 
* - * Generated from protobuf field bytes pedersen_commitment = 3; + * bytes pedersen_commitment = 3; */ - protected $pedersen_commitment = ''; + private $pedersen_commitment = ''; /** - * Generated from protobuf field .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; + * .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; */ - protected $range_proof = null; + private $range_proof = null; /** + *
      * 8 bytes, clear text, fees * 10^12
+     * 
* - * Generated from protobuf field bytes transaction_fees = 5; + * bytes transaction_fees = 5; */ - protected $transaction_fees = ''; + private $transaction_fees = ''; /** + *
      * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction
+     * 
* - * Generated from protobuf field uint64 nonce = 6; + * uint64 nonce = 6; */ - protected $nonce = 0; + private $nonce = 0; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $receiver_public_key - * PublicKey of receiver. - * @type string $sender_public_key - * PublicKey of sender. - * @type string $pedersen_commitment - * 32 bytes - * @type \Catalyst\Protocol\Transaction\RangeProof $range_proof - * @type string $transaction_fees - * 8 bytes, clear text, fees * 10^12 - * @type int|string $nonce - * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Transaction::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * PublicKey of receiver.
+     * 
* - * Generated from protobuf field bytes receiver_public_key = 1; - * @return string + * bytes receiver_public_key = 1; */ public function getReceiverPublicKey() { @@ -84,25 +76,24 @@ public function getReceiverPublicKey() } /** + *
      * PublicKey of receiver.
+     * 
* - * Generated from protobuf field bytes receiver_public_key = 1; - * @param string $var - * @return $this + * bytes receiver_public_key = 1; */ public function setReceiverPublicKey($var) { GPBUtil::checkString($var, False); $this->receiver_public_key = $var; - - return $this; } /** + *
      * PublicKey of sender.
+     * 
* - * Generated from protobuf field bytes sender_public_key = 2; - * @return string + * bytes sender_public_key = 2; */ public function getSenderPublicKey() { @@ -110,25 +101,24 @@ public function getSenderPublicKey() } /** + *
      * PublicKey of sender.
+     * 
* - * Generated from protobuf field bytes sender_public_key = 2; - * @param string $var - * @return $this + * bytes sender_public_key = 2; */ public function setSenderPublicKey($var) { GPBUtil::checkString($var, False); $this->sender_public_key = $var; - - return $this; } /** + *
      * 32 bytes
+     * 
* - * Generated from protobuf field bytes pedersen_commitment = 3; - * @return string + * bytes pedersen_commitment = 3; */ public function getPedersenCommitment() { @@ -136,23 +126,20 @@ public function getPedersenCommitment() } /** + *
      * 32 bytes
+     * 
* - * Generated from protobuf field bytes pedersen_commitment = 3; - * @param string $var - * @return $this + * bytes pedersen_commitment = 3; */ public function setPedersenCommitment($var) { GPBUtil::checkString($var, False); $this->pedersen_commitment = $var; - - return $this; } /** - * Generated from protobuf field .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; - * @return \Catalyst\Protocol\Transaction\RangeProof + * .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; */ public function getRangeProof() { @@ -160,23 +147,20 @@ public function getRangeProof() } /** - * Generated from protobuf field .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; - * @param \Catalyst\Protocol\Transaction\RangeProof $var - * @return $this + * .Catalyst.Protocol.Transaction.RangeProof range_proof = 4; */ - public function setRangeProof($var) + public function setRangeProof(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Transaction\RangeProof::class); $this->range_proof = $var; - - return $this; } /** + *
      * 8 bytes, clear text, fees * 10^12
+     * 
* - * Generated from protobuf field bytes transaction_fees = 5; - * @return string + * bytes transaction_fees = 5; */ public function getTransactionFees() { @@ -184,25 +168,24 @@ public function getTransactionFees() } /** + *
      * 8 bytes, clear text, fees * 10^12
+     * 
* - * Generated from protobuf field bytes transaction_fees = 5; - * @param string $var - * @return $this + * bytes transaction_fees = 5; */ public function setTransactionFees($var) { GPBUtil::checkString($var, False); $this->transaction_fees = $var; - - return $this; } /** + *
      * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction
+     * 
* - * Generated from protobuf field uint64 nonce = 6; - * @return int|string + * uint64 nonce = 6; */ public function getNonce() { @@ -210,18 +193,16 @@ public function getNonce() } /** + *
      * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction
+     * 
* - * Generated from protobuf field uint64 nonce = 6; - * @param int|string $var - * @return $this + * uint64 nonce = 6; */ public function setNonce($var) { GPBUtil::checkUint64($var); $this->nonce = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Transaction/PublicEntry.php b/packages/sdk-php/src/Catalyst/Protocol/Transaction/PublicEntry.php index 1fe2ba0..1c25cf3 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Transaction/PublicEntry.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Transaction/PublicEntry.php @@ -9,92 +9,78 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Transaction.PublicEntry + * Protobuf type Catalyst.Protocol.Transaction.PublicEntry */ class PublicEntry extends \Google\Protobuf\Internal\Message { /** + *
      * Address of receiver.
+     * 
* - * Generated from protobuf field bytes receiver_address = 1; + * bytes receiver_address = 1; */ - protected $receiver_address = ''; + private $receiver_address = ''; /** + *
      * Address of sender.
+     * 
* - * Generated from protobuf field bytes sender_address = 2; + * bytes sender_address = 2; */ - protected $sender_address = ''; + private $sender_address = ''; /** + *
      * uint256 amount
+     * 
* - * Generated from protobuf field bytes amount = 3; + * bytes amount = 3; */ - protected $amount = ''; + private $amount = ''; /** + *
      * Smart contract data.
+     * 
* - * Generated from protobuf field bytes data = 4; + * bytes data = 4; */ - protected $data = ''; + private $data = ''; /** - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 5; + * bytes gas_price = 5; */ - protected $timestamp = null; + private $gas_price = ''; /** - * Generated from protobuf field bytes gas_price = 6; + * uint64 gas_limit = 6; */ - protected $gas_price = ''; - /** - * Generated from protobuf field uint64 gas_limit = 7; - */ - protected $gas_limit = 0; + private $gas_limit = 0; /** + *
      * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction
+     * 
* - * Generated from protobuf field uint64 nonce = 9; + * uint64 nonce = 7; */ - protected $nonce = 0; + private $nonce = 0; /** + *
      * is the ed25519ph context signature
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Cryptography.Signature signature = 10; + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ - protected $signature = null; + private $signature = null; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $receiver_address - * Address of receiver. - * @type string $sender_address - * Address of sender. - * @type string $amount - * uint256 amount - * @type string $data - * Smart contract data. - * @type \Google\Protobuf\Timestamp $timestamp - * @type string $gas_price - * @type int|string $gas_limit - * @type int|string $nonce - * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction - * @type \Catalyst\Protocol\Cryptography\Signature $signature - * is the ed25519ph context signature - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Transaction::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * Address of receiver.
+     * 
* - * Generated from protobuf field bytes receiver_address = 1; - * @return string + * bytes receiver_address = 1; */ public function getReceiverAddress() { @@ -102,25 +88,24 @@ public function getReceiverAddress() } /** + *
      * Address of receiver.
+     * 
* - * Generated from protobuf field bytes receiver_address = 1; - * @param string $var - * @return $this + * bytes receiver_address = 1; */ public function setReceiverAddress($var) { GPBUtil::checkString($var, False); $this->receiver_address = $var; - - return $this; } /** + *
      * Address of sender.
+     * 
* - * Generated from protobuf field bytes sender_address = 2; - * @return string + * bytes sender_address = 2; */ public function getSenderAddress() { @@ -128,25 +113,24 @@ public function getSenderAddress() } /** + *
      * Address of sender.
+     * 
* - * Generated from protobuf field bytes sender_address = 2; - * @param string $var - * @return $this + * bytes sender_address = 2; */ public function setSenderAddress($var) { GPBUtil::checkString($var, False); $this->sender_address = $var; - - return $this; } /** + *
      * uint256 amount
+     * 
* - * Generated from protobuf field bytes amount = 3; - * @return string + * bytes amount = 3; */ public function getAmount() { @@ -154,25 +138,24 @@ public function getAmount() } /** + *
      * uint256 amount
+     * 
* - * Generated from protobuf field bytes amount = 3; - * @param string $var - * @return $this + * bytes amount = 3; */ public function setAmount($var) { GPBUtil::checkString($var, False); $this->amount = $var; - - return $this; } /** + *
      * Smart contract data.
+     * 
* - * Generated from protobuf field bytes data = 4; - * @return string + * bytes data = 4; */ public function getData() { @@ -180,45 +163,20 @@ public function getData() } /** + *
      * Smart contract data.
+     * 
* - * Generated from protobuf field bytes data = 4; - * @param string $var - * @return $this + * bytes data = 4; */ public function setData($var) { GPBUtil::checkString($var, False); $this->data = $var; - - return $this; } /** - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 5; - * @return \Google\Protobuf\Timestamp - */ - public function getTimestamp() - { - return $this->timestamp; - } - - /** - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes gas_price = 6; - * @return string + * bytes gas_price = 5; */ public function getGasPrice() { @@ -226,21 +184,16 @@ public function getGasPrice() } /** - * Generated from protobuf field bytes gas_price = 6; - * @param string $var - * @return $this + * bytes gas_price = 5; */ public function setGasPrice($var) { GPBUtil::checkString($var, False); $this->gas_price = $var; - - return $this; } /** - * Generated from protobuf field uint64 gas_limit = 7; - * @return int|string + * uint64 gas_limit = 6; */ public function getGasLimit() { @@ -248,23 +201,20 @@ public function getGasLimit() } /** - * Generated from protobuf field uint64 gas_limit = 7; - * @param int|string $var - * @return $this + * uint64 gas_limit = 6; */ public function setGasLimit($var) { GPBUtil::checkUint64($var); $this->gas_limit = $var; - - return $this; } /** + *
      * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction
+     * 
* - * Generated from protobuf field uint64 nonce = 9; - * @return int|string + * uint64 nonce = 7; */ public function getNonce() { @@ -272,25 +222,24 @@ public function getNonce() } /** + *
      * A nonce, similar to Ethereum, incremented on each transaction on the account issuing the transaction
+     * 
* - * Generated from protobuf field uint64 nonce = 9; - * @param int|string $var - * @return $this + * uint64 nonce = 7; */ public function setNonce($var) { GPBUtil::checkUint64($var); $this->nonce = $var; - - return $this; } /** + *
      * is the ed25519ph context signature
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Cryptography.Signature signature = 10; - * @return \Catalyst\Protocol\Cryptography\Signature + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ public function getSignature() { @@ -298,18 +247,16 @@ public function getSignature() } /** + *
      * is the ed25519ph context signature
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Cryptography.Signature signature = 10; - * @param \Catalyst\Protocol\Cryptography\Signature $var - * @return $this + * .Catalyst.Protocol.Cryptography.Signature signature = 8; */ - public function setSignature($var) + public function setSignature(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Cryptography\Signature::class); $this->signature = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Transaction/RangeProof.php b/packages/sdk-php/src/Catalyst/Protocol/Transaction/RangeProof.php index 1dffb92..c727658 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Transaction/RangeProof.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Transaction/RangeProof.php @@ -9,126 +9,120 @@ use Google\Protobuf\Internal\GPBUtil; /** + *
  **
  * BulletProof-based range proof. See https://eprint.iacr.org/2017/1066.pdf for references to equations below.
  * Total byte size is (9+2k)*32, where k = log_2(n*m), m is number of aggregates in proof, (2^n)-1 is upper range of values.
+ * 
* - * Generated from protobuf message Catalyst.Protocol.Transaction.RangeProof + * Protobuf type Catalyst.Protocol.Transaction.RangeProof */ class RangeProof extends \Google\Protobuf\Internal\Message { /** + *
      * m * 32 bytes, value commitment (eq. 36) 
+     * 
* - * Generated from protobuf field repeated bytes value_commitment = 1; + * repeated bytes value_commitment = 1; */ private $value_commitment; /** + *
      * 32 bytes, bit commitment (eq. 48)
+     * 
* - * Generated from protobuf field bytes bit_commitment = 2; + * bytes bit_commitment = 2; */ - protected $bit_commitment = ''; + private $bit_commitment = ''; /** + *
      * 32 bytes, per bit blinding factor commitment (eq. 48)
+     * 
* - * Generated from protobuf field bytes per_bit_blinding_factor_commitment = 3; + * bytes per_bit_blinding_factor_commitment = 3; */ - protected $per_bit_blinding_factor_commitment = ''; + private $per_bit_blinding_factor_commitment = ''; /** + *
      * 32 bytes, poly commitment (eq. 54)
+     * 
* - * Generated from protobuf field bytes poly_commitment_t1 = 4; + * bytes poly_commitment_t1 = 4; */ - protected $poly_commitment_t1 = ''; + private $poly_commitment_t1 = ''; /** + *
      * 32 bytes, poly commitment (eq. 54)
+     * 
* - * Generated from protobuf field bytes poly_commitment_t2 = 5; + * bytes poly_commitment_t2 = 5; */ - protected $poly_commitment_t2 = ''; + private $poly_commitment_t2 = ''; /** + *
      * 32 bytes, proof of share (eq. 63)
+     * 
* - * Generated from protobuf field bytes proof_of_share_tau = 6; + * bytes proof_of_share_tau = 6; */ - protected $proof_of_share_tau = ''; + private $proof_of_share_tau = ''; /** + *
      * 32 bytes, proof of share (eq. 63)
+     * 
* - * Generated from protobuf field bytes proof_of_share_mu = 7; + * bytes proof_of_share_mu = 7; */ - protected $proof_of_share_mu = ''; + private $proof_of_share_mu = ''; /** + *
      * k * 32 bytes, aggregated vector polynomial (eq. 63)
+     * 
* - * Generated from protobuf field repeated bytes aggregated_vector_polynomial_l = 8; + * repeated bytes aggregated_vector_polynomial_l = 8; */ private $aggregated_vector_polynomial_l; /** + *
      * k * 32 bytes, aggregated vector polynomial (eq. 63)
+     * 
* - * Generated from protobuf field repeated bytes aggregated_vector_polynomial_r = 9; + * repeated bytes aggregated_vector_polynomial_r = 9; */ private $aggregated_vector_polynomial_r; /** + *
      * 32 bytes (eq. 63)
+     * 
* - * Generated from protobuf field bytes a_prime_0 = 10; + * bytes a_prime_0 = 10; */ - protected $a_prime_0 = ''; + private $a_prime_0 = ''; /** + *
      * 32 bytes (eq. 63)
+     * 
* - * Generated from protobuf field bytes b_prime_0 = 11; + * bytes b_prime_0 = 11; */ - protected $b_prime_0 = ''; + private $b_prime_0 = ''; /** - * Generated from protobuf field bytes t = 12; + * bytes t = 12; */ - protected $t = ''; + private $t = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $value_commitment - * m * 32 bytes, value commitment (eq. 36) - * @type string $bit_commitment - * 32 bytes, bit commitment (eq. 48) - * @type string $per_bit_blinding_factor_commitment - * 32 bytes, per bit blinding factor commitment (eq. 48) - * @type string $poly_commitment_t1 - * 32 bytes, poly commitment (eq. 54) - * @type string $poly_commitment_t2 - * 32 bytes, poly commitment (eq. 54) - * @type string $proof_of_share_tau - * 32 bytes, proof of share (eq. 63) - * @type string $proof_of_share_mu - * 32 bytes, proof of share (eq. 63) - * @type string[]|\Google\Protobuf\Internal\RepeatedField $aggregated_vector_polynomial_l - * k * 32 bytes, aggregated vector polynomial (eq. 63) - * @type string[]|\Google\Protobuf\Internal\RepeatedField $aggregated_vector_polynomial_r - * k * 32 bytes, aggregated vector polynomial (eq. 63) - * @type string $a_prime_0 - * 32 bytes (eq. 63) - * @type string $b_prime_0 - * 32 bytes (eq. 63) - * @type string $t - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Transaction::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * m * 32 bytes, value commitment (eq. 36) 
+     * 
* - * Generated from protobuf field repeated bytes value_commitment = 1; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated bytes value_commitment = 1; */ public function getValueCommitment() { @@ -136,25 +130,24 @@ public function getValueCommitment() } /** + *
      * m * 32 bytes, value commitment (eq. 36) 
+     * 
* - * Generated from protobuf field repeated bytes value_commitment = 1; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated bytes value_commitment = 1; */ - public function setValueCommitment($var) + public function setValueCommitment(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->value_commitment = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); + $this->value_commitment = $var; } /** + *
      * 32 bytes, bit commitment (eq. 48)
+     * 
* - * Generated from protobuf field bytes bit_commitment = 2; - * @return string + * bytes bit_commitment = 2; */ public function getBitCommitment() { @@ -162,25 +155,24 @@ public function getBitCommitment() } /** + *
      * 32 bytes, bit commitment (eq. 48)
+     * 
* - * Generated from protobuf field bytes bit_commitment = 2; - * @param string $var - * @return $this + * bytes bit_commitment = 2; */ public function setBitCommitment($var) { GPBUtil::checkString($var, False); $this->bit_commitment = $var; - - return $this; } /** + *
      * 32 bytes, per bit blinding factor commitment (eq. 48)
+     * 
* - * Generated from protobuf field bytes per_bit_blinding_factor_commitment = 3; - * @return string + * bytes per_bit_blinding_factor_commitment = 3; */ public function getPerBitBlindingFactorCommitment() { @@ -188,25 +180,24 @@ public function getPerBitBlindingFactorCommitment() } /** + *
      * 32 bytes, per bit blinding factor commitment (eq. 48)
+     * 
* - * Generated from protobuf field bytes per_bit_blinding_factor_commitment = 3; - * @param string $var - * @return $this + * bytes per_bit_blinding_factor_commitment = 3; */ public function setPerBitBlindingFactorCommitment($var) { GPBUtil::checkString($var, False); $this->per_bit_blinding_factor_commitment = $var; - - return $this; } /** + *
      * 32 bytes, poly commitment (eq. 54)
+     * 
* - * Generated from protobuf field bytes poly_commitment_t1 = 4; - * @return string + * bytes poly_commitment_t1 = 4; */ public function getPolyCommitmentT1() { @@ -214,25 +205,24 @@ public function getPolyCommitmentT1() } /** + *
      * 32 bytes, poly commitment (eq. 54)
+     * 
* - * Generated from protobuf field bytes poly_commitment_t1 = 4; - * @param string $var - * @return $this + * bytes poly_commitment_t1 = 4; */ public function setPolyCommitmentT1($var) { GPBUtil::checkString($var, False); $this->poly_commitment_t1 = $var; - - return $this; } /** + *
      * 32 bytes, poly commitment (eq. 54)
+     * 
* - * Generated from protobuf field bytes poly_commitment_t2 = 5; - * @return string + * bytes poly_commitment_t2 = 5; */ public function getPolyCommitmentT2() { @@ -240,25 +230,24 @@ public function getPolyCommitmentT2() } /** + *
      * 32 bytes, poly commitment (eq. 54)
+     * 
* - * Generated from protobuf field bytes poly_commitment_t2 = 5; - * @param string $var - * @return $this + * bytes poly_commitment_t2 = 5; */ public function setPolyCommitmentT2($var) { GPBUtil::checkString($var, False); $this->poly_commitment_t2 = $var; - - return $this; } /** + *
      * 32 bytes, proof of share (eq. 63)
+     * 
* - * Generated from protobuf field bytes proof_of_share_tau = 6; - * @return string + * bytes proof_of_share_tau = 6; */ public function getProofOfShareTau() { @@ -266,25 +255,24 @@ public function getProofOfShareTau() } /** + *
      * 32 bytes, proof of share (eq. 63)
+     * 
* - * Generated from protobuf field bytes proof_of_share_tau = 6; - * @param string $var - * @return $this + * bytes proof_of_share_tau = 6; */ public function setProofOfShareTau($var) { GPBUtil::checkString($var, False); $this->proof_of_share_tau = $var; - - return $this; } /** + *
      * 32 bytes, proof of share (eq. 63)
+     * 
* - * Generated from protobuf field bytes proof_of_share_mu = 7; - * @return string + * bytes proof_of_share_mu = 7; */ public function getProofOfShareMu() { @@ -292,25 +280,24 @@ public function getProofOfShareMu() } /** + *
      * 32 bytes, proof of share (eq. 63)
+     * 
* - * Generated from protobuf field bytes proof_of_share_mu = 7; - * @param string $var - * @return $this + * bytes proof_of_share_mu = 7; */ public function setProofOfShareMu($var) { GPBUtil::checkString($var, False); $this->proof_of_share_mu = $var; - - return $this; } /** + *
      * k * 32 bytes, aggregated vector polynomial (eq. 63)
+     * 
* - * Generated from protobuf field repeated bytes aggregated_vector_polynomial_l = 8; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated bytes aggregated_vector_polynomial_l = 8; */ public function getAggregatedVectorPolynomialL() { @@ -318,25 +305,24 @@ public function getAggregatedVectorPolynomialL() } /** + *
      * k * 32 bytes, aggregated vector polynomial (eq. 63)
+     * 
* - * Generated from protobuf field repeated bytes aggregated_vector_polynomial_l = 8; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated bytes aggregated_vector_polynomial_l = 8; */ - public function setAggregatedVectorPolynomialL($var) + public function setAggregatedVectorPolynomialL(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->aggregated_vector_polynomial_l = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); + $this->aggregated_vector_polynomial_l = $var; } /** + *
      * k * 32 bytes, aggregated vector polynomial (eq. 63)
+     * 
* - * Generated from protobuf field repeated bytes aggregated_vector_polynomial_r = 9; - * @return \Google\Protobuf\Internal\RepeatedField + * repeated bytes aggregated_vector_polynomial_r = 9; */ public function getAggregatedVectorPolynomialR() { @@ -344,25 +330,24 @@ public function getAggregatedVectorPolynomialR() } /** + *
      * k * 32 bytes, aggregated vector polynomial (eq. 63)
+     * 
* - * Generated from protobuf field repeated bytes aggregated_vector_polynomial_r = 9; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this + * repeated bytes aggregated_vector_polynomial_r = 9; */ - public function setAggregatedVectorPolynomialR($var) + public function setAggregatedVectorPolynomialR(&$var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->aggregated_vector_polynomial_r = $arr; - - return $this; + GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); + $this->aggregated_vector_polynomial_r = $var; } /** + *
      * 32 bytes (eq. 63)
+     * 
* - * Generated from protobuf field bytes a_prime_0 = 10; - * @return string + * bytes a_prime_0 = 10; */ public function getAPrime0() { @@ -370,25 +355,24 @@ public function getAPrime0() } /** + *
      * 32 bytes (eq. 63)
+     * 
* - * Generated from protobuf field bytes a_prime_0 = 10; - * @param string $var - * @return $this + * bytes a_prime_0 = 10; */ public function setAPrime0($var) { GPBUtil::checkString($var, False); $this->a_prime_0 = $var; - - return $this; } /** + *
      * 32 bytes (eq. 63)
+     * 
* - * Generated from protobuf field bytes b_prime_0 = 11; - * @return string + * bytes b_prime_0 = 11; */ public function getBPrime0() { @@ -396,23 +380,20 @@ public function getBPrime0() } /** + *
      * 32 bytes (eq. 63)
+     * 
* - * Generated from protobuf field bytes b_prime_0 = 11; - * @param string $var - * @return $this + * bytes b_prime_0 = 11; */ public function setBPrime0($var) { GPBUtil::checkString($var, False); $this->b_prime_0 = $var; - - return $this; } /** - * Generated from protobuf field bytes t = 12; - * @return string + * bytes t = 12; */ public function getT() { @@ -420,16 +401,12 @@ public function getT() } /** - * Generated from protobuf field bytes t = 12; - * @param string $var - * @return $this + * bytes t = 12; */ public function setT($var) { GPBUtil::checkString($var, False); $this->t = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Transaction/TransactionType.php b/packages/sdk-php/src/Catalyst/Protocol/Transaction/TransactionType.php index 71542fe..c600b18 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Transaction/TransactionType.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Transaction/TransactionType.php @@ -4,56 +4,34 @@ namespace Catalyst\Protocol\Transaction; -use UnexpectedValueException; - /** - * Protobuf type Catalyst.Protocol.Transaction.TransactionType + * Protobuf enum Catalyst.Protocol.Transaction.TransactionType */ class TransactionType { /** + *
      *Unknown transaction type.
+     * 
* - * Generated from protobuf enum TRANSACTION_TYPE_UNKNOWN = 0; + * TRANSACTION_TYPE_UNKNOWN = 0; */ const TRANSACTION_TYPE_UNKNOWN = 0; /** + *
      * Public transaction type.
+     * 
* - * Generated from protobuf enum PUBLIC = 1; + * PUBLIC = 1; */ - const PBPUBLIC = 1; + const PUBLIC = 1; /** + *
      * Private transaction type.
+     * 
* - * Generated from protobuf enum CONFIDENTIAL = 2; + * CONFIDENTIAL = 2; */ const CONFIDENTIAL = 2; - - private static $valueToName = [ - self::TRANSACTION_TYPE_UNKNOWN => 'TRANSACTION_TYPE_UNKNOWN', - self::PBPUBLIC => 'PBPUBLIC', - self::CONFIDENTIAL => 'CONFIDENTIAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Wire/CandidateDeltaBroadcast.php b/packages/sdk-php/src/Catalyst/Protocol/Wire/CandidateDeltaBroadcast.php index ba9cff3..8defb32 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Wire/CandidateDeltaBroadcast.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Wire/CandidateDeltaBroadcast.php @@ -9,53 +9,46 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Wire.CandidateDeltaBroadcast + * Protobuf type Catalyst.Protocol.Wire.CandidateDeltaBroadcast */ class CandidateDeltaBroadcast extends \Google\Protobuf\Internal\Message { /** + *
      * The hash computed for the current delta produced by ProducerId. This is meant to be used when voting for most popular hashes.
+     * 
* - * Generated from protobuf field bytes hash = 1; + * bytes hash = 1; */ - protected $hash = ''; + private $hash = ''; /** + *
      * Identifier of the producer of the candidate.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId producer_id = 2; + * .Catalyst.Protocol.Peer.PeerId producer_id = 2; */ - protected $producer_id = null; + private $producer_id = null; /** + *
      * The DFS address for the content of the delta preceding this candidate.
+     * 
* - * Generated from protobuf field bytes previous_delta_dfs_hash = 3; + * bytes previous_delta_dfs_hash = 3; */ - protected $previous_delta_dfs_hash = ''; + private $previous_delta_dfs_hash = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $hash - * The hash computed for the current delta produced by ProducerId. This is meant to be used when voting for most popular hashes. - * @type \Catalyst\Protocol\Peer\PeerId $producer_id - * Identifier of the producer of the candidate. - * @type string $previous_delta_dfs_hash - * The DFS address for the content of the delta preceding this candidate. - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Wire::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * The hash computed for the current delta produced by ProducerId. This is meant to be used when voting for most popular hashes.
+     * 
* - * Generated from protobuf field bytes hash = 1; - * @return string + * bytes hash = 1; */ public function getHash() { @@ -63,25 +56,24 @@ public function getHash() } /** + *
      * The hash computed for the current delta produced by ProducerId. This is meant to be used when voting for most popular hashes.
+     * 
* - * Generated from protobuf field bytes hash = 1; - * @param string $var - * @return $this + * bytes hash = 1; */ public function setHash($var) { GPBUtil::checkString($var, False); $this->hash = $var; - - return $this; } /** + *
      * Identifier of the producer of the candidate.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId producer_id = 2; - * @return \Catalyst\Protocol\Peer\PeerId + * .Catalyst.Protocol.Peer.PeerId producer_id = 2; */ public function getProducerId() { @@ -89,25 +81,24 @@ public function getProducerId() } /** + *
      * Identifier of the producer of the candidate.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId producer_id = 2; - * @param \Catalyst\Protocol\Peer\PeerId $var - * @return $this + * .Catalyst.Protocol.Peer.PeerId producer_id = 2; */ - public function setProducerId($var) + public function setProducerId(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Peer\PeerId::class); $this->producer_id = $var; - - return $this; } /** + *
      * The DFS address for the content of the delta preceding this candidate.
+     * 
* - * Generated from protobuf field bytes previous_delta_dfs_hash = 3; - * @return string + * bytes previous_delta_dfs_hash = 3; */ public function getPreviousDeltaDfsHash() { @@ -115,18 +106,16 @@ public function getPreviousDeltaDfsHash() } /** + *
      * The DFS address for the content of the delta preceding this candidate.
+     * 
* - * Generated from protobuf field bytes previous_delta_dfs_hash = 3; - * @param string $var - * @return $this + * bytes previous_delta_dfs_hash = 3; */ public function setPreviousDeltaDfsHash($var) { GPBUtil::checkString($var, False); $this->previous_delta_dfs_hash = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Wire/DeltaDfsHashBroadcast.php b/packages/sdk-php/src/Catalyst/Protocol/Wire/DeltaDfsHashBroadcast.php index e16be95..a91d6ea 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Wire/DeltaDfsHashBroadcast.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Wire/DeltaDfsHashBroadcast.php @@ -9,45 +9,38 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Wire.DeltaDfsHashBroadcast + * Protobuf type Catalyst.Protocol.Wire.DeltaDfsHashBroadcast */ class DeltaDfsHashBroadcast extends \Google\Protobuf\Internal\Message { /** + *
      * The DFS address at which the full content of the delta can be retrieved.
+     * 
* - * Generated from protobuf field bytes delta_dfs_hash = 1; + * bytes delta_dfs_hash = 1; */ - protected $delta_dfs_hash = ''; + private $delta_dfs_hash = ''; /** + *
      * The DFS address for the content of the delta preceding this candidate.
+     * 
* - * Generated from protobuf field bytes previous_delta_dfs_hash = 2; + * bytes previous_delta_dfs_hash = 2; */ - protected $previous_delta_dfs_hash = ''; + private $previous_delta_dfs_hash = ''; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $delta_dfs_hash - * The DFS address at which the full content of the delta can be retrieved. - * @type string $previous_delta_dfs_hash - * The DFS address for the content of the delta preceding this candidate. - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Wire::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * The DFS address at which the full content of the delta can be retrieved.
+     * 
* - * Generated from protobuf field bytes delta_dfs_hash = 1; - * @return string + * bytes delta_dfs_hash = 1; */ public function getDeltaDfsHash() { @@ -55,25 +48,24 @@ public function getDeltaDfsHash() } /** + *
      * The DFS address at which the full content of the delta can be retrieved.
+     * 
* - * Generated from protobuf field bytes delta_dfs_hash = 1; - * @param string $var - * @return $this + * bytes delta_dfs_hash = 1; */ public function setDeltaDfsHash($var) { GPBUtil::checkString($var, False); $this->delta_dfs_hash = $var; - - return $this; } /** + *
      * The DFS address for the content of the delta preceding this candidate.
+     * 
* - * Generated from protobuf field bytes previous_delta_dfs_hash = 2; - * @return string + * bytes previous_delta_dfs_hash = 2; */ public function getPreviousDeltaDfsHash() { @@ -81,18 +73,16 @@ public function getPreviousDeltaDfsHash() } /** + *
      * The DFS address for the content of the delta preceding this candidate.
+     * 
* - * Generated from protobuf field bytes previous_delta_dfs_hash = 2; - * @param string $var - * @return $this + * bytes previous_delta_dfs_hash = 2; */ public function setPreviousDeltaDfsHash($var) { GPBUtil::checkString($var, False); $this->previous_delta_dfs_hash = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Wire/FavouriteDeltaBroadcast.php b/packages/sdk-php/src/Catalyst/Protocol/Wire/FavouriteDeltaBroadcast.php index ad17bf7..b9870a7 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Wire/FavouriteDeltaBroadcast.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Wire/FavouriteDeltaBroadcast.php @@ -9,45 +9,38 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Wire.FavouriteDeltaBroadcast + * Protobuf type Catalyst.Protocol.Wire.FavouriteDeltaBroadcast */ class FavouriteDeltaBroadcast extends \Google\Protobuf\Internal\Message { /** + *
      * The candidate favoured by the voter broadcasting this message.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; + * .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; */ - protected $candidate = null; + private $candidate = null; /** + *
      * The PeerId of the participant submitting its vote to the network.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId voter_id = 2; + * .Catalyst.Protocol.Peer.PeerId voter_id = 2; */ - protected $voter_id = null; + private $voter_id = null; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Wire\CandidateDeltaBroadcast $candidate - * The candidate favoured by the voter broadcasting this message. - * @type \Catalyst\Protocol\Peer\PeerId $voter_id - * The PeerId of the participant submitting its vote to the network. - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Wire::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * The candidate favoured by the voter broadcasting this message.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; - * @return \Catalyst\Protocol\Wire\CandidateDeltaBroadcast + * .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; */ public function getCandidate() { @@ -55,25 +48,24 @@ public function getCandidate() } /** + *
      * The candidate favoured by the voter broadcasting this message.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; - * @param \Catalyst\Protocol\Wire\CandidateDeltaBroadcast $var - * @return $this + * .Catalyst.Protocol.Wire.CandidateDeltaBroadcast candidate = 1; */ - public function setCandidate($var) + public function setCandidate(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Wire\CandidateDeltaBroadcast::class); $this->candidate = $var; - - return $this; } /** + *
      * The PeerId of the participant submitting its vote to the network.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId voter_id = 2; - * @return \Catalyst\Protocol\Peer\PeerId + * .Catalyst.Protocol.Peer.PeerId voter_id = 2; */ public function getVoterId() { @@ -81,18 +73,16 @@ public function getVoterId() } /** + *
      * The PeerId of the participant submitting its vote to the network.
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId voter_id = 2; - * @param \Catalyst\Protocol\Peer\PeerId $var - * @return $this + * .Catalyst.Protocol.Peer.PeerId voter_id = 2; */ - public function setVoterId($var) + public function setVoterId(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Peer\PeerId::class); $this->voter_id = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Wire/ProtocolErrorMessage.php b/packages/sdk-php/src/Catalyst/Protocol/Wire/ProtocolErrorMessage.php index 3d29857..59e3f6c 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Wire/ProtocolErrorMessage.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Wire/ProtocolErrorMessage.php @@ -9,50 +9,39 @@ use Google\Protobuf\Internal\GPBUtil; /** + *
  **
  * Provides a network error message, for when a node cant send/ build a valid response
+ * 
* - * Generated from protobuf message Catalyst.Protocol.Wire.ProtocolErrorMessage + * Protobuf type Catalyst.Protocol.Wire.ProtocolErrorMessage */ class ProtocolErrorMessage extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field .Catalyst.Protocol.Cryptography.Signature signature = 1; + * .Catalyst.Protocol.Cryptography.Signature signature = 1; */ - protected $signature = null; + private $signature = null; /** - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId peer_id = 2; + * .Catalyst.Protocol.Peer.PeerId peer_id = 2; */ - protected $peer_id = null; + private $peer_id = null; /** - * Generated from protobuf field bytes correlation_id = 3; + * bytes correlation_id = 3; */ - protected $correlation_id = ''; + private $correlation_id = ''; /** - * Generated from protobuf field int32 code = 4; + * int32 code = 4; */ - protected $code = 0; + private $code = 0; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Cryptography\Signature $signature - * @type \Catalyst\Protocol\Peer\PeerId $peer_id - * @type string $correlation_id - * @type int $code - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Wire::initOnce(); - parent::__construct($data); + parent::__construct(); } /** - * Generated from protobuf field .Catalyst.Protocol.Cryptography.Signature signature = 1; - * @return \Catalyst\Protocol\Cryptography\Signature + * .Catalyst.Protocol.Cryptography.Signature signature = 1; */ public function getSignature() { @@ -60,21 +49,16 @@ public function getSignature() } /** - * Generated from protobuf field .Catalyst.Protocol.Cryptography.Signature signature = 1; - * @param \Catalyst\Protocol\Cryptography\Signature $var - * @return $this + * .Catalyst.Protocol.Cryptography.Signature signature = 1; */ - public function setSignature($var) + public function setSignature(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Cryptography\Signature::class); $this->signature = $var; - - return $this; } /** - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId peer_id = 2; - * @return \Catalyst\Protocol\Peer\PeerId + * .Catalyst.Protocol.Peer.PeerId peer_id = 2; */ public function getPeerId() { @@ -82,21 +66,16 @@ public function getPeerId() } /** - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId peer_id = 2; - * @param \Catalyst\Protocol\Peer\PeerId $var - * @return $this + * .Catalyst.Protocol.Peer.PeerId peer_id = 2; */ - public function setPeerId($var) + public function setPeerId(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Peer\PeerId::class); $this->peer_id = $var; - - return $this; } /** - * Generated from protobuf field bytes correlation_id = 3; - * @return string + * bytes correlation_id = 3; */ public function getCorrelationId() { @@ -104,21 +83,16 @@ public function getCorrelationId() } /** - * Generated from protobuf field bytes correlation_id = 3; - * @param string $var - * @return $this + * bytes correlation_id = 3; */ public function setCorrelationId($var) { GPBUtil::checkString($var, False); $this->correlation_id = $var; - - return $this; } /** - * Generated from protobuf field int32 code = 4; - * @return int + * int32 code = 4; */ public function getCode() { @@ -126,16 +100,12 @@ public function getCode() } /** - * Generated from protobuf field int32 code = 4; - * @param int $var - * @return $this + * int32 code = 4; */ public function setCode($var) { GPBUtil::checkInt32($var); $this->code = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Wire/ProtocolMessage.php b/packages/sdk-php/src/Catalyst/Protocol/Wire/ProtocolMessage.php index c4e0e82..9f3edee 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Wire/ProtocolMessage.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Wire/ProtocolMessage.php @@ -9,72 +9,67 @@ use Google\Protobuf\Internal\GPBUtil; /** + *
  **
  * A wrapper around the service message, the contents of service message should be signed by the sender to avoid tampering mid-transit.
+ * 
* - * Generated from protobuf message Catalyst.Protocol.Wire.ProtocolMessage + * Protobuf type Catalyst.Protocol.Wire.ProtocolMessage */ class ProtocolMessage extends \Google\Protobuf\Internal\Message { /** + *
      * is the sender's peerId
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId peer_id = 1; + * .Catalyst.Protocol.Peer.PeerId peer_id = 1; */ - protected $peer_id = null; + private $peer_id = null; /** + *
      * is a 16 bytes guid used to match responses to their original requests
+     * 
* - * Generated from protobuf field bytes correlation_id = 2; + * bytes correlation_id = 2; */ - protected $correlation_id = ''; + private $correlation_id = ''; /** + *
      * is the shortened protocol name of the message type being encoded in the value field (cf Any from protobuf WellKnownTypes)
+     * 
* - * Generated from protobuf field string type_url = 3; + * string type_url = 3; */ - protected $type_url = ''; + private $type_url = ''; /** + *
      * is the actual value of the message being wrapped (cf Any from protobuf WellKnownTypes)
+     * 
* - * Generated from protobuf field bytes value = 4; + * bytes value = 4; */ - protected $value = ''; + private $value = ''; /** + *
      * is the ed25519ph context signature
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Cryptography.Signature signature = 5; + * .Catalyst.Protocol.Cryptography.Signature signature = 5; */ - protected $signature = null; + private $signature = null; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Peer\PeerId $peer_id - * is the sender's peerId - * @type string $correlation_id - * is a 16 bytes guid used to match responses to their original requests - * @type string $type_url - * is the shortened protocol name of the message type being encoded in the value field (cf Any from protobuf WellKnownTypes) - * @type string $value - * is the actual value of the message being wrapped (cf Any from protobuf WellKnownTypes) - * @type \Catalyst\Protocol\Cryptography\Signature $signature - * is the ed25519ph context signature - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Wire::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * is the sender's peerId
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @return \Catalyst\Protocol\Peer\PeerId + * .Catalyst.Protocol.Peer.PeerId peer_id = 1; */ public function getPeerId() { @@ -82,25 +77,24 @@ public function getPeerId() } /** + *
      * is the sender's peerId
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Peer.PeerId peer_id = 1; - * @param \Catalyst\Protocol\Peer\PeerId $var - * @return $this + * .Catalyst.Protocol.Peer.PeerId peer_id = 1; */ - public function setPeerId($var) + public function setPeerId(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Peer\PeerId::class); $this->peer_id = $var; - - return $this; } /** + *
      * is a 16 bytes guid used to match responses to their original requests
+     * 
* - * Generated from protobuf field bytes correlation_id = 2; - * @return string + * bytes correlation_id = 2; */ public function getCorrelationId() { @@ -108,25 +102,24 @@ public function getCorrelationId() } /** + *
      * is a 16 bytes guid used to match responses to their original requests
+     * 
* - * Generated from protobuf field bytes correlation_id = 2; - * @param string $var - * @return $this + * bytes correlation_id = 2; */ public function setCorrelationId($var) { GPBUtil::checkString($var, False); $this->correlation_id = $var; - - return $this; } /** + *
      * is the shortened protocol name of the message type being encoded in the value field (cf Any from protobuf WellKnownTypes)
+     * 
* - * Generated from protobuf field string type_url = 3; - * @return string + * string type_url = 3; */ public function getTypeUrl() { @@ -134,25 +127,24 @@ public function getTypeUrl() } /** + *
      * is the shortened protocol name of the message type being encoded in the value field (cf Any from protobuf WellKnownTypes)
+     * 
* - * Generated from protobuf field string type_url = 3; - * @param string $var - * @return $this + * string type_url = 3; */ public function setTypeUrl($var) { GPBUtil::checkString($var, True); $this->type_url = $var; - - return $this; } /** + *
      * is the actual value of the message being wrapped (cf Any from protobuf WellKnownTypes)
+     * 
* - * Generated from protobuf field bytes value = 4; - * @return string + * bytes value = 4; */ public function getValue() { @@ -160,25 +152,24 @@ public function getValue() } /** + *
      * is the actual value of the message being wrapped (cf Any from protobuf WellKnownTypes)
+     * 
* - * Generated from protobuf field bytes value = 4; - * @param string $var - * @return $this + * bytes value = 4; */ public function setValue($var) { GPBUtil::checkString($var, False); $this->value = $var; - - return $this; } /** + *
      * is the ed25519ph context signature
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Cryptography.Signature signature = 5; - * @return \Catalyst\Protocol\Cryptography\Signature + * .Catalyst.Protocol.Cryptography.Signature signature = 5; */ public function getSignature() { @@ -186,18 +177,16 @@ public function getSignature() } /** + *
      * is the ed25519ph context signature
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Cryptography.Signature signature = 5; - * @param \Catalyst\Protocol\Cryptography\Signature $var - * @return $this + * .Catalyst.Protocol.Cryptography.Signature signature = 5; */ - public function setSignature($var) + public function setSignature(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Cryptography\Signature::class); $this->signature = $var; - - return $this; } } diff --git a/packages/sdk-php/src/Catalyst/Protocol/Wire/TransactionBroadcast.php b/packages/sdk-php/src/Catalyst/Protocol/Wire/TransactionBroadcast.php index 11834bc..0189839 100644 --- a/packages/sdk-php/src/Catalyst/Protocol/Wire/TransactionBroadcast.php +++ b/packages/sdk-php/src/Catalyst/Protocol/Wire/TransactionBroadcast.php @@ -9,37 +9,30 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Generated from protobuf message Catalyst.Protocol.Wire.TransactionBroadcast + * Protobuf type Catalyst.Protocol.Wire.TransactionBroadcast */ class TransactionBroadcast extends \Google\Protobuf\Internal\Message { /** + *
      * 0 field for confidential transaction
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; + * .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; */ - protected $public_entry = null; + private $public_entry = null; - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Catalyst\Protocol\Transaction\PublicEntry $public_entry - * 0 field for confidential transaction - * } - */ - public function __construct($data = NULL) { + public function __construct() { \GPBMetadata\Wire::initOnce(); - parent::__construct($data); + parent::__construct(); } /** + *
      * 0 field for confidential transaction
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; - * @return \Catalyst\Protocol\Transaction\PublicEntry + * .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; */ public function getPublicEntry() { @@ -47,18 +40,16 @@ public function getPublicEntry() } /** + *
      * 0 field for confidential transaction
+     * 
* - * Generated from protobuf field .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; - * @param \Catalyst\Protocol\Transaction\PublicEntry $var - * @return $this + * .Catalyst.Protocol.Transaction.PublicEntry public_entry = 1; */ - public function setPublicEntry($var) + public function setPublicEntry(&$var) { GPBUtil::checkMessage($var, \Catalyst\Protocol\Transaction\PublicEntry::class); $this->public_entry = $var; - - return $this; } } diff --git a/packages/sdk-php/src/GPBMetadata/Account.php b/packages/sdk-php/src/GPBMetadata/Account.php index 2543399..07fdb2e 100644 --- a/packages/sdk-php/src/GPBMetadata/Account.php +++ b/packages/sdk-php/src/GPBMetadata/Account.php @@ -17,8 +17,20 @@ public static function initOnce() { \GPBMetadata\Cryptography::initOnce(); \GPBMetadata\Network::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0ad9020a0d4163636f756e742e70726f746f1219436174616c7973742e50726f746f636f6c2e4163636f756e741a0d4e6574776f726b2e70726f746f229e010a0741646472657373123c0a0c6e6574776f726b5f7479706518012001280e32262e436174616c7973742e50726f746f636f6c2e4e6574776f726b2e4e6574776f726b54797065123c0a0c6163636f756e745f7479706518022001280e32262e436174616c7973742e50726f746f636f6c2e4163636f756e742e4163636f756e745479706512170a0f7075626c69635f6b65795f6861736818032001280c2a710a0b4163636f756e745479706512180a144143434f554e545f545950455f554e4b4e4f574e100012120a0e5055424c49435f4143434f554e54100812180a14434f4e464944454e5449414c5f4143434f554e541010121a0a16534d4152545f434f4e54524143545f4143434f554e54101842025001620670726f746f33" - ), true); + "0aed020a0d4163636f756e742e70726f746f1219436174616c7973742e50" . + "726f746f636f6c2e4163636f756e741a1243727970746f6772617068792e" . + "70726f746f1a0d4e6574776f726b2e70726f746f229e010a074164647265" . + "7373123c0a0c6e6574776f726b5f7479706518012001280e32262e436174" . + "616c7973742e50726f746f636f6c2e4e6574776f726b2e4e6574776f726b" . + "54797065123c0a0c6163636f756e745f7479706518022001280e32262e43" . + "6174616c7973742e50726f746f636f6c2e4163636f756e742e4163636f75" . + "6e745479706512170a0f7075626c69635f6b65795f686173681803200128" . + "0c2a710a0b4163636f756e745479706512180a144143434f554e545f5459" . + "50455f554e4b4e4f574e100012120a0e5055424c49435f4143434f554e54" . + "100812180a14434f4e464944454e5449414c5f4143434f554e541010121a" . + "0a16534d4152545f434f4e54524143545f4143434f554e54101842025001" . + "620670726f746f33" + )); static::$is_initialized = true; } diff --git a/packages/sdk-php/src/GPBMetadata/Cryptography.php b/packages/sdk-php/src/GPBMetadata/Cryptography.php index 040e39c..abcd929 100644 --- a/packages/sdk-php/src/GPBMetadata/Cryptography.php +++ b/packages/sdk-php/src/GPBMetadata/Cryptography.php @@ -16,8 +16,36 @@ public static function initOnce() { } \GPBMetadata\Network::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0acf060a1243727970746f6772617068792e70726f746f121e436174616c7973742e50726f746f636f6c2e43727970746f67726170687922670a095369676e617475726512470a0f7369676e696e675f636f6e7465787418012001280b322e2e436174616c7973742e50726f746f636f6c2e43727970746f6772617068792e5369676e696e67436f6e7465787412110a097261775f627974657318022001280c2295010a0e5369676e696e67436f6e74657874123c0a0c6e6574776f726b5f7479706518012001280e32262e436174616c7973742e50726f746f636f6c2e4e6574776f726b2e4e6574776f726b5479706512450a0e7369676e61747572655f7479706518022001280e322d2e436174616c7973742e50726f746f636f6c2e43727970746f6772617068792e5369676e617475726554797065225c0a0e5369676e6174757265426174636812120a0a7369676e61747572657318012003280c12130a0b7075626c69635f6b65797318022003280c12100a086d6573736167657318032003280c120f0a07636f6e7465787418042001280c2a98010a0d5369676e617475726554797065121a0a165349474e41545552455f545950455f554e4b4e4f574e100012160a125452414e53414354494f4e5f5055424c49431001121c0a185452414e53414354494f4e5f434f4e464944454e5449414c100212100a0c50524f544f434f4c5f525043100312110a0d50524f544f434f4c5f50454552100412100a0c574542335f4d45535341474510052a92020a094572726f72436f646512160a124552524f525f434f44455f554e4b4e4f574e100012150a11494e56414c49445f5349474e4154555245100112160a12494e56414c49445f5055424c49435f4b4559100212170a13494e56414c49445f505249564154455f4b4559100312220a1e5349474e41545552455f564552494649434154494f4e5f4641494c5552451004121a0a16494e56414c49445f434f4e544558545f4c454e475448100512190a15494e56414c49445f42415443485f4d4553534147451006121b0a174152524159535f4e4f545f455155414c5f4c454e4754481007121e0a1a42415443485f564552494649434154494f4e5f4641494c5552451008120d0a084e4f5f4552524f5210a20342025001620670726f746f33" - ), true); + "0ade060a1243727970746f6772617068792e70726f746f121e436174616c" . + "7973742e50726f746f636f6c2e43727970746f6772617068791a0d4e6574" . + "776f726b2e70726f746f22670a095369676e617475726512470a0f736967" . + "6e696e675f636f6e7465787418012001280b322e2e436174616c7973742e" . + "50726f746f636f6c2e43727970746f6772617068792e5369676e696e6743" . + "6f6e7465787412110a097261775f627974657318022001280c2295010a0e" . + "5369676e696e67436f6e74657874123c0a0c6e6574776f726b5f74797065" . + "18012001280e32262e436174616c7973742e50726f746f636f6c2e4e6574" . + "776f726b2e4e6574776f726b5479706512450a0e7369676e61747572655f" . + "7479706518022001280e322d2e436174616c7973742e50726f746f636f6c" . + "2e43727970746f6772617068792e5369676e617475726554797065225c0a" . + "0e5369676e6174757265426174636812120a0a7369676e61747572657318" . + "012003280c12130a0b7075626c69635f6b65797318022003280c12100a08" . + "6d6573736167657318032003280c120f0a07636f6e746578741804200128" . + "0c2a98010a0d5369676e617475726554797065121a0a165349474e415455" . + "52455f545950455f554e4b4e4f574e100012160a125452414e5341435449" . + "4f4e5f5055424c49431001121c0a185452414e53414354494f4e5f434f4e" . + "464944454e5449414c100212100a0c50524f544f434f4c5f525043100312" . + "110a0d50524f544f434f4c5f50454552100412100a0c574542335f4d4553" . + "5341474510052a92020a094572726f72436f646512160a124552524f525f" . + "434f44455f554e4b4e4f574e100012150a11494e56414c49445f5349474e" . + "4154555245100112160a12494e56414c49445f5055424c49435f4b455910" . + "0212170a13494e56414c49445f505249564154455f4b4559100312220a1e" . + "5349474e41545552455f564552494649434154494f4e5f4641494c555245" . + "1004121a0a16494e56414c49445f434f4e544558545f4c454e4754481005" . + "12190a15494e56414c49445f42415443485f4d4553534147451006121b0a" . + "174152524159535f4e4f545f455155414c5f4c454e4754481007121e0a1a" . + "42415443485f564552494649434154494f4e5f4641494c5552451008120d" . + "0a084e4f5f4552524f5210a20342025001620670726f746f33" + )); static::$is_initialized = true; } diff --git a/packages/sdk-php/src/GPBMetadata/Deltas.php b/packages/sdk-php/src/GPBMetadata/Deltas.php index 34469ad..0dbee3b 100644 --- a/packages/sdk-php/src/GPBMetadata/Deltas.php +++ b/packages/sdk-php/src/GPBMetadata/Deltas.php @@ -17,8 +17,26 @@ public static function initOnce() { \GPBMetadata\Transaction::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0a8b040a0c44656c7461732e70726f746f1218436174616c7973742e50726f746f636f6c2e44656c7461731a1f676f6f676c652f70726f746f6275662f74696d657374616d702e70726f746f22290a0a44656c7461496e646578120e0a0668656967687418012001280d120b0a0363696418022001280c2288030a0544656c7461121f0a1770726576696f75735f64656c74615f6466735f6861736818012001280c12130a0b6d65726b6c655f726f6f7418022001280c12130a0b6d65726b6c655f706f646118032001280c122e0a0a74696d655f7374616d7018042001280b321a2e676f6f676c652e70726f746f6275662e54696d657374616d7012420a0e7075626c69635f656e747269657318052003280b322a2e436174616c7973742e50726f746f636f6c2e5472616e73616374696f6e2e5075626c6963456e747279124e0a14636f6e666964656e7469616c5f656e747269657318062003280b32302e436174616c7973742e50726f746f636f6c2e5472616e73616374696f6e2e436f6e666964656e7469616c456e74727912460a10636f696e626173655f656e747269657318072003280b322c2e436174616c7973742e50726f746f636f6c2e5472616e73616374696f6e2e436f696e62617365456e74727912120a0a73746174655f726f6f7418082001280c12140a0c64656c74615f6e756d62657218092001280342025001620670726f746f33" - ), true); + "0ab0040a0c44656c7461732e70726f746f1218436174616c7973742e5072" . + "6f746f636f6c2e44656c7461731a115472616e73616374696f6e2e70726f" . + "746f1a1f676f6f676c652f70726f746f6275662f74696d657374616d702e" . + "70726f746f22290a0a44656c7461496e646578120e0a0668656967687418" . + "012001280d120b0a0363696418022001280c229a030a0544656c7461121f" . + "0a1770726576696f75735f64656c74615f6466735f686173681801200128" . + "0c12130a0b6d65726b6c655f726f6f7418022001280c12130a0b6d65726b" . + "6c655f706f646118032001280c122e0a0a74696d655f7374616d70180420" . + "01280b321a2e676f6f676c652e70726f746f6275662e54696d657374616d" . + "7012420a0e7075626c69635f656e747269657318052003280b322a2e4361" . + "74616c7973742e50726f746f636f6c2e5472616e73616374696f6e2e5075" . + "626c6963456e747279124e0a14636f6e666964656e7469616c5f656e7472" . + "69657318062003280b32302e436174616c7973742e50726f746f636f6c2e" . + "5472616e73616374696f6e2e436f6e666964656e7469616c456e74727912" . + "460a10636f696e626173655f656e747269657318072003280b322c2e4361" . + "74616c7973742e50726f746f636f6c2e5472616e73616374696f6e2e436f" . + "696e62617365456e74727912120a0a73746174655f726f6f741808200128" . + "0c12140a0c64656c74615f6e756d62657218092001280312100a08676173" . + "5f75736564180a2001280342025001620670726f746f33" + )); static::$is_initialized = true; } diff --git a/packages/sdk-php/src/GPBMetadata/DfsMarketplace.php b/packages/sdk-php/src/GPBMetadata/DfsMarketplace.php index b4653ac..ed109f7 100644 --- a/packages/sdk-php/src/GPBMetadata/DfsMarketplace.php +++ b/packages/sdk-php/src/GPBMetadata/DfsMarketplace.php @@ -16,8 +16,24 @@ public static function initOnce() { } \GPBMetadata\Peer::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0aec030a144466734d61726b6574706c6163652e70726f746f1220436174616c7973742e50726f746f636f6c2e4466734d61726b6574706c61636522650a15426c6f636b4368616c6c656e67655265717565737412160a0e6368616c6c656e67655f73616c7418012001280912150a0d6d61696e5f66696c655f636964180220012809121d0a15626c6f636b5f6964785f72616e646f6d5f6775696418032001280c224e0a16426c6f636b4368616c6c656e6765526573706f6e7365120e0a06616e7377657218012001280912240a1c626c6f636b5f6368616c6c656e67655f726571756573745f6861736818022001280922ee010a17426c6f636b4368616c6c656e676542726f61646361737412530a126f726967696e616c5f6368616c6c656e676518012001280b32372e436174616c7973742e50726f746f636f6c2e4466734d61726b6574706c6163652e426c6f636b4368616c6c656e676552657175657374120e0a06616e7377657218022001280912370a0f6368616c6c656e6765645f7065657218032001280b321e2e436174616c7973742e50726f746f636f6c2e506565722e50656572496412350a0d6368616c6c656e6765645f627918042001280b321e2e436174616c7973742e50726f746f636f6c2e506565722e50656572496442025001620670726f746f33" - ), true); + "0af8030a144466734d61726b6574706c6163652e70726f746f1220436174" . + "616c7973742e50726f746f636f6c2e4466734d61726b6574706c6163651a" . + "0a506565722e70726f746f22650a15426c6f636b4368616c6c656e676552" . + "65717565737412160a0e6368616c6c656e67655f73616c74180120012809" . + "12150a0d6d61696e5f66696c655f636964180220012809121d0a15626c6f" . + "636b5f6964785f72616e646f6d5f6775696418032001280c224e0a16426c" . + "6f636b4368616c6c656e6765526573706f6e7365120e0a06616e73776572" . + "18012001280912240a1c626c6f636b5f6368616c6c656e67655f72657175" . + "6573745f6861736818022001280922ee010a17426c6f636b4368616c6c65" . + "6e676542726f61646361737412530a126f726967696e616c5f6368616c6c" . + "656e676518012001280b32372e436174616c7973742e50726f746f636f6c" . + "2e4466734d61726b6574706c6163652e426c6f636b4368616c6c656e6765" . + "52657175657374120e0a06616e7377657218022001280912370a0f636861" . + "6c6c656e6765645f7065657218032001280b321e2e436174616c7973742e" . + "50726f746f636f6c2e506565722e50656572496412350a0d6368616c6c65" . + "6e6765645f627918042001280b321e2e436174616c7973742e50726f746f" . + "636f6c2e506565722e50656572496442025001620670726f746f33" + )); static::$is_initialized = true; } diff --git a/packages/sdk-php/src/GPBMetadata/IPPN.php b/packages/sdk-php/src/GPBMetadata/IPPN.php index b2eb2b7..18e682b 100644 --- a/packages/sdk-php/src/GPBMetadata/IPPN.php +++ b/packages/sdk-php/src/GPBMetadata/IPPN.php @@ -17,8 +17,23 @@ public static function initOnce() { \GPBMetadata\Peer::initOnce(); \GPBMetadata\Deltas::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0aac030a0a4950504e2e70726f746f1216436174616c7973742e50726f746f636f6c2e4950504e1a0c44656c7461732e70726f746f22160a14506565724e65696768626f72735265717565737422460a15506565724e65696768626f7273526573706f6e7365122d0a05706565727318012003280b321e2e436174616c7973742e50726f746f636f6c2e506565722e506565724964220d0a0b50696e6752657175657374220e0a0c50696e67526573706f6e736522180a164c617465737444656c74614861736852657175657374224f0a174c617465737444656c746148617368526573706f6e736512340a06726573756c7418012001280b32242e436174616c7973742e50726f746f636f6c2e44656c7461732e44656c7461496e64657822340a1344656c7461486973746f727952657175657374120d0a0572616e676518012001280d120e0a0668656967687418022001280d224c0a1444656c7461486973746f7279526573706f6e736512340a06726573756c7418012003280b32242e436174616c7973742e50726f746f636f6c2e44656c7461732e44656c7461496e64657842025001620670726f746f33" - ), true); + "0ad0030a0a4950504e2e70726f746f1216436174616c7973742e50726f74" . + "6f636f6c2e4950504e1a0a506565722e70726f746f1a0c44656c7461732e" . + "70726f746f22160a14506565724e65696768626f72735265717565737422" . + "460a15506565724e65696768626f7273526573706f6e7365122d0a057065" . + "65727318012003280b321e2e436174616c7973742e50726f746f636f6c2e" . + "506565722e506565724964220d0a0b50696e6752657175657374220e0a0c" . + "50696e67526573706f6e736522180a164c617465737444656c7461486173" . + "685265717565737422630a174c617465737444656c746148617368526573" . + "706f6e7365120e0a06697353796e6318012001280812380a0a64656c7461" . + "496e64657818022001280b32242e436174616c7973742e50726f746f636f" . + "6c2e44656c7461732e44656c7461496e64657822340a1344656c74614869" . + "73746f727952657175657374120d0a0572616e676518012001280d120e0a" . + "0668656967687418022001280d22500a1444656c7461486973746f727952" . + "6573706f6e736512380a0a64656c7461496e64657818012003280b32242e" . + "436174616c7973742e50726f746f636f6c2e44656c7461732e44656c7461" . + "496e64657842025001620670726f746f33" + )); static::$is_initialized = true; } diff --git a/packages/sdk-php/src/GPBMetadata/Network.php b/packages/sdk-php/src/GPBMetadata/Network.php index e6a2684..4db6baf 100644 --- a/packages/sdk-php/src/GPBMetadata/Network.php +++ b/packages/sdk-php/src/GPBMetadata/Network.php @@ -15,8 +15,12 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile(hex2bin( - "0a85010a0d4e6574776f726b2e70726f746f1219436174616c7973742e50726f746f636f6c2e4e6574776f726b2a4d0a0b4e6574776f726b5479706512180a144e4554574f524b5f545950455f554e4b4e4f574e1000120b0a074d41494e4e45541001120a0a064445564e45541002120b0a07544553544e4554100342025001620670726f746f33" - ), true); + "0a85010a0d4e6574776f726b2e70726f746f1219436174616c7973742e50" . + "726f746f636f6c2e4e6574776f726b2a4d0a0b4e6574776f726b54797065" . + "12180a144e4554574f524b5f545950455f554e4b4e4f574e1000120b0a07" . + "4d41494e4e45541001120a0a064445564e45541002120b0a07544553544e" . + "4554100342025001620670726f746f33" + )); static::$is_initialized = true; } diff --git a/packages/sdk-php/src/GPBMetadata/Peer.php b/packages/sdk-php/src/GPBMetadata/Peer.php index 6d04fde..ebaa0b2 100644 --- a/packages/sdk-php/src/GPBMetadata/Peer.php +++ b/packages/sdk-php/src/GPBMetadata/Peer.php @@ -17,8 +17,24 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); \GPBMetadata\Google\Protobuf\Duration::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0ac5030a0a506565722e70726f746f1216436174616c7973742e50726f746f636f6c2e506565721a1e676f6f676c652f70726f746f6275662f6475726174696f6e2e70726f746f22360a06506565724964120a0a02697018012001280c120c0a04706f727418022001280d12120a0a7075626c69635f6b657918032001280c22ba020a0850656572496e666f122f0a07706565725f696418012001280b321e2e436174616c7973742e50726f746f636f6c2e506565722e50656572496412120a0a72657075746174696f6e18022001281112160a0e69735f626c61636b6c697374656418032001280812160a0e69735f756e726561636861626c65180420012808122f0a0c696e6163746976655f666f7218052001280b32192e676f6f676c652e70726f746f6275662e4475726174696f6e122d0a096c6173745f7365656e18062001280b321a2e676f6f676c652e70726f746f6275662e54696d657374616d70122c0a086d6f64696669656418072001280b321a2e676f6f676c652e70726f746f6275662e54696d657374616d70122b0a076372656174656418082001280b321a2e676f6f676c652e70726f746f6275662e54696d657374616d7042025001620670726f746f33" - ), true); + "0ae6030a0a506565722e70726f746f1216436174616c7973742e50726f74" . + "6f636f6c2e506565721a1f676f6f676c652f70726f746f6275662f74696d" . + "657374616d702e70726f746f1a1e676f6f676c652f70726f746f6275662f" . + "6475726174696f6e2e70726f746f22360a06506565724964120a0a026970" . + "18012001280c120c0a04706f727418022001280d12120a0a7075626c6963" . + "5f6b657918032001280c22ba020a0850656572496e666f122f0a07706565" . + "725f696418012001280b321e2e436174616c7973742e50726f746f636f6c" . + "2e506565722e50656572496412120a0a72657075746174696f6e18022001" . + "281112160a0e69735f626c61636b6c697374656418032001280812160a0e" . + "69735f756e726561636861626c65180420012808122f0a0c696e61637469" . + "76655f666f7218052001280b32192e676f6f676c652e70726f746f627566" . + "2e4475726174696f6e122d0a096c6173745f7365656e18062001280b321a" . + "2e676f6f676c652e70726f746f6275662e54696d657374616d70122c0a08" . + "6d6f64696669656418072001280b321a2e676f6f676c652e70726f746f62" . + "75662e54696d657374616d70122b0a076372656174656418082001280b32" . + "1a2e676f6f676c652e70726f746f6275662e54696d657374616d70420250" . + "01620670726f746f33" + )); static::$is_initialized = true; } diff --git a/packages/sdk-php/src/GPBMetadata/Rpc.php b/packages/sdk-php/src/GPBMetadata/Rpc.php index d85ec88..2d6ea3a 100644 --- a/packages/sdk-php/src/GPBMetadata/Rpc.php +++ b/packages/sdk-php/src/GPBMetadata/Rpc.php @@ -20,8 +20,131 @@ public static function initOnce() { \GPBMetadata\Wire::initOnce(); \GPBMetadata\Transaction::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0aef1c0a095270632e70726f746f121a436174616c7973742e50726f746f636f6c2e5270632e4e6f64651a1243727970746f6772617068792e70726f746f1a0c44656c7461732e70726f746f1a0a576972652e70726f746f1a115472616e73616374696f6e2e70726f746f221f0a0e56657273696f6e52657175657374120d0a05717565727918012001280822220a0f56657273696f6e526573706f6e7365120f0a0776657273696f6e180120012809221f0a0e476574496e666f52657175657374120d0a05717565727918012001280822200a0f476574496e666f526573706f6e7365120d0a05717565727918012001280922240a1343726561746557616c6c657452657175657374120d0a05717565727918012001280822250a1443726561746557616c6c6574526573706f6e7365120d0a05717565727918012001280922220a114c69737457616c6c657452657175657374120d0a05717565727918012001280822230a124c69737457616c6c6574526573706f6e7365120d0a05717565727918012001280922250a144372656174654164647265737352657175657374120d0a05717565727918012001280822260a1543726561746541646472657373526573706f6e7365120d0a05717565727918012001280922220a114765744164647265737352657175657374120d0a05717565727918012001280822230a1247657441646472657373526573706f6e7365120d0a05717565727918012001280922230a124c6973744164647265737352657175657374120d0a05717565727918012001280822240a134c69737441646472657373526573706f6e7365120d0a05717565727918012001280922270a1656616c69646174654164647265737352657175657374120d0a05717565727918012001280822280a1756616c696461746541646472657373526573706f6e7365120d0a05717565727918012001280922220a1147657442616c616e636552657175657374120d0a05717565727918012001280822230a1247657442616c616e6365526573706f6e7365120d0a057175657279180120012809222c0a1b4372656174655261775472616e73616374696f6e52657175657374120d0a057175657279180120012808222d0a1c4372656174655261775472616e73616374696f6e526573706f6e7365120d0a057175657279180120012809222a0a195369676e5261775472616e73616374696f6e52657175657374120d0a057175657279180120012808222b0a1a5369676e5261775472616e73616374696f6e526573706f6e7365120d0a057175657279180120012809222c0a1b4465636f64655261775472616e73616374696f6e52657175657374120d0a057175657279180120012808222d0a1c4465636f64655261775472616e73616374696f6e526573706f6e7365120d0a05717565727918012001280922630a1e42726f6164636173745261775472616e73616374696f6e5265717565737412410a0b7472616e73616374696f6e18012001280b322c2e436174616c7973742e50726f746f636f6c2e576972652e5472616e73616374696f6e42726f61646361737422620a1f42726f6164636173745261775472616e73616374696f6e526573706f6e7365123f0a0d726573706f6e73655f636f646518012001280e32282e436174616c7973742e50726f746f636f6c2e5270632e4e6f64652e526573706f6e7365436f6465221e0a0d53656e64546f52657175657374120d0a057175657279180120012808221f0a0e53656e64546f526573706f6e7365120d0a05717565727918012001280922220a1153656e64546f46726f6d52657175657374120d0a05717565727918012001280822230a1253656e64546f46726f6d526573706f6e7365120d0a05717565727918012001280922200a0f53656e644d616e7952657175657374120d0a05717565727918012001280822210a1053656e644d616e79526573706f6e7365120d0a05717565727918012001280922240a1353656e6446726f6d4d616e7952657175657374120d0a05717565727918012001280822250a1453656e6446726f6d4d616e79526573706f6e7365120d0a057175657279180120012809221f0a0e4164644e6f646552657175657374120d0a05717565727918012001280822200a0f4164644e6f6465526573706f6e7365120d0a05717565727918012001280922140a12476574506565724c6973745265717565737422440a13476574506565724c697374526573706f6e7365122d0a05706565727318012003280b321e2e436174616c7973742e50726f746f636f6c2e506565722e506565724964223a0a184765745065657252657075746174696f6e5265717565737412120a0a7075626c69635f6b657918012001280c120a0a02697018022001280c222f0a194765745065657252657075746174696f6e526573706f6e736512120a0a72657075746174696f6e180120012805224c0a1753657450656572426c61636b4c6973745265717565737412120a0a7075626c69635f6b657918012001280c120a0a02697018022001280c12110a09626c61636b6c697374180320012808224d0a1853657450656572426c61636b4c697374526573706f6e736512120a0a7075626c69635f6b657918012001280c120a0a02697018022001280c12110a09626c61636b6c69737418032001280822340a1247657450656572496e666f5265717565737412120a0a7075626c69635f6b657918012001280c120a0a02697018022001280c224a0a1347657450656572496e666f526573706f6e736512330a09706565725f696e666f18012003280b32202e436174616c7973742e50726f746f636f6c2e506565722e50656572496e666f222a0a19476574436f6e6e656374696f6e436f756e7452657175657374120d0a057175657279180120012808222b0a1a476574436f6e6e656374696f6e436f756e74526573706f6e7365120d0a05717565727918012001280922290a0f47657444656c74615265717565737412160a0e64656c74615f6466735f6861736818012001280c22420a1047657444656c7461526573706f6e7365122e0a0564656c746118012001280b321f2e436174616c7973742e50726f746f636f6c2e44656c7461732e44656c746122220a114765744d656d706f6f6c52657175657374120d0a05717565727918012001280822560a124765744d656d706f6f6c526573706f6e736512400a0c7472616e73616374696f6e7318012003280b322a2e436174616c7973742e50726f746f636f6c2e5472616e73616374696f6e2e5075626c6963456e747279227e0a125369676e4d65737361676552657175657374120f0a076d65737361676518012001280c120e0a066b65795f696418022001280912470a0f7369676e696e675f636f6e7465787418032001280b322e2e436174616c7973742e50726f746f636f6c2e43727970746f6772617068792e5369676e696e67436f6e7465787422560a135369676e4d657373616765526573706f6e736512110a097369676e617475726518012001280c12120a0a7075626c69635f6b657918022001280c12180a106f726967696e616c5f6d65737361676518032001280c2297010a145665726966794d6573736167655265717565737412110a097369676e617475726518012001280c12120a0a7075626c69635f6b657918022001280c120f0a076d65737361676518032001280c12470a0f7369676e696e675f636f6e7465787418042001280b322e2e436174616c7973742e50726f746f636f6c2e43727970746f6772617068792e5369676e696e67436f6e7465787422310a155665726966794d657373616765526573706f6e736512180a1069735f7369676e65645f62795f6b657918012001280822250a145365727669636553746174757352657175657374120d0a05717565727918012001280822260a1553657276696365537461747573526573706f6e7365120d0a05717565727918012001280922490a1341646446696c65546f4466735265717565737412110a0966696c655f73697a6518012001280412110a0966696c655f6e616d65180220012809120c0a046e6f6465180320012809223f0a1441646446696c65546f446673526573706f6e736512150a0d726573706f6e73655f636f646518012001280c12100a086466735f6861736818022001280922600a185472616e7366657246696c6542797465735265717565737412100a086368756e6b5f696418012001280d12130a0b6368756e6b5f627974657318022001280c121d0a15636f7272656c6174696f6e5f66696c655f6e616d6518032001280c22320a195472616e7366657246696c654279746573526573706f6e736512150a0d726573706f6e73655f636f646518012001280c22380a1152656d6f76655065657252657175657374120f0a07706565725f697018012001280c12120a0a7075626c69635f6b657918022001280c222b0a1252656d6f766550656572526573706f6e736512150a0d64656c657465645f636f756e7418012001280d22150a1347657450656572436f756e7452657175657374222a0a1447657450656572436f756e74526573706f6e736512120a0a706565725f636f756e7418012001280522290a1547657446696c6546726f6d4466735265717565737412100a086466735f6861736818012001280922420a1647657446696c6546726f6d446673526573706f6e736512110a0966696c655f73697a6518012001280412150a0d726573706f6e73655f636f646518022001280c222f0a185365745065657244617461466f6c6465725265717565737412130a0b646174615f666f6c646572180120012809222a0a195365745065657244617461466f6c646572526573706f6e7365120d0a0571756572791801200128082a690a0c526573706f6e7365436f6465120b0a0750454e44494e471000120e0a0a5355434345535346554c100112090a054552524f521002120c0a0846494e49534845441003120b0a07455850495245441004120a0a064641494c45441005120a0a06455849535453100642025001620670726f746f33" - ), true); + "0afb1c0a095270632e70726f746f121a436174616c7973742e50726f746f" . + "636f6c2e5270632e4e6f64651a0a506565722e70726f746f1a1243727970" . + "746f6772617068792e70726f746f1a0c44656c7461732e70726f746f1a0a" . + "576972652e70726f746f1a115472616e73616374696f6e2e70726f746f22" . + "1f0a0e56657273696f6e52657175657374120d0a05717565727918012001" . + "280822220a0f56657273696f6e526573706f6e7365120f0a077665727369" . + "6f6e180120012809221f0a0e476574496e666f52657175657374120d0a05" . + "717565727918012001280822200a0f476574496e666f526573706f6e7365" . + "120d0a05717565727918012001280922240a1343726561746557616c6c65" . + "7452657175657374120d0a05717565727918012001280822250a14437265" . + "61746557616c6c6574526573706f6e7365120d0a05717565727918012001" . + "280922220a114c69737457616c6c657452657175657374120d0a05717565" . + "727918012001280822230a124c69737457616c6c6574526573706f6e7365" . + "120d0a05717565727918012001280922250a144372656174654164647265" . + "737352657175657374120d0a05717565727918012001280822260a154372" . + "6561746541646472657373526573706f6e7365120d0a0571756572791801" . + "2001280922220a114765744164647265737352657175657374120d0a0571" . + "7565727918012001280822230a1247657441646472657373526573706f6e" . + "7365120d0a05717565727918012001280922230a124c6973744164647265" . + "737352657175657374120d0a05717565727918012001280822240a134c69" . + "737441646472657373526573706f6e7365120d0a05717565727918012001" . + "280922270a1656616c69646174654164647265737352657175657374120d" . + "0a05717565727918012001280822280a1756616c69646174654164647265" . + "7373526573706f6e7365120d0a05717565727918012001280922220a1147" . + "657442616c616e636552657175657374120d0a0571756572791801200128" . + "0822230a1247657442616c616e6365526573706f6e7365120d0a05717565" . + "7279180120012809222c0a1b4372656174655261775472616e7361637469" . + "6f6e52657175657374120d0a057175657279180120012808222d0a1c4372" . + "656174655261775472616e73616374696f6e526573706f6e7365120d0a05" . + "7175657279180120012809222a0a195369676e5261775472616e73616374" . + "696f6e52657175657374120d0a057175657279180120012808222b0a1a53" . + "69676e5261775472616e73616374696f6e526573706f6e7365120d0a0571" . + "75657279180120012809222c0a1b4465636f64655261775472616e736163" . + "74696f6e52657175657374120d0a057175657279180120012808222d0a1c" . + "4465636f64655261775472616e73616374696f6e526573706f6e7365120d" . + "0a05717565727918012001280922630a1e42726f61646361737452617754" . + "72616e73616374696f6e5265717565737412410a0b7472616e7361637469" . + "6f6e18012001280b322c2e436174616c7973742e50726f746f636f6c2e57" . + "6972652e5472616e73616374696f6e42726f61646361737422620a1f4272" . + "6f6164636173745261775472616e73616374696f6e526573706f6e736512" . + "3f0a0d726573706f6e73655f636f646518012001280e32282e436174616c" . + "7973742e50726f746f636f6c2e5270632e4e6f64652e526573706f6e7365" . + "436f6465221e0a0d53656e64546f52657175657374120d0a057175657279" . + "180120012808221f0a0e53656e64546f526573706f6e7365120d0a057175" . + "65727918012001280922220a1153656e64546f46726f6d52657175657374" . + "120d0a05717565727918012001280822230a1253656e64546f46726f6d52" . + "6573706f6e7365120d0a05717565727918012001280922200a0f53656e64" . + "4d616e7952657175657374120d0a05717565727918012001280822210a10" . + "53656e644d616e79526573706f6e7365120d0a0571756572791801200128" . + "0922240a1353656e6446726f6d4d616e7952657175657374120d0a057175" . + "65727918012001280822250a1453656e6446726f6d4d616e79526573706f" . + "6e7365120d0a057175657279180120012809221f0a0e4164644e6f646552" . + "657175657374120d0a05717565727918012001280822200a0f4164644e6f" . + "6465526573706f6e7365120d0a05717565727918012001280922140a1247" . + "6574506565724c6973745265717565737422440a13476574506565724c69" . + "7374526573706f6e7365122d0a05706565727318012003280b321e2e4361" . + "74616c7973742e50726f746f636f6c2e506565722e506565724964223a0a" . + "184765745065657252657075746174696f6e5265717565737412120a0a70" . + "75626c69635f6b657918012001280c120a0a02697018022001280c222f0a" . + "194765745065657252657075746174696f6e526573706f6e736512120a0a" . + "72657075746174696f6e180120012805224c0a1753657450656572426c61" . + "636b4c6973745265717565737412120a0a7075626c69635f6b6579180120" . + "01280c120a0a02697018022001280c12110a09626c61636b6c6973741803" . + "20012808224d0a1853657450656572426c61636b4c697374526573706f6e" . + "736512120a0a7075626c69635f6b657918012001280c120a0a0269701802" . + "2001280c12110a09626c61636b6c69737418032001280822340a12476574" . + "50656572496e666f5265717565737412120a0a7075626c69635f6b657918" . + "012001280c120a0a02697018022001280c224a0a1347657450656572496e" . + "666f526573706f6e736512330a09706565725f696e666f18012003280b32" . + "202e436174616c7973742e50726f746f636f6c2e506565722e5065657249" . + "6e666f222a0a19476574436f6e6e656374696f6e436f756e745265717565" . + "7374120d0a057175657279180120012808222b0a1a476574436f6e6e6563" . + "74696f6e436f756e74526573706f6e7365120d0a05717565727918012001" . + "280922290a0f47657444656c74615265717565737412160a0e64656c7461" . + "5f6466735f6861736818012001280c22420a1047657444656c7461526573" . + "706f6e7365122e0a0564656c746118012001280b321f2e436174616c7973" . + "742e50726f746f636f6c2e44656c7461732e44656c746122220a11476574" . + "4d656d706f6f6c52657175657374120d0a05717565727918012001280822" . + "560a124765744d656d706f6f6c526573706f6e736512400a0c7472616e73" . + "616374696f6e7318012003280b322a2e436174616c7973742e50726f746f" . + "636f6c2e5472616e73616374696f6e2e5075626c6963456e747279227e0a" . + "125369676e4d65737361676552657175657374120f0a076d657373616765" . + "18012001280c120e0a066b65795f696418022001280912470a0f7369676e" . + "696e675f636f6e7465787418032001280b322e2e436174616c7973742e50" . + "726f746f636f6c2e43727970746f6772617068792e5369676e696e67436f" . + "6e7465787422560a135369676e4d657373616765526573706f6e73651211" . + "0a097369676e617475726518012001280c12120a0a7075626c69635f6b65" . + "7918022001280c12180a106f726967696e616c5f6d657373616765180320" . + "01280c2297010a145665726966794d657373616765526571756573741211" . + "0a097369676e617475726518012001280c12120a0a7075626c69635f6b65" . + "7918022001280c120f0a076d65737361676518032001280c12470a0f7369" . + "676e696e675f636f6e7465787418042001280b322e2e436174616c797374" . + "2e50726f746f636f6c2e43727970746f6772617068792e5369676e696e67" . + "436f6e7465787422310a155665726966794d657373616765526573706f6e" . + "736512180a1069735f7369676e65645f62795f6b65791801200128082225" . + "0a145365727669636553746174757352657175657374120d0a0571756572" . + "7918012001280822260a1553657276696365537461747573526573706f6e" . + "7365120d0a05717565727918012001280922490a1341646446696c65546f" . + "4466735265717565737412110a0966696c655f73697a6518012001280412" . + "110a0966696c655f6e616d65180220012809120c0a046e6f646518032001" . + "2809223f0a1441646446696c65546f446673526573706f6e736512150a0d" . + "726573706f6e73655f636f646518012001280c12100a086466735f686173" . + "6818022001280922600a185472616e7366657246696c6542797465735265" . + "717565737412100a086368756e6b5f696418012001280d12130a0b636875" . + "6e6b5f627974657318022001280c121d0a15636f7272656c6174696f6e5f" . + "66696c655f6e616d6518032001280c22320a195472616e7366657246696c" . + "654279746573526573706f6e736512150a0d726573706f6e73655f636f64" . + "6518012001280c22380a1152656d6f76655065657252657175657374120f" . + "0a07706565725f697018012001280c12120a0a7075626c69635f6b657918" . + "022001280c222b0a1252656d6f766550656572526573706f6e736512150a" . + "0d64656c657465645f636f756e7418012001280d22150a13476574506565" . + "72436f756e7452657175657374222a0a1447657450656572436f756e7452" . + "6573706f6e736512120a0a706565725f636f756e7418012001280522290a" . + "1547657446696c6546726f6d4466735265717565737412100a086466735f" . + "6861736818012001280922420a1647657446696c6546726f6d4466735265" . + "73706f6e736512110a0966696c655f73697a6518012001280412150a0d72" . + "6573706f6e73655f636f646518022001280c222f0a185365745065657244" . + "617461466f6c6465725265717565737412130a0b646174615f666f6c6465" . + "72180120012809222a0a195365745065657244617461466f6c6465725265" . + "73706f6e7365120d0a0571756572791801200128082a690a0c526573706f" . + "6e7365436f6465120b0a0750454e44494e471000120e0a0a535543434553" . + "5346554c100112090a054552524f521002120c0a0846494e495348454410" . + "03120b0a07455850495245441004120a0a064641494c45441005120a0a06" . + "455849535453100642025001620670726f746f33" + )); static::$is_initialized = true; } diff --git a/packages/sdk-php/src/GPBMetadata/Transaction.php b/packages/sdk-php/src/GPBMetadata/Transaction.php index db4c6b1..62aec44 100644 --- a/packages/sdk-php/src/GPBMetadata/Transaction.php +++ b/packages/sdk-php/src/GPBMetadata/Transaction.php @@ -15,10 +15,42 @@ public static function initOnce() { return; } \GPBMetadata\Cryptography::initOnce(); - \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0a9f080a115472616e73616374696f6e2e70726f746f121d436174616c7973742e50726f746f636f6c2e5472616e73616374696f6e1a1f676f6f676c652f70726f746f6275662f74696d657374616d702e70726f746f22ff010a0b5075626c6963456e74727912180a1072656365697665725f6164647265737318012001280c12160a0e73656e6465725f6164647265737318022001280c120e0a06616d6f756e7418032001280c120c0a046461746118042001280c122d0a0974696d657374616d7018052001280b321a2e676f6f676c652e70726f746f6275662e54696d657374616d7012110a096761735f707269636518062001280c12110a096761735f6c696d6974180720012804120d0a056e6f6e6365180920012804123c0a097369676e6174757265180a2001280b32292e436174616c7973742e50726f746f636f6c2e43727970746f6772617068792e5369676e617475726522d1010a11436f6e666964656e7469616c456e747279121b0a1372656365697665725f7075626c69635f6b657918012001280c12190a1173656e6465725f7075626c69635f6b657918022001280c121b0a13706564657273656e5f636f6d6d69746d656e7418032001280c123e0a0b72616e67655f70726f6f6618042001280b32292e436174616c7973742e50726f746f636f6c2e5472616e73616374696f6e2e52616e676550726f6f6612180a107472616e73616374696f6e5f6665657318052001280c120d0a056e6f6e6365180620012804223c0a0d436f696e62617365456e747279121b0a1372656365697665725f7075626c69635f6b657918012001280c120e0a06616d6f756e7418022001280c22da020a0a52616e676550726f6f6612180a1076616c75655f636f6d6d69746d656e7418012003280c12160a0e6269745f636f6d6d69746d656e7418022001280c122a0a227065725f6269745f626c696e64696e675f666163746f725f636f6d6d69746d656e7418032001280c121a0a12706f6c795f636f6d6d69746d656e745f743118042001280c121a0a12706f6c795f636f6d6d69746d656e745f743218052001280c121a0a1270726f6f665f6f665f73686172655f74617518062001280c12190a1170726f6f665f6f665f73686172655f6d7518072001280c12260a1e616767726567617465645f766563746f725f706f6c796e6f6d69616c5f6c18082003280c12260a1e616767726567617465645f766563746f725f706f6c796e6f6d69616c5f7218092003280c12110a09615f7072696d655f30180a2001280c12110a09625f7072696d655f30180b2001280c12090a0174180c2001280c2a4d0a0f5472616e73616374696f6e54797065121c0a185452414e53414354494f4e5f545950455f554e4b4e4f574e1000120a0a065055424c4943100112100a0c434f4e464944454e5449414c100242025001620670726f746f33" - ), true); + "0ae3070a115472616e73616374696f6e2e70726f746f121d436174616c79" . + "73742e50726f746f636f6c2e5472616e73616374696f6e1a124372797074" . + "6f6772617068792e70726f746f22d0010a0b5075626c6963456e74727912" . + "180a1072656365697665725f6164647265737318012001280c12160a0e73" . + "656e6465725f6164647265737318022001280c120e0a06616d6f756e7418" . + "032001280c120c0a046461746118042001280c12110a096761735f707269" . + "636518052001280c12110a096761735f6c696d6974180620012804120d0a" . + "056e6f6e6365180720012804123c0a097369676e61747572651808200128" . + "0b32292e436174616c7973742e50726f746f636f6c2e43727970746f6772" . + "617068792e5369676e617475726522d1010a11436f6e666964656e746961" . + "6c456e747279121b0a1372656365697665725f7075626c69635f6b657918" . + "012001280c12190a1173656e6465725f7075626c69635f6b657918022001" . + "280c121b0a13706564657273656e5f636f6d6d69746d656e741803200128" . + "0c123e0a0b72616e67655f70726f6f6618042001280b32292e436174616c" . + "7973742e50726f746f636f6c2e5472616e73616374696f6e2e52616e6765" . + "50726f6f6612180a107472616e73616374696f6e5f666565731805200128" . + "0c120d0a056e6f6e6365180620012804223c0a0d436f696e62617365456e" . + "747279121b0a1372656365697665725f7075626c69635f6b657918012001" . + "280c120e0a06616d6f756e7418022001280c22da020a0a52616e67655072" . + "6f6f6612180a1076616c75655f636f6d6d69746d656e7418012003280c12" . + "160a0e6269745f636f6d6d69746d656e7418022001280c122a0a22706572" . + "5f6269745f626c696e64696e675f666163746f725f636f6d6d69746d656e" . + "7418032001280c121a0a12706f6c795f636f6d6d69746d656e745f743118" . + "042001280c121a0a12706f6c795f636f6d6d69746d656e745f7432180520" . + "01280c121a0a1270726f6f665f6f665f73686172655f7461751806200128" . + "0c12190a1170726f6f665f6f665f73686172655f6d7518072001280c1226" . + "0a1e616767726567617465645f766563746f725f706f6c796e6f6d69616c" . + "5f6c18082003280c12260a1e616767726567617465645f766563746f725f" . + "706f6c796e6f6d69616c5f7218092003280c12110a09615f7072696d655f" . + "30180a2001280c12110a09625f7072696d655f30180b2001280c12090a01" . + "74180c2001280c2a4d0a0f5472616e73616374696f6e54797065121c0a18" . + "5452414e53414354494f4e5f545950455f554e4b4e4f574e1000120a0a06" . + "5055424c4943100112100a0c434f4e464944454e5449414c100242025001" . + "620670726f746f33" + )); static::$is_initialized = true; } diff --git a/packages/sdk-php/src/GPBMetadata/Wire.php b/packages/sdk-php/src/GPBMetadata/Wire.php index ff98cf9..e441d50 100644 --- a/packages/sdk-php/src/GPBMetadata/Wire.php +++ b/packages/sdk-php/src/GPBMetadata/Wire.php @@ -19,8 +19,39 @@ public static function initOnce() { \GPBMetadata\Transaction::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0a97070a0a576972652e70726f746f1216436174616c7973742e50726f746f636f6c2e576972651a0a506565722e70726f746f1a115472616e73616374696f6e2e70726f746f1a1f676f6f676c652f70726f746f6275662f74696d657374616d702e70726f746f22ab010a1450726f746f636f6c4572726f724d657373616765123c0a097369676e617475726518012001280b32292e436174616c7973742e50726f746f636f6c2e43727970746f6772617068792e5369676e6174757265122f0a07706565725f696418022001280b321e2e436174616c7973742e50726f746f636f6c2e506565722e50656572496412160a0e636f7272656c6174696f6e5f696418032001280c120c0a04636f646518042001280522b9010a0f50726f746f636f6c4d657373616765122f0a07706565725f696418012001280b321e2e436174616c7973742e50726f746f636f6c2e506565722e50656572496412160a0e636f7272656c6174696f6e5f696418022001280c12100a08747970655f75726c180320012809120d0a0576616c756518042001280c123c0a097369676e617475726518052001280b32292e436174616c7973742e50726f746f636f6c2e43727970746f6772617068792e5369676e617475726522580a145472616e73616374696f6e42726f61646361737412400a0c7075626c69635f656e74727918012001280b322a2e436174616c7973742e50726f746f636f6c2e5472616e73616374696f6e2e5075626c6963456e747279227d0a1743616e64696461746544656c746142726f616463617374120c0a046861736818012001280c12330a0b70726f64756365725f696418022001280b321e2e436174616c7973742e50726f746f636f6c2e506565722e506565724964121f0a1770726576696f75735f64656c74615f6466735f6861736818032001280c228f010a174661766f757269746544656c746142726f61646361737412420a0963616e64696461746518012001280b322f2e436174616c7973742e50726f746f636f6c2e576972652e43616e64696461746544656c746142726f61646361737412300a08766f7465725f696418022001280b321e2e436174616c7973742e50726f746f636f6c2e506565722e50656572496422500a1544656c74614466734861736842726f61646361737412160a0e64656c74615f6466735f6861736818012001280c121f0a1770726576696f75735f64656c74615f6466735f6861736818022001280c42025001620670726f746f33" - ), true); + "0aab070a0a576972652e70726f746f1216436174616c7973742e50726f74" . + "6f636f6c2e576972651a1243727970746f6772617068792e70726f746f1a" . + "0a506565722e70726f746f1a115472616e73616374696f6e2e70726f746f" . + "1a1f676f6f676c652f70726f746f6275662f74696d657374616d702e7072" . + "6f746f22ab010a1450726f746f636f6c4572726f724d657373616765123c" . + "0a097369676e617475726518012001280b32292e436174616c7973742e50" . + "726f746f636f6c2e43727970746f6772617068792e5369676e6174757265" . + "122f0a07706565725f696418022001280b321e2e436174616c7973742e50" . + "726f746f636f6c2e506565722e50656572496412160a0e636f7272656c61" . + "74696f6e5f696418032001280c120c0a04636f646518042001280522b901" . + "0a0f50726f746f636f6c4d657373616765122f0a07706565725f69641801" . + "2001280b321e2e436174616c7973742e50726f746f636f6c2e506565722e" . + "50656572496412160a0e636f7272656c6174696f6e5f696418022001280c" . + "12100a08747970655f75726c180320012809120d0a0576616c7565180420" . + "01280c123c0a097369676e617475726518052001280b32292e436174616c" . + "7973742e50726f746f636f6c2e43727970746f6772617068792e5369676e" . + "617475726522580a145472616e73616374696f6e42726f61646361737412" . + "400a0c7075626c69635f656e74727918012001280b322a2e436174616c79" . + "73742e50726f746f636f6c2e5472616e73616374696f6e2e5075626c6963" . + "456e747279227d0a1743616e64696461746544656c746142726f61646361" . + "7374120c0a046861736818012001280c12330a0b70726f64756365725f69" . + "6418022001280b321e2e436174616c7973742e50726f746f636f6c2e5065" . + "65722e506565724964121f0a1770726576696f75735f64656c74615f6466" . + "735f6861736818032001280c228f010a174661766f757269746544656c74" . + "6142726f61646361737412420a0963616e64696461746518012001280b32" . + "2f2e436174616c7973742e50726f746f636f6c2e576972652e43616e6469" . + "6461746544656c746142726f61646361737412300a08766f7465725f6964" . + "18022001280b321e2e436174616c7973742e50726f746f636f6c2e506565" . + "722e50656572496422500a1544656c74614466734861736842726f616463" . + "61737412160a0e64656c74615f6466735f6861736818012001280c121f0a" . + "1770726576696f75735f64656c74615f6466735f6861736818022001280c" . + "42025001620670726f746f33" + )); static::$is_initialized = true; } diff --git a/packages/sdk-python/src/Account_pb2.py b/packages/sdk-python/src/Account_pb2.py index 39a6ec7..a88244e 100644 --- a/packages/sdk-python/src/Account_pb2.py +++ b/packages/sdk-python/src/Account_pb2.py @@ -1,12 +1,14 @@ -# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Account.proto +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,10 +22,10 @@ name='Account.proto', package='Catalyst.Protocol.Account', syntax='proto3', - serialized_options=b'P\001', - serialized_pb=b'\n\rAccount.proto\x12\x19\x43\x61talyst.Protocol.Account\x1a\x12\x43ryptography.proto\x1a\rNetwork.proto\"\x9e\x01\n\x07\x41\x64\x64ress\x12<\n\x0cnetwork_type\x18\x01 \x01(\x0e\x32&.Catalyst.Protocol.Network.NetworkType\x12<\n\x0c\x61\x63\x63ount_type\x18\x02 \x01(\x0e\x32&.Catalyst.Protocol.Account.AccountType\x12\x17\n\x0fpublic_key_hash\x18\x03 \x01(\x0c*q\n\x0b\x41\x63\x63ountType\x12\x18\n\x14\x41\x43\x43OUNT_TYPE_UNKNOWN\x10\x00\x12\x12\n\x0ePUBLIC_ACCOUNT\x10\x08\x12\x18\n\x14\x43ONFIDENTIAL_ACCOUNT\x10\x10\x12\x1a\n\x16SMART_CONTRACT_ACCOUNT\x10\x18\x42\x02P\x01\x62\x06proto3' + serialized_pb=_b('\n\rAccount.proto\x12\x19\x43\x61talyst.Protocol.Account\x1a\x12\x43ryptography.proto\x1a\rNetwork.proto\"\x9e\x01\n\x07\x41\x64\x64ress\x12<\n\x0cnetwork_type\x18\x01 \x01(\x0e\x32&.Catalyst.Protocol.Network.NetworkType\x12<\n\x0c\x61\x63\x63ount_type\x18\x02 \x01(\x0e\x32&.Catalyst.Protocol.Account.AccountType\x12\x17\n\x0fpublic_key_hash\x18\x03 \x01(\x0c*q\n\x0b\x41\x63\x63ountType\x12\x18\n\x14\x41\x43\x43OUNT_TYPE_UNKNOWN\x10\x00\x12\x12\n\x0ePUBLIC_ACCOUNT\x10\x08\x12\x18\n\x14\x43ONFIDENTIAL_ACCOUNT\x10\x10\x12\x1a\n\x16SMART_CONTRACT_ACCOUNT\x10\x18\x42\x02P\x01\x62\x06proto3') , dependencies=[Cryptography__pb2.DESCRIPTOR,Network__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) _ACCOUNTTYPE = _descriptor.EnumDescriptor( name='AccountType', @@ -33,23 +35,23 @@ values=[ _descriptor.EnumValueDescriptor( name='ACCOUNT_TYPE_UNKNOWN', index=0, number=0, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='PUBLIC_ACCOUNT', index=1, number=8, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='CONFIDENTIAL_ACCOUNT', index=2, number=16, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='SMART_CONTRACT_ACCOUNT', index=3, number=24, - serialized_options=None, + options=None, type=None), ], containing_type=None, - serialized_options=None, + options=None, serialized_start=240, serialized_end=353, ) @@ -76,28 +78,28 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='account_type', full_name='Catalyst.Protocol.Account.Address.account_type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='public_key_hash', full_name='Catalyst.Protocol.Account.Address.public_key_hash', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -111,15 +113,15 @@ _ADDRESS.fields_by_name['account_type'].enum_type = _ACCOUNTTYPE DESCRIPTOR.message_types_by_name['Address'] = _ADDRESS DESCRIPTOR.enum_types_by_name['AccountType'] = _ACCOUNTTYPE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -Address = _reflection.GeneratedProtocolMessageType('Address', (_message.Message,), { - 'DESCRIPTOR' : _ADDRESS, - '__module__' : 'Account_pb2' +Address = _reflection.GeneratedProtocolMessageType('Address', (_message.Message,), dict( + DESCRIPTOR = _ADDRESS, + __module__ = 'Account_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Account.Address) - }) + )) _sym_db.RegisterMessage(Address) -DESCRIPTOR._options = None +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('P\001')) # @@protoc_insertion_point(module_scope) diff --git a/packages/sdk-python/src/Cryptography_pb2.py b/packages/sdk-python/src/Cryptography_pb2.py index f8d50dc..850ceec 100644 --- a/packages/sdk-python/src/Cryptography_pb2.py +++ b/packages/sdk-python/src/Cryptography_pb2.py @@ -1,12 +1,14 @@ -# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Cryptography.proto +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,10 +21,10 @@ name='Cryptography.proto', package='Catalyst.Protocol.Cryptography', syntax='proto3', - serialized_options=b'P\001', - serialized_pb=b'\n\x12\x43ryptography.proto\x12\x1e\x43\x61talyst.Protocol.Cryptography\x1a\rNetwork.proto\"g\n\tSignature\x12G\n\x0fsigning_context\x18\x01 \x01(\x0b\x32..Catalyst.Protocol.Cryptography.SigningContext\x12\x11\n\traw_bytes\x18\x02 \x01(\x0c\"\x95\x01\n\x0eSigningContext\x12<\n\x0cnetwork_type\x18\x01 \x01(\x0e\x32&.Catalyst.Protocol.Network.NetworkType\x12\x45\n\x0esignature_type\x18\x02 \x01(\x0e\x32-.Catalyst.Protocol.Cryptography.SignatureType\"\\\n\x0eSignatureBatch\x12\x12\n\nsignatures\x18\x01 \x03(\x0c\x12\x13\n\x0bpublic_keys\x18\x02 \x03(\x0c\x12\x10\n\x08messages\x18\x03 \x03(\x0c\x12\x0f\n\x07\x63ontext\x18\x04 \x01(\x0c*\x98\x01\n\rSignatureType\x12\x1a\n\x16SIGNATURE_TYPE_UNKNOWN\x10\x00\x12\x16\n\x12TRANSACTION_PUBLIC\x10\x01\x12\x1c\n\x18TRANSACTION_CONFIDENTIAL\x10\x02\x12\x10\n\x0cPROTOCOL_RPC\x10\x03\x12\x11\n\rPROTOCOL_PEER\x10\x04\x12\x10\n\x0cWEB3_MESSAGE\x10\x05*\x92\x02\n\tErrorCode\x12\x16\n\x12\x45RROR_CODE_UNKNOWN\x10\x00\x12\x15\n\x11INVALID_SIGNATURE\x10\x01\x12\x16\n\x12INVALID_PUBLIC_KEY\x10\x02\x12\x17\n\x13INVALID_PRIVATE_KEY\x10\x03\x12\"\n\x1eSIGNATURE_VERIFICATION_FAILURE\x10\x04\x12\x1a\n\x16INVALID_CONTEXT_LENGTH\x10\x05\x12\x19\n\x15INVALID_BATCH_MESSAGE\x10\x06\x12\x1b\n\x17\x41RRAYS_NOT_EQUAL_LENGTH\x10\x07\x12\x1e\n\x1a\x42\x41TCH_VERIFICATION_FAILURE\x10\x08\x12\r\n\x08NO_ERROR\x10\xa2\x03\x42\x02P\x01\x62\x06proto3' + serialized_pb=_b('\n\x12\x43ryptography.proto\x12\x1e\x43\x61talyst.Protocol.Cryptography\x1a\rNetwork.proto\"g\n\tSignature\x12G\n\x0fsigning_context\x18\x01 \x01(\x0b\x32..Catalyst.Protocol.Cryptography.SigningContext\x12\x11\n\traw_bytes\x18\x02 \x01(\x0c\"\x95\x01\n\x0eSigningContext\x12<\n\x0cnetwork_type\x18\x01 \x01(\x0e\x32&.Catalyst.Protocol.Network.NetworkType\x12\x45\n\x0esignature_type\x18\x02 \x01(\x0e\x32-.Catalyst.Protocol.Cryptography.SignatureType\"\\\n\x0eSignatureBatch\x12\x12\n\nsignatures\x18\x01 \x03(\x0c\x12\x13\n\x0bpublic_keys\x18\x02 \x03(\x0c\x12\x10\n\x08messages\x18\x03 \x03(\x0c\x12\x0f\n\x07\x63ontext\x18\x04 \x01(\x0c*\x98\x01\n\rSignatureType\x12\x1a\n\x16SIGNATURE_TYPE_UNKNOWN\x10\x00\x12\x16\n\x12TRANSACTION_PUBLIC\x10\x01\x12\x1c\n\x18TRANSACTION_CONFIDENTIAL\x10\x02\x12\x10\n\x0cPROTOCOL_RPC\x10\x03\x12\x11\n\rPROTOCOL_PEER\x10\x04\x12\x10\n\x0cWEB3_MESSAGE\x10\x05*\x92\x02\n\tErrorCode\x12\x16\n\x12\x45RROR_CODE_UNKNOWN\x10\x00\x12\x15\n\x11INVALID_SIGNATURE\x10\x01\x12\x16\n\x12INVALID_PUBLIC_KEY\x10\x02\x12\x17\n\x13INVALID_PRIVATE_KEY\x10\x03\x12\"\n\x1eSIGNATURE_VERIFICATION_FAILURE\x10\x04\x12\x1a\n\x16INVALID_CONTEXT_LENGTH\x10\x05\x12\x19\n\x15INVALID_BATCH_MESSAGE\x10\x06\x12\x1b\n\x17\x41RRAYS_NOT_EQUAL_LENGTH\x10\x07\x12\x1e\n\x1a\x42\x41TCH_VERIFICATION_FAILURE\x10\x08\x12\r\n\x08NO_ERROR\x10\xa2\x03\x42\x02P\x01\x62\x06proto3') , dependencies=[Network__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) _SIGNATURETYPE = _descriptor.EnumDescriptor( name='SignatureType', @@ -32,31 +34,31 @@ values=[ _descriptor.EnumValueDescriptor( name='SIGNATURE_TYPE_UNKNOWN', index=0, number=0, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='TRANSACTION_PUBLIC', index=1, number=1, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='TRANSACTION_CONFIDENTIAL', index=2, number=2, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='PROTOCOL_RPC', index=3, number=3, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='PROTOCOL_PEER', index=4, number=4, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='WEB3_MESSAGE', index=5, number=5, - serialized_options=None, + options=None, type=None), ], containing_type=None, - serialized_options=None, + options=None, serialized_start=421, serialized_end=573, ) @@ -71,47 +73,47 @@ values=[ _descriptor.EnumValueDescriptor( name='ERROR_CODE_UNKNOWN', index=0, number=0, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='INVALID_SIGNATURE', index=1, number=1, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='INVALID_PUBLIC_KEY', index=2, number=2, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='INVALID_PRIVATE_KEY', index=3, number=3, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='SIGNATURE_VERIFICATION_FAILURE', index=4, number=4, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='INVALID_CONTEXT_LENGTH', index=5, number=5, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='INVALID_BATCH_MESSAGE', index=6, number=6, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='ARRAYS_NOT_EQUAL_LENGTH', index=7, number=7, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='BATCH_VERIFICATION_FAILURE', index=8, number=8, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='NO_ERROR', index=9, number=418, - serialized_options=None, + options=None, type=None), ], containing_type=None, - serialized_options=None, + options=None, serialized_start=576, serialized_end=850, ) @@ -150,21 +152,21 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='raw_bytes', full_name='Catalyst.Protocol.Cryptography.Signature.raw_bytes', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -188,21 +190,21 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='signature_type', full_name='Catalyst.Protocol.Cryptography.SigningContext.signature_type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -226,35 +228,35 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='public_keys', full_name='Catalyst.Protocol.Cryptography.SignatureBatch.public_keys', index=1, number=2, type=12, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='messages', full_name='Catalyst.Protocol.Cryptography.SignatureBatch.messages', index=2, number=3, type=12, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='context', full_name='Catalyst.Protocol.Cryptography.SignatureBatch.context', index=3, number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -272,29 +274,29 @@ DESCRIPTOR.message_types_by_name['SignatureBatch'] = _SIGNATUREBATCH DESCRIPTOR.enum_types_by_name['SignatureType'] = _SIGNATURETYPE DESCRIPTOR.enum_types_by_name['ErrorCode'] = _ERRORCODE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -Signature = _reflection.GeneratedProtocolMessageType('Signature', (_message.Message,), { - 'DESCRIPTOR' : _SIGNATURE, - '__module__' : 'Cryptography_pb2' +Signature = _reflection.GeneratedProtocolMessageType('Signature', (_message.Message,), dict( + DESCRIPTOR = _SIGNATURE, + __module__ = 'Cryptography_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Cryptography.Signature) - }) + )) _sym_db.RegisterMessage(Signature) -SigningContext = _reflection.GeneratedProtocolMessageType('SigningContext', (_message.Message,), { - 'DESCRIPTOR' : _SIGNINGCONTEXT, - '__module__' : 'Cryptography_pb2' +SigningContext = _reflection.GeneratedProtocolMessageType('SigningContext', (_message.Message,), dict( + DESCRIPTOR = _SIGNINGCONTEXT, + __module__ = 'Cryptography_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Cryptography.SigningContext) - }) + )) _sym_db.RegisterMessage(SigningContext) -SignatureBatch = _reflection.GeneratedProtocolMessageType('SignatureBatch', (_message.Message,), { - 'DESCRIPTOR' : _SIGNATUREBATCH, - '__module__' : 'Cryptography_pb2' +SignatureBatch = _reflection.GeneratedProtocolMessageType('SignatureBatch', (_message.Message,), dict( + DESCRIPTOR = _SIGNATUREBATCH, + __module__ = 'Cryptography_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Cryptography.SignatureBatch) - }) + )) _sym_db.RegisterMessage(SignatureBatch) -DESCRIPTOR._options = None +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('P\001')) # @@protoc_insertion_point(module_scope) diff --git a/packages/sdk-python/src/Deltas_pb2.py b/packages/sdk-python/src/Deltas_pb2.py index 10ffa18..8d9dfff 100644 --- a/packages/sdk-python/src/Deltas_pb2.py +++ b/packages/sdk-python/src/Deltas_pb2.py @@ -1,11 +1,13 @@ -# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Deltas.proto +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,10 +21,10 @@ name='Deltas.proto', package='Catalyst.Protocol.Deltas', syntax='proto3', - serialized_options=b'P\001', - serialized_pb=b'\n\x0c\x44\x65ltas.proto\x12\x18\x43\x61talyst.Protocol.Deltas\x1a\x11Transaction.proto\x1a\x1fgoogle/protobuf/timestamp.proto\")\n\nDeltaIndex\x12\x0e\n\x06height\x18\x01 \x01(\r\x12\x0b\n\x03\x63id\x18\x02 \x01(\x0c\"\x88\x03\n\x05\x44\x65lta\x12\x1f\n\x17previous_delta_dfs_hash\x18\x01 \x01(\x0c\x12\x13\n\x0bmerkle_root\x18\x02 \x01(\x0c\x12\x13\n\x0bmerkle_poda\x18\x03 \x01(\x0c\x12.\n\ntime_stamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x0epublic_entries\x18\x05 \x03(\x0b\x32*.Catalyst.Protocol.Transaction.PublicEntry\x12N\n\x14\x63onfidential_entries\x18\x06 \x03(\x0b\x32\x30.Catalyst.Protocol.Transaction.ConfidentialEntry\x12\x46\n\x10\x63oinbase_entries\x18\x07 \x03(\x0b\x32,.Catalyst.Protocol.Transaction.CoinbaseEntry\x12\x12\n\nstate_root\x18\x08 \x01(\x0c\x12\x14\n\x0c\x64\x65lta_number\x18\t \x01(\x03\x42\x02P\x01\x62\x06proto3' + serialized_pb=_b('\n\x0c\x44\x65ltas.proto\x12\x18\x43\x61talyst.Protocol.Deltas\x1a\x11Transaction.proto\x1a\x1fgoogle/protobuf/timestamp.proto\")\n\nDeltaIndex\x12\x0e\n\x06height\x18\x01 \x01(\r\x12\x0b\n\x03\x63id\x18\x02 \x01(\x0c\"\x9a\x03\n\x05\x44\x65lta\x12\x1f\n\x17previous_delta_dfs_hash\x18\x01 \x01(\x0c\x12\x13\n\x0bmerkle_root\x18\x02 \x01(\x0c\x12\x13\n\x0bmerkle_poda\x18\x03 \x01(\x0c\x12.\n\ntime_stamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x0epublic_entries\x18\x05 \x03(\x0b\x32*.Catalyst.Protocol.Transaction.PublicEntry\x12N\n\x14\x63onfidential_entries\x18\x06 \x03(\x0b\x32\x30.Catalyst.Protocol.Transaction.ConfidentialEntry\x12\x46\n\x10\x63oinbase_entries\x18\x07 \x03(\x0b\x32,.Catalyst.Protocol.Transaction.CoinbaseEntry\x12\x12\n\nstate_root\x18\x08 \x01(\x0c\x12\x14\n\x0c\x64\x65lta_number\x18\t \x01(\x03\x12\x10\n\x08gas_used\x18\n \x01(\x03\x42\x02P\x01\x62\x06proto3') , dependencies=[Transaction__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -40,21 +42,21 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='cid', full_name='Catalyst.Protocol.Deltas.DeltaIndex.cid', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -75,80 +77,87 @@ _descriptor.FieldDescriptor( name='previous_delta_dfs_hash', full_name='Catalyst.Protocol.Deltas.Delta.previous_delta_dfs_hash', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='merkle_root', full_name='Catalyst.Protocol.Deltas.Delta.merkle_root', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='merkle_poda', full_name='Catalyst.Protocol.Deltas.Delta.merkle_poda', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='time_stamp', full_name='Catalyst.Protocol.Deltas.Delta.time_stamp', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='public_entries', full_name='Catalyst.Protocol.Deltas.Delta.public_entries', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='confidential_entries', full_name='Catalyst.Protocol.Deltas.Delta.confidential_entries', index=5, number=6, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='coinbase_entries', full_name='Catalyst.Protocol.Deltas.Delta.coinbase_entries', index=6, number=7, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='state_root', full_name='Catalyst.Protocol.Deltas.Delta.state_root', index=7, number=8, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='delta_number', full_name='Catalyst.Protocol.Deltas.Delta.delta_number', index=8, number=9, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), + _descriptor.FieldDescriptor( + name='gas_used', full_name='Catalyst.Protocol.Deltas.Delta.gas_used', index=9, + number=10, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=138, - serialized_end=530, + serialized_end=548, ) _DELTA.fields_by_name['time_stamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP @@ -157,22 +166,22 @@ _DELTA.fields_by_name['coinbase_entries'].message_type = Transaction__pb2._COINBASEENTRY DESCRIPTOR.message_types_by_name['DeltaIndex'] = _DELTAINDEX DESCRIPTOR.message_types_by_name['Delta'] = _DELTA -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -DeltaIndex = _reflection.GeneratedProtocolMessageType('DeltaIndex', (_message.Message,), { - 'DESCRIPTOR' : _DELTAINDEX, - '__module__' : 'Deltas_pb2' +DeltaIndex = _reflection.GeneratedProtocolMessageType('DeltaIndex', (_message.Message,), dict( + DESCRIPTOR = _DELTAINDEX, + __module__ = 'Deltas_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Deltas.DeltaIndex) - }) + )) _sym_db.RegisterMessage(DeltaIndex) -Delta = _reflection.GeneratedProtocolMessageType('Delta', (_message.Message,), { - 'DESCRIPTOR' : _DELTA, - '__module__' : 'Deltas_pb2' +Delta = _reflection.GeneratedProtocolMessageType('Delta', (_message.Message,), dict( + DESCRIPTOR = _DELTA, + __module__ = 'Deltas_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Deltas.Delta) - }) + )) _sym_db.RegisterMessage(Delta) -DESCRIPTOR._options = None +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('P\001')) # @@protoc_insertion_point(module_scope) diff --git a/packages/sdk-python/src/DfsMarketplace_pb2.py b/packages/sdk-python/src/DfsMarketplace_pb2.py index f45f58f..107f862 100644 --- a/packages/sdk-python/src/DfsMarketplace_pb2.py +++ b/packages/sdk-python/src/DfsMarketplace_pb2.py @@ -1,11 +1,13 @@ -# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: DfsMarketplace.proto +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,10 +20,10 @@ name='DfsMarketplace.proto', package='Catalyst.Protocol.DfsMarketplace', syntax='proto3', - serialized_options=b'P\001', - serialized_pb=b'\n\x14\x44\x66sMarketplace.proto\x12 Catalyst.Protocol.DfsMarketplace\x1a\nPeer.proto\"e\n\x15\x42lockChallengeRequest\x12\x16\n\x0e\x63hallenge_salt\x18\x01 \x01(\t\x12\x15\n\rmain_file_cid\x18\x02 \x01(\t\x12\x1d\n\x15\x62lock_idx_random_guid\x18\x03 \x01(\x0c\"N\n\x16\x42lockChallengeResponse\x12\x0e\n\x06\x61nswer\x18\x01 \x01(\t\x12$\n\x1c\x62lock_challenge_request_hash\x18\x02 \x01(\t\"\xee\x01\n\x17\x42lockChallengeBroadcast\x12S\n\x12original_challenge\x18\x01 \x01(\x0b\x32\x37.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest\x12\x0e\n\x06\x61nswer\x18\x02 \x01(\t\x12\x37\n\x0f\x63hallenged_peer\x18\x03 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\x12\x35\n\rchallenged_by\x18\x04 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerIdB\x02P\x01\x62\x06proto3' + serialized_pb=_b('\n\x14\x44\x66sMarketplace.proto\x12 Catalyst.Protocol.DfsMarketplace\x1a\nPeer.proto\"e\n\x15\x42lockChallengeRequest\x12\x16\n\x0e\x63hallenge_salt\x18\x01 \x01(\t\x12\x15\n\rmain_file_cid\x18\x02 \x01(\t\x12\x1d\n\x15\x62lock_idx_random_guid\x18\x03 \x01(\x0c\"N\n\x16\x42lockChallengeResponse\x12\x0e\n\x06\x61nswer\x18\x01 \x01(\t\x12$\n\x1c\x62lock_challenge_request_hash\x18\x02 \x01(\t\"\xee\x01\n\x17\x42lockChallengeBroadcast\x12S\n\x12original_challenge\x18\x01 \x01(\x0b\x32\x37.Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest\x12\x0e\n\x06\x61nswer\x18\x02 \x01(\t\x12\x37\n\x0f\x63hallenged_peer\x18\x03 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\x12\x35\n\rchallenged_by\x18\x04 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerIdB\x02P\x01\x62\x06proto3') , dependencies=[Peer__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -36,31 +38,31 @@ _descriptor.FieldDescriptor( name='challenge_salt', full_name='Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.challenge_salt', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='main_file_cid', full_name='Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.main_file_cid', index=1, number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='block_idx_random_guid', full_name='Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest.block_idx_random_guid', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -81,24 +83,24 @@ _descriptor.FieldDescriptor( name='answer', full_name='Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.answer', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='block_challenge_request_hash', full_name='Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse.block_challenge_request_hash', index=1, number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -122,35 +124,35 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='answer', full_name='Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.answer', index=1, number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='challenged_peer', full_name='Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_peer', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='challenged_by', full_name='Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast.challenged_by', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -166,29 +168,29 @@ DESCRIPTOR.message_types_by_name['BlockChallengeRequest'] = _BLOCKCHALLENGEREQUEST DESCRIPTOR.message_types_by_name['BlockChallengeResponse'] = _BLOCKCHALLENGERESPONSE DESCRIPTOR.message_types_by_name['BlockChallengeBroadcast'] = _BLOCKCHALLENGEBROADCAST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -BlockChallengeRequest = _reflection.GeneratedProtocolMessageType('BlockChallengeRequest', (_message.Message,), { - 'DESCRIPTOR' : _BLOCKCHALLENGEREQUEST, - '__module__' : 'DfsMarketplace_pb2' +BlockChallengeRequest = _reflection.GeneratedProtocolMessageType('BlockChallengeRequest', (_message.Message,), dict( + DESCRIPTOR = _BLOCKCHALLENGEREQUEST, + __module__ = 'DfsMarketplace_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest) - }) + )) _sym_db.RegisterMessage(BlockChallengeRequest) -BlockChallengeResponse = _reflection.GeneratedProtocolMessageType('BlockChallengeResponse', (_message.Message,), { - 'DESCRIPTOR' : _BLOCKCHALLENGERESPONSE, - '__module__' : 'DfsMarketplace_pb2' +BlockChallengeResponse = _reflection.GeneratedProtocolMessageType('BlockChallengeResponse', (_message.Message,), dict( + DESCRIPTOR = _BLOCKCHALLENGERESPONSE, + __module__ = 'DfsMarketplace_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse) - }) + )) _sym_db.RegisterMessage(BlockChallengeResponse) -BlockChallengeBroadcast = _reflection.GeneratedProtocolMessageType('BlockChallengeBroadcast', (_message.Message,), { - 'DESCRIPTOR' : _BLOCKCHALLENGEBROADCAST, - '__module__' : 'DfsMarketplace_pb2' +BlockChallengeBroadcast = _reflection.GeneratedProtocolMessageType('BlockChallengeBroadcast', (_message.Message,), dict( + DESCRIPTOR = _BLOCKCHALLENGEBROADCAST, + __module__ = 'DfsMarketplace_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast) - }) + )) _sym_db.RegisterMessage(BlockChallengeBroadcast) -DESCRIPTOR._options = None +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('P\001')) # @@protoc_insertion_point(module_scope) diff --git a/packages/sdk-python/src/IPPN_pb2.py b/packages/sdk-python/src/IPPN_pb2.py index 62df287..4efb1fa 100644 --- a/packages/sdk-python/src/IPPN_pb2.py +++ b/packages/sdk-python/src/IPPN_pb2.py @@ -1,11 +1,13 @@ -# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: IPPN.proto +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,10 +21,10 @@ name='IPPN.proto', package='Catalyst.Protocol.IPPN', syntax='proto3', - serialized_options=b'P\001', - serialized_pb=b'\n\nIPPN.proto\x12\x16\x43\x61talyst.Protocol.IPPN\x1a\nPeer.proto\x1a\x0c\x44\x65ltas.proto\"\x16\n\x14PeerNeighborsRequest\"F\n\x15PeerNeighborsResponse\x12-\n\x05peers\x18\x01 \x03(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\"\r\n\x0bPingRequest\"\x0e\n\x0cPingResponse\"\x18\n\x16LatestDeltaHashRequest\"O\n\x17LatestDeltaHashResponse\x12\x34\n\x06result\x18\x01 \x01(\x0b\x32$.Catalyst.Protocol.Deltas.DeltaIndex\"4\n\x13\x44\x65ltaHistoryRequest\x12\r\n\x05range\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\"L\n\x14\x44\x65ltaHistoryResponse\x12\x34\n\x06result\x18\x01 \x03(\x0b\x32$.Catalyst.Protocol.Deltas.DeltaIndexB\x02P\x01\x62\x06proto3' + serialized_pb=_b('\n\nIPPN.proto\x12\x16\x43\x61talyst.Protocol.IPPN\x1a\nPeer.proto\x1a\x0c\x44\x65ltas.proto\"\x16\n\x14PeerNeighborsRequest\"F\n\x15PeerNeighborsResponse\x12-\n\x05peers\x18\x01 \x03(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\"\r\n\x0bPingRequest\"\x0e\n\x0cPingResponse\"\x18\n\x16LatestDeltaHashRequest\"c\n\x17LatestDeltaHashResponse\x12\x0e\n\x06isSync\x18\x01 \x01(\x08\x12\x38\n\ndeltaIndex\x18\x02 \x01(\x0b\x32$.Catalyst.Protocol.Deltas.DeltaIndex\"4\n\x13\x44\x65ltaHistoryRequest\x12\r\n\x05range\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\"P\n\x14\x44\x65ltaHistoryResponse\x12\x38\n\ndeltaIndex\x18\x01 \x03(\x0b\x32$.Catalyst.Protocol.Deltas.DeltaIndexB\x02P\x01\x62\x06proto3') , dependencies=[Peer__pb2.DESCRIPTOR,Deltas__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -40,7 +42,7 @@ nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -64,14 +66,14 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -95,7 +97,7 @@ nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -119,7 +121,7 @@ nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -143,7 +145,7 @@ nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -162,26 +164,33 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='result', full_name='Catalyst.Protocol.IPPN.LatestDeltaHashResponse.result', index=0, - number=1, type=11, cpp_type=10, label=1, + name='isSync', full_name='Catalyst.Protocol.IPPN.LatestDeltaHashResponse.isSync', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='deltaIndex', full_name='Catalyst.Protocol.IPPN.LatestDeltaHashResponse.deltaIndex', index=1, + number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=217, - serialized_end=296, + serialized_end=316, ) @@ -198,28 +207,28 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='height', full_name='Catalyst.Protocol.IPPN.DeltaHistoryRequest.height', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=298, - serialized_end=350, + serialized_start=318, + serialized_end=370, ) @@ -231,31 +240,31 @@ containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='result', full_name='Catalyst.Protocol.IPPN.DeltaHistoryResponse.result', index=0, + name='deltaIndex', full_name='Catalyst.Protocol.IPPN.DeltaHistoryResponse.deltaIndex', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=352, - serialized_end=428, + serialized_start=372, + serialized_end=452, ) _PEERNEIGHBORSRESPONSE.fields_by_name['peers'].message_type = Peer__pb2._PEERID -_LATESTDELTAHASHRESPONSE.fields_by_name['result'].message_type = Deltas__pb2._DELTAINDEX -_DELTAHISTORYRESPONSE.fields_by_name['result'].message_type = Deltas__pb2._DELTAINDEX +_LATESTDELTAHASHRESPONSE.fields_by_name['deltaIndex'].message_type = Deltas__pb2._DELTAINDEX +_DELTAHISTORYRESPONSE.fields_by_name['deltaIndex'].message_type = Deltas__pb2._DELTAINDEX DESCRIPTOR.message_types_by_name['PeerNeighborsRequest'] = _PEERNEIGHBORSREQUEST DESCRIPTOR.message_types_by_name['PeerNeighborsResponse'] = _PEERNEIGHBORSRESPONSE DESCRIPTOR.message_types_by_name['PingRequest'] = _PINGREQUEST @@ -264,64 +273,64 @@ DESCRIPTOR.message_types_by_name['LatestDeltaHashResponse'] = _LATESTDELTAHASHRESPONSE DESCRIPTOR.message_types_by_name['DeltaHistoryRequest'] = _DELTAHISTORYREQUEST DESCRIPTOR.message_types_by_name['DeltaHistoryResponse'] = _DELTAHISTORYRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -PeerNeighborsRequest = _reflection.GeneratedProtocolMessageType('PeerNeighborsRequest', (_message.Message,), { - 'DESCRIPTOR' : _PEERNEIGHBORSREQUEST, - '__module__' : 'IPPN_pb2' +PeerNeighborsRequest = _reflection.GeneratedProtocolMessageType('PeerNeighborsRequest', (_message.Message,), dict( + DESCRIPTOR = _PEERNEIGHBORSREQUEST, + __module__ = 'IPPN_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.PeerNeighborsRequest) - }) + )) _sym_db.RegisterMessage(PeerNeighborsRequest) -PeerNeighborsResponse = _reflection.GeneratedProtocolMessageType('PeerNeighborsResponse', (_message.Message,), { - 'DESCRIPTOR' : _PEERNEIGHBORSRESPONSE, - '__module__' : 'IPPN_pb2' +PeerNeighborsResponse = _reflection.GeneratedProtocolMessageType('PeerNeighborsResponse', (_message.Message,), dict( + DESCRIPTOR = _PEERNEIGHBORSRESPONSE, + __module__ = 'IPPN_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.PeerNeighborsResponse) - }) + )) _sym_db.RegisterMessage(PeerNeighborsResponse) -PingRequest = _reflection.GeneratedProtocolMessageType('PingRequest', (_message.Message,), { - 'DESCRIPTOR' : _PINGREQUEST, - '__module__' : 'IPPN_pb2' +PingRequest = _reflection.GeneratedProtocolMessageType('PingRequest', (_message.Message,), dict( + DESCRIPTOR = _PINGREQUEST, + __module__ = 'IPPN_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.PingRequest) - }) + )) _sym_db.RegisterMessage(PingRequest) -PingResponse = _reflection.GeneratedProtocolMessageType('PingResponse', (_message.Message,), { - 'DESCRIPTOR' : _PINGRESPONSE, - '__module__' : 'IPPN_pb2' +PingResponse = _reflection.GeneratedProtocolMessageType('PingResponse', (_message.Message,), dict( + DESCRIPTOR = _PINGRESPONSE, + __module__ = 'IPPN_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.PingResponse) - }) + )) _sym_db.RegisterMessage(PingResponse) -LatestDeltaHashRequest = _reflection.GeneratedProtocolMessageType('LatestDeltaHashRequest', (_message.Message,), { - 'DESCRIPTOR' : _LATESTDELTAHASHREQUEST, - '__module__' : 'IPPN_pb2' +LatestDeltaHashRequest = _reflection.GeneratedProtocolMessageType('LatestDeltaHashRequest', (_message.Message,), dict( + DESCRIPTOR = _LATESTDELTAHASHREQUEST, + __module__ = 'IPPN_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.LatestDeltaHashRequest) - }) + )) _sym_db.RegisterMessage(LatestDeltaHashRequest) -LatestDeltaHashResponse = _reflection.GeneratedProtocolMessageType('LatestDeltaHashResponse', (_message.Message,), { - 'DESCRIPTOR' : _LATESTDELTAHASHRESPONSE, - '__module__' : 'IPPN_pb2' +LatestDeltaHashResponse = _reflection.GeneratedProtocolMessageType('LatestDeltaHashResponse', (_message.Message,), dict( + DESCRIPTOR = _LATESTDELTAHASHRESPONSE, + __module__ = 'IPPN_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.LatestDeltaHashResponse) - }) + )) _sym_db.RegisterMessage(LatestDeltaHashResponse) -DeltaHistoryRequest = _reflection.GeneratedProtocolMessageType('DeltaHistoryRequest', (_message.Message,), { - 'DESCRIPTOR' : _DELTAHISTORYREQUEST, - '__module__' : 'IPPN_pb2' +DeltaHistoryRequest = _reflection.GeneratedProtocolMessageType('DeltaHistoryRequest', (_message.Message,), dict( + DESCRIPTOR = _DELTAHISTORYREQUEST, + __module__ = 'IPPN_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.DeltaHistoryRequest) - }) + )) _sym_db.RegisterMessage(DeltaHistoryRequest) -DeltaHistoryResponse = _reflection.GeneratedProtocolMessageType('DeltaHistoryResponse', (_message.Message,), { - 'DESCRIPTOR' : _DELTAHISTORYRESPONSE, - '__module__' : 'IPPN_pb2' +DeltaHistoryResponse = _reflection.GeneratedProtocolMessageType('DeltaHistoryResponse', (_message.Message,), dict( + DESCRIPTOR = _DELTAHISTORYRESPONSE, + __module__ = 'IPPN_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.IPPN.DeltaHistoryResponse) - }) + )) _sym_db.RegisterMessage(DeltaHistoryResponse) -DESCRIPTOR._options = None +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('P\001')) # @@protoc_insertion_point(module_scope) diff --git a/packages/sdk-python/src/Network_pb2.py b/packages/sdk-python/src/Network_pb2.py index 99115d6..8115560 100644 --- a/packages/sdk-python/src/Network_pb2.py +++ b/packages/sdk-python/src/Network_pb2.py @@ -1,12 +1,14 @@ -# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Network.proto +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,9 +20,9 @@ name='Network.proto', package='Catalyst.Protocol.Network', syntax='proto3', - serialized_options=b'P\001', - serialized_pb=b'\n\rNetwork.proto\x12\x19\x43\x61talyst.Protocol.Network*M\n\x0bNetworkType\x12\x18\n\x14NETWORK_TYPE_UNKNOWN\x10\x00\x12\x0b\n\x07MAINNET\x10\x01\x12\n\n\x06\x44\x45VNET\x10\x02\x12\x0b\n\x07TESTNET\x10\x03\x42\x02P\x01\x62\x06proto3' + serialized_pb=_b('\n\rNetwork.proto\x12\x19\x43\x61talyst.Protocol.Network*M\n\x0bNetworkType\x12\x18\n\x14NETWORK_TYPE_UNKNOWN\x10\x00\x12\x0b\n\x07MAINNET\x10\x01\x12\n\n\x06\x44\x45VNET\x10\x02\x12\x0b\n\x07TESTNET\x10\x03\x42\x02P\x01\x62\x06proto3') ) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) _NETWORKTYPE = _descriptor.EnumDescriptor( name='NetworkType', @@ -30,23 +32,23 @@ values=[ _descriptor.EnumValueDescriptor( name='NETWORK_TYPE_UNKNOWN', index=0, number=0, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='MAINNET', index=1, number=1, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='DEVNET', index=2, number=2, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='TESTNET', index=3, number=3, - serialized_options=None, + options=None, type=None), ], containing_type=None, - serialized_options=None, + options=None, serialized_start=44, serialized_end=121, ) @@ -60,8 +62,8 @@ DESCRIPTOR.enum_types_by_name['NetworkType'] = _NETWORKTYPE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -DESCRIPTOR._options = None +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('P\001')) # @@protoc_insertion_point(module_scope) diff --git a/packages/sdk-python/src/Peer_pb2.py b/packages/sdk-python/src/Peer_pb2.py index 39c5e0c..7651d82 100644 --- a/packages/sdk-python/src/Peer_pb2.py +++ b/packages/sdk-python/src/Peer_pb2.py @@ -1,11 +1,13 @@ -# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Peer.proto +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,10 +21,10 @@ name='Peer.proto', package='Catalyst.Protocol.Peer', syntax='proto3', - serialized_options=b'P\001', - serialized_pb=b'\n\nPeer.proto\x12\x16\x43\x61talyst.Protocol.Peer\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"6\n\x06PeerId\x12\n\n\x02ip\x18\x01 \x01(\x0c\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x12\n\npublic_key\x18\x03 \x01(\x0c\"\xba\x02\n\x08PeerInfo\x12/\n\x07peer_id\x18\x01 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\x12\x12\n\nreputation\x18\x02 \x01(\x11\x12\x16\n\x0eis_blacklisted\x18\x03 \x01(\x08\x12\x16\n\x0eis_unreachable\x18\x04 \x01(\x08\x12/\n\x0cinactive_for\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\tlast_seen\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08modified\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07\x63reated\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02P\x01\x62\x06proto3' + serialized_pb=_b('\n\nPeer.proto\x12\x16\x43\x61talyst.Protocol.Peer\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"6\n\x06PeerId\x12\n\n\x02ip\x18\x01 \x01(\x0c\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x12\n\npublic_key\x18\x03 \x01(\x0c\"\xba\x02\n\x08PeerInfo\x12/\n\x07peer_id\x18\x01 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\x12\x12\n\nreputation\x18\x02 \x01(\x11\x12\x16\n\x0eis_blacklisted\x18\x03 \x01(\x08\x12\x16\n\x0eis_unreachable\x18\x04 \x01(\x08\x12/\n\x0cinactive_for\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\tlast_seen\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08modified\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07\x63reated\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02P\x01\x62\x06proto3') , dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -37,31 +39,31 @@ _descriptor.FieldDescriptor( name='ip', full_name='Catalyst.Protocol.Peer.PeerId.ip', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='port', full_name='Catalyst.Protocol.Peer.PeerId.port', index=1, number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='public_key', full_name='Catalyst.Protocol.Peer.PeerId.public_key', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -85,63 +87,63 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='reputation', full_name='Catalyst.Protocol.Peer.PeerInfo.reputation', index=1, number=2, type=17, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='is_blacklisted', full_name='Catalyst.Protocol.Peer.PeerInfo.is_blacklisted', index=2, number=3, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='is_unreachable', full_name='Catalyst.Protocol.Peer.PeerInfo.is_unreachable', index=3, number=4, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='inactive_for', full_name='Catalyst.Protocol.Peer.PeerInfo.inactive_for', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='last_seen', full_name='Catalyst.Protocol.Peer.PeerInfo.last_seen', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='modified', full_name='Catalyst.Protocol.Peer.PeerInfo.modified', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='created', full_name='Catalyst.Protocol.Peer.PeerInfo.created', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -158,22 +160,22 @@ _PEERINFO.fields_by_name['created'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP DESCRIPTOR.message_types_by_name['PeerId'] = _PEERID DESCRIPTOR.message_types_by_name['PeerInfo'] = _PEERINFO -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -PeerId = _reflection.GeneratedProtocolMessageType('PeerId', (_message.Message,), { - 'DESCRIPTOR' : _PEERID, - '__module__' : 'Peer_pb2' +PeerId = _reflection.GeneratedProtocolMessageType('PeerId', (_message.Message,), dict( + DESCRIPTOR = _PEERID, + __module__ = 'Peer_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Peer.PeerId) - }) + )) _sym_db.RegisterMessage(PeerId) -PeerInfo = _reflection.GeneratedProtocolMessageType('PeerInfo', (_message.Message,), { - 'DESCRIPTOR' : _PEERINFO, - '__module__' : 'Peer_pb2' +PeerInfo = _reflection.GeneratedProtocolMessageType('PeerInfo', (_message.Message,), dict( + DESCRIPTOR = _PEERINFO, + __module__ = 'Peer_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Peer.PeerInfo) - }) + )) _sym_db.RegisterMessage(PeerInfo) -DESCRIPTOR._options = None +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('P\001')) # @@protoc_insertion_point(module_scope) diff --git a/packages/sdk-python/src/Rpc_pb2.py b/packages/sdk-python/src/Rpc_pb2.py index fc37bae..de64341 100644 --- a/packages/sdk-python/src/Rpc_pb2.py +++ b/packages/sdk-python/src/Rpc_pb2.py @@ -1,12 +1,14 @@ -# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Rpc.proto +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -23,10 +25,10 @@ name='Rpc.proto', package='Catalyst.Protocol.Rpc.Node', syntax='proto3', - serialized_options=b'P\001', - serialized_pb=b'\n\tRpc.proto\x12\x1a\x43\x61talyst.Protocol.Rpc.Node\x1a\nPeer.proto\x1a\x12\x43ryptography.proto\x1a\x0c\x44\x65ltas.proto\x1a\nWire.proto\x1a\x11Transaction.proto\"\x1f\n\x0eVersionRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"\"\n\x0fVersionResponse\x12\x0f\n\x07version\x18\x01 \x01(\t\"\x1f\n\x0eGetInfoRequest\x12\r\n\x05query\x18\x01 \x01(\x08\" \n\x0fGetInfoResponse\x12\r\n\x05query\x18\x01 \x01(\t\"$\n\x13\x43reateWalletRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"%\n\x14\x43reateWalletResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\"\n\x11ListWalletRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"#\n\x12ListWalletResponse\x12\r\n\x05query\x18\x01 \x01(\t\"%\n\x14\x43reateAddressRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"&\n\x15\x43reateAddressResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\"\n\x11GetAddressRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"#\n\x12GetAddressResponse\x12\r\n\x05query\x18\x01 \x01(\t\"#\n\x12ListAddressRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"$\n\x13ListAddressResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\'\n\x16ValidateAddressRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"(\n\x17ValidateAddressResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\"\n\x11GetBalanceRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"#\n\x12GetBalanceResponse\x12\r\n\x05query\x18\x01 \x01(\t\",\n\x1b\x43reateRawTransactionRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"-\n\x1c\x43reateRawTransactionResponse\x12\r\n\x05query\x18\x01 \x01(\t\"*\n\x19SignRawTransactionRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"+\n\x1aSignRawTransactionResponse\x12\r\n\x05query\x18\x01 \x01(\t\",\n\x1b\x44\x65\x63odeRawTransactionRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"-\n\x1c\x44\x65\x63odeRawTransactionResponse\x12\r\n\x05query\x18\x01 \x01(\t\"c\n\x1e\x42roadcastRawTransactionRequest\x12\x41\n\x0btransaction\x18\x01 \x01(\x0b\x32,.Catalyst.Protocol.Wire.TransactionBroadcast\"b\n\x1f\x42roadcastRawTransactionResponse\x12?\n\rresponse_code\x18\x01 \x01(\x0e\x32(.Catalyst.Protocol.Rpc.Node.ResponseCode\"\x1e\n\rSendToRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"\x1f\n\x0eSendToResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\"\n\x11SendToFromRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"#\n\x12SendToFromResponse\x12\r\n\x05query\x18\x01 \x01(\t\" \n\x0fSendManyRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"!\n\x10SendManyResponse\x12\r\n\x05query\x18\x01 \x01(\t\"$\n\x13SendFromManyRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"%\n\x14SendFromManyResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\x1f\n\x0e\x41\x64\x64NodeRequest\x12\r\n\x05query\x18\x01 \x01(\x08\" \n\x0f\x41\x64\x64NodeResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\x14\n\x12GetPeerListRequest\"D\n\x13GetPeerListResponse\x12-\n\x05peers\x18\x01 \x03(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\":\n\x18GetPeerReputationRequest\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x12\n\n\x02ip\x18\x02 \x01(\x0c\"/\n\x19GetPeerReputationResponse\x12\x12\n\nreputation\x18\x01 \x01(\x05\"L\n\x17SetPeerBlackListRequest\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x12\n\n\x02ip\x18\x02 \x01(\x0c\x12\x11\n\tblacklist\x18\x03 \x01(\x08\"M\n\x18SetPeerBlackListResponse\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x12\n\n\x02ip\x18\x02 \x01(\x0c\x12\x11\n\tblacklist\x18\x03 \x01(\x08\"4\n\x12GetPeerInfoRequest\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x12\n\n\x02ip\x18\x02 \x01(\x0c\"J\n\x13GetPeerInfoResponse\x12\x33\n\tpeer_info\x18\x01 \x03(\x0b\x32 .Catalyst.Protocol.Peer.PeerInfo\"*\n\x19GetConnectionCountRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"+\n\x1aGetConnectionCountResponse\x12\r\n\x05query\x18\x01 \x01(\t\")\n\x0fGetDeltaRequest\x12\x16\n\x0e\x64\x65lta_dfs_hash\x18\x01 \x01(\x0c\"B\n\x10GetDeltaResponse\x12.\n\x05\x64\x65lta\x18\x01 \x01(\x0b\x32\x1f.Catalyst.Protocol.Deltas.Delta\"\"\n\x11GetMempoolRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"V\n\x12GetMempoolResponse\x12@\n\x0ctransactions\x18\x01 \x03(\x0b\x32*.Catalyst.Protocol.Transaction.PublicEntry\"~\n\x12SignMessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\x0c\x12\x0e\n\x06key_id\x18\x02 \x01(\t\x12G\n\x0fsigning_context\x18\x03 \x01(\x0b\x32..Catalyst.Protocol.Cryptography.SigningContext\"V\n\x13SignMessageResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\x12\n\npublic_key\x18\x02 \x01(\x0c\x12\x18\n\x10original_message\x18\x03 \x01(\x0c\"\x97\x01\n\x14VerifyMessageRequest\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\x12\n\npublic_key\x18\x02 \x01(\x0c\x12\x0f\n\x07message\x18\x03 \x01(\x0c\x12G\n\x0fsigning_context\x18\x04 \x01(\x0b\x32..Catalyst.Protocol.Cryptography.SigningContext\"1\n\x15VerifyMessageResponse\x12\x18\n\x10is_signed_by_key\x18\x01 \x01(\x08\"%\n\x14ServiceStatusRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"&\n\x15ServiceStatusResponse\x12\r\n\x05query\x18\x01 \x01(\t\"I\n\x13\x41\x64\x64\x46ileToDfsRequest\x12\x11\n\tfile_size\x18\x01 \x01(\x04\x12\x11\n\tfile_name\x18\x02 \x01(\t\x12\x0c\n\x04node\x18\x03 \x01(\t\"?\n\x14\x41\x64\x64\x46ileToDfsResponse\x12\x15\n\rresponse_code\x18\x01 \x01(\x0c\x12\x10\n\x08\x64\x66s_hash\x18\x02 \x01(\t\"`\n\x18TransferFileBytesRequest\x12\x10\n\x08\x63hunk_id\x18\x01 \x01(\r\x12\x13\n\x0b\x63hunk_bytes\x18\x02 \x01(\x0c\x12\x1d\n\x15\x63orrelation_file_name\x18\x03 \x01(\x0c\"2\n\x19TransferFileBytesResponse\x12\x15\n\rresponse_code\x18\x01 \x01(\x0c\"8\n\x11RemovePeerRequest\x12\x0f\n\x07peer_ip\x18\x01 \x01(\x0c\x12\x12\n\npublic_key\x18\x02 \x01(\x0c\"+\n\x12RemovePeerResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\r\"\x15\n\x13GetPeerCountRequest\"*\n\x14GetPeerCountResponse\x12\x12\n\npeer_count\x18\x01 \x01(\x05\")\n\x15GetFileFromDfsRequest\x12\x10\n\x08\x64\x66s_hash\x18\x01 \x01(\t\"B\n\x16GetFileFromDfsResponse\x12\x11\n\tfile_size\x18\x01 \x01(\x04\x12\x15\n\rresponse_code\x18\x02 \x01(\x0c\"/\n\x18SetPeerDataFolderRequest\x12\x13\n\x0b\x64\x61ta_folder\x18\x01 \x01(\t\"*\n\x19SetPeerDataFolderResponse\x12\r\n\x05query\x18\x01 \x01(\x08*i\n\x0cResponseCode\x12\x0b\n\x07PENDING\x10\x00\x12\x0e\n\nSUCCESSFUL\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\x0c\n\x08\x46INISHED\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\n\n\x06\x45XISTS\x10\x06\x42\x02P\x01\x62\x06proto3' + serialized_pb=_b('\n\tRpc.proto\x12\x1a\x43\x61talyst.Protocol.Rpc.Node\x1a\nPeer.proto\x1a\x12\x43ryptography.proto\x1a\x0c\x44\x65ltas.proto\x1a\nWire.proto\x1a\x11Transaction.proto\"\x1f\n\x0eVersionRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"\"\n\x0fVersionResponse\x12\x0f\n\x07version\x18\x01 \x01(\t\"\x1f\n\x0eGetInfoRequest\x12\r\n\x05query\x18\x01 \x01(\x08\" \n\x0fGetInfoResponse\x12\r\n\x05query\x18\x01 \x01(\t\"$\n\x13\x43reateWalletRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"%\n\x14\x43reateWalletResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\"\n\x11ListWalletRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"#\n\x12ListWalletResponse\x12\r\n\x05query\x18\x01 \x01(\t\"%\n\x14\x43reateAddressRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"&\n\x15\x43reateAddressResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\"\n\x11GetAddressRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"#\n\x12GetAddressResponse\x12\r\n\x05query\x18\x01 \x01(\t\"#\n\x12ListAddressRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"$\n\x13ListAddressResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\'\n\x16ValidateAddressRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"(\n\x17ValidateAddressResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\"\n\x11GetBalanceRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"#\n\x12GetBalanceResponse\x12\r\n\x05query\x18\x01 \x01(\t\",\n\x1b\x43reateRawTransactionRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"-\n\x1c\x43reateRawTransactionResponse\x12\r\n\x05query\x18\x01 \x01(\t\"*\n\x19SignRawTransactionRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"+\n\x1aSignRawTransactionResponse\x12\r\n\x05query\x18\x01 \x01(\t\",\n\x1b\x44\x65\x63odeRawTransactionRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"-\n\x1c\x44\x65\x63odeRawTransactionResponse\x12\r\n\x05query\x18\x01 \x01(\t\"c\n\x1e\x42roadcastRawTransactionRequest\x12\x41\n\x0btransaction\x18\x01 \x01(\x0b\x32,.Catalyst.Protocol.Wire.TransactionBroadcast\"b\n\x1f\x42roadcastRawTransactionResponse\x12?\n\rresponse_code\x18\x01 \x01(\x0e\x32(.Catalyst.Protocol.Rpc.Node.ResponseCode\"\x1e\n\rSendToRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"\x1f\n\x0eSendToResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\"\n\x11SendToFromRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"#\n\x12SendToFromResponse\x12\r\n\x05query\x18\x01 \x01(\t\" \n\x0fSendManyRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"!\n\x10SendManyResponse\x12\r\n\x05query\x18\x01 \x01(\t\"$\n\x13SendFromManyRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"%\n\x14SendFromManyResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\x1f\n\x0e\x41\x64\x64NodeRequest\x12\r\n\x05query\x18\x01 \x01(\x08\" \n\x0f\x41\x64\x64NodeResponse\x12\r\n\x05query\x18\x01 \x01(\t\"\x14\n\x12GetPeerListRequest\"D\n\x13GetPeerListResponse\x12-\n\x05peers\x18\x01 \x03(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\":\n\x18GetPeerReputationRequest\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x12\n\n\x02ip\x18\x02 \x01(\x0c\"/\n\x19GetPeerReputationResponse\x12\x12\n\nreputation\x18\x01 \x01(\x05\"L\n\x17SetPeerBlackListRequest\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x12\n\n\x02ip\x18\x02 \x01(\x0c\x12\x11\n\tblacklist\x18\x03 \x01(\x08\"M\n\x18SetPeerBlackListResponse\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x12\n\n\x02ip\x18\x02 \x01(\x0c\x12\x11\n\tblacklist\x18\x03 \x01(\x08\"4\n\x12GetPeerInfoRequest\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x12\n\n\x02ip\x18\x02 \x01(\x0c\"J\n\x13GetPeerInfoResponse\x12\x33\n\tpeer_info\x18\x01 \x03(\x0b\x32 .Catalyst.Protocol.Peer.PeerInfo\"*\n\x19GetConnectionCountRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"+\n\x1aGetConnectionCountResponse\x12\r\n\x05query\x18\x01 \x01(\t\")\n\x0fGetDeltaRequest\x12\x16\n\x0e\x64\x65lta_dfs_hash\x18\x01 \x01(\x0c\"B\n\x10GetDeltaResponse\x12.\n\x05\x64\x65lta\x18\x01 \x01(\x0b\x32\x1f.Catalyst.Protocol.Deltas.Delta\"\"\n\x11GetMempoolRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"V\n\x12GetMempoolResponse\x12@\n\x0ctransactions\x18\x01 \x03(\x0b\x32*.Catalyst.Protocol.Transaction.PublicEntry\"~\n\x12SignMessageRequest\x12\x0f\n\x07message\x18\x01 \x01(\x0c\x12\x0e\n\x06key_id\x18\x02 \x01(\t\x12G\n\x0fsigning_context\x18\x03 \x01(\x0b\x32..Catalyst.Protocol.Cryptography.SigningContext\"V\n\x13SignMessageResponse\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\x12\n\npublic_key\x18\x02 \x01(\x0c\x12\x18\n\x10original_message\x18\x03 \x01(\x0c\"\x97\x01\n\x14VerifyMessageRequest\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\x12\n\npublic_key\x18\x02 \x01(\x0c\x12\x0f\n\x07message\x18\x03 \x01(\x0c\x12G\n\x0fsigning_context\x18\x04 \x01(\x0b\x32..Catalyst.Protocol.Cryptography.SigningContext\"1\n\x15VerifyMessageResponse\x12\x18\n\x10is_signed_by_key\x18\x01 \x01(\x08\"%\n\x14ServiceStatusRequest\x12\r\n\x05query\x18\x01 \x01(\x08\"&\n\x15ServiceStatusResponse\x12\r\n\x05query\x18\x01 \x01(\t\"I\n\x13\x41\x64\x64\x46ileToDfsRequest\x12\x11\n\tfile_size\x18\x01 \x01(\x04\x12\x11\n\tfile_name\x18\x02 \x01(\t\x12\x0c\n\x04node\x18\x03 \x01(\t\"?\n\x14\x41\x64\x64\x46ileToDfsResponse\x12\x15\n\rresponse_code\x18\x01 \x01(\x0c\x12\x10\n\x08\x64\x66s_hash\x18\x02 \x01(\t\"`\n\x18TransferFileBytesRequest\x12\x10\n\x08\x63hunk_id\x18\x01 \x01(\r\x12\x13\n\x0b\x63hunk_bytes\x18\x02 \x01(\x0c\x12\x1d\n\x15\x63orrelation_file_name\x18\x03 \x01(\x0c\"2\n\x19TransferFileBytesResponse\x12\x15\n\rresponse_code\x18\x01 \x01(\x0c\"8\n\x11RemovePeerRequest\x12\x0f\n\x07peer_ip\x18\x01 \x01(\x0c\x12\x12\n\npublic_key\x18\x02 \x01(\x0c\"+\n\x12RemovePeerResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\r\"\x15\n\x13GetPeerCountRequest\"*\n\x14GetPeerCountResponse\x12\x12\n\npeer_count\x18\x01 \x01(\x05\")\n\x15GetFileFromDfsRequest\x12\x10\n\x08\x64\x66s_hash\x18\x01 \x01(\t\"B\n\x16GetFileFromDfsResponse\x12\x11\n\tfile_size\x18\x01 \x01(\x04\x12\x15\n\rresponse_code\x18\x02 \x01(\x0c\"/\n\x18SetPeerDataFolderRequest\x12\x13\n\x0b\x64\x61ta_folder\x18\x01 \x01(\t\"*\n\x19SetPeerDataFolderResponse\x12\r\n\x05query\x18\x01 \x01(\x08*i\n\x0cResponseCode\x12\x0b\n\x07PENDING\x10\x00\x12\x0e\n\nSUCCESSFUL\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\x0c\n\x08\x46INISHED\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\n\n\x06\x45XISTS\x10\x06\x42\x02P\x01\x62\x06proto3') , dependencies=[Peer__pb2.DESCRIPTOR,Cryptography__pb2.DESCRIPTOR,Deltas__pb2.DESCRIPTOR,Wire__pb2.DESCRIPTOR,Transaction__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) _RESPONSECODE = _descriptor.EnumDescriptor( name='ResponseCode', @@ -36,35 +38,35 @@ values=[ _descriptor.EnumValueDescriptor( name='PENDING', index=0, number=0, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='SUCCESSFUL', index=1, number=1, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='ERROR', index=2, number=2, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='FINISHED', index=3, number=3, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='EXPIRED', index=4, number=4, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='FAILED', index=5, number=5, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='EXISTS', index=6, number=6, - serialized_options=None, + options=None, type=None), ], containing_type=None, - serialized_options=None, + options=None, serialized_start=3590, serialized_end=3695, ) @@ -94,14 +96,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -122,17 +124,17 @@ _descriptor.FieldDescriptor( name='version', full_name='Catalyst.Protocol.Rpc.Node.VersionResponse.version', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -156,14 +158,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -184,17 +186,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.GetInfoResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -218,14 +220,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -246,17 +248,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.CreateWalletResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -280,14 +282,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -308,17 +310,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.ListWalletResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -342,14 +344,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -370,17 +372,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.CreateAddressResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -404,14 +406,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -432,17 +434,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.GetAddressResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -466,14 +468,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -494,17 +496,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.ListAddressResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -528,14 +530,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -556,17 +558,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.ValidateAddressResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -590,14 +592,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -618,17 +620,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.GetBalanceResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -652,14 +654,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -680,17 +682,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -714,14 +716,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -742,17 +744,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -776,14 +778,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -804,17 +806,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -838,14 +840,14 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -869,14 +871,14 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -900,14 +902,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -928,17 +930,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.SendToResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -962,14 +964,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -990,17 +992,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.SendToFromResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1024,14 +1026,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1052,17 +1054,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.SendManyResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1086,14 +1088,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1114,17 +1116,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.SendFromManyResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1148,14 +1150,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1176,17 +1178,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.AddNodeResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1210,7 +1212,7 @@ nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1234,14 +1236,14 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1262,24 +1264,24 @@ _descriptor.FieldDescriptor( name='public_key', full_name='Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.public_key', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='ip', full_name='Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest.ip', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1303,14 +1305,14 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1331,31 +1333,31 @@ _descriptor.FieldDescriptor( name='public_key', full_name='Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.public_key', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='ip', full_name='Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.ip', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='blacklist', full_name='Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest.blacklist', index=2, number=3, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1376,31 +1378,31 @@ _descriptor.FieldDescriptor( name='public_key', full_name='Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.public_key', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='ip', full_name='Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.ip', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='blacklist', full_name='Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse.blacklist', index=2, number=3, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1421,24 +1423,24 @@ _descriptor.FieldDescriptor( name='public_key', full_name='Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.public_key', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='ip', full_name='Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest.ip', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1462,14 +1464,14 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1493,14 +1495,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1521,17 +1523,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1552,17 +1554,17 @@ _descriptor.FieldDescriptor( name='delta_dfs_hash', full_name='Catalyst.Protocol.Rpc.Node.GetDeltaRequest.delta_dfs_hash', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1586,14 +1588,14 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1617,14 +1619,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1648,14 +1650,14 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1676,31 +1678,31 @@ _descriptor.FieldDescriptor( name='message', full_name='Catalyst.Protocol.Rpc.Node.SignMessageRequest.message', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='key_id', full_name='Catalyst.Protocol.Rpc.Node.SignMessageRequest.key_id', index=1, number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='signing_context', full_name='Catalyst.Protocol.Rpc.Node.SignMessageRequest.signing_context', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1721,31 +1723,31 @@ _descriptor.FieldDescriptor( name='signature', full_name='Catalyst.Protocol.Rpc.Node.SignMessageResponse.signature', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='public_key', full_name='Catalyst.Protocol.Rpc.Node.SignMessageResponse.public_key', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='original_message', full_name='Catalyst.Protocol.Rpc.Node.SignMessageResponse.original_message', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1766,38 +1768,38 @@ _descriptor.FieldDescriptor( name='signature', full_name='Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signature', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='public_key', full_name='Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.public_key', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='message', full_name='Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.message', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='signing_context', full_name='Catalyst.Protocol.Rpc.Node.VerifyMessageRequest.signing_context', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1821,14 +1823,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1852,14 +1854,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1880,17 +1882,17 @@ _descriptor.FieldDescriptor( name='query', full_name='Catalyst.Protocol.Rpc.Node.ServiceStatusResponse.query', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1914,28 +1916,28 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='file_name', full_name='Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.file_name', index=1, number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='node', full_name='Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest.node', index=2, number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1956,24 +1958,24 @@ _descriptor.FieldDescriptor( name='response_code', full_name='Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.response_code', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='dfs_hash', full_name='Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse.dfs_hash', index=1, number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -1997,28 +1999,28 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='chunk_bytes', full_name='Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.chunk_bytes', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='correlation_file_name', full_name='Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest.correlation_file_name', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -2039,17 +2041,17 @@ _descriptor.FieldDescriptor( name='response_code', full_name='Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse.response_code', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -2070,24 +2072,24 @@ _descriptor.FieldDescriptor( name='peer_ip', full_name='Catalyst.Protocol.Rpc.Node.RemovePeerRequest.peer_ip', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='public_key', full_name='Catalyst.Protocol.Rpc.Node.RemovePeerRequest.public_key', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -2111,14 +2113,14 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -2142,7 +2144,7 @@ nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -2166,14 +2168,14 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -2194,17 +2196,17 @@ _descriptor.FieldDescriptor( name='dfs_hash', full_name='Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest.dfs_hash', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -2228,21 +2230,21 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='response_code', full_name='Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse.response_code', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -2263,17 +2265,17 @@ _descriptor.FieldDescriptor( name='data_folder', full_name='Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest.data_folder', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -2297,14 +2299,14 @@ has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -2391,484 +2393,484 @@ DESCRIPTOR.message_types_by_name['SetPeerDataFolderRequest'] = _SETPEERDATAFOLDERREQUEST DESCRIPTOR.message_types_by_name['SetPeerDataFolderResponse'] = _SETPEERDATAFOLDERRESPONSE DESCRIPTOR.enum_types_by_name['ResponseCode'] = _RESPONSECODE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -VersionRequest = _reflection.GeneratedProtocolMessageType('VersionRequest', (_message.Message,), { - 'DESCRIPTOR' : _VERSIONREQUEST, - '__module__' : 'Rpc_pb2' +VersionRequest = _reflection.GeneratedProtocolMessageType('VersionRequest', (_message.Message,), dict( + DESCRIPTOR = _VERSIONREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.VersionRequest) - }) + )) _sym_db.RegisterMessage(VersionRequest) -VersionResponse = _reflection.GeneratedProtocolMessageType('VersionResponse', (_message.Message,), { - 'DESCRIPTOR' : _VERSIONRESPONSE, - '__module__' : 'Rpc_pb2' +VersionResponse = _reflection.GeneratedProtocolMessageType('VersionResponse', (_message.Message,), dict( + DESCRIPTOR = _VERSIONRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.VersionResponse) - }) + )) _sym_db.RegisterMessage(VersionResponse) -GetInfoRequest = _reflection.GeneratedProtocolMessageType('GetInfoRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETINFOREQUEST, - '__module__' : 'Rpc_pb2' +GetInfoRequest = _reflection.GeneratedProtocolMessageType('GetInfoRequest', (_message.Message,), dict( + DESCRIPTOR = _GETINFOREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetInfoRequest) - }) + )) _sym_db.RegisterMessage(GetInfoRequest) -GetInfoResponse = _reflection.GeneratedProtocolMessageType('GetInfoResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETINFORESPONSE, - '__module__' : 'Rpc_pb2' +GetInfoResponse = _reflection.GeneratedProtocolMessageType('GetInfoResponse', (_message.Message,), dict( + DESCRIPTOR = _GETINFORESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetInfoResponse) - }) + )) _sym_db.RegisterMessage(GetInfoResponse) -CreateWalletRequest = _reflection.GeneratedProtocolMessageType('CreateWalletRequest', (_message.Message,), { - 'DESCRIPTOR' : _CREATEWALLETREQUEST, - '__module__' : 'Rpc_pb2' +CreateWalletRequest = _reflection.GeneratedProtocolMessageType('CreateWalletRequest', (_message.Message,), dict( + DESCRIPTOR = _CREATEWALLETREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.CreateWalletRequest) - }) + )) _sym_db.RegisterMessage(CreateWalletRequest) -CreateWalletResponse = _reflection.GeneratedProtocolMessageType('CreateWalletResponse', (_message.Message,), { - 'DESCRIPTOR' : _CREATEWALLETRESPONSE, - '__module__' : 'Rpc_pb2' +CreateWalletResponse = _reflection.GeneratedProtocolMessageType('CreateWalletResponse', (_message.Message,), dict( + DESCRIPTOR = _CREATEWALLETRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.CreateWalletResponse) - }) + )) _sym_db.RegisterMessage(CreateWalletResponse) -ListWalletRequest = _reflection.GeneratedProtocolMessageType('ListWalletRequest', (_message.Message,), { - 'DESCRIPTOR' : _LISTWALLETREQUEST, - '__module__' : 'Rpc_pb2' +ListWalletRequest = _reflection.GeneratedProtocolMessageType('ListWalletRequest', (_message.Message,), dict( + DESCRIPTOR = _LISTWALLETREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ListWalletRequest) - }) + )) _sym_db.RegisterMessage(ListWalletRequest) -ListWalletResponse = _reflection.GeneratedProtocolMessageType('ListWalletResponse', (_message.Message,), { - 'DESCRIPTOR' : _LISTWALLETRESPONSE, - '__module__' : 'Rpc_pb2' +ListWalletResponse = _reflection.GeneratedProtocolMessageType('ListWalletResponse', (_message.Message,), dict( + DESCRIPTOR = _LISTWALLETRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ListWalletResponse) - }) + )) _sym_db.RegisterMessage(ListWalletResponse) -CreateAddressRequest = _reflection.GeneratedProtocolMessageType('CreateAddressRequest', (_message.Message,), { - 'DESCRIPTOR' : _CREATEADDRESSREQUEST, - '__module__' : 'Rpc_pb2' +CreateAddressRequest = _reflection.GeneratedProtocolMessageType('CreateAddressRequest', (_message.Message,), dict( + DESCRIPTOR = _CREATEADDRESSREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.CreateAddressRequest) - }) + )) _sym_db.RegisterMessage(CreateAddressRequest) -CreateAddressResponse = _reflection.GeneratedProtocolMessageType('CreateAddressResponse', (_message.Message,), { - 'DESCRIPTOR' : _CREATEADDRESSRESPONSE, - '__module__' : 'Rpc_pb2' +CreateAddressResponse = _reflection.GeneratedProtocolMessageType('CreateAddressResponse', (_message.Message,), dict( + DESCRIPTOR = _CREATEADDRESSRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.CreateAddressResponse) - }) + )) _sym_db.RegisterMessage(CreateAddressResponse) -GetAddressRequest = _reflection.GeneratedProtocolMessageType('GetAddressRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETADDRESSREQUEST, - '__module__' : 'Rpc_pb2' +GetAddressRequest = _reflection.GeneratedProtocolMessageType('GetAddressRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADDRESSREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetAddressRequest) - }) + )) _sym_db.RegisterMessage(GetAddressRequest) -GetAddressResponse = _reflection.GeneratedProtocolMessageType('GetAddressResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETADDRESSRESPONSE, - '__module__' : 'Rpc_pb2' +GetAddressResponse = _reflection.GeneratedProtocolMessageType('GetAddressResponse', (_message.Message,), dict( + DESCRIPTOR = _GETADDRESSRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetAddressResponse) - }) + )) _sym_db.RegisterMessage(GetAddressResponse) -ListAddressRequest = _reflection.GeneratedProtocolMessageType('ListAddressRequest', (_message.Message,), { - 'DESCRIPTOR' : _LISTADDRESSREQUEST, - '__module__' : 'Rpc_pb2' +ListAddressRequest = _reflection.GeneratedProtocolMessageType('ListAddressRequest', (_message.Message,), dict( + DESCRIPTOR = _LISTADDRESSREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ListAddressRequest) - }) + )) _sym_db.RegisterMessage(ListAddressRequest) -ListAddressResponse = _reflection.GeneratedProtocolMessageType('ListAddressResponse', (_message.Message,), { - 'DESCRIPTOR' : _LISTADDRESSRESPONSE, - '__module__' : 'Rpc_pb2' +ListAddressResponse = _reflection.GeneratedProtocolMessageType('ListAddressResponse', (_message.Message,), dict( + DESCRIPTOR = _LISTADDRESSRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ListAddressResponse) - }) + )) _sym_db.RegisterMessage(ListAddressResponse) -ValidateAddressRequest = _reflection.GeneratedProtocolMessageType('ValidateAddressRequest', (_message.Message,), { - 'DESCRIPTOR' : _VALIDATEADDRESSREQUEST, - '__module__' : 'Rpc_pb2' +ValidateAddressRequest = _reflection.GeneratedProtocolMessageType('ValidateAddressRequest', (_message.Message,), dict( + DESCRIPTOR = _VALIDATEADDRESSREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ValidateAddressRequest) - }) + )) _sym_db.RegisterMessage(ValidateAddressRequest) -ValidateAddressResponse = _reflection.GeneratedProtocolMessageType('ValidateAddressResponse', (_message.Message,), { - 'DESCRIPTOR' : _VALIDATEADDRESSRESPONSE, - '__module__' : 'Rpc_pb2' +ValidateAddressResponse = _reflection.GeneratedProtocolMessageType('ValidateAddressResponse', (_message.Message,), dict( + DESCRIPTOR = _VALIDATEADDRESSRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ValidateAddressResponse) - }) + )) _sym_db.RegisterMessage(ValidateAddressResponse) -GetBalanceRequest = _reflection.GeneratedProtocolMessageType('GetBalanceRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETBALANCEREQUEST, - '__module__' : 'Rpc_pb2' +GetBalanceRequest = _reflection.GeneratedProtocolMessageType('GetBalanceRequest', (_message.Message,), dict( + DESCRIPTOR = _GETBALANCEREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetBalanceRequest) - }) + )) _sym_db.RegisterMessage(GetBalanceRequest) -GetBalanceResponse = _reflection.GeneratedProtocolMessageType('GetBalanceResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETBALANCERESPONSE, - '__module__' : 'Rpc_pb2' +GetBalanceResponse = _reflection.GeneratedProtocolMessageType('GetBalanceResponse', (_message.Message,), dict( + DESCRIPTOR = _GETBALANCERESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetBalanceResponse) - }) + )) _sym_db.RegisterMessage(GetBalanceResponse) -CreateRawTransactionRequest = _reflection.GeneratedProtocolMessageType('CreateRawTransactionRequest', (_message.Message,), { - 'DESCRIPTOR' : _CREATERAWTRANSACTIONREQUEST, - '__module__' : 'Rpc_pb2' +CreateRawTransactionRequest = _reflection.GeneratedProtocolMessageType('CreateRawTransactionRequest', (_message.Message,), dict( + DESCRIPTOR = _CREATERAWTRANSACTIONREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest) - }) + )) _sym_db.RegisterMessage(CreateRawTransactionRequest) -CreateRawTransactionResponse = _reflection.GeneratedProtocolMessageType('CreateRawTransactionResponse', (_message.Message,), { - 'DESCRIPTOR' : _CREATERAWTRANSACTIONRESPONSE, - '__module__' : 'Rpc_pb2' +CreateRawTransactionResponse = _reflection.GeneratedProtocolMessageType('CreateRawTransactionResponse', (_message.Message,), dict( + DESCRIPTOR = _CREATERAWTRANSACTIONRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse) - }) + )) _sym_db.RegisterMessage(CreateRawTransactionResponse) -SignRawTransactionRequest = _reflection.GeneratedProtocolMessageType('SignRawTransactionRequest', (_message.Message,), { - 'DESCRIPTOR' : _SIGNRAWTRANSACTIONREQUEST, - '__module__' : 'Rpc_pb2' +SignRawTransactionRequest = _reflection.GeneratedProtocolMessageType('SignRawTransactionRequest', (_message.Message,), dict( + DESCRIPTOR = _SIGNRAWTRANSACTIONREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest) - }) + )) _sym_db.RegisterMessage(SignRawTransactionRequest) -SignRawTransactionResponse = _reflection.GeneratedProtocolMessageType('SignRawTransactionResponse', (_message.Message,), { - 'DESCRIPTOR' : _SIGNRAWTRANSACTIONRESPONSE, - '__module__' : 'Rpc_pb2' +SignRawTransactionResponse = _reflection.GeneratedProtocolMessageType('SignRawTransactionResponse', (_message.Message,), dict( + DESCRIPTOR = _SIGNRAWTRANSACTIONRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse) - }) + )) _sym_db.RegisterMessage(SignRawTransactionResponse) -DecodeRawTransactionRequest = _reflection.GeneratedProtocolMessageType('DecodeRawTransactionRequest', (_message.Message,), { - 'DESCRIPTOR' : _DECODERAWTRANSACTIONREQUEST, - '__module__' : 'Rpc_pb2' +DecodeRawTransactionRequest = _reflection.GeneratedProtocolMessageType('DecodeRawTransactionRequest', (_message.Message,), dict( + DESCRIPTOR = _DECODERAWTRANSACTIONREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest) - }) + )) _sym_db.RegisterMessage(DecodeRawTransactionRequest) -DecodeRawTransactionResponse = _reflection.GeneratedProtocolMessageType('DecodeRawTransactionResponse', (_message.Message,), { - 'DESCRIPTOR' : _DECODERAWTRANSACTIONRESPONSE, - '__module__' : 'Rpc_pb2' +DecodeRawTransactionResponse = _reflection.GeneratedProtocolMessageType('DecodeRawTransactionResponse', (_message.Message,), dict( + DESCRIPTOR = _DECODERAWTRANSACTIONRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse) - }) + )) _sym_db.RegisterMessage(DecodeRawTransactionResponse) -BroadcastRawTransactionRequest = _reflection.GeneratedProtocolMessageType('BroadcastRawTransactionRequest', (_message.Message,), { - 'DESCRIPTOR' : _BROADCASTRAWTRANSACTIONREQUEST, - '__module__' : 'Rpc_pb2' +BroadcastRawTransactionRequest = _reflection.GeneratedProtocolMessageType('BroadcastRawTransactionRequest', (_message.Message,), dict( + DESCRIPTOR = _BROADCASTRAWTRANSACTIONREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest) - }) + )) _sym_db.RegisterMessage(BroadcastRawTransactionRequest) -BroadcastRawTransactionResponse = _reflection.GeneratedProtocolMessageType('BroadcastRawTransactionResponse', (_message.Message,), { - 'DESCRIPTOR' : _BROADCASTRAWTRANSACTIONRESPONSE, - '__module__' : 'Rpc_pb2' +BroadcastRawTransactionResponse = _reflection.GeneratedProtocolMessageType('BroadcastRawTransactionResponse', (_message.Message,), dict( + DESCRIPTOR = _BROADCASTRAWTRANSACTIONRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse) - }) + )) _sym_db.RegisterMessage(BroadcastRawTransactionResponse) -SendToRequest = _reflection.GeneratedProtocolMessageType('SendToRequest', (_message.Message,), { - 'DESCRIPTOR' : _SENDTOREQUEST, - '__module__' : 'Rpc_pb2' +SendToRequest = _reflection.GeneratedProtocolMessageType('SendToRequest', (_message.Message,), dict( + DESCRIPTOR = _SENDTOREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendToRequest) - }) + )) _sym_db.RegisterMessage(SendToRequest) -SendToResponse = _reflection.GeneratedProtocolMessageType('SendToResponse', (_message.Message,), { - 'DESCRIPTOR' : _SENDTORESPONSE, - '__module__' : 'Rpc_pb2' +SendToResponse = _reflection.GeneratedProtocolMessageType('SendToResponse', (_message.Message,), dict( + DESCRIPTOR = _SENDTORESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendToResponse) - }) + )) _sym_db.RegisterMessage(SendToResponse) -SendToFromRequest = _reflection.GeneratedProtocolMessageType('SendToFromRequest', (_message.Message,), { - 'DESCRIPTOR' : _SENDTOFROMREQUEST, - '__module__' : 'Rpc_pb2' +SendToFromRequest = _reflection.GeneratedProtocolMessageType('SendToFromRequest', (_message.Message,), dict( + DESCRIPTOR = _SENDTOFROMREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendToFromRequest) - }) + )) _sym_db.RegisterMessage(SendToFromRequest) -SendToFromResponse = _reflection.GeneratedProtocolMessageType('SendToFromResponse', (_message.Message,), { - 'DESCRIPTOR' : _SENDTOFROMRESPONSE, - '__module__' : 'Rpc_pb2' +SendToFromResponse = _reflection.GeneratedProtocolMessageType('SendToFromResponse', (_message.Message,), dict( + DESCRIPTOR = _SENDTOFROMRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendToFromResponse) - }) + )) _sym_db.RegisterMessage(SendToFromResponse) -SendManyRequest = _reflection.GeneratedProtocolMessageType('SendManyRequest', (_message.Message,), { - 'DESCRIPTOR' : _SENDMANYREQUEST, - '__module__' : 'Rpc_pb2' +SendManyRequest = _reflection.GeneratedProtocolMessageType('SendManyRequest', (_message.Message,), dict( + DESCRIPTOR = _SENDMANYREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendManyRequest) - }) + )) _sym_db.RegisterMessage(SendManyRequest) -SendManyResponse = _reflection.GeneratedProtocolMessageType('SendManyResponse', (_message.Message,), { - 'DESCRIPTOR' : _SENDMANYRESPONSE, - '__module__' : 'Rpc_pb2' +SendManyResponse = _reflection.GeneratedProtocolMessageType('SendManyResponse', (_message.Message,), dict( + DESCRIPTOR = _SENDMANYRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendManyResponse) - }) + )) _sym_db.RegisterMessage(SendManyResponse) -SendFromManyRequest = _reflection.GeneratedProtocolMessageType('SendFromManyRequest', (_message.Message,), { - 'DESCRIPTOR' : _SENDFROMMANYREQUEST, - '__module__' : 'Rpc_pb2' +SendFromManyRequest = _reflection.GeneratedProtocolMessageType('SendFromManyRequest', (_message.Message,), dict( + DESCRIPTOR = _SENDFROMMANYREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendFromManyRequest) - }) + )) _sym_db.RegisterMessage(SendFromManyRequest) -SendFromManyResponse = _reflection.GeneratedProtocolMessageType('SendFromManyResponse', (_message.Message,), { - 'DESCRIPTOR' : _SENDFROMMANYRESPONSE, - '__module__' : 'Rpc_pb2' +SendFromManyResponse = _reflection.GeneratedProtocolMessageType('SendFromManyResponse', (_message.Message,), dict( + DESCRIPTOR = _SENDFROMMANYRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SendFromManyResponse) - }) + )) _sym_db.RegisterMessage(SendFromManyResponse) -AddNodeRequest = _reflection.GeneratedProtocolMessageType('AddNodeRequest', (_message.Message,), { - 'DESCRIPTOR' : _ADDNODEREQUEST, - '__module__' : 'Rpc_pb2' +AddNodeRequest = _reflection.GeneratedProtocolMessageType('AddNodeRequest', (_message.Message,), dict( + DESCRIPTOR = _ADDNODEREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.AddNodeRequest) - }) + )) _sym_db.RegisterMessage(AddNodeRequest) -AddNodeResponse = _reflection.GeneratedProtocolMessageType('AddNodeResponse', (_message.Message,), { - 'DESCRIPTOR' : _ADDNODERESPONSE, - '__module__' : 'Rpc_pb2' +AddNodeResponse = _reflection.GeneratedProtocolMessageType('AddNodeResponse', (_message.Message,), dict( + DESCRIPTOR = _ADDNODERESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.AddNodeResponse) - }) + )) _sym_db.RegisterMessage(AddNodeResponse) -GetPeerListRequest = _reflection.GeneratedProtocolMessageType('GetPeerListRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETPEERLISTREQUEST, - '__module__' : 'Rpc_pb2' +GetPeerListRequest = _reflection.GeneratedProtocolMessageType('GetPeerListRequest', (_message.Message,), dict( + DESCRIPTOR = _GETPEERLISTREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerListRequest) - }) + )) _sym_db.RegisterMessage(GetPeerListRequest) -GetPeerListResponse = _reflection.GeneratedProtocolMessageType('GetPeerListResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETPEERLISTRESPONSE, - '__module__' : 'Rpc_pb2' +GetPeerListResponse = _reflection.GeneratedProtocolMessageType('GetPeerListResponse', (_message.Message,), dict( + DESCRIPTOR = _GETPEERLISTRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerListResponse) - }) + )) _sym_db.RegisterMessage(GetPeerListResponse) -GetPeerReputationRequest = _reflection.GeneratedProtocolMessageType('GetPeerReputationRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETPEERREPUTATIONREQUEST, - '__module__' : 'Rpc_pb2' +GetPeerReputationRequest = _reflection.GeneratedProtocolMessageType('GetPeerReputationRequest', (_message.Message,), dict( + DESCRIPTOR = _GETPEERREPUTATIONREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest) - }) + )) _sym_db.RegisterMessage(GetPeerReputationRequest) -GetPeerReputationResponse = _reflection.GeneratedProtocolMessageType('GetPeerReputationResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETPEERREPUTATIONRESPONSE, - '__module__' : 'Rpc_pb2' +GetPeerReputationResponse = _reflection.GeneratedProtocolMessageType('GetPeerReputationResponse', (_message.Message,), dict( + DESCRIPTOR = _GETPEERREPUTATIONRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse) - }) + )) _sym_db.RegisterMessage(GetPeerReputationResponse) -SetPeerBlackListRequest = _reflection.GeneratedProtocolMessageType('SetPeerBlackListRequest', (_message.Message,), { - 'DESCRIPTOR' : _SETPEERBLACKLISTREQUEST, - '__module__' : 'Rpc_pb2' +SetPeerBlackListRequest = _reflection.GeneratedProtocolMessageType('SetPeerBlackListRequest', (_message.Message,), dict( + DESCRIPTOR = _SETPEERBLACKLISTREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest) - }) + )) _sym_db.RegisterMessage(SetPeerBlackListRequest) -SetPeerBlackListResponse = _reflection.GeneratedProtocolMessageType('SetPeerBlackListResponse', (_message.Message,), { - 'DESCRIPTOR' : _SETPEERBLACKLISTRESPONSE, - '__module__' : 'Rpc_pb2' +SetPeerBlackListResponse = _reflection.GeneratedProtocolMessageType('SetPeerBlackListResponse', (_message.Message,), dict( + DESCRIPTOR = _SETPEERBLACKLISTRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse) - }) + )) _sym_db.RegisterMessage(SetPeerBlackListResponse) -GetPeerInfoRequest = _reflection.GeneratedProtocolMessageType('GetPeerInfoRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETPEERINFOREQUEST, - '__module__' : 'Rpc_pb2' +GetPeerInfoRequest = _reflection.GeneratedProtocolMessageType('GetPeerInfoRequest', (_message.Message,), dict( + DESCRIPTOR = _GETPEERINFOREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest) - }) + )) _sym_db.RegisterMessage(GetPeerInfoRequest) -GetPeerInfoResponse = _reflection.GeneratedProtocolMessageType('GetPeerInfoResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETPEERINFORESPONSE, - '__module__' : 'Rpc_pb2' +GetPeerInfoResponse = _reflection.GeneratedProtocolMessageType('GetPeerInfoResponse', (_message.Message,), dict( + DESCRIPTOR = _GETPEERINFORESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse) - }) + )) _sym_db.RegisterMessage(GetPeerInfoResponse) -GetConnectionCountRequest = _reflection.GeneratedProtocolMessageType('GetConnectionCountRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETCONNECTIONCOUNTREQUEST, - '__module__' : 'Rpc_pb2' +GetConnectionCountRequest = _reflection.GeneratedProtocolMessageType('GetConnectionCountRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCONNECTIONCOUNTREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest) - }) + )) _sym_db.RegisterMessage(GetConnectionCountRequest) -GetConnectionCountResponse = _reflection.GeneratedProtocolMessageType('GetConnectionCountResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETCONNECTIONCOUNTRESPONSE, - '__module__' : 'Rpc_pb2' +GetConnectionCountResponse = _reflection.GeneratedProtocolMessageType('GetConnectionCountResponse', (_message.Message,), dict( + DESCRIPTOR = _GETCONNECTIONCOUNTRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse) - }) + )) _sym_db.RegisterMessage(GetConnectionCountResponse) -GetDeltaRequest = _reflection.GeneratedProtocolMessageType('GetDeltaRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETDELTAREQUEST, - '__module__' : 'Rpc_pb2' +GetDeltaRequest = _reflection.GeneratedProtocolMessageType('GetDeltaRequest', (_message.Message,), dict( + DESCRIPTOR = _GETDELTAREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetDeltaRequest) - }) + )) _sym_db.RegisterMessage(GetDeltaRequest) -GetDeltaResponse = _reflection.GeneratedProtocolMessageType('GetDeltaResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETDELTARESPONSE, - '__module__' : 'Rpc_pb2' +GetDeltaResponse = _reflection.GeneratedProtocolMessageType('GetDeltaResponse', (_message.Message,), dict( + DESCRIPTOR = _GETDELTARESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetDeltaResponse) - }) + )) _sym_db.RegisterMessage(GetDeltaResponse) -GetMempoolRequest = _reflection.GeneratedProtocolMessageType('GetMempoolRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETMEMPOOLREQUEST, - '__module__' : 'Rpc_pb2' +GetMempoolRequest = _reflection.GeneratedProtocolMessageType('GetMempoolRequest', (_message.Message,), dict( + DESCRIPTOR = _GETMEMPOOLREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetMempoolRequest) - }) + )) _sym_db.RegisterMessage(GetMempoolRequest) -GetMempoolResponse = _reflection.GeneratedProtocolMessageType('GetMempoolResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETMEMPOOLRESPONSE, - '__module__' : 'Rpc_pb2' +GetMempoolResponse = _reflection.GeneratedProtocolMessageType('GetMempoolResponse', (_message.Message,), dict( + DESCRIPTOR = _GETMEMPOOLRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetMempoolResponse) - }) + )) _sym_db.RegisterMessage(GetMempoolResponse) -SignMessageRequest = _reflection.GeneratedProtocolMessageType('SignMessageRequest', (_message.Message,), { - 'DESCRIPTOR' : _SIGNMESSAGEREQUEST, - '__module__' : 'Rpc_pb2' +SignMessageRequest = _reflection.GeneratedProtocolMessageType('SignMessageRequest', (_message.Message,), dict( + DESCRIPTOR = _SIGNMESSAGEREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SignMessageRequest) - }) + )) _sym_db.RegisterMessage(SignMessageRequest) -SignMessageResponse = _reflection.GeneratedProtocolMessageType('SignMessageResponse', (_message.Message,), { - 'DESCRIPTOR' : _SIGNMESSAGERESPONSE, - '__module__' : 'Rpc_pb2' +SignMessageResponse = _reflection.GeneratedProtocolMessageType('SignMessageResponse', (_message.Message,), dict( + DESCRIPTOR = _SIGNMESSAGERESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SignMessageResponse) - }) + )) _sym_db.RegisterMessage(SignMessageResponse) -VerifyMessageRequest = _reflection.GeneratedProtocolMessageType('VerifyMessageRequest', (_message.Message,), { - 'DESCRIPTOR' : _VERIFYMESSAGEREQUEST, - '__module__' : 'Rpc_pb2' +VerifyMessageRequest = _reflection.GeneratedProtocolMessageType('VerifyMessageRequest', (_message.Message,), dict( + DESCRIPTOR = _VERIFYMESSAGEREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.VerifyMessageRequest) - }) + )) _sym_db.RegisterMessage(VerifyMessageRequest) -VerifyMessageResponse = _reflection.GeneratedProtocolMessageType('VerifyMessageResponse', (_message.Message,), { - 'DESCRIPTOR' : _VERIFYMESSAGERESPONSE, - '__module__' : 'Rpc_pb2' +VerifyMessageResponse = _reflection.GeneratedProtocolMessageType('VerifyMessageResponse', (_message.Message,), dict( + DESCRIPTOR = _VERIFYMESSAGERESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.VerifyMessageResponse) - }) + )) _sym_db.RegisterMessage(VerifyMessageResponse) -ServiceStatusRequest = _reflection.GeneratedProtocolMessageType('ServiceStatusRequest', (_message.Message,), { - 'DESCRIPTOR' : _SERVICESTATUSREQUEST, - '__module__' : 'Rpc_pb2' +ServiceStatusRequest = _reflection.GeneratedProtocolMessageType('ServiceStatusRequest', (_message.Message,), dict( + DESCRIPTOR = _SERVICESTATUSREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ServiceStatusRequest) - }) + )) _sym_db.RegisterMessage(ServiceStatusRequest) -ServiceStatusResponse = _reflection.GeneratedProtocolMessageType('ServiceStatusResponse', (_message.Message,), { - 'DESCRIPTOR' : _SERVICESTATUSRESPONSE, - '__module__' : 'Rpc_pb2' +ServiceStatusResponse = _reflection.GeneratedProtocolMessageType('ServiceStatusResponse', (_message.Message,), dict( + DESCRIPTOR = _SERVICESTATUSRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.ServiceStatusResponse) - }) + )) _sym_db.RegisterMessage(ServiceStatusResponse) -AddFileToDfsRequest = _reflection.GeneratedProtocolMessageType('AddFileToDfsRequest', (_message.Message,), { - 'DESCRIPTOR' : _ADDFILETODFSREQUEST, - '__module__' : 'Rpc_pb2' +AddFileToDfsRequest = _reflection.GeneratedProtocolMessageType('AddFileToDfsRequest', (_message.Message,), dict( + DESCRIPTOR = _ADDFILETODFSREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest) - }) + )) _sym_db.RegisterMessage(AddFileToDfsRequest) -AddFileToDfsResponse = _reflection.GeneratedProtocolMessageType('AddFileToDfsResponse', (_message.Message,), { - 'DESCRIPTOR' : _ADDFILETODFSRESPONSE, - '__module__' : 'Rpc_pb2' +AddFileToDfsResponse = _reflection.GeneratedProtocolMessageType('AddFileToDfsResponse', (_message.Message,), dict( + DESCRIPTOR = _ADDFILETODFSRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse) - }) + )) _sym_db.RegisterMessage(AddFileToDfsResponse) -TransferFileBytesRequest = _reflection.GeneratedProtocolMessageType('TransferFileBytesRequest', (_message.Message,), { - 'DESCRIPTOR' : _TRANSFERFILEBYTESREQUEST, - '__module__' : 'Rpc_pb2' +TransferFileBytesRequest = _reflection.GeneratedProtocolMessageType('TransferFileBytesRequest', (_message.Message,), dict( + DESCRIPTOR = _TRANSFERFILEBYTESREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest) - }) + )) _sym_db.RegisterMessage(TransferFileBytesRequest) -TransferFileBytesResponse = _reflection.GeneratedProtocolMessageType('TransferFileBytesResponse', (_message.Message,), { - 'DESCRIPTOR' : _TRANSFERFILEBYTESRESPONSE, - '__module__' : 'Rpc_pb2' +TransferFileBytesResponse = _reflection.GeneratedProtocolMessageType('TransferFileBytesResponse', (_message.Message,), dict( + DESCRIPTOR = _TRANSFERFILEBYTESRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse) - }) + )) _sym_db.RegisterMessage(TransferFileBytesResponse) -RemovePeerRequest = _reflection.GeneratedProtocolMessageType('RemovePeerRequest', (_message.Message,), { - 'DESCRIPTOR' : _REMOVEPEERREQUEST, - '__module__' : 'Rpc_pb2' +RemovePeerRequest = _reflection.GeneratedProtocolMessageType('RemovePeerRequest', (_message.Message,), dict( + DESCRIPTOR = _REMOVEPEERREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.RemovePeerRequest) - }) + )) _sym_db.RegisterMessage(RemovePeerRequest) -RemovePeerResponse = _reflection.GeneratedProtocolMessageType('RemovePeerResponse', (_message.Message,), { - 'DESCRIPTOR' : _REMOVEPEERRESPONSE, - '__module__' : 'Rpc_pb2' +RemovePeerResponse = _reflection.GeneratedProtocolMessageType('RemovePeerResponse', (_message.Message,), dict( + DESCRIPTOR = _REMOVEPEERRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.RemovePeerResponse) - }) + )) _sym_db.RegisterMessage(RemovePeerResponse) -GetPeerCountRequest = _reflection.GeneratedProtocolMessageType('GetPeerCountRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETPEERCOUNTREQUEST, - '__module__' : 'Rpc_pb2' +GetPeerCountRequest = _reflection.GeneratedProtocolMessageType('GetPeerCountRequest', (_message.Message,), dict( + DESCRIPTOR = _GETPEERCOUNTREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerCountRequest) - }) + )) _sym_db.RegisterMessage(GetPeerCountRequest) -GetPeerCountResponse = _reflection.GeneratedProtocolMessageType('GetPeerCountResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETPEERCOUNTRESPONSE, - '__module__' : 'Rpc_pb2' +GetPeerCountResponse = _reflection.GeneratedProtocolMessageType('GetPeerCountResponse', (_message.Message,), dict( + DESCRIPTOR = _GETPEERCOUNTRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetPeerCountResponse) - }) + )) _sym_db.RegisterMessage(GetPeerCountResponse) -GetFileFromDfsRequest = _reflection.GeneratedProtocolMessageType('GetFileFromDfsRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETFILEFROMDFSREQUEST, - '__module__' : 'Rpc_pb2' +GetFileFromDfsRequest = _reflection.GeneratedProtocolMessageType('GetFileFromDfsRequest', (_message.Message,), dict( + DESCRIPTOR = _GETFILEFROMDFSREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest) - }) + )) _sym_db.RegisterMessage(GetFileFromDfsRequest) -GetFileFromDfsResponse = _reflection.GeneratedProtocolMessageType('GetFileFromDfsResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETFILEFROMDFSRESPONSE, - '__module__' : 'Rpc_pb2' +GetFileFromDfsResponse = _reflection.GeneratedProtocolMessageType('GetFileFromDfsResponse', (_message.Message,), dict( + DESCRIPTOR = _GETFILEFROMDFSRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse) - }) + )) _sym_db.RegisterMessage(GetFileFromDfsResponse) -SetPeerDataFolderRequest = _reflection.GeneratedProtocolMessageType('SetPeerDataFolderRequest', (_message.Message,), { - 'DESCRIPTOR' : _SETPEERDATAFOLDERREQUEST, - '__module__' : 'Rpc_pb2' +SetPeerDataFolderRequest = _reflection.GeneratedProtocolMessageType('SetPeerDataFolderRequest', (_message.Message,), dict( + DESCRIPTOR = _SETPEERDATAFOLDERREQUEST, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest) - }) + )) _sym_db.RegisterMessage(SetPeerDataFolderRequest) -SetPeerDataFolderResponse = _reflection.GeneratedProtocolMessageType('SetPeerDataFolderResponse', (_message.Message,), { - 'DESCRIPTOR' : _SETPEERDATAFOLDERRESPONSE, - '__module__' : 'Rpc_pb2' +SetPeerDataFolderResponse = _reflection.GeneratedProtocolMessageType('SetPeerDataFolderResponse', (_message.Message,), dict( + DESCRIPTOR = _SETPEERDATAFOLDERRESPONSE, + __module__ = 'Rpc_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse) - }) + )) _sym_db.RegisterMessage(SetPeerDataFolderResponse) -DESCRIPTOR._options = None +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('P\001')) # @@protoc_insertion_point(module_scope) diff --git a/packages/sdk-python/src/Transaction_pb2.py b/packages/sdk-python/src/Transaction_pb2.py index 6bdd4d8..34dbef3 100644 --- a/packages/sdk-python/src/Transaction_pb2.py +++ b/packages/sdk-python/src/Transaction_pb2.py @@ -1,29 +1,30 @@ -# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Transaction.proto +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() import Cryptography_pb2 as Cryptography__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='Transaction.proto', package='Catalyst.Protocol.Transaction', syntax='proto3', - serialized_options=b'P\001', - serialized_pb=b'\n\x11Transaction.proto\x12\x1d\x43\x61talyst.Protocol.Transaction\x1a\x12\x43ryptography.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xff\x01\n\x0bPublicEntry\x12\x18\n\x10receiver_address\x18\x01 \x01(\x0c\x12\x16\n\x0esender_address\x18\x02 \x01(\x0c\x12\x0e\n\x06\x61mount\x18\x03 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x12-\n\ttimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tgas_price\x18\x06 \x01(\x0c\x12\x11\n\tgas_limit\x18\x07 \x01(\x04\x12\r\n\x05nonce\x18\t \x01(\x04\x12<\n\tsignature\x18\n \x01(\x0b\x32).Catalyst.Protocol.Cryptography.Signature\"\xd1\x01\n\x11\x43onfidentialEntry\x12\x1b\n\x13receiver_public_key\x18\x01 \x01(\x0c\x12\x19\n\x11sender_public_key\x18\x02 \x01(\x0c\x12\x1b\n\x13pedersen_commitment\x18\x03 \x01(\x0c\x12>\n\x0brange_proof\x18\x04 \x01(\x0b\x32).Catalyst.Protocol.Transaction.RangeProof\x12\x18\n\x10transaction_fees\x18\x05 \x01(\x0c\x12\r\n\x05nonce\x18\x06 \x01(\x04\"<\n\rCoinbaseEntry\x12\x1b\n\x13receiver_public_key\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x0c\"\xda\x02\n\nRangeProof\x12\x18\n\x10value_commitment\x18\x01 \x03(\x0c\x12\x16\n\x0e\x62it_commitment\x18\x02 \x01(\x0c\x12*\n\"per_bit_blinding_factor_commitment\x18\x03 \x01(\x0c\x12\x1a\n\x12poly_commitment_t1\x18\x04 \x01(\x0c\x12\x1a\n\x12poly_commitment_t2\x18\x05 \x01(\x0c\x12\x1a\n\x12proof_of_share_tau\x18\x06 \x01(\x0c\x12\x19\n\x11proof_of_share_mu\x18\x07 \x01(\x0c\x12&\n\x1e\x61ggregated_vector_polynomial_l\x18\x08 \x03(\x0c\x12&\n\x1e\x61ggregated_vector_polynomial_r\x18\t \x03(\x0c\x12\x11\n\ta_prime_0\x18\n \x01(\x0c\x12\x11\n\tb_prime_0\x18\x0b \x01(\x0c\x12\t\n\x01t\x18\x0c \x01(\x0c*M\n\x0fTransactionType\x12\x1c\n\x18TRANSACTION_TYPE_UNKNOWN\x10\x00\x12\n\n\x06PUBLIC\x10\x01\x12\x10\n\x0c\x43ONFIDENTIAL\x10\x02\x42\x02P\x01\x62\x06proto3' + serialized_pb=_b('\n\x11Transaction.proto\x12\x1d\x43\x61talyst.Protocol.Transaction\x1a\x12\x43ryptography.proto\"\xd0\x01\n\x0bPublicEntry\x12\x18\n\x10receiver_address\x18\x01 \x01(\x0c\x12\x16\n\x0esender_address\x18\x02 \x01(\x0c\x12\x0e\n\x06\x61mount\x18\x03 \x01(\x0c\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\x12\x11\n\tgas_price\x18\x05 \x01(\x0c\x12\x11\n\tgas_limit\x18\x06 \x01(\x04\x12\r\n\x05nonce\x18\x07 \x01(\x04\x12<\n\tsignature\x18\x08 \x01(\x0b\x32).Catalyst.Protocol.Cryptography.Signature\"\xd1\x01\n\x11\x43onfidentialEntry\x12\x1b\n\x13receiver_public_key\x18\x01 \x01(\x0c\x12\x19\n\x11sender_public_key\x18\x02 \x01(\x0c\x12\x1b\n\x13pedersen_commitment\x18\x03 \x01(\x0c\x12>\n\x0brange_proof\x18\x04 \x01(\x0b\x32).Catalyst.Protocol.Transaction.RangeProof\x12\x18\n\x10transaction_fees\x18\x05 \x01(\x0c\x12\r\n\x05nonce\x18\x06 \x01(\x04\"<\n\rCoinbaseEntry\x12\x1b\n\x13receiver_public_key\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x0c\"\xda\x02\n\nRangeProof\x12\x18\n\x10value_commitment\x18\x01 \x03(\x0c\x12\x16\n\x0e\x62it_commitment\x18\x02 \x01(\x0c\x12*\n\"per_bit_blinding_factor_commitment\x18\x03 \x01(\x0c\x12\x1a\n\x12poly_commitment_t1\x18\x04 \x01(\x0c\x12\x1a\n\x12poly_commitment_t2\x18\x05 \x01(\x0c\x12\x1a\n\x12proof_of_share_tau\x18\x06 \x01(\x0c\x12\x19\n\x11proof_of_share_mu\x18\x07 \x01(\x0c\x12&\n\x1e\x61ggregated_vector_polynomial_l\x18\x08 \x03(\x0c\x12&\n\x1e\x61ggregated_vector_polynomial_r\x18\t \x03(\x0c\x12\x11\n\ta_prime_0\x18\n \x01(\x0c\x12\x11\n\tb_prime_0\x18\x0b \x01(\x0c\x12\t\n\x01t\x18\x0c \x01(\x0c*M\n\x0fTransactionType\x12\x1c\n\x18TRANSACTION_TYPE_UNKNOWN\x10\x00\x12\n\n\x06PUBLIC\x10\x01\x12\x10\n\x0c\x43ONFIDENTIAL\x10\x02\x42\x02P\x01\x62\x06proto3') , - dependencies=[Cryptography__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + dependencies=[Cryptography__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) _TRANSACTIONTYPE = _descriptor.EnumDescriptor( name='TransactionType', @@ -33,21 +34,21 @@ values=[ _descriptor.EnumValueDescriptor( name='TRANSACTION_TYPE_UNKNOWN', index=0, number=0, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='PUBLIC', index=1, number=1, - serialized_options=None, + options=None, type=None), _descriptor.EnumValueDescriptor( name='CONFIDENTIAL', index=2, number=2, - serialized_options=None, + options=None, type=None), ], containing_type=None, - serialized_options=None, - serialized_start=986, - serialized_end=1063, + options=None, + serialized_start=906, + serialized_end=983, ) _sym_db.RegisterEnumDescriptor(_TRANSACTIONTYPE) @@ -68,80 +69,73 @@ _descriptor.FieldDescriptor( name='receiver_address', full_name='Catalyst.Protocol.Transaction.PublicEntry.receiver_address', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='sender_address', full_name='Catalyst.Protocol.Transaction.PublicEntry.sender_address', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='amount', full_name='Catalyst.Protocol.Transaction.PublicEntry.amount', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='data', full_name='Catalyst.Protocol.Transaction.PublicEntry.data', index=3, number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timestamp', full_name='Catalyst.Protocol.Transaction.PublicEntry.timestamp', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( - name='gas_price', full_name='Catalyst.Protocol.Transaction.PublicEntry.gas_price', index=5, - number=6, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + name='gas_price', full_name='Catalyst.Protocol.Transaction.PublicEntry.gas_price', index=4, + number=5, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( - name='gas_limit', full_name='Catalyst.Protocol.Transaction.PublicEntry.gas_limit', index=6, - number=7, type=4, cpp_type=4, label=1, + name='gas_limit', full_name='Catalyst.Protocol.Transaction.PublicEntry.gas_limit', index=5, + number=6, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( - name='nonce', full_name='Catalyst.Protocol.Transaction.PublicEntry.nonce', index=7, - number=9, type=4, cpp_type=4, label=1, + name='nonce', full_name='Catalyst.Protocol.Transaction.PublicEntry.nonce', index=6, + number=7, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( - name='signature', full_name='Catalyst.Protocol.Transaction.PublicEntry.signature', index=8, - number=10, type=11, cpp_type=10, label=1, + name='signature', full_name='Catalyst.Protocol.Transaction.PublicEntry.signature', index=7, + number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=106, - serialized_end=361, + serialized_start=73, + serialized_end=281, ) @@ -155,59 +149,59 @@ _descriptor.FieldDescriptor( name='receiver_public_key', full_name='Catalyst.Protocol.Transaction.ConfidentialEntry.receiver_public_key', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='sender_public_key', full_name='Catalyst.Protocol.Transaction.ConfidentialEntry.sender_public_key', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='pedersen_commitment', full_name='Catalyst.Protocol.Transaction.ConfidentialEntry.pedersen_commitment', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='range_proof', full_name='Catalyst.Protocol.Transaction.ConfidentialEntry.range_proof', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='transaction_fees', full_name='Catalyst.Protocol.Transaction.ConfidentialEntry.transaction_fees', index=4, number=5, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='nonce', full_name='Catalyst.Protocol.Transaction.ConfidentialEntry.nonce', index=5, number=6, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=364, - serialized_end=573, + serialized_start=284, + serialized_end=493, ) @@ -221,31 +215,31 @@ _descriptor.FieldDescriptor( name='receiver_public_key', full_name='Catalyst.Protocol.Transaction.CoinbaseEntry.receiver_public_key', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='amount', full_name='Catalyst.Protocol.Transaction.CoinbaseEntry.amount', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=575, - serialized_end=635, + serialized_start=495, + serialized_end=555, ) @@ -262,101 +256,100 @@ has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='bit_commitment', full_name='Catalyst.Protocol.Transaction.RangeProof.bit_commitment', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='per_bit_blinding_factor_commitment', full_name='Catalyst.Protocol.Transaction.RangeProof.per_bit_blinding_factor_commitment', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='poly_commitment_t1', full_name='Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t1', index=3, number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='poly_commitment_t2', full_name='Catalyst.Protocol.Transaction.RangeProof.poly_commitment_t2', index=4, number=5, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='proof_of_share_tau', full_name='Catalyst.Protocol.Transaction.RangeProof.proof_of_share_tau', index=5, number=6, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='proof_of_share_mu', full_name='Catalyst.Protocol.Transaction.RangeProof.proof_of_share_mu', index=6, number=7, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='aggregated_vector_polynomial_l', full_name='Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_l', index=7, number=8, type=12, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='aggregated_vector_polynomial_r', full_name='Catalyst.Protocol.Transaction.RangeProof.aggregated_vector_polynomial_r', index=8, number=9, type=12, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='a_prime_0', full_name='Catalyst.Protocol.Transaction.RangeProof.a_prime_0', index=9, number=10, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='b_prime_0', full_name='Catalyst.Protocol.Transaction.RangeProof.b_prime_0', index=10, number=11, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='t', full_name='Catalyst.Protocol.Transaction.RangeProof.t', index=11, number=12, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=638, - serialized_end=984, + serialized_start=558, + serialized_end=904, ) -_PUBLICENTRY.fields_by_name['timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP _PUBLICENTRY.fields_by_name['signature'].message_type = Cryptography__pb2._SIGNATURE _CONFIDENTIALENTRY.fields_by_name['range_proof'].message_type = _RANGEPROOF DESCRIPTOR.message_types_by_name['PublicEntry'] = _PUBLICENTRY @@ -364,36 +357,36 @@ DESCRIPTOR.message_types_by_name['CoinbaseEntry'] = _COINBASEENTRY DESCRIPTOR.message_types_by_name['RangeProof'] = _RANGEPROOF DESCRIPTOR.enum_types_by_name['TransactionType'] = _TRANSACTIONTYPE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -PublicEntry = _reflection.GeneratedProtocolMessageType('PublicEntry', (_message.Message,), { - 'DESCRIPTOR' : _PUBLICENTRY, - '__module__' : 'Transaction_pb2' +PublicEntry = _reflection.GeneratedProtocolMessageType('PublicEntry', (_message.Message,), dict( + DESCRIPTOR = _PUBLICENTRY, + __module__ = 'Transaction_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Transaction.PublicEntry) - }) + )) _sym_db.RegisterMessage(PublicEntry) -ConfidentialEntry = _reflection.GeneratedProtocolMessageType('ConfidentialEntry', (_message.Message,), { - 'DESCRIPTOR' : _CONFIDENTIALENTRY, - '__module__' : 'Transaction_pb2' +ConfidentialEntry = _reflection.GeneratedProtocolMessageType('ConfidentialEntry', (_message.Message,), dict( + DESCRIPTOR = _CONFIDENTIALENTRY, + __module__ = 'Transaction_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Transaction.ConfidentialEntry) - }) + )) _sym_db.RegisterMessage(ConfidentialEntry) -CoinbaseEntry = _reflection.GeneratedProtocolMessageType('CoinbaseEntry', (_message.Message,), { - 'DESCRIPTOR' : _COINBASEENTRY, - '__module__' : 'Transaction_pb2' +CoinbaseEntry = _reflection.GeneratedProtocolMessageType('CoinbaseEntry', (_message.Message,), dict( + DESCRIPTOR = _COINBASEENTRY, + __module__ = 'Transaction_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Transaction.CoinbaseEntry) - }) + )) _sym_db.RegisterMessage(CoinbaseEntry) -RangeProof = _reflection.GeneratedProtocolMessageType('RangeProof', (_message.Message,), { - 'DESCRIPTOR' : _RANGEPROOF, - '__module__' : 'Transaction_pb2' +RangeProof = _reflection.GeneratedProtocolMessageType('RangeProof', (_message.Message,), dict( + DESCRIPTOR = _RANGEPROOF, + __module__ = 'Transaction_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Transaction.RangeProof) - }) + )) _sym_db.RegisterMessage(RangeProof) -DESCRIPTOR._options = None +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('P\001')) # @@protoc_insertion_point(module_scope) diff --git a/packages/sdk-python/src/Wire_pb2.py b/packages/sdk-python/src/Wire_pb2.py index b4ba079..aa6e7e7 100644 --- a/packages/sdk-python/src/Wire_pb2.py +++ b/packages/sdk-python/src/Wire_pb2.py @@ -1,11 +1,13 @@ -# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: Wire.proto +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,10 +23,10 @@ name='Wire.proto', package='Catalyst.Protocol.Wire', syntax='proto3', - serialized_options=b'P\001', - serialized_pb=b'\n\nWire.proto\x12\x16\x43\x61talyst.Protocol.Wire\x1a\x12\x43ryptography.proto\x1a\nPeer.proto\x1a\x11Transaction.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xab\x01\n\x14ProtocolErrorMessage\x12<\n\tsignature\x18\x01 \x01(\x0b\x32).Catalyst.Protocol.Cryptography.Signature\x12/\n\x07peer_id\x18\x02 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\x12\x16\n\x0e\x63orrelation_id\x18\x03 \x01(\x0c\x12\x0c\n\x04\x63ode\x18\x04 \x01(\x05\"\xb9\x01\n\x0fProtocolMessage\x12/\n\x07peer_id\x18\x01 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\x12\x16\n\x0e\x63orrelation_id\x18\x02 \x01(\x0c\x12\x10\n\x08type_url\x18\x03 \x01(\t\x12\r\n\x05value\x18\x04 \x01(\x0c\x12<\n\tsignature\x18\x05 \x01(\x0b\x32).Catalyst.Protocol.Cryptography.Signature\"X\n\x14TransactionBroadcast\x12@\n\x0cpublic_entry\x18\x01 \x01(\x0b\x32*.Catalyst.Protocol.Transaction.PublicEntry\"}\n\x17\x43\x61ndidateDeltaBroadcast\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\x33\n\x0bproducer_id\x18\x02 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\x12\x1f\n\x17previous_delta_dfs_hash\x18\x03 \x01(\x0c\"\x8f\x01\n\x17\x46\x61vouriteDeltaBroadcast\x12\x42\n\tcandidate\x18\x01 \x01(\x0b\x32/.Catalyst.Protocol.Wire.CandidateDeltaBroadcast\x12\x30\n\x08voter_id\x18\x02 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\"P\n\x15\x44\x65ltaDfsHashBroadcast\x12\x16\n\x0e\x64\x65lta_dfs_hash\x18\x01 \x01(\x0c\x12\x1f\n\x17previous_delta_dfs_hash\x18\x02 \x01(\x0c\x42\x02P\x01\x62\x06proto3' + serialized_pb=_b('\n\nWire.proto\x12\x16\x43\x61talyst.Protocol.Wire\x1a\x12\x43ryptography.proto\x1a\nPeer.proto\x1a\x11Transaction.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xab\x01\n\x14ProtocolErrorMessage\x12<\n\tsignature\x18\x01 \x01(\x0b\x32).Catalyst.Protocol.Cryptography.Signature\x12/\n\x07peer_id\x18\x02 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\x12\x16\n\x0e\x63orrelation_id\x18\x03 \x01(\x0c\x12\x0c\n\x04\x63ode\x18\x04 \x01(\x05\"\xb9\x01\n\x0fProtocolMessage\x12/\n\x07peer_id\x18\x01 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\x12\x16\n\x0e\x63orrelation_id\x18\x02 \x01(\x0c\x12\x10\n\x08type_url\x18\x03 \x01(\t\x12\r\n\x05value\x18\x04 \x01(\x0c\x12<\n\tsignature\x18\x05 \x01(\x0b\x32).Catalyst.Protocol.Cryptography.Signature\"X\n\x14TransactionBroadcast\x12@\n\x0cpublic_entry\x18\x01 \x01(\x0b\x32*.Catalyst.Protocol.Transaction.PublicEntry\"}\n\x17\x43\x61ndidateDeltaBroadcast\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\x33\n\x0bproducer_id\x18\x02 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\x12\x1f\n\x17previous_delta_dfs_hash\x18\x03 \x01(\x0c\"\x8f\x01\n\x17\x46\x61vouriteDeltaBroadcast\x12\x42\n\tcandidate\x18\x01 \x01(\x0b\x32/.Catalyst.Protocol.Wire.CandidateDeltaBroadcast\x12\x30\n\x08voter_id\x18\x02 \x01(\x0b\x32\x1e.Catalyst.Protocol.Peer.PeerId\"P\n\x15\x44\x65ltaDfsHashBroadcast\x12\x16\n\x0e\x64\x65lta_dfs_hash\x18\x01 \x01(\x0c\x12\x1f\n\x17previous_delta_dfs_hash\x18\x02 \x01(\x0c\x42\x02P\x01\x62\x06proto3') , dependencies=[Cryptography__pb2.DESCRIPTOR,Peer__pb2.DESCRIPTOR,Transaction__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -42,35 +44,35 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='peer_id', full_name='Catalyst.Protocol.Wire.ProtocolErrorMessage.peer_id', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='correlation_id', full_name='Catalyst.Protocol.Wire.ProtocolErrorMessage.correlation_id', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='code', full_name='Catalyst.Protocol.Wire.ProtocolErrorMessage.code', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -94,42 +96,42 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='correlation_id', full_name='Catalyst.Protocol.Wire.ProtocolMessage.correlation_id', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='type_url', full_name='Catalyst.Protocol.Wire.ProtocolMessage.type_url', index=2, number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), + has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='value', full_name='Catalyst.Protocol.Wire.ProtocolMessage.value', index=3, number=4, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='signature', full_name='Catalyst.Protocol.Wire.ProtocolMessage.signature', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -153,14 +155,14 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -181,31 +183,31 @@ _descriptor.FieldDescriptor( name='hash', full_name='Catalyst.Protocol.Wire.CandidateDeltaBroadcast.hash', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='producer_id', full_name='Catalyst.Protocol.Wire.CandidateDeltaBroadcast.producer_id', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='previous_delta_dfs_hash', full_name='Catalyst.Protocol.Wire.CandidateDeltaBroadcast.previous_delta_dfs_hash', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -229,21 +231,21 @@ has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='voter_id', full_name='Catalyst.Protocol.Wire.FavouriteDeltaBroadcast.voter_id', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -264,24 +266,24 @@ _descriptor.FieldDescriptor( name='delta_dfs_hash', full_name='Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.delta_dfs_hash', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), _descriptor.FieldDescriptor( name='previous_delta_dfs_hash', full_name='Catalyst.Protocol.Wire.DeltaDfsHashBroadcast.previous_delta_dfs_hash', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", + has_default_value=False, default_value=_b(""), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), + options=None), ], extensions=[ ], nested_types=[], enum_types=[ ], - serialized_options=None, + options=None, is_extendable=False, syntax='proto3', extension_ranges=[], @@ -305,50 +307,50 @@ DESCRIPTOR.message_types_by_name['CandidateDeltaBroadcast'] = _CANDIDATEDELTABROADCAST DESCRIPTOR.message_types_by_name['FavouriteDeltaBroadcast'] = _FAVOURITEDELTABROADCAST DESCRIPTOR.message_types_by_name['DeltaDfsHashBroadcast'] = _DELTADFSHASHBROADCAST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) -ProtocolErrorMessage = _reflection.GeneratedProtocolMessageType('ProtocolErrorMessage', (_message.Message,), { - 'DESCRIPTOR' : _PROTOCOLERRORMESSAGE, - '__module__' : 'Wire_pb2' +ProtocolErrorMessage = _reflection.GeneratedProtocolMessageType('ProtocolErrorMessage', (_message.Message,), dict( + DESCRIPTOR = _PROTOCOLERRORMESSAGE, + __module__ = 'Wire_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Wire.ProtocolErrorMessage) - }) + )) _sym_db.RegisterMessage(ProtocolErrorMessage) -ProtocolMessage = _reflection.GeneratedProtocolMessageType('ProtocolMessage', (_message.Message,), { - 'DESCRIPTOR' : _PROTOCOLMESSAGE, - '__module__' : 'Wire_pb2' +ProtocolMessage = _reflection.GeneratedProtocolMessageType('ProtocolMessage', (_message.Message,), dict( + DESCRIPTOR = _PROTOCOLMESSAGE, + __module__ = 'Wire_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Wire.ProtocolMessage) - }) + )) _sym_db.RegisterMessage(ProtocolMessage) -TransactionBroadcast = _reflection.GeneratedProtocolMessageType('TransactionBroadcast', (_message.Message,), { - 'DESCRIPTOR' : _TRANSACTIONBROADCAST, - '__module__' : 'Wire_pb2' +TransactionBroadcast = _reflection.GeneratedProtocolMessageType('TransactionBroadcast', (_message.Message,), dict( + DESCRIPTOR = _TRANSACTIONBROADCAST, + __module__ = 'Wire_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Wire.TransactionBroadcast) - }) + )) _sym_db.RegisterMessage(TransactionBroadcast) -CandidateDeltaBroadcast = _reflection.GeneratedProtocolMessageType('CandidateDeltaBroadcast', (_message.Message,), { - 'DESCRIPTOR' : _CANDIDATEDELTABROADCAST, - '__module__' : 'Wire_pb2' +CandidateDeltaBroadcast = _reflection.GeneratedProtocolMessageType('CandidateDeltaBroadcast', (_message.Message,), dict( + DESCRIPTOR = _CANDIDATEDELTABROADCAST, + __module__ = 'Wire_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Wire.CandidateDeltaBroadcast) - }) + )) _sym_db.RegisterMessage(CandidateDeltaBroadcast) -FavouriteDeltaBroadcast = _reflection.GeneratedProtocolMessageType('FavouriteDeltaBroadcast', (_message.Message,), { - 'DESCRIPTOR' : _FAVOURITEDELTABROADCAST, - '__module__' : 'Wire_pb2' +FavouriteDeltaBroadcast = _reflection.GeneratedProtocolMessageType('FavouriteDeltaBroadcast', (_message.Message,), dict( + DESCRIPTOR = _FAVOURITEDELTABROADCAST, + __module__ = 'Wire_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Wire.FavouriteDeltaBroadcast) - }) + )) _sym_db.RegisterMessage(FavouriteDeltaBroadcast) -DeltaDfsHashBroadcast = _reflection.GeneratedProtocolMessageType('DeltaDfsHashBroadcast', (_message.Message,), { - 'DESCRIPTOR' : _DELTADFSHASHBROADCAST, - '__module__' : 'Wire_pb2' +DeltaDfsHashBroadcast = _reflection.GeneratedProtocolMessageType('DeltaDfsHashBroadcast', (_message.Message,), dict( + DESCRIPTOR = _DELTADFSHASHBROADCAST, + __module__ = 'Wire_pb2' # @@protoc_insertion_point(class_scope:Catalyst.Protocol.Wire.DeltaDfsHashBroadcast) - }) + )) _sym_db.RegisterMessage(DeltaDfsHashBroadcast) -DESCRIPTOR._options = None +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('P\001')) # @@protoc_insertion_point(module_scope) diff --git a/packages/sdk-ruby/src/Account_pb.rb b/packages/sdk-ruby/src/Account_pb.rb index b16cde7..4ae8f90 100644 --- a/packages/sdk-ruby/src/Account_pb.rb +++ b/packages/sdk-ruby/src/Account_pb.rb @@ -6,26 +6,24 @@ require 'Cryptography_pb' require 'Network_pb' Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("Account.proto", :syntax => :proto3) do - add_message "Catalyst.Protocol.Account.Address" do - optional :network_type, :enum, 1, "Catalyst.Protocol.Network.NetworkType" - optional :account_type, :enum, 2, "Catalyst.Protocol.Account.AccountType" - optional :public_key_hash, :bytes, 3 - end - add_enum "Catalyst.Protocol.Account.AccountType" do - value :ACCOUNT_TYPE_UNKNOWN, 0 - value :PUBLIC_ACCOUNT, 8 - value :CONFIDENTIAL_ACCOUNT, 16 - value :SMART_CONTRACT_ACCOUNT, 24 - end + add_message "Catalyst.Protocol.Account.Address" do + optional :network_type, :enum, 1, "Catalyst.Protocol.Network.NetworkType" + optional :account_type, :enum, 2, "Catalyst.Protocol.Account.AccountType" + optional :public_key_hash, :bytes, 3 + end + add_enum "Catalyst.Protocol.Account.AccountType" do + value :ACCOUNT_TYPE_UNKNOWN, 0 + value :PUBLIC_ACCOUNT, 8 + value :CONFIDENTIAL_ACCOUNT, 16 + value :SMART_CONTRACT_ACCOUNT, 24 end end module Catalyst module Protocol module Account - Address = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Account.Address").msgclass - AccountType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Account.AccountType").enummodule + Address = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Account.Address").msgclass + AccountType = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Account.AccountType").enummodule end end end diff --git a/packages/sdk-ruby/src/Cryptography_pb.rb b/packages/sdk-ruby/src/Cryptography_pb.rb index faac00e..ebc6adb 100644 --- a/packages/sdk-ruby/src/Cryptography_pb.rb +++ b/packages/sdk-ruby/src/Cryptography_pb.rb @@ -5,52 +5,50 @@ require 'Network_pb' Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("Cryptography.proto", :syntax => :proto3) do - add_message "Catalyst.Protocol.Cryptography.Signature" do - optional :signing_context, :message, 1, "Catalyst.Protocol.Cryptography.SigningContext" - optional :raw_bytes, :bytes, 2 - end - add_message "Catalyst.Protocol.Cryptography.SigningContext" do - optional :network_type, :enum, 1, "Catalyst.Protocol.Network.NetworkType" - optional :signature_type, :enum, 2, "Catalyst.Protocol.Cryptography.SignatureType" - end - add_message "Catalyst.Protocol.Cryptography.SignatureBatch" do - repeated :signatures, :bytes, 1 - repeated :public_keys, :bytes, 2 - repeated :messages, :bytes, 3 - optional :context, :bytes, 4 - end - add_enum "Catalyst.Protocol.Cryptography.SignatureType" do - value :SIGNATURE_TYPE_UNKNOWN, 0 - value :TRANSACTION_PUBLIC, 1 - value :TRANSACTION_CONFIDENTIAL, 2 - value :PROTOCOL_RPC, 3 - value :PROTOCOL_PEER, 4 - value :WEB3_MESSAGE, 5 - end - add_enum "Catalyst.Protocol.Cryptography.ErrorCode" do - value :ERROR_CODE_UNKNOWN, 0 - value :INVALID_SIGNATURE, 1 - value :INVALID_PUBLIC_KEY, 2 - value :INVALID_PRIVATE_KEY, 3 - value :SIGNATURE_VERIFICATION_FAILURE, 4 - value :INVALID_CONTEXT_LENGTH, 5 - value :INVALID_BATCH_MESSAGE, 6 - value :ARRAYS_NOT_EQUAL_LENGTH, 7 - value :BATCH_VERIFICATION_FAILURE, 8 - value :NO_ERROR, 418 - end + add_message "Catalyst.Protocol.Cryptography.Signature" do + optional :signing_context, :message, 1, "Catalyst.Protocol.Cryptography.SigningContext" + optional :raw_bytes, :bytes, 2 + end + add_message "Catalyst.Protocol.Cryptography.SigningContext" do + optional :network_type, :enum, 1, "Catalyst.Protocol.Network.NetworkType" + optional :signature_type, :enum, 2, "Catalyst.Protocol.Cryptography.SignatureType" + end + add_message "Catalyst.Protocol.Cryptography.SignatureBatch" do + repeated :signatures, :bytes, 1 + repeated :public_keys, :bytes, 2 + repeated :messages, :bytes, 3 + optional :context, :bytes, 4 + end + add_enum "Catalyst.Protocol.Cryptography.SignatureType" do + value :SIGNATURE_TYPE_UNKNOWN, 0 + value :TRANSACTION_PUBLIC, 1 + value :TRANSACTION_CONFIDENTIAL, 2 + value :PROTOCOL_RPC, 3 + value :PROTOCOL_PEER, 4 + value :WEB3_MESSAGE, 5 + end + add_enum "Catalyst.Protocol.Cryptography.ErrorCode" do + value :ERROR_CODE_UNKNOWN, 0 + value :INVALID_SIGNATURE, 1 + value :INVALID_PUBLIC_KEY, 2 + value :INVALID_PRIVATE_KEY, 3 + value :SIGNATURE_VERIFICATION_FAILURE, 4 + value :INVALID_CONTEXT_LENGTH, 5 + value :INVALID_BATCH_MESSAGE, 6 + value :ARRAYS_NOT_EQUAL_LENGTH, 7 + value :BATCH_VERIFICATION_FAILURE, 8 + value :NO_ERROR, 418 end end module Catalyst module Protocol module Cryptography - Signature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Cryptography.Signature").msgclass - SigningContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Cryptography.SigningContext").msgclass - SignatureBatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Cryptography.SignatureBatch").msgclass - SignatureType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Cryptography.SignatureType").enummodule - ErrorCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Cryptography.ErrorCode").enummodule + Signature = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Cryptography.Signature").msgclass + SigningContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Cryptography.SigningContext").msgclass + SignatureBatch = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Cryptography.SignatureBatch").msgclass + SignatureType = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Cryptography.SignatureType").enummodule + ErrorCode = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Cryptography.ErrorCode").enummodule end end end diff --git a/packages/sdk-ruby/src/Deltas_pb.rb b/packages/sdk-ruby/src/Deltas_pb.rb index 6dc2581..2eb43b1 100644 --- a/packages/sdk-ruby/src/Deltas_pb.rb +++ b/packages/sdk-ruby/src/Deltas_pb.rb @@ -6,30 +6,29 @@ require 'Transaction_pb' require 'google/protobuf/timestamp_pb' Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("Deltas.proto", :syntax => :proto3) do - add_message "Catalyst.Protocol.Deltas.DeltaIndex" do - optional :height, :uint32, 1 - optional :cid, :bytes, 2 - end - add_message "Catalyst.Protocol.Deltas.Delta" do - optional :previous_delta_dfs_hash, :bytes, 1 - optional :merkle_root, :bytes, 2 - optional :merkle_poda, :bytes, 3 - optional :time_stamp, :message, 4, "google.protobuf.Timestamp" - repeated :public_entries, :message, 5, "Catalyst.Protocol.Transaction.PublicEntry" - repeated :confidential_entries, :message, 6, "Catalyst.Protocol.Transaction.ConfidentialEntry" - repeated :coinbase_entries, :message, 7, "Catalyst.Protocol.Transaction.CoinbaseEntry" - optional :state_root, :bytes, 8 - optional :delta_number, :int64, 9 - end + add_message "Catalyst.Protocol.Deltas.DeltaIndex" do + optional :height, :uint32, 1 + optional :cid, :bytes, 2 + end + add_message "Catalyst.Protocol.Deltas.Delta" do + optional :previous_delta_dfs_hash, :bytes, 1 + optional :merkle_root, :bytes, 2 + optional :merkle_poda, :bytes, 3 + optional :time_stamp, :message, 4, "google.protobuf.Timestamp" + repeated :public_entries, :message, 5, "Catalyst.Protocol.Transaction.PublicEntry" + repeated :confidential_entries, :message, 6, "Catalyst.Protocol.Transaction.ConfidentialEntry" + repeated :coinbase_entries, :message, 7, "Catalyst.Protocol.Transaction.CoinbaseEntry" + optional :state_root, :bytes, 8 + optional :delta_number, :int64, 9 + optional :gas_used, :int64, 10 end end module Catalyst module Protocol module Deltas - DeltaIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Deltas.DeltaIndex").msgclass - Delta = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Deltas.Delta").msgclass + DeltaIndex = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Deltas.DeltaIndex").msgclass + Delta = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Deltas.Delta").msgclass end end end diff --git a/packages/sdk-ruby/src/DfsMarketplace_pb.rb b/packages/sdk-ruby/src/DfsMarketplace_pb.rb index 28ffb9f..ab1690a 100644 --- a/packages/sdk-ruby/src/DfsMarketplace_pb.rb +++ b/packages/sdk-ruby/src/DfsMarketplace_pb.rb @@ -5,31 +5,29 @@ require 'Peer_pb' Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("DfsMarketplace.proto", :syntax => :proto3) do - add_message "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest" do - optional :challenge_salt, :string, 1 - optional :main_file_cid, :string, 2 - optional :block_idx_random_guid, :bytes, 3 - end - add_message "Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse" do - optional :answer, :string, 1 - optional :block_challenge_request_hash, :string, 2 - end - add_message "Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast" do - optional :original_challenge, :message, 1, "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest" - optional :answer, :string, 2 - optional :challenged_peer, :message, 3, "Catalyst.Protocol.Peer.PeerId" - optional :challenged_by, :message, 4, "Catalyst.Protocol.Peer.PeerId" - end + add_message "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest" do + optional :challenge_salt, :string, 1 + optional :main_file_cid, :string, 2 + optional :block_idx_random_guid, :bytes, 3 + end + add_message "Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse" do + optional :answer, :string, 1 + optional :block_challenge_request_hash, :string, 2 + end + add_message "Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast" do + optional :original_challenge, :message, 1, "Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest" + optional :answer, :string, 2 + optional :challenged_peer, :message, 3, "Catalyst.Protocol.Peer.PeerId" + optional :challenged_by, :message, 4, "Catalyst.Protocol.Peer.PeerId" end end module Catalyst module Protocol module DfsMarketplace - BlockChallengeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest").msgclass - BlockChallengeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse").msgclass - BlockChallengeBroadcast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast").msgclass + BlockChallengeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.DfsMarketplace.BlockChallengeRequest").msgclass + BlockChallengeResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.DfsMarketplace.BlockChallengeResponse").msgclass + BlockChallengeBroadcast = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.DfsMarketplace.BlockChallengeBroadcast").msgclass end end end diff --git a/packages/sdk-ruby/src/IPPN_pb.rb b/packages/sdk-ruby/src/IPPN_pb.rb index e8fa105..1402a85 100644 --- a/packages/sdk-ruby/src/IPPN_pb.rb +++ b/packages/sdk-ruby/src/IPPN_pb.rb @@ -6,42 +6,41 @@ require 'Peer_pb' require 'Deltas_pb' Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("IPPN.proto", :syntax => :proto3) do - add_message "Catalyst.Protocol.IPPN.PeerNeighborsRequest" do - end - add_message "Catalyst.Protocol.IPPN.PeerNeighborsResponse" do - repeated :peers, :message, 1, "Catalyst.Protocol.Peer.PeerId" - end - add_message "Catalyst.Protocol.IPPN.PingRequest" do - end - add_message "Catalyst.Protocol.IPPN.PingResponse" do - end - add_message "Catalyst.Protocol.IPPN.LatestDeltaHashRequest" do - end - add_message "Catalyst.Protocol.IPPN.LatestDeltaHashResponse" do - optional :result, :message, 1, "Catalyst.Protocol.Deltas.DeltaIndex" - end - add_message "Catalyst.Protocol.IPPN.DeltaHistoryRequest" do - optional :range, :uint32, 1 - optional :height, :uint32, 2 - end - add_message "Catalyst.Protocol.IPPN.DeltaHistoryResponse" do - repeated :result, :message, 1, "Catalyst.Protocol.Deltas.DeltaIndex" - end + add_message "Catalyst.Protocol.IPPN.PeerNeighborsRequest" do + end + add_message "Catalyst.Protocol.IPPN.PeerNeighborsResponse" do + repeated :peers, :message, 1, "Catalyst.Protocol.Peer.PeerId" + end + add_message "Catalyst.Protocol.IPPN.PingRequest" do + end + add_message "Catalyst.Protocol.IPPN.PingResponse" do + end + add_message "Catalyst.Protocol.IPPN.LatestDeltaHashRequest" do + end + add_message "Catalyst.Protocol.IPPN.LatestDeltaHashResponse" do + optional :isSync, :bool, 1 + optional :deltaIndex, :message, 2, "Catalyst.Protocol.Deltas.DeltaIndex" + end + add_message "Catalyst.Protocol.IPPN.DeltaHistoryRequest" do + optional :range, :uint32, 1 + optional :height, :uint32, 2 + end + add_message "Catalyst.Protocol.IPPN.DeltaHistoryResponse" do + repeated :deltaIndex, :message, 1, "Catalyst.Protocol.Deltas.DeltaIndex" end end module Catalyst module Protocol module IPPN - PeerNeighborsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.PeerNeighborsRequest").msgclass - PeerNeighborsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.PeerNeighborsResponse").msgclass - PingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.PingRequest").msgclass - PingResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.PingResponse").msgclass - LatestDeltaHashRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.LatestDeltaHashRequest").msgclass - LatestDeltaHashResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.LatestDeltaHashResponse").msgclass - DeltaHistoryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.DeltaHistoryRequest").msgclass - DeltaHistoryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.DeltaHistoryResponse").msgclass + PeerNeighborsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.PeerNeighborsRequest").msgclass + PeerNeighborsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.PeerNeighborsResponse").msgclass + PingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.PingRequest").msgclass + PingResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.PingResponse").msgclass + LatestDeltaHashRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.LatestDeltaHashRequest").msgclass + LatestDeltaHashResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.LatestDeltaHashResponse").msgclass + DeltaHistoryRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.DeltaHistoryRequest").msgclass + DeltaHistoryResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.IPPN.DeltaHistoryResponse").msgclass end end end diff --git a/packages/sdk-ruby/src/Network_pb.rb b/packages/sdk-ruby/src/Network_pb.rb index d92789a..deecaf3 100644 --- a/packages/sdk-ruby/src/Network_pb.rb +++ b/packages/sdk-ruby/src/Network_pb.rb @@ -4,20 +4,18 @@ require 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("Network.proto", :syntax => :proto3) do - add_enum "Catalyst.Protocol.Network.NetworkType" do - value :NETWORK_TYPE_UNKNOWN, 0 - value :MAINNET, 1 - value :DEVNET, 2 - value :TESTNET, 3 - end + add_enum "Catalyst.Protocol.Network.NetworkType" do + value :NETWORK_TYPE_UNKNOWN, 0 + value :MAINNET, 1 + value :DEVNET, 2 + value :TESTNET, 3 end end module Catalyst module Protocol module Network - NetworkType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Network.NetworkType").enummodule + NetworkType = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Network.NetworkType").enummodule end end end diff --git a/packages/sdk-ruby/src/Peer_pb.rb b/packages/sdk-ruby/src/Peer_pb.rb index 94f76e6..ccd6e1b 100644 --- a/packages/sdk-ruby/src/Peer_pb.rb +++ b/packages/sdk-ruby/src/Peer_pb.rb @@ -6,30 +6,28 @@ require 'google/protobuf/timestamp_pb' require 'google/protobuf/duration_pb' Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("Peer.proto", :syntax => :proto3) do - add_message "Catalyst.Protocol.Peer.PeerId" do - optional :ip, :bytes, 1 - optional :port, :uint32, 2 - optional :public_key, :bytes, 3 - end - add_message "Catalyst.Protocol.Peer.PeerInfo" do - optional :peer_id, :message, 1, "Catalyst.Protocol.Peer.PeerId" - optional :reputation, :sint32, 2 - optional :is_blacklisted, :bool, 3 - optional :is_unreachable, :bool, 4 - optional :inactive_for, :message, 5, "google.protobuf.Duration" - optional :last_seen, :message, 6, "google.protobuf.Timestamp" - optional :modified, :message, 7, "google.protobuf.Timestamp" - optional :created, :message, 8, "google.protobuf.Timestamp" - end + add_message "Catalyst.Protocol.Peer.PeerId" do + optional :ip, :bytes, 1 + optional :port, :uint32, 2 + optional :public_key, :bytes, 3 + end + add_message "Catalyst.Protocol.Peer.PeerInfo" do + optional :peer_id, :message, 1, "Catalyst.Protocol.Peer.PeerId" + optional :reputation, :sint32, 2 + optional :is_blacklisted, :bool, 3 + optional :is_unreachable, :bool, 4 + optional :inactive_for, :message, 5, "google.protobuf.Duration" + optional :last_seen, :message, 6, "google.protobuf.Timestamp" + optional :modified, :message, 7, "google.protobuf.Timestamp" + optional :created, :message, 8, "google.protobuf.Timestamp" end end module Catalyst module Protocol module Peer - PeerId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Peer.PeerId").msgclass - PeerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Peer.PeerInfo").msgclass + PeerId = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Peer.PeerId").msgclass + PeerInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Peer.PeerInfo").msgclass end end end diff --git a/packages/sdk-ruby/src/Rpc_pb.rb b/packages/sdk-ruby/src/Rpc_pb.rb index 53e93db..6aba7ba 100644 --- a/packages/sdk-ruby/src/Rpc_pb.rb +++ b/packages/sdk-ruby/src/Rpc_pb.rb @@ -9,238 +9,236 @@ require 'Wire_pb' require 'Transaction_pb' Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("Rpc.proto", :syntax => :proto3) do - add_message "Catalyst.Protocol.Rpc.Node.VersionRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.VersionResponse" do - optional :version, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetInfoRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetInfoResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.CreateWalletRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.CreateWalletResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.ListWalletRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.ListWalletResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.CreateAddressRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.CreateAddressResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetAddressRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetAddressResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.ListAddressRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.ListAddressResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.ValidateAddressRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.ValidateAddressResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetBalanceRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetBalanceResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest" do - optional :transaction, :message, 1, "Catalyst.Protocol.Wire.TransactionBroadcast" - end - add_message "Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse" do - optional :response_code, :enum, 1, "Catalyst.Protocol.Rpc.Node.ResponseCode" - end - add_message "Catalyst.Protocol.Rpc.Node.SendToRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.SendToResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.SendToFromRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.SendToFromResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.SendManyRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.SendManyResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.SendFromManyRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.SendFromManyResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.AddNodeRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.AddNodeResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetPeerListRequest" do - end - add_message "Catalyst.Protocol.Rpc.Node.GetPeerListResponse" do - repeated :peers, :message, 1, "Catalyst.Protocol.Peer.PeerId" - end - add_message "Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest" do - optional :public_key, :bytes, 1 - optional :ip, :bytes, 2 - end - add_message "Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse" do - optional :reputation, :int32, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest" do - optional :public_key, :bytes, 1 - optional :ip, :bytes, 2 - optional :blacklist, :bool, 3 - end - add_message "Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse" do - optional :public_key, :bytes, 1 - optional :ip, :bytes, 2 - optional :blacklist, :bool, 3 - end - add_message "Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest" do - optional :public_key, :bytes, 1 - optional :ip, :bytes, 2 - end - add_message "Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse" do - repeated :peer_info, :message, 1, "Catalyst.Protocol.Peer.PeerInfo" - end - add_message "Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetDeltaRequest" do - optional :delta_dfs_hash, :bytes, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetDeltaResponse" do - optional :delta, :message, 1, "Catalyst.Protocol.Deltas.Delta" - end - add_message "Catalyst.Protocol.Rpc.Node.GetMempoolRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetMempoolResponse" do - repeated :transactions, :message, 1, "Catalyst.Protocol.Transaction.PublicEntry" - end - add_message "Catalyst.Protocol.Rpc.Node.SignMessageRequest" do - optional :message, :bytes, 1 - optional :key_id, :string, 2 - optional :signing_context, :message, 3, "Catalyst.Protocol.Cryptography.SigningContext" - end - add_message "Catalyst.Protocol.Rpc.Node.SignMessageResponse" do - optional :signature, :bytes, 1 - optional :public_key, :bytes, 2 - optional :original_message, :bytes, 3 - end - add_message "Catalyst.Protocol.Rpc.Node.VerifyMessageRequest" do - optional :signature, :bytes, 1 - optional :public_key, :bytes, 2 - optional :message, :bytes, 3 - optional :signing_context, :message, 4, "Catalyst.Protocol.Cryptography.SigningContext" - end - add_message "Catalyst.Protocol.Rpc.Node.VerifyMessageResponse" do - optional :is_signed_by_key, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.ServiceStatusRequest" do - optional :query, :bool, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.ServiceStatusResponse" do - optional :query, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest" do - optional :file_size, :uint64, 1 - optional :file_name, :string, 2 - optional :node, :string, 3 - end - add_message "Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse" do - optional :response_code, :bytes, 1 - optional :dfs_hash, :string, 2 - end - add_message "Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest" do - optional :chunk_id, :uint32, 1 - optional :chunk_bytes, :bytes, 2 - optional :correlation_file_name, :bytes, 3 - end - add_message "Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse" do - optional :response_code, :bytes, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.RemovePeerRequest" do - optional :peer_ip, :bytes, 1 - optional :public_key, :bytes, 2 - end - add_message "Catalyst.Protocol.Rpc.Node.RemovePeerResponse" do - optional :deleted_count, :uint32, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetPeerCountRequest" do - end - add_message "Catalyst.Protocol.Rpc.Node.GetPeerCountResponse" do - optional :peer_count, :int32, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest" do - optional :dfs_hash, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse" do - optional :file_size, :uint64, 1 - optional :response_code, :bytes, 2 - end - add_message "Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest" do - optional :data_folder, :string, 1 - end - add_message "Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse" do - optional :query, :bool, 1 - end - add_enum "Catalyst.Protocol.Rpc.Node.ResponseCode" do - value :PENDING, 0 - value :SUCCESSFUL, 1 - value :ERROR, 2 - value :FINISHED, 3 - value :EXPIRED, 4 - value :FAILED, 5 - value :EXISTS, 6 - end + add_message "Catalyst.Protocol.Rpc.Node.VersionRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.VersionResponse" do + optional :version, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetInfoRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetInfoResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.CreateWalletRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.CreateWalletResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.ListWalletRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.ListWalletResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.CreateAddressRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.CreateAddressResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetAddressRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetAddressResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.ListAddressRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.ListAddressResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.ValidateAddressRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.ValidateAddressResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetBalanceRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetBalanceResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest" do + optional :transaction, :message, 1, "Catalyst.Protocol.Wire.TransactionBroadcast" + end + add_message "Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse" do + optional :response_code, :enum, 1, "Catalyst.Protocol.Rpc.Node.ResponseCode" + end + add_message "Catalyst.Protocol.Rpc.Node.SendToRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.SendToResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.SendToFromRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.SendToFromResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.SendManyRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.SendManyResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.SendFromManyRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.SendFromManyResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.AddNodeRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.AddNodeResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetPeerListRequest" do + end + add_message "Catalyst.Protocol.Rpc.Node.GetPeerListResponse" do + repeated :peers, :message, 1, "Catalyst.Protocol.Peer.PeerId" + end + add_message "Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest" do + optional :public_key, :bytes, 1 + optional :ip, :bytes, 2 + end + add_message "Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse" do + optional :reputation, :int32, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest" do + optional :public_key, :bytes, 1 + optional :ip, :bytes, 2 + optional :blacklist, :bool, 3 + end + add_message "Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse" do + optional :public_key, :bytes, 1 + optional :ip, :bytes, 2 + optional :blacklist, :bool, 3 + end + add_message "Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest" do + optional :public_key, :bytes, 1 + optional :ip, :bytes, 2 + end + add_message "Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse" do + repeated :peer_info, :message, 1, "Catalyst.Protocol.Peer.PeerInfo" + end + add_message "Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetDeltaRequest" do + optional :delta_dfs_hash, :bytes, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetDeltaResponse" do + optional :delta, :message, 1, "Catalyst.Protocol.Deltas.Delta" + end + add_message "Catalyst.Protocol.Rpc.Node.GetMempoolRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetMempoolResponse" do + repeated :transactions, :message, 1, "Catalyst.Protocol.Transaction.PublicEntry" + end + add_message "Catalyst.Protocol.Rpc.Node.SignMessageRequest" do + optional :message, :bytes, 1 + optional :key_id, :string, 2 + optional :signing_context, :message, 3, "Catalyst.Protocol.Cryptography.SigningContext" + end + add_message "Catalyst.Protocol.Rpc.Node.SignMessageResponse" do + optional :signature, :bytes, 1 + optional :public_key, :bytes, 2 + optional :original_message, :bytes, 3 + end + add_message "Catalyst.Protocol.Rpc.Node.VerifyMessageRequest" do + optional :signature, :bytes, 1 + optional :public_key, :bytes, 2 + optional :message, :bytes, 3 + optional :signing_context, :message, 4, "Catalyst.Protocol.Cryptography.SigningContext" + end + add_message "Catalyst.Protocol.Rpc.Node.VerifyMessageResponse" do + optional :is_signed_by_key, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.ServiceStatusRequest" do + optional :query, :bool, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.ServiceStatusResponse" do + optional :query, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest" do + optional :file_size, :uint64, 1 + optional :file_name, :string, 2 + optional :node, :string, 3 + end + add_message "Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse" do + optional :response_code, :bytes, 1 + optional :dfs_hash, :string, 2 + end + add_message "Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest" do + optional :chunk_id, :uint32, 1 + optional :chunk_bytes, :bytes, 2 + optional :correlation_file_name, :bytes, 3 + end + add_message "Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse" do + optional :response_code, :bytes, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.RemovePeerRequest" do + optional :peer_ip, :bytes, 1 + optional :public_key, :bytes, 2 + end + add_message "Catalyst.Protocol.Rpc.Node.RemovePeerResponse" do + optional :deleted_count, :uint32, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetPeerCountRequest" do + end + add_message "Catalyst.Protocol.Rpc.Node.GetPeerCountResponse" do + optional :peer_count, :int32, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest" do + optional :dfs_hash, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse" do + optional :file_size, :uint64, 1 + optional :response_code, :bytes, 2 + end + add_message "Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest" do + optional :data_folder, :string, 1 + end + add_message "Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse" do + optional :query, :bool, 1 + end + add_enum "Catalyst.Protocol.Rpc.Node.ResponseCode" do + value :PENDING, 0 + value :SUCCESSFUL, 1 + value :ERROR, 2 + value :FINISHED, 3 + value :EXPIRED, 4 + value :FAILED, 5 + value :EXISTS, 6 end end @@ -248,75 +246,75 @@ module Catalyst module Protocol module Rpc module Node - VersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.VersionRequest").msgclass - VersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.VersionResponse").msgclass - GetInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetInfoRequest").msgclass - GetInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetInfoResponse").msgclass - CreateWalletRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.CreateWalletRequest").msgclass - CreateWalletResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.CreateWalletResponse").msgclass - ListWalletRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ListWalletRequest").msgclass - ListWalletResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ListWalletResponse").msgclass - CreateAddressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.CreateAddressRequest").msgclass - CreateAddressResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.CreateAddressResponse").msgclass - GetAddressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetAddressRequest").msgclass - GetAddressResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetAddressResponse").msgclass - ListAddressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ListAddressRequest").msgclass - ListAddressResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ListAddressResponse").msgclass - ValidateAddressRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ValidateAddressRequest").msgclass - ValidateAddressResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ValidateAddressResponse").msgclass - GetBalanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetBalanceRequest").msgclass - GetBalanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetBalanceResponse").msgclass - CreateRawTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest").msgclass - CreateRawTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse").msgclass - SignRawTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest").msgclass - SignRawTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse").msgclass - DecodeRawTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest").msgclass - DecodeRawTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse").msgclass - BroadcastRawTransactionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest").msgclass - BroadcastRawTransactionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse").msgclass - SendToRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendToRequest").msgclass - SendToResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendToResponse").msgclass - SendToFromRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendToFromRequest").msgclass - SendToFromResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendToFromResponse").msgclass - SendManyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendManyRequest").msgclass - SendManyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendManyResponse").msgclass - SendFromManyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendFromManyRequest").msgclass - SendFromManyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendFromManyResponse").msgclass - AddNodeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.AddNodeRequest").msgclass - AddNodeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.AddNodeResponse").msgclass - GetPeerListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerListRequest").msgclass - GetPeerListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerListResponse").msgclass - GetPeerReputationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest").msgclass - GetPeerReputationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse").msgclass - SetPeerBlackListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest").msgclass - SetPeerBlackListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse").msgclass - GetPeerInfoRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest").msgclass - GetPeerInfoResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse").msgclass - GetConnectionCountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest").msgclass - GetConnectionCountResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse").msgclass - GetDeltaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetDeltaRequest").msgclass - GetDeltaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetDeltaResponse").msgclass - GetMempoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetMempoolRequest").msgclass - GetMempoolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetMempoolResponse").msgclass - SignMessageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SignMessageRequest").msgclass - SignMessageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SignMessageResponse").msgclass - VerifyMessageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.VerifyMessageRequest").msgclass - VerifyMessageResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.VerifyMessageResponse").msgclass - ServiceStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ServiceStatusRequest").msgclass - ServiceStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ServiceStatusResponse").msgclass - AddFileToDfsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest").msgclass - AddFileToDfsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse").msgclass - TransferFileBytesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest").msgclass - TransferFileBytesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse").msgclass - RemovePeerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.RemovePeerRequest").msgclass - RemovePeerResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.RemovePeerResponse").msgclass - GetPeerCountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerCountRequest").msgclass - GetPeerCountResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerCountResponse").msgclass - GetFileFromDfsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest").msgclass - GetFileFromDfsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse").msgclass - SetPeerDataFolderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest").msgclass - SetPeerDataFolderResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse").msgclass - ResponseCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ResponseCode").enummodule + VersionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.VersionRequest").msgclass + VersionResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.VersionResponse").msgclass + GetInfoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetInfoRequest").msgclass + GetInfoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetInfoResponse").msgclass + CreateWalletRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.CreateWalletRequest").msgclass + CreateWalletResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.CreateWalletResponse").msgclass + ListWalletRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ListWalletRequest").msgclass + ListWalletResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ListWalletResponse").msgclass + CreateAddressRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.CreateAddressRequest").msgclass + CreateAddressResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.CreateAddressResponse").msgclass + GetAddressRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetAddressRequest").msgclass + GetAddressResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetAddressResponse").msgclass + ListAddressRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ListAddressRequest").msgclass + ListAddressResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ListAddressResponse").msgclass + ValidateAddressRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ValidateAddressRequest").msgclass + ValidateAddressResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ValidateAddressResponse").msgclass + GetBalanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetBalanceRequest").msgclass + GetBalanceResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetBalanceResponse").msgclass + CreateRawTransactionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.CreateRawTransactionRequest").msgclass + CreateRawTransactionResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.CreateRawTransactionResponse").msgclass + SignRawTransactionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SignRawTransactionRequest").msgclass + SignRawTransactionResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SignRawTransactionResponse").msgclass + DecodeRawTransactionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.DecodeRawTransactionRequest").msgclass + DecodeRawTransactionResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.DecodeRawTransactionResponse").msgclass + BroadcastRawTransactionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionRequest").msgclass + BroadcastRawTransactionResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.BroadcastRawTransactionResponse").msgclass + SendToRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendToRequest").msgclass + SendToResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendToResponse").msgclass + SendToFromRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendToFromRequest").msgclass + SendToFromResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendToFromResponse").msgclass + SendManyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendManyRequest").msgclass + SendManyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendManyResponse").msgclass + SendFromManyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendFromManyRequest").msgclass + SendFromManyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SendFromManyResponse").msgclass + AddNodeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.AddNodeRequest").msgclass + AddNodeResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.AddNodeResponse").msgclass + GetPeerListRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerListRequest").msgclass + GetPeerListResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerListResponse").msgclass + GetPeerReputationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerReputationRequest").msgclass + GetPeerReputationResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerReputationResponse").msgclass + SetPeerBlackListRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SetPeerBlackListRequest").msgclass + SetPeerBlackListResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SetPeerBlackListResponse").msgclass + GetPeerInfoRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerInfoRequest").msgclass + GetPeerInfoResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerInfoResponse").msgclass + GetConnectionCountRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetConnectionCountRequest").msgclass + GetConnectionCountResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetConnectionCountResponse").msgclass + GetDeltaRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetDeltaRequest").msgclass + GetDeltaResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetDeltaResponse").msgclass + GetMempoolRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetMempoolRequest").msgclass + GetMempoolResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetMempoolResponse").msgclass + SignMessageRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SignMessageRequest").msgclass + SignMessageResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SignMessageResponse").msgclass + VerifyMessageRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.VerifyMessageRequest").msgclass + VerifyMessageResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.VerifyMessageResponse").msgclass + ServiceStatusRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ServiceStatusRequest").msgclass + ServiceStatusResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ServiceStatusResponse").msgclass + AddFileToDfsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.AddFileToDfsRequest").msgclass + AddFileToDfsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.AddFileToDfsResponse").msgclass + TransferFileBytesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.TransferFileBytesRequest").msgclass + TransferFileBytesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.TransferFileBytesResponse").msgclass + RemovePeerRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.RemovePeerRequest").msgclass + RemovePeerResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.RemovePeerResponse").msgclass + GetPeerCountRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerCountRequest").msgclass + GetPeerCountResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetPeerCountResponse").msgclass + GetFileFromDfsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetFileFromDfsRequest").msgclass + GetFileFromDfsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.GetFileFromDfsResponse").msgclass + SetPeerDataFolderRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SetPeerDataFolderRequest").msgclass + SetPeerDataFolderResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.SetPeerDataFolderResponse").msgclass + ResponseCode = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Rpc.Node.ResponseCode").enummodule end end end diff --git a/packages/sdk-ruby/src/Transaction_pb.rb b/packages/sdk-ruby/src/Transaction_pb.rb index 58b0db2..34f9d79 100644 --- a/packages/sdk-ruby/src/Transaction_pb.rb +++ b/packages/sdk-ruby/src/Transaction_pb.rb @@ -4,62 +4,58 @@ require 'google/protobuf' require 'Cryptography_pb' -require 'google/protobuf/timestamp_pb' Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("Transaction.proto", :syntax => :proto3) do - add_message "Catalyst.Protocol.Transaction.PublicEntry" do - optional :receiver_address, :bytes, 1 - optional :sender_address, :bytes, 2 - optional :amount, :bytes, 3 - optional :data, :bytes, 4 - optional :timestamp, :message, 5, "google.protobuf.Timestamp" - optional :gas_price, :bytes, 6 - optional :gas_limit, :uint64, 7 - optional :nonce, :uint64, 9 - optional :signature, :message, 10, "Catalyst.Protocol.Cryptography.Signature" - end - add_message "Catalyst.Protocol.Transaction.ConfidentialEntry" do - optional :receiver_public_key, :bytes, 1 - optional :sender_public_key, :bytes, 2 - optional :pedersen_commitment, :bytes, 3 - optional :range_proof, :message, 4, "Catalyst.Protocol.Transaction.RangeProof" - optional :transaction_fees, :bytes, 5 - optional :nonce, :uint64, 6 - end - add_message "Catalyst.Protocol.Transaction.CoinbaseEntry" do - optional :receiver_public_key, :bytes, 1 - optional :amount, :bytes, 2 - end - add_message "Catalyst.Protocol.Transaction.RangeProof" do - repeated :value_commitment, :bytes, 1 - optional :bit_commitment, :bytes, 2 - optional :per_bit_blinding_factor_commitment, :bytes, 3 - optional :poly_commitment_t1, :bytes, 4 - optional :poly_commitment_t2, :bytes, 5 - optional :proof_of_share_tau, :bytes, 6 - optional :proof_of_share_mu, :bytes, 7 - repeated :aggregated_vector_polynomial_l, :bytes, 8 - repeated :aggregated_vector_polynomial_r, :bytes, 9 - optional :a_prime_0, :bytes, 10 - optional :b_prime_0, :bytes, 11 - optional :t, :bytes, 12 - end - add_enum "Catalyst.Protocol.Transaction.TransactionType" do - value :TRANSACTION_TYPE_UNKNOWN, 0 - value :PUBLIC, 1 - value :CONFIDENTIAL, 2 - end + add_message "Catalyst.Protocol.Transaction.PublicEntry" do + optional :receiver_address, :bytes, 1 + optional :sender_address, :bytes, 2 + optional :amount, :bytes, 3 + optional :data, :bytes, 4 + optional :gas_price, :bytes, 5 + optional :gas_limit, :uint64, 6 + optional :nonce, :uint64, 7 + optional :signature, :message, 8, "Catalyst.Protocol.Cryptography.Signature" + end + add_message "Catalyst.Protocol.Transaction.ConfidentialEntry" do + optional :receiver_public_key, :bytes, 1 + optional :sender_public_key, :bytes, 2 + optional :pedersen_commitment, :bytes, 3 + optional :range_proof, :message, 4, "Catalyst.Protocol.Transaction.RangeProof" + optional :transaction_fees, :bytes, 5 + optional :nonce, :uint64, 6 + end + add_message "Catalyst.Protocol.Transaction.CoinbaseEntry" do + optional :receiver_public_key, :bytes, 1 + optional :amount, :bytes, 2 + end + add_message "Catalyst.Protocol.Transaction.RangeProof" do + repeated :value_commitment, :bytes, 1 + optional :bit_commitment, :bytes, 2 + optional :per_bit_blinding_factor_commitment, :bytes, 3 + optional :poly_commitment_t1, :bytes, 4 + optional :poly_commitment_t2, :bytes, 5 + optional :proof_of_share_tau, :bytes, 6 + optional :proof_of_share_mu, :bytes, 7 + repeated :aggregated_vector_polynomial_l, :bytes, 8 + repeated :aggregated_vector_polynomial_r, :bytes, 9 + optional :a_prime_0, :bytes, 10 + optional :b_prime_0, :bytes, 11 + optional :t, :bytes, 12 + end + add_enum "Catalyst.Protocol.Transaction.TransactionType" do + value :TRANSACTION_TYPE_UNKNOWN, 0 + value :PUBLIC, 1 + value :CONFIDENTIAL, 2 end end module Catalyst module Protocol module Transaction - PublicEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Transaction.PublicEntry").msgclass - ConfidentialEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Transaction.ConfidentialEntry").msgclass - CoinbaseEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Transaction.CoinbaseEntry").msgclass - RangeProof = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Transaction.RangeProof").msgclass - TransactionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Transaction.TransactionType").enummodule + PublicEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Transaction.PublicEntry").msgclass + ConfidentialEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Transaction.ConfidentialEntry").msgclass + CoinbaseEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Transaction.CoinbaseEntry").msgclass + RangeProof = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Transaction.RangeProof").msgclass + TransactionType = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Transaction.TransactionType").enummodule end end end diff --git a/packages/sdk-ruby/src/Wire_pb.rb b/packages/sdk-ruby/src/Wire_pb.rb index 8efc1da..730ed89 100644 --- a/packages/sdk-ruby/src/Wire_pb.rb +++ b/packages/sdk-ruby/src/Wire_pb.rb @@ -8,48 +8,46 @@ require 'Transaction_pb' require 'google/protobuf/timestamp_pb' Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("Wire.proto", :syntax => :proto3) do - add_message "Catalyst.Protocol.Wire.ProtocolErrorMessage" do - optional :signature, :message, 1, "Catalyst.Protocol.Cryptography.Signature" - optional :peer_id, :message, 2, "Catalyst.Protocol.Peer.PeerId" - optional :correlation_id, :bytes, 3 - optional :code, :int32, 4 - end - add_message "Catalyst.Protocol.Wire.ProtocolMessage" do - optional :peer_id, :message, 1, "Catalyst.Protocol.Peer.PeerId" - optional :correlation_id, :bytes, 2 - optional :type_url, :string, 3 - optional :value, :bytes, 4 - optional :signature, :message, 5, "Catalyst.Protocol.Cryptography.Signature" - end - add_message "Catalyst.Protocol.Wire.TransactionBroadcast" do - optional :public_entry, :message, 1, "Catalyst.Protocol.Transaction.PublicEntry" - end - add_message "Catalyst.Protocol.Wire.CandidateDeltaBroadcast" do - optional :hash, :bytes, 1 - optional :producer_id, :message, 2, "Catalyst.Protocol.Peer.PeerId" - optional :previous_delta_dfs_hash, :bytes, 3 - end - add_message "Catalyst.Protocol.Wire.FavouriteDeltaBroadcast" do - optional :candidate, :message, 1, "Catalyst.Protocol.Wire.CandidateDeltaBroadcast" - optional :voter_id, :message, 2, "Catalyst.Protocol.Peer.PeerId" - end - add_message "Catalyst.Protocol.Wire.DeltaDfsHashBroadcast" do - optional :delta_dfs_hash, :bytes, 1 - optional :previous_delta_dfs_hash, :bytes, 2 - end + add_message "Catalyst.Protocol.Wire.ProtocolErrorMessage" do + optional :signature, :message, 1, "Catalyst.Protocol.Cryptography.Signature" + optional :peer_id, :message, 2, "Catalyst.Protocol.Peer.PeerId" + optional :correlation_id, :bytes, 3 + optional :code, :int32, 4 + end + add_message "Catalyst.Protocol.Wire.ProtocolMessage" do + optional :peer_id, :message, 1, "Catalyst.Protocol.Peer.PeerId" + optional :correlation_id, :bytes, 2 + optional :type_url, :string, 3 + optional :value, :bytes, 4 + optional :signature, :message, 5, "Catalyst.Protocol.Cryptography.Signature" + end + add_message "Catalyst.Protocol.Wire.TransactionBroadcast" do + optional :public_entry, :message, 1, "Catalyst.Protocol.Transaction.PublicEntry" + end + add_message "Catalyst.Protocol.Wire.CandidateDeltaBroadcast" do + optional :hash, :bytes, 1 + optional :producer_id, :message, 2, "Catalyst.Protocol.Peer.PeerId" + optional :previous_delta_dfs_hash, :bytes, 3 + end + add_message "Catalyst.Protocol.Wire.FavouriteDeltaBroadcast" do + optional :candidate, :message, 1, "Catalyst.Protocol.Wire.CandidateDeltaBroadcast" + optional :voter_id, :message, 2, "Catalyst.Protocol.Peer.PeerId" + end + add_message "Catalyst.Protocol.Wire.DeltaDfsHashBroadcast" do + optional :delta_dfs_hash, :bytes, 1 + optional :previous_delta_dfs_hash, :bytes, 2 end end module Catalyst module Protocol module Wire - ProtocolErrorMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Wire.ProtocolErrorMessage").msgclass - ProtocolMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Wire.ProtocolMessage").msgclass - TransactionBroadcast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Wire.TransactionBroadcast").msgclass - CandidateDeltaBroadcast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Wire.CandidateDeltaBroadcast").msgclass - FavouriteDeltaBroadcast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Wire.FavouriteDeltaBroadcast").msgclass - DeltaDfsHashBroadcast = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Wire.DeltaDfsHashBroadcast").msgclass + ProtocolErrorMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Wire.ProtocolErrorMessage").msgclass + ProtocolMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Wire.ProtocolMessage").msgclass + TransactionBroadcast = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Wire.TransactionBroadcast").msgclass + CandidateDeltaBroadcast = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Wire.CandidateDeltaBroadcast").msgclass + FavouriteDeltaBroadcast = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Wire.FavouriteDeltaBroadcast").msgclass + DeltaDfsHashBroadcast = Google::Protobuf::DescriptorPool.generated_pool.lookup("Catalyst.Protocol.Wire.DeltaDfsHashBroadcast").msgclass end end end diff --git a/packages/sdk-rust/Cargo.toml b/packages/sdk-rust/Cargo.toml index 231715b..a66b899 100644 --- a/packages/sdk-rust/Cargo.toml +++ b/packages/sdk-rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "catalyst-protocol-sdk-rust" -version = "0.1.5" +version = "0.1.6" authors = ["Fran ", "Catalyst Network "] homepage = "https://atlascity.io" edition = "2018" diff --git a/packages/sdk-rust/src/Account.rs b/packages/sdk-rust/src/Account.rs index f74f3e0..4b707ab 100644 --- a/packages/sdk-rust/src/Account.rs +++ b/packages/sdk-rust/src/Account.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.10.1. Do not edit +// This file is generated by rust-protobuf 2.14.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -24,7 +24,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; #[derive(PartialEq,Clone,Default)] pub struct Address { @@ -194,10 +194,7 @@ impl ::protobuf::Message for Address { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -216,7 +213,7 @@ impl ::protobuf::Message for Address { |m: &Address| { &m.public_key_hash }, |m: &mut Address| { &mut m.public_key_hash }, )); - ::protobuf::reflect::MessageDescriptor::new::
( + ::protobuf::reflect::MessageDescriptor::new_pb_name::
( "Address", fields, file_descriptor_proto() @@ -226,10 +223,7 @@ impl ::protobuf::Message for Address { } fn default_instance() -> &'static Address { - static mut instance: ::protobuf::lazy::Lazy
= ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const Address, - }; + static mut instance: ::protobuf::lazy::Lazy
= ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(Address::new) } @@ -252,8 +246,8 @@ impl ::std::fmt::Debug for Address { } impl ::protobuf::reflect::ProtobufValue for Address { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -291,13 +285,10 @@ impl ::protobuf::ProtobufEnum for AccountType { } fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::EnumDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new("AccountType", file_descriptor_proto()) + ::protobuf::reflect::EnumDescriptor::new_pb_name::("AccountType", file_descriptor_proto()) }) } } @@ -313,8 +304,8 @@ impl ::std::default::Default for AccountType { } impl ::protobuf::reflect::ProtobufValue for AccountType { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor()) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) } } @@ -327,9 +318,9 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x01(\x0cR\rpublicKeyHash*q\n\x0bAccountType\x12\x18\n\x14ACCOUNT_TYPE_U\ NKNOWN\x10\0\x12\x12\n\x0ePUBLIC_ACCOUNT\x10\x08\x12\x18\n\x14CONFIDENTI\ AL_ACCOUNT\x10\x10\x12\x1a\n\x16SMART_CONTRACT_ACCOUNT\x10\x18B\x02P\x01\ - J\xe6\x0c\n\x06\x12\x04\x13\0(\x01\n\xdf\x06\n\x01\x0c\x12\x03\x13\0\x12\ - 2\xd4\x06*\n\x20Copyright\x20(c)\x202019\x20Catalyst\x20Network\n\n\x20T\ - his\x20file\x20is\x20part\x20of\x20Catalyst.Network.Protocol.Protobuffs\ + J\xd0\r\n\x06\x12\x04\x13\0(\x01\n\xdf\x06\n\x01\x0c\x12\x03\x13\0\x122\ + \xd4\x06*\n\x20Copyright\x20(c)\x202019\x20Catalyst\x20Network\n\n\x20Th\ + is\x20file\x20is\x20part\x20of\x20Catalyst.Network.Protocol.Protobuffs\ \x20\n\n\x20Cat\ alyst.Network.Protocol.Protobuffs\x20is\x20free\x20software:\x20you\x20c\ an\x20redistribute\x20it\x20and/or\x20modify\n\x20it\x20under\x20the\x20\ @@ -345,39 +336,42 @@ static file_descriptor_proto_data: &'static [u8] = b"\ uld\x20have\x20received\x20a\x20copy\x20of\x20the\x20GNU\x20General\x20P\ ublic\x20License\n\x20along\x20with\x20Catalyst.Network.Protocol.Protobu\ ffs\x20If\x20not,\x20see\x20.\n\n\x08\n\ - \x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\t\n\x02\x03\0\ - \x12\x03\x17\0\x1c\n\t\n\x02\x03\x01\x12\x03\x18\0\x17\n\x08\n\x01\x02\ - \x12\x03\x1a\0\"\n\n\n\x02\x04\0\x12\x04\x1c\0\x20\x01\n\n\n\x03\x04\0\ - \x01\x12\x03\x1c\x08\x0f\n.\n\x04\x04\0\x02\0\x12\x03\x1d\x08-\"!\x20bit\ - \x20signalling\x20the\x20network\x20type\n\n\x0c\n\x05\x04\0\x02\0\x06\ - \x12\x03\x1d\x08\x1b\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1d\x1c(\n\x0c\ - \n\x05\x04\0\x02\0\x03\x12\x03\x1d+,\n1\n\x04\x04\0\x02\x01\x12\x03\x1e\ - \x04!\"$\x20bit\x20signalling\x20the\x20type\x20of\x20account\n\n\x0c\n\ - \x05\x04\0\x02\x01\x06\x12\x03\x1e\x04\x0f\n\x0c\n\x05\x04\0\x02\x01\x01\ - \x12\x03\x1e\x10\x1c\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x1e\x1f\x20\n\ - *\n\x04\x04\0\x02\x02\x12\x03\x1f\x08\"\"\x1d\x20multihash\x20of\x20the\ - \x20public\x20key\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03\x1f\x08\r\n\ - \x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x1f\x0e\x1d\n\x0c\n\x05\x04\0\x02\ - \x02\x03\x12\x03\x1f\x20!\nl\n\x02\x05\0\x12\x04#\0(\x01\x1a`\x20We\x20n\ - eed\x20to\x20leave\x20the\x203\x20first\x20bits\x20for\x20the\x20Network\ - Type\x20and\x20can\x20use\x20the\x20rest\x20for\x20the\x20AccountType\n\ - \n\n\n\x03\x05\0\x01\x12\x03#\x05\x10\n%\n\x04\x05\0\x02\0\x12\x03$\x04\ - \x1d\"\x18\x20Un-known\x20account\x20type.\n\n\x0c\n\x05\x05\0\x02\0\x01\ - \x12\x03$\x04\x18\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03$\x1b\x1c\n#\n\x04\ - \x05\0\x02\x01\x12\x03%\x04\x17\"\x16\x20Public\x20account\x20type.\n\n\ - \x0c\n\x05\x05\0\x02\x01\x01\x12\x03%\x04\x12\n\x0c\n\x05\x05\0\x02\x01\ - \x02\x12\x03%\x15\x16\n)\n\x04\x05\0\x02\x02\x12\x03&\x04\x1e\"\x1c\x20C\ - onfidential\x20account\x20type.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03&\ - \x04\x18\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03&\x1b\x1d\n?\n\x04\x05\0\ - \x02\x03\x12\x03'\x04\x20\"2\x20Smart\x20contract\x20account\x20type\x20\ - {TO\x20BE\x20DEPRECATED}.\x20\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03'\ - \x04\x1a\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03'\x1d\x1fb\x06proto3\ + \x01\x08\x12\x03\x15\0\"\n\x0b\n\x04\x08\xe7\x07\0\x12\x03\x15\0\"\n\x0c\ + \n\x05\x08\xe7\x07\0\x02\x12\x03\x15\x07\x1a\n\r\n\x06\x08\xe7\x07\0\x02\ + \0\x12\x03\x15\x07\x1a\n\x0e\n\x07\x08\xe7\x07\0\x02\0\x01\x12\x03\x15\ + \x07\x1a\n\x0c\n\x05\x08\xe7\x07\0\x03\x12\x03\x15\x1d!\n\t\n\x02\x03\0\ + \x12\x03\x17\x07\x1b\n\t\n\x02\x03\x01\x12\x03\x18\x07\x16\n\x08\n\x01\ + \x02\x12\x03\x1a\x08!\n\n\n\x02\x04\0\x12\x04\x1c\0\x20\x01\n\n\n\x03\ + \x04\0\x01\x12\x03\x1c\x08\x0f\n.\n\x04\x04\0\x02\0\x12\x03\x1d\x08-\"!\ + \x20bit\x20signalling\x20the\x20network\x20type\n\n\r\n\x05\x04\0\x02\0\ + \x04\x12\x04\x1d\x08\x1c\x11\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x1d\x08\ + \x1b\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1d\x1c(\n\x0c\n\x05\x04\0\x02\ + \0\x03\x12\x03\x1d+,\n1\n\x04\x04\0\x02\x01\x12\x03\x1e\x04!\"$\x20bit\ + \x20signalling\x20the\x20type\x20of\x20account\n\n\r\n\x05\x04\0\x02\x01\ + \x04\x12\x04\x1e\x04\x1d-\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03\x1e\x04\ + \x0f\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x1e\x10\x1c\n\x0c\n\x05\x04\0\ + \x02\x01\x03\x12\x03\x1e\x1f\x20\n*\n\x04\x04\0\x02\x02\x12\x03\x1f\x08\ + \"\"\x1d\x20multihash\x20of\x20the\x20public\x20key\n\n\r\n\x05\x04\0\ + \x02\x02\x04\x12\x04\x1f\x08\x1e!\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03\ + \x1f\x08\r\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x1f\x0e\x1d\n\x0c\n\x05\ + \x04\0\x02\x02\x03\x12\x03\x1f\x20!\nl\n\x02\x05\0\x12\x04#\0(\x01\x1a`\ + \x20We\x20need\x20to\x20leave\x20the\x203\x20first\x20bits\x20for\x20the\ + \x20NetworkType\x20and\x20can\x20use\x20the\x20rest\x20for\x20the\x20Acc\ + ountType\n\n\n\n\x03\x05\0\x01\x12\x03#\x05\x10\n%\n\x04\x05\0\x02\0\x12\ + \x03$\x04\x1d\"\x18\x20Un-known\x20account\x20type.\n\n\x0c\n\x05\x05\0\ + \x02\0\x01\x12\x03$\x04\x18\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03$\x1b\x1c\ + \n#\n\x04\x05\0\x02\x01\x12\x03%\x04\x17\"\x16\x20Public\x20account\x20t\ + ype.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03%\x04\x12\n\x0c\n\x05\x05\0\ + \x02\x01\x02\x12\x03%\x15\x16\n)\n\x04\x05\0\x02\x02\x12\x03&\x04\x1e\"\ + \x1c\x20Confidential\x20account\x20type.\n\n\x0c\n\x05\x05\0\x02\x02\x01\ + \x12\x03&\x04\x18\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03&\x1b\x1d\n?\n\ + \x04\x05\0\x02\x03\x12\x03'\x04\x20\"2\x20Smart\x20contract\x20account\ + \x20type\x20{TO\x20BE\x20DEPRECATED}.\x20\n\n\x0c\n\x05\x05\0\x02\x03\ + \x01\x12\x03'\x04\x1a\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03'\x1d\x1fb\ + \x06proto3\ "; -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto, -}; +static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() diff --git a/packages/sdk-rust/src/Cryptography.rs b/packages/sdk-rust/src/Cryptography.rs index 4dbeee8..ba09bb5 100644 --- a/packages/sdk-rust/src/Cryptography.rs +++ b/packages/sdk-rust/src/Cryptography.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.10.1. Do not edit +// This file is generated by rust-protobuf 2.14.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -24,7 +24,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; #[derive(PartialEq,Clone,Default)] pub struct Signature { @@ -195,10 +195,7 @@ impl ::protobuf::Message for Signature { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -212,7 +209,7 @@ impl ::protobuf::Message for Signature { |m: &Signature| { &m.raw_bytes }, |m: &mut Signature| { &mut m.raw_bytes }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "Signature", fields, file_descriptor_proto() @@ -222,10 +219,7 @@ impl ::protobuf::Message for Signature { } fn default_instance() -> &'static Signature { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const Signature, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(Signature::new) } @@ -247,8 +241,8 @@ impl ::std::fmt::Debug for Signature { } impl ::protobuf::reflect::ProtobufValue for Signature { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -384,10 +378,7 @@ impl ::protobuf::Message for SigningContext { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -401,7 +392,7 @@ impl ::protobuf::Message for SigningContext { |m: &SigningContext| { &m.signature_type }, |m: &mut SigningContext| { &mut m.signature_type }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SigningContext", fields, file_descriptor_proto() @@ -411,10 +402,7 @@ impl ::protobuf::Message for SigningContext { } fn default_instance() -> &'static SigningContext { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SigningContext, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SigningContext::new) } @@ -436,8 +424,8 @@ impl ::std::fmt::Debug for SigningContext { } impl ::protobuf::reflect::ProtobufValue for SigningContext { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -664,10 +652,7 @@ impl ::protobuf::Message for SignatureBatch { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -691,7 +676,7 @@ impl ::protobuf::Message for SignatureBatch { |m: &SignatureBatch| { &m.context }, |m: &mut SignatureBatch| { &mut m.context }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SignatureBatch", fields, file_descriptor_proto() @@ -701,10 +686,7 @@ impl ::protobuf::Message for SignatureBatch { } fn default_instance() -> &'static SignatureBatch { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SignatureBatch, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SignatureBatch::new) } @@ -728,8 +710,8 @@ impl ::std::fmt::Debug for SignatureBatch { } impl ::protobuf::reflect::ProtobufValue for SignatureBatch { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -773,13 +755,10 @@ impl ::protobuf::ProtobufEnum for SignatureType { } fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::EnumDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new("SignatureType", file_descriptor_proto()) + ::protobuf::reflect::EnumDescriptor::new_pb_name::("SignatureType", file_descriptor_proto()) }) } } @@ -795,8 +774,8 @@ impl ::std::default::Default for SignatureType { } impl ::protobuf::reflect::ProtobufValue for SignatureType { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor()) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) } } @@ -852,13 +831,10 @@ impl ::protobuf::ProtobufEnum for ErrorCode { } fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::EnumDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new("ErrorCode", file_descriptor_proto()) + ::protobuf::reflect::EnumDescriptor::new_pb_name::("ErrorCode", file_descriptor_proto()) }) } } @@ -874,8 +850,8 @@ impl ::std::default::Default for ErrorCode { } impl ::protobuf::reflect::ProtobufValue for ErrorCode { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor()) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) } } @@ -900,7 +876,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ SIGNATURE_VERIFICATION_FAILURE\x10\x04\x12\x1a\n\x16INVALID_CONTEXT_LENG\ TH\x10\x05\x12\x19\n\x15INVALID_BATCH_MESSAGE\x10\x06\x12\x1b\n\x17ARRAY\ S_NOT_EQUAL_LENGTH\x10\x07\x12\x1e\n\x1aBATCH_VERIFICATION_FAILURE\x10\ - \x08\x12\r\n\x08NO_ERROR\x10\xa2\x03B\x02P\x01J\x8e\x19\n\x06\x12\x04\ + \x08\x12\r\n\x08NO_ERROR\x10\xa2\x03B\x02P\x01J\x96\x1a\n\x06\x12\x04\ \x13\0B\x01\n\xdf\x06\n\x01\x0c\x12\x03\x13\0\x122\xd4\x06*\n\x20Copyrig\ ht\x20(c)\x202019\x20Catalyst\x20Network\n\n\x20This\x20file\x20is\x20pa\ rt\x20of\x20Catalyst.Network.Protocol.Protobuffs\x20.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\ - \n\t\n\x02\x08\n\x12\x03\x15\0\"\n\t\n\x02\x03\0\x12\x03\x17\0\x17\n\x08\ - \n\x01\x02\x12\x03\x19\0'\n\n\n\x02\x04\0\x12\x04\x1b\0\x1e\x01\n\n\n\ - \x03\x04\0\x01\x12\x03\x1b\x08\x11\n%\n\x04\x04\0\x02\0\x12\x03\x1c\x08+\ - \"\x18\x20system\x20domain\x20context.\n\n\x0c\n\x05\x04\0\x02\0\x06\x12\ - \x03\x1c\x08\x16\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1c\x17&\n\x0c\n\ - \x05\x04\0\x02\0\x03\x12\x03\x1c)*\n\x20\n\x04\x04\0\x02\x01\x12\x03\x1d\ - \x08\x1c\"\x13\x20signature\x20digest.\n\n\x0c\n\x05\x04\0\x02\x01\x05\ - \x12\x03\x1d\x08\r\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x1d\x0e\x17\n\ - \x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x1d\x1a\x1b\n+\n\x02\x05\0\x12\x04!\ - \0(\x01\x1a\x1f\x20Represents\x20domains\x20of\x20a\x20node.\n\n\n\n\x03\ - \x05\0\x01\x12\x03!\x05\x12\n!\n\x04\x05\0\x02\0\x12\x03\"\x08#\"\x14\ - \x20Unknown\x20signature.\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03\"\x08\ - \x1e\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\"!\"\n2\n\x04\x05\0\x02\x01\x12\ - \x03#\x08\x1f\"%\x20Signatures\x20for\x20public\x20transactions.\n\n\x0c\ - \n\x05\x05\0\x02\x01\x01\x12\x03#\x08\x1a\n\x0c\n\x05\x05\0\x02\x01\x02\ - \x12\x03#\x1d\x1e\n8\n\x04\x05\0\x02\x02\x12\x03$\x08%\"+\x20Signatures\ - \x20for\x20confidential\x20transactions.\n\n\x0c\n\x05\x05\0\x02\x02\x01\ - \x12\x03$\x08\x20\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03$#$\n+\n\x04\x05\ - \0\x02\x03\x12\x03%\x08\x19\"\x1e\x20Signatures\x20for\x20rpc\x20message\ - s.\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03%\x08\x14\n\x0c\n\x05\x05\0\ - \x02\x03\x02\x12\x03%\x17\x18\n5\n\x04\x05\0\x02\x04\x12\x03&\x08\x1a\"(\ - \x20Signatures\x20for\x20peer\x20protocol\x20messages.\n\n\x0c\n\x05\x05\ - \0\x02\x04\x01\x12\x03&\x08\x15\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03&\ - \x18\x19\n<\n\x04\x05\0\x02\x05\x12\x03'\x08\x19\"/\x20Signatures\x20for\ - \x20messages\x20in\x20the\x20wen3\x20provider.\n\n\x0c\n\x05\x05\0\x02\ - \x05\x01\x12\x03'\x08\x14\n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03'\x17\x18\ - \n\n\n\x02\x04\x01\x12\x04*\0-\x01\n\n\n\x03\x04\x01\x01\x12\x03*\x08\ - \x16\n9\n\x04\x04\x01\x02\0\x12\x03+\x08-\",\x20is\x20the\x20network\x20\ - enum\x20(mainet\x20/\x20devnet\x20etc).\n\n\x0c\n\x05\x04\x01\x02\0\x06\ - \x12\x03+\x08\x1b\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03+\x1c(\n\x0c\n\ - \x05\x04\x01\x02\0\x03\x12\x03++,\na\n\x04\x04\x01\x02\x01\x12\x03,\x08)\ - \"T\x20contains\x20info\x20on\x20whether\x20the\x20signature\x20is\x20fo\ - r\x20a\x20protocol\x20message\x20or\x20a\x20transaction.\n\n\x0c\n\x05\ - \x04\x01\x02\x01\x06\x12\x03,\x08\x15\n\x0c\n\x05\x04\x01\x02\x01\x01\ - \x12\x03,\x16$\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03,'(\n\n\n\x02\x05\ - \x01\x12\x04/\0:\x01\n\n\n\x03\x05\x01\x01\x12\x03/\x05\x0e\n\x1d\n\x04\ - \x05\x01\x02\0\x12\x030\x08\x1f\"\x10\x20Unknown\x20error.\n\n\x0c\n\x05\ - \x05\x01\x02\0\x01\x12\x030\x08\x1a\n\x0c\n\x05\x05\x01\x02\0\x02\x12\ - \x030\x1d\x1e\nX\n\x04\x05\x01\x02\x01\x12\x031\x08\x1e\"K\x20Signature\ - \x20is\x20of\x20incorrect\x20length\x20or\x20does\x20not\x20correspond\ - \x20to\x20a\x20valid\x20point.\n\n\x0c\n\x05\x05\x01\x02\x01\x01\x12\x03\ - 1\x08\x19\n\x0c\n\x05\x05\x01\x02\x01\x02\x12\x031\x1c\x1d\n\\\n\x04\x05\ - \x01\x02\x02\x12\x032\x08\x1f\"O\x20Public\x20key\x20is\x20of\x20incorre\ - ct\x20length\x20or\x20cannot\x20be\x20decompressed\x20to\x20a\x20valid\ - \x20point.\n\n\x0c\n\x05\x05\x01\x02\x02\x01\x12\x032\x08\x1a\n\x0c\n\ - \x05\x05\x01\x02\x02\x02\x12\x032\x1d\x1e\n2\n\x04\x05\x01\x02\x03\x12\ - \x033\x08\x20\"%\x20Private\x20key\x20is\x20of\x20incorrect\x20length.\n\ - \n\x0c\n\x05\x05\x01\x02\x03\x01\x12\x033\x08\x1b\n\x0c\n\x05\x05\x01\ - \x02\x03\x02\x12\x033\x1e\x1f\nM\n\x04\x05\x01\x02\x04\x12\x034\x02%\"@\ - \x20Signature\x20cannot\x20be\x20verified\x20against\x20the\x20provided\ - \x20information.\n\n\x0c\n\x05\x05\x01\x02\x04\x01\x12\x034\x02\x20\n\ - \x0c\n\x05\x05\x01\x02\x04\x02\x12\x034#$\n9\n\x04\x05\x01\x02\x05\x12\ - \x035\x02\x1d\",\x20Context\x20exceed\x20the\x20maximum\x20allowed\x20le\ - ngth.\n\n\x0c\n\x05\x05\x01\x02\x05\x01\x12\x035\x02\x18\n\x0c\n\x05\x05\ - \x01\x02\x05\x02\x12\x035\x1b\x1c\n8\n\x04\x05\x01\x02\x06\x12\x036\x08\ - \"\"+\x20Unable\x20to\x20convert\x20message\x20to\x20valid\x20data.\x20\ - \n\n\x0c\n\x05\x05\x01\x02\x06\x01\x12\x036\x08\x1d\n\x0c\n\x05\x05\x01\ - \x02\x06\x02\x12\x036\x20!\np\n\x04\x05\x01\x02\x07\x12\x037\x08$\"c\x20\ - Cannot\x20perform\x20batch\x20verification\x20as\x20an\x20unequal\x20num\ - ber\x20of\x20messages/signatures/keys\x20were\x20provided.\n\n\x0c\n\x05\ - \x05\x01\x02\x07\x01\x12\x037\x08\x1f\n\x0c\n\x05\x05\x01\x02\x07\x02\ - \x12\x037\"#\n9\n\x04\x05\x01\x02\x08\x12\x038\x08'\",\x20One\x20or\x20m\ - ore\x20signatures\x20cannot\x20be\x20verified.\n\n\x0c\n\x05\x05\x01\x02\ - \x08\x01\x12\x038\x08\"\n\x0c\n\x05\x05\x01\x02\x08\x02\x12\x038%&\n(\n\ - \x04\x05\x01\x02\t\x12\x039\x08\x17\"\x1b\x20No\x20error\x20(just\x20a\ - \x20teapot).\n\n\x0c\n\x05\x05\x01\x02\t\x01\x12\x039\x08\x10\n\x0c\n\ - \x05\x05\x01\x02\t\x02\x12\x039\x13\x16\n=\n\x02\x04\x02\x12\x04=\0B\x01\ - \x1a1Holds\x20data\x20for\x20batch\x20verification\x20of\x20signatures.\ - \n\n\n\n\x03\x04\x02\x01\x12\x03=\x08\x16\n\x0b\n\x04\x04\x02\x02\0\x12\ - \x03>\x08&\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03>\x08\x10\n\x0c\n\x05\ - \x04\x02\x02\0\x05\x12\x03>\x11\x16\n\x0c\n\x05\x04\x02\x02\0\x01\x12\ - \x03>\x17!\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03>$%\n\x0b\n\x04\x04\x02\ - \x02\x01\x12\x03?\x08'\n\x0c\n\x05\x04\x02\x02\x01\x04\x12\x03?\x08\x10\ - \n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03?\x11\x16\n\x0c\n\x05\x04\x02\ - \x02\x01\x01\x12\x03?\x17\"\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03?%&\n\ - \x0b\n\x04\x04\x02\x02\x02\x12\x03@\x08$\n\x0c\n\x05\x04\x02\x02\x02\x04\ - \x12\x03@\x08\x10\n\x0c\n\x05\x04\x02\x02\x02\x05\x12\x03@\x11\x16\n\x0c\ - \n\x05\x04\x02\x02\x02\x01\x12\x03@\x17\x1f\n\x0c\n\x05\x04\x02\x02\x02\ - \x03\x12\x03@\"#\n\x0b\n\x04\x04\x02\x02\x03\x12\x03A\x08\x1a\n\x0c\n\ - \x05\x04\x02\x02\x03\x05\x12\x03A\x08\r\n\x0c\n\x05\x04\x02\x02\x03\x01\ - \x12\x03A\x0e\x15\n\x0c\n\x05\x04\x02\x02\x03\x03\x12\x03A\x18\x19b\x06p\ - roto3\ + \n\x0b\n\x04\x08\xe7\x07\0\x12\x03\x15\0\"\n\x0c\n\x05\x08\xe7\x07\0\x02\ + \x12\x03\x15\x07\x1a\n\r\n\x06\x08\xe7\x07\0\x02\0\x12\x03\x15\x07\x1a\n\ + \x0e\n\x07\x08\xe7\x07\0\x02\0\x01\x12\x03\x15\x07\x1a\n\x0c\n\x05\x08\ + \xe7\x07\0\x03\x12\x03\x15\x1d!\n\t\n\x02\x03\0\x12\x03\x17\x07\x16\n\ + \x08\n\x01\x02\x12\x03\x19\x08&\n\n\n\x02\x04\0\x12\x04\x1b\0\x1e\x01\n\ + \n\n\x03\x04\0\x01\x12\x03\x1b\x08\x11\n%\n\x04\x04\0\x02\0\x12\x03\x1c\ + \x08+\"\x18\x20system\x20domain\x20context.\n\n\r\n\x05\x04\0\x02\0\x04\ + \x12\x04\x1c\x08\x1b\x13\n\x0c\n\x05\x04\0\x02\0\x06\x12\x03\x1c\x08\x16\ + \n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1c\x17&\n\x0c\n\x05\x04\0\x02\0\ + \x03\x12\x03\x1c)*\n\x20\n\x04\x04\0\x02\x01\x12\x03\x1d\x08\x1c\"\x13\ + \x20signature\x20digest.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\x1d\x08\ + \x1c+\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x1d\x08\r\n\x0c\n\x05\x04\0\ + \x02\x01\x01\x12\x03\x1d\x0e\x17\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\ + \x1d\x1a\x1b\n+\n\x02\x05\0\x12\x04!\0(\x01\x1a\x1f\x20Represents\x20dom\ + ains\x20of\x20a\x20node.\n\n\n\n\x03\x05\0\x01\x12\x03!\x05\x12\n!\n\x04\ + \x05\0\x02\0\x12\x03\"\x08#\"\x14\x20Unknown\x20signature.\n\n\x0c\n\x05\ + \x05\0\x02\0\x01\x12\x03\"\x08\x1e\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\"\ + !\"\n2\n\x04\x05\0\x02\x01\x12\x03#\x08\x1f\"%\x20Signatures\x20for\x20p\ + ublic\x20transactions.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03#\x08\x1a\ + \n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03#\x1d\x1e\n8\n\x04\x05\0\x02\x02\ + \x12\x03$\x08%\"+\x20Signatures\x20for\x20confidential\x20transactions.\ + \n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03$\x08\x20\n\x0c\n\x05\x05\0\x02\ + \x02\x02\x12\x03$#$\n+\n\x04\x05\0\x02\x03\x12\x03%\x08\x19\"\x1e\x20Sig\ + natures\x20for\x20rpc\x20messages.\n\n\x0c\n\x05\x05\0\x02\x03\x01\x12\ + \x03%\x08\x14\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03%\x17\x18\n5\n\x04\ + \x05\0\x02\x04\x12\x03&\x08\x1a\"(\x20Signatures\x20for\x20peer\x20proto\ + col\x20messages.\n\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03&\x08\x15\n\x0c\ + \n\x05\x05\0\x02\x04\x02\x12\x03&\x18\x19\n<\n\x04\x05\0\x02\x05\x12\x03\ + '\x08\x19\"/\x20Signatures\x20for\x20messages\x20in\x20the\x20wen3\x20pr\ + ovider.\n\n\x0c\n\x05\x05\0\x02\x05\x01\x12\x03'\x08\x14\n\x0c\n\x05\x05\ + \0\x02\x05\x02\x12\x03'\x17\x18\n\n\n\x02\x04\x01\x12\x04*\0-\x01\n\n\n\ + \x03\x04\x01\x01\x12\x03*\x08\x16\n9\n\x04\x04\x01\x02\0\x12\x03+\x08-\"\ + ,\x20is\x20the\x20network\x20enum\x20(mainet\x20/\x20devnet\x20etc).\n\n\ + \r\n\x05\x04\x01\x02\0\x04\x12\x04+\x08*\x18\n\x0c\n\x05\x04\x01\x02\0\ + \x06\x12\x03+\x08\x1b\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03+\x1c(\n\x0c\ + \n\x05\x04\x01\x02\0\x03\x12\x03++,\na\n\x04\x04\x01\x02\x01\x12\x03,\ + \x08)\"T\x20contains\x20info\x20on\x20whether\x20the\x20signature\x20is\ + \x20for\x20a\x20protocol\x20message\x20or\x20a\x20transaction.\n\n\r\n\ + \x05\x04\x01\x02\x01\x04\x12\x04,\x08+-\n\x0c\n\x05\x04\x01\x02\x01\x06\ + \x12\x03,\x08\x15\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03,\x16$\n\x0c\n\ + \x05\x04\x01\x02\x01\x03\x12\x03,'(\n\n\n\x02\x05\x01\x12\x04/\0:\x01\n\ + \n\n\x03\x05\x01\x01\x12\x03/\x05\x0e\n\x1d\n\x04\x05\x01\x02\0\x12\x030\ + \x08\x1f\"\x10\x20Unknown\x20error.\n\n\x0c\n\x05\x05\x01\x02\0\x01\x12\ + \x030\x08\x1a\n\x0c\n\x05\x05\x01\x02\0\x02\x12\x030\x1d\x1e\nX\n\x04\ + \x05\x01\x02\x01\x12\x031\x08\x1e\"K\x20Signature\x20is\x20of\x20incorre\ + ct\x20length\x20or\x20does\x20not\x20correspond\x20to\x20a\x20valid\x20p\ + oint.\n\n\x0c\n\x05\x05\x01\x02\x01\x01\x12\x031\x08\x19\n\x0c\n\x05\x05\ + \x01\x02\x01\x02\x12\x031\x1c\x1d\n\\\n\x04\x05\x01\x02\x02\x12\x032\x08\ + \x1f\"O\x20Public\x20key\x20is\x20of\x20incorrect\x20length\x20or\x20can\ + not\x20be\x20decompressed\x20to\x20a\x20valid\x20point.\n\n\x0c\n\x05\ + \x05\x01\x02\x02\x01\x12\x032\x08\x1a\n\x0c\n\x05\x05\x01\x02\x02\x02\ + \x12\x032\x1d\x1e\n2\n\x04\x05\x01\x02\x03\x12\x033\x08\x20\"%\x20Privat\ + e\x20key\x20is\x20of\x20incorrect\x20length.\n\n\x0c\n\x05\x05\x01\x02\ + \x03\x01\x12\x033\x08\x1b\n\x0c\n\x05\x05\x01\x02\x03\x02\x12\x033\x1e\ + \x1f\nM\n\x04\x05\x01\x02\x04\x12\x034\x02%\"@\x20Signature\x20cannot\ + \x20be\x20verified\x20against\x20the\x20provided\x20information.\n\n\x0c\ + \n\x05\x05\x01\x02\x04\x01\x12\x034\x02\x20\n\x0c\n\x05\x05\x01\x02\x04\ + \x02\x12\x034#$\n9\n\x04\x05\x01\x02\x05\x12\x035\x02\x1d\",\x20Context\ + \x20exceed\x20the\x20maximum\x20allowed\x20length.\n\n\x0c\n\x05\x05\x01\ + \x02\x05\x01\x12\x035\x02\x18\n\x0c\n\x05\x05\x01\x02\x05\x02\x12\x035\ + \x1b\x1c\n8\n\x04\x05\x01\x02\x06\x12\x036\x08\"\"+\x20Unable\x20to\x20c\ + onvert\x20message\x20to\x20valid\x20data.\x20\n\n\x0c\n\x05\x05\x01\x02\ + \x06\x01\x12\x036\x08\x1d\n\x0c\n\x05\x05\x01\x02\x06\x02\x12\x036\x20!\ + \np\n\x04\x05\x01\x02\x07\x12\x037\x08$\"c\x20Cannot\x20perform\x20batch\ + \x20verification\x20as\x20an\x20unequal\x20number\x20of\x20messages/sign\ + atures/keys\x20were\x20provided.\n\n\x0c\n\x05\x05\x01\x02\x07\x01\x12\ + \x037\x08\x1f\n\x0c\n\x05\x05\x01\x02\x07\x02\x12\x037\"#\n9\n\x04\x05\ + \x01\x02\x08\x12\x038\x08'\",\x20One\x20or\x20more\x20signatures\x20cann\ + ot\x20be\x20verified.\n\n\x0c\n\x05\x05\x01\x02\x08\x01\x12\x038\x08\"\n\ + \x0c\n\x05\x05\x01\x02\x08\x02\x12\x038%&\n(\n\x04\x05\x01\x02\t\x12\x03\ + 9\x08\x17\"\x1b\x20No\x20error\x20(just\x20a\x20teapot).\n\n\x0c\n\x05\ + \x05\x01\x02\t\x01\x12\x039\x08\x10\n\x0c\n\x05\x05\x01\x02\t\x02\x12\ + \x039\x13\x16\n=\n\x02\x04\x02\x12\x04=\0B\x01\x1a1Holds\x20data\x20for\ + \x20batch\x20verification\x20of\x20signatures.\n\n\n\n\x03\x04\x02\x01\ + \x12\x03=\x08\x16\n\x0b\n\x04\x04\x02\x02\0\x12\x03>\x08&\n\x0c\n\x05\ + \x04\x02\x02\0\x04\x12\x03>\x08\x10\n\x0c\n\x05\x04\x02\x02\0\x05\x12\ + \x03>\x11\x16\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03>\x17!\n\x0c\n\x05\ + \x04\x02\x02\0\x03\x12\x03>$%\n\x0b\n\x04\x04\x02\x02\x01\x12\x03?\x08'\ + \n\x0c\n\x05\x04\x02\x02\x01\x04\x12\x03?\x08\x10\n\x0c\n\x05\x04\x02\ + \x02\x01\x05\x12\x03?\x11\x16\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03?\ + \x17\"\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03?%&\n\x0b\n\x04\x04\x02\ + \x02\x02\x12\x03@\x08$\n\x0c\n\x05\x04\x02\x02\x02\x04\x12\x03@\x08\x10\ + \n\x0c\n\x05\x04\x02\x02\x02\x05\x12\x03@\x11\x16\n\x0c\n\x05\x04\x02\ + \x02\x02\x01\x12\x03@\x17\x1f\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03@\"\ + #\n\x0b\n\x04\x04\x02\x02\x03\x12\x03A\x08\x1a\n\r\n\x05\x04\x02\x02\x03\ + \x04\x12\x04A\x08@$\n\x0c\n\x05\x04\x02\x02\x03\x05\x12\x03A\x08\r\n\x0c\ + \n\x05\x04\x02\x02\x03\x01\x12\x03A\x0e\x15\n\x0c\n\x05\x04\x02\x02\x03\ + \x03\x12\x03A\x18\x19b\x06proto3\ "; -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto, -}; +static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() diff --git a/packages/sdk-rust/src/Deltas.rs b/packages/sdk-rust/src/Deltas.rs index c4d2eae..4006a83 100644 --- a/packages/sdk-rust/src/Deltas.rs +++ b/packages/sdk-rust/src/Deltas.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.10.1. Do not edit +// This file is generated by rust-protobuf 2.14.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -24,7 +24,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; #[derive(PartialEq,Clone,Default)] pub struct DeltaIndex { @@ -173,10 +173,7 @@ impl ::protobuf::Message for DeltaIndex { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -190,7 +187,7 @@ impl ::protobuf::Message for DeltaIndex { |m: &DeltaIndex| { &m.cid }, |m: &mut DeltaIndex| { &mut m.cid }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "DeltaIndex", fields, file_descriptor_proto() @@ -200,10 +197,7 @@ impl ::protobuf::Message for DeltaIndex { } fn default_instance() -> &'static DeltaIndex { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const DeltaIndex, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(DeltaIndex::new) } @@ -225,8 +219,8 @@ impl ::std::fmt::Debug for DeltaIndex { } impl ::protobuf::reflect::ProtobufValue for DeltaIndex { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -242,6 +236,7 @@ pub struct Delta { pub coinbase_entries: ::protobuf::RepeatedField, pub state_root: ::std::vec::Vec, pub delta_number: i64, + pub gas_used: i64, // special fields pub unknown_fields: ::protobuf::UnknownFields, pub cached_size: ::protobuf::CachedSize, @@ -484,6 +479,21 @@ impl Delta { pub fn set_delta_number(&mut self, v: i64) { self.delta_number = v; } + + // int64 gas_used = 10; + + + pub fn get_gas_used(&self) -> i64 { + self.gas_used + } + pub fn clear_gas_used(&mut self) { + self.gas_used = 0; + } + + // Param is passed by value, moved + pub fn set_gas_used(&mut self, v: i64) { + self.gas_used = v; + } } impl ::protobuf::Message for Delta { @@ -546,6 +556,13 @@ impl ::protobuf::Message for Delta { let tmp = is.read_int64()?; self.delta_number = tmp; }, + 10 => { + if wire_type != ::protobuf::wire_format::WireTypeVarint { + return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); + } + let tmp = is.read_int64()?; + self.gas_used = tmp; + }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; }, @@ -589,6 +606,9 @@ impl ::protobuf::Message for Delta { if self.delta_number != 0 { my_size += ::protobuf::rt::value_size(9, self.delta_number, ::protobuf::wire_format::WireTypeVarint); } + if self.gas_used != 0 { + my_size += ::protobuf::rt::value_size(10, self.gas_used, ::protobuf::wire_format::WireTypeVarint); + } my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); self.cached_size.set(my_size); my_size @@ -630,6 +650,9 @@ impl ::protobuf::Message for Delta { if self.delta_number != 0 { os.write_int64(9, self.delta_number)?; } + if self.gas_used != 0 { + os.write_int64(10, self.gas_used)?; + } os.write_unknown_fields(self.get_unknown_fields())?; ::std::result::Result::Ok(()) } @@ -665,10 +688,7 @@ impl ::protobuf::Message for Delta { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -717,7 +737,12 @@ impl ::protobuf::Message for Delta { |m: &Delta| { &m.delta_number }, |m: &mut Delta| { &mut m.delta_number }, )); - ::protobuf::reflect::MessageDescriptor::new::( + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( + "gas_used", + |m: &Delta| { &m.gas_used }, + |m: &mut Delta| { &mut m.gas_used }, + )); + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "Delta", fields, file_descriptor_proto() @@ -727,10 +752,7 @@ impl ::protobuf::Message for Delta { } fn default_instance() -> &'static Delta { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const Delta, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(Delta::new) } @@ -748,6 +770,7 @@ impl ::protobuf::Clear for Delta { self.coinbase_entries.clear(); self.state_root.clear(); self.delta_number = 0; + self.gas_used = 0; self.unknown_fields.clear(); } } @@ -759,8 +782,8 @@ impl ::std::fmt::Debug for Delta { } impl ::protobuf::reflect::ProtobufValue for Delta { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -768,7 +791,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \n\x0cDeltas.proto\x12\x18Catalyst.Protocol.Deltas\x1a\x11Transaction.pr\ oto\x1a\x1fgoogle/protobuf/timestamp.proto\"6\n\nDeltaIndex\x12\x16\n\ \x06height\x18\x01\x20\x01(\rR\x06height\x12\x10\n\x03cid\x18\x02\x20\ - \x01(\x0cR\x03cid\"\x8e\x04\n\x05Delta\x125\n\x17previous_delta_dfs_hash\ + \x01(\x0cR\x03cid\"\xa9\x04\n\x05Delta\x125\n\x17previous_delta_dfs_hash\ \x18\x01\x20\x01(\x0cR\x14previousDeltaDfsHash\x12\x1f\n\x0bmerkle_root\ \x18\x02\x20\x01(\x0cR\nmerkleRoot\x12\x1f\n\x0bmerkle_poda\x18\x03\x20\ \x01(\x0cR\nmerklePoda\x129\n\ntime_stamp\x18\x04\x20\x01(\x0b2\x1a.goog\ @@ -778,71 +801,81 @@ static file_descriptor_proto_data: &'static [u8] = b"\ .Transaction.ConfidentialEntryR\x13confidentialEntries\x12W\n\x10coinbas\ e_entries\x18\x07\x20\x03(\x0b2,.Catalyst.Protocol.Transaction.CoinbaseE\ ntryR\x0fcoinbaseEntries\x12\x1d\n\nstate_root\x18\x08\x20\x01(\x0cR\tst\ - ateRoot\x12!\n\x0cdelta_number\x18\t\x20\x01(\x03R\x0bdeltaNumberB\x02P\ - \x01J\x9c\x0e\n\x06\x12\x04\x13\0+\x01\n\xdf\x06\n\x01\x0c\x12\x03\x13\0\ - \x122\xd4\x06*\n\x20Copyright\x20(c)\x202019\x20Catalyst\x20Network\n\n\ - \x20This\x20file\x20is\x20part\x20of\x20Catalyst.Network.Protocol.Protob\ - uffs\x20\n\n\ - \x20Catalyst.Network.Protocol.Protobuffs\x20is\x20free\x20software:\x20y\ - ou\x20can\x20redistribute\x20it\x20and/or\x20modify\n\x20it\x20under\x20\ - the\x20terms\x20of\x20the\x20GNU\x20General\x20Public\x20License\x20as\ - \x20published\x20by\n\x20the\x20Free\x20Software\x20Foundation,\x20eithe\ - r\x20version\x202\x20of\x20the\x20License,\x20or\n\x20(at\x20your\x20opt\ - ion)\x20any\x20later\x20version.\n\x20\n\x20Catalyst.Network.Protocol.Pr\ - otobuffs\x20is\x20distributed\x20in\x20the\x20hope\x20that\x20it\x20will\ - \x20be\x20useful,\n\x20but\x20WITHOUT\x20ANY\x20WARRANTY;\x20without\x20\ - even\x20the\x20implied\x20warranty\x20of\n\x20MERCHANTABILITY\x20or\x20F\ - ITNESS\x20FOR\x20A\x20PARTICULAR\x20PURPOSE.\x20See\x20the\n\x20GNU\x20G\ - eneral\x20Public\x20License\x20for\x20more\x20details.\n\x20\n\x20You\ - \x20should\x20have\x20received\x20a\x20copy\x20of\x20the\x20GNU\x20Gener\ - al\x20Public\x20License\n\x20along\x20with\x20Catalyst.Network.Protocol.\ - Protobuffs\x20If\x20not,\x20see\x20.\n\n\ - \x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\t\n\x02\ - \x03\0\x12\x03\x17\0\x1b\n\t\n\x02\x03\x01\x12\x03\x18\0)\n\x08\n\x01\ - \x02\x12\x03\x1a\0!\n\n\n\x02\x04\0\x12\x04\x1c\0\x1f\x01\n\n\n\x03\x04\ - \0\x01\x12\x03\x1c\x08\x12\n\x0b\n\x04\x04\0\x02\0\x12\x03\x1d\x08\x1a\n\ - \x0c\n\x05\x04\0\x02\0\x05\x12\x03\x1d\x08\x0e\n\x0c\n\x05\x04\0\x02\0\ - \x01\x12\x03\x1d\x0f\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1d\x18\x19\ - \n\x0b\n\x04\x04\0\x02\x01\x12\x03\x1e\x08\x16\n\x0c\n\x05\x04\0\x02\x01\ - \x05\x12\x03\x1e\x08\r\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x1e\x0e\x11\ - \n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x1e\x14\x15\n\n\n\x02\x04\x01\x12\ - \x04!\0+\x01\n\n\n\x03\x04\x01\x01\x12\x03!\x08\r\nH\n\x04\x04\x01\x02\0\ - \x12\x03\"\x08*\";\x20\x20address\x20for\x20the\x20content\x20of\x20the\ - \x20previous\x20delta\x20on\x20the\x20DFS\n\n\x0c\n\x05\x04\x01\x02\0\ - \x05\x12\x03\"\x08\r\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\"\x0e%\n\x0c\ - \n\x05\x04\x01\x02\0\x03\x12\x03\"()\n\x0b\n\x04\x04\x01\x02\x01\x12\x03\ - #\x08\x1e\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03#\x08\r\n\x0c\n\x05\x04\ - \x01\x02\x01\x01\x12\x03#\x0e\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\ - \x03#\x1c\x1d\n=\n\x04\x04\x01\x02\x02\x12\x03$\x08\x1e\"0\x20proof\x20o\ - f\x20delegated\x20authority\x20for\x20active\x20wokers\n\n\x0c\n\x05\x04\ - \x01\x02\x02\x05\x12\x03$\x08\r\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03$\ - \x0e\x19\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03$\x1c\x1d\n\x0b\n\x04\ - \x04\x01\x02\x03\x12\x03%\x081\n\x0c\n\x05\x04\x01\x02\x03\x06\x12\x03%\ - \x08!\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03%\",\n\x0c\n\x05\x04\x01\ - \x02\x03\x03\x12\x03%/0\n\x0b\n\x04\x04\x01\x02\x04\x12\x03&\x08<\n\x0c\ - \n\x05\x04\x01\x02\x04\x04\x12\x03&\x08\x10\n\x0c\n\x05\x04\x01\x02\x04\ - \x06\x12\x03&\x11(\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03&)7\n\x0c\n\ - \x05\x04\x01\x02\x04\x03\x12\x03&:;\n\x0b\n\x04\x04\x01\x02\x05\x12\x03'\ - \x08H\n\x0c\n\x05\x04\x01\x02\x05\x04\x12\x03'\x08\x10\n\x0c\n\x05\x04\ - \x01\x02\x05\x06\x12\x03'\x11.\n\x0c\n\x05\x04\x01\x02\x05\x01\x12\x03'/\ - C\n\x0c\n\x05\x04\x01\x02\x05\x03\x12\x03'FG\n$\n\x04\x04\x01\x02\x06\ - \x12\x03(\x08@\"\x17\x20one\x20per\x20active\x20worker\n\n\x0c\n\x05\x04\ - \x01\x02\x06\x04\x12\x03(\x08\x10\n\x0c\n\x05\x04\x01\x02\x06\x06\x12\ - \x03(\x11*\n\x0c\n\x05\x04\x01\x02\x06\x01\x12\x03(+;\n\x0c\n\x05\x04\ - \x01\x02\x06\x03\x12\x03(>?\n)\n\x04\x04\x01\x02\x07\x12\x03)\x08\x1d\"\ - \x1c\x20the\x20hash\x20of\x20the\x20state\x20root\n\n\x0c\n\x05\x04\x01\ - \x02\x07\x05\x12\x03)\x08\r\n\x0c\n\x05\x04\x01\x02\x07\x01\x12\x03)\x0e\ - \x18\n\x0c\n\x05\x04\x01\x02\x07\x03\x12\x03)\x1b\x1c\n+\n\x04\x04\x01\ - \x02\x08\x12\x03*\x08\x1f\"\x1e\x20the\x20consecutive\x20delta\x20number\ - \n\n\x0c\n\x05\x04\x01\x02\x08\x05\x12\x03*\x08\r\n\x0c\n\x05\x04\x01\ - \x02\x08\x01\x12\x03*\x0e\x1a\n\x0c\n\x05\x04\x01\x02\x08\x03\x12\x03*\ - \x1d\x1eb\x06proto3\ + ateRoot\x12!\n\x0cdelta_number\x18\t\x20\x01(\x03R\x0bdeltaNumber\x12\ + \x19\n\x08gas_used\x18\n\x20\x01(\x03R\x07gasUsedB\x02P\x01J\xb4\x10\n\ + \x06\x12\x04\x13\0,\x01\n\xdf\x06\n\x01\x0c\x12\x03\x13\0\x122\xd4\x06*\ + \n\x20Copyright\x20(c)\x202019\x20Catalyst\x20Network\n\n\x20This\x20fil\ + e\x20is\x20part\x20of\x20Catalyst.Network.Protocol.Protobuffs\x20\n\n\x20Catalyst.Netwo\ + rk.Protocol.Protobuffs\x20is\x20free\x20software:\x20you\x20can\x20redis\ + tribute\x20it\x20and/or\x20modify\n\x20it\x20under\x20the\x20terms\x20of\ + \x20the\x20GNU\x20General\x20Public\x20License\x20as\x20published\x20by\ + \n\x20the\x20Free\x20Software\x20Foundation,\x20either\x20version\x202\ + \x20of\x20the\x20License,\x20or\n\x20(at\x20your\x20option)\x20any\x20la\ + ter\x20version.\n\x20\n\x20Catalyst.Network.Protocol.Protobuffs\x20is\ + \x20distributed\x20in\x20the\x20hope\x20that\x20it\x20will\x20be\x20usef\ + ul,\n\x20but\x20WITHOUT\x20ANY\x20WARRANTY;\x20without\x20even\x20the\ + \x20implied\x20warranty\x20of\n\x20MERCHANTABILITY\x20or\x20FITNESS\x20F\ + OR\x20A\x20PARTICULAR\x20PURPOSE.\x20See\x20the\n\x20GNU\x20General\x20P\ + ublic\x20License\x20for\x20more\x20details.\n\x20\n\x20You\x20should\x20\ + have\x20received\x20a\x20copy\x20of\x20the\x20GNU\x20General\x20Public\ + \x20License\n\x20along\x20with\x20Catalyst.Network.Protocol.Protobuffs\ + \x20If\x20not,\x20see\x20.\n\n\x08\n\x01\ + \x08\x12\x03\x15\0\"\n\x0b\n\x04\x08\xe7\x07\0\x12\x03\x15\0\"\n\x0c\n\ + \x05\x08\xe7\x07\0\x02\x12\x03\x15\x07\x1a\n\r\n\x06\x08\xe7\x07\0\x02\0\ + \x12\x03\x15\x07\x1a\n\x0e\n\x07\x08\xe7\x07\0\x02\0\x01\x12\x03\x15\x07\ + \x1a\n\x0c\n\x05\x08\xe7\x07\0\x03\x12\x03\x15\x1d!\n\t\n\x02\x03\0\x12\ + \x03\x17\x07\x1a\n\t\n\x02\x03\x01\x12\x03\x18\x07(\n\x08\n\x01\x02\x12\ + \x03\x1a\x08\x20\n\n\n\x02\x04\0\x12\x04\x1c\0\x1f\x01\n\n\n\x03\x04\0\ + \x01\x12\x03\x1c\x08\x12\n\x0b\n\x04\x04\0\x02\0\x12\x03\x1d\x08\x1a\n\r\ + \n\x05\x04\0\x02\0\x04\x12\x04\x1d\x08\x1c\x14\n\x0c\n\x05\x04\0\x02\0\ + \x05\x12\x03\x1d\x08\x0e\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1d\x0f\x15\ + \n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1d\x18\x19\n\x0b\n\x04\x04\0\x02\ + \x01\x12\x03\x1e\x08\x16\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\x1e\x08\x1d\ + \x1a\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x1e\x08\r\n\x0c\n\x05\x04\0\ + \x02\x01\x01\x12\x03\x1e\x0e\x11\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\ + \x1e\x14\x15\n\n\n\x02\x04\x01\x12\x04!\0,\x01\n\n\n\x03\x04\x01\x01\x12\ + \x03!\x08\r\nH\n\x04\x04\x01\x02\0\x12\x03\"\x08*\";\x20\x20address\x20f\ + or\x20the\x20content\x20of\x20the\x20previous\x20delta\x20on\x20the\x20D\ + FS\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04\"\x08!\x0f\n\x0c\n\x05\x04\x01\ + \x02\0\x05\x12\x03\"\x08\r\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\"\x0e%\ + \n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\"()\n\x0b\n\x04\x04\x01\x02\x01\ + \x12\x03#\x08\x1e\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04#\x08\"*\n\x0c\n\ + \x05\x04\x01\x02\x01\x05\x12\x03#\x08\r\n\x0c\n\x05\x04\x01\x02\x01\x01\ + \x12\x03#\x0e\x19\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03#\x1c\x1d\n=\n\ + \x04\x04\x01\x02\x02\x12\x03$\x08\x1e\"0\x20proof\x20of\x20delegated\x20\ + authority\x20for\x20active\x20wokers\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\ + \x04$\x08#\x1e\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03$\x08\r\n\x0c\n\ + \x05\x04\x01\x02\x02\x01\x12\x03$\x0e\x19\n\x0c\n\x05\x04\x01\x02\x02\ + \x03\x12\x03$\x1c\x1d\n\x0b\n\x04\x04\x01\x02\x03\x12\x03%\x081\n\r\n\ + \x05\x04\x01\x02\x03\x04\x12\x04%\x08$\x1e\n\x0c\n\x05\x04\x01\x02\x03\ + \x06\x12\x03%\x08!\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03%\",\n\x0c\n\ + \x05\x04\x01\x02\x03\x03\x12\x03%/0\n\x0b\n\x04\x04\x01\x02\x04\x12\x03&\ + \x08<\n\x0c\n\x05\x04\x01\x02\x04\x04\x12\x03&\x08\x10\n\x0c\n\x05\x04\ + \x01\x02\x04\x06\x12\x03&\x11(\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03&)\ + 7\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x03&:;\n\x0b\n\x04\x04\x01\x02\x05\ + \x12\x03'\x08H\n\x0c\n\x05\x04\x01\x02\x05\x04\x12\x03'\x08\x10\n\x0c\n\ + \x05\x04\x01\x02\x05\x06\x12\x03'\x11.\n\x0c\n\x05\x04\x01\x02\x05\x01\ + \x12\x03'/C\n\x0c\n\x05\x04\x01\x02\x05\x03\x12\x03'FG\n$\n\x04\x04\x01\ + \x02\x06\x12\x03(\x08@\"\x17\x20one\x20per\x20active\x20worker\n\n\x0c\n\ + \x05\x04\x01\x02\x06\x04\x12\x03(\x08\x10\n\x0c\n\x05\x04\x01\x02\x06\ + \x06\x12\x03(\x11*\n\x0c\n\x05\x04\x01\x02\x06\x01\x12\x03(+;\n\x0c\n\ + \x05\x04\x01\x02\x06\x03\x12\x03(>?\n)\n\x04\x04\x01\x02\x07\x12\x03)\ + \x08\x1d\"\x1c\x20the\x20hash\x20of\x20the\x20state\x20root\n\n\r\n\x05\ + \x04\x01\x02\x07\x04\x12\x04)\x08(@\n\x0c\n\x05\x04\x01\x02\x07\x05\x12\ + \x03)\x08\r\n\x0c\n\x05\x04\x01\x02\x07\x01\x12\x03)\x0e\x18\n\x0c\n\x05\ + \x04\x01\x02\x07\x03\x12\x03)\x1b\x1c\n+\n\x04\x04\x01\x02\x08\x12\x03*\ + \x08\x1f\"\x1e\x20the\x20consecutive\x20delta\x20number\n\n\r\n\x05\x04\ + \x01\x02\x08\x04\x12\x04*\x08)\x1d\n\x0c\n\x05\x04\x01\x02\x08\x05\x12\ + \x03*\x08\r\n\x0c\n\x05\x04\x01\x02\x08\x01\x12\x03*\x0e\x1a\n\x0c\n\x05\ + \x04\x01\x02\x08\x03\x12\x03*\x1d\x1e\n(\n\x04\x04\x01\x02\t\x12\x03+\ + \x08\x1c\"\x1b\x20the\x20gas\x20used\x20in\x20the\x20delta\n\n\r\n\x05\ + \x04\x01\x02\t\x04\x12\x04+\x08*\x1f\n\x0c\n\x05\x04\x01\x02\t\x05\x12\ + \x03+\x08\r\n\x0c\n\x05\x04\x01\x02\t\x01\x12\x03+\x0e\x16\n\x0c\n\x05\ + \x04\x01\x02\t\x03\x12\x03+\x19\x1bb\x06proto3\ "; -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto, -}; +static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() diff --git a/packages/sdk-rust/src/DfsMarketplace.rs b/packages/sdk-rust/src/DfsMarketplace.rs index 32f3ba6..559ed88 100644 --- a/packages/sdk-rust/src/DfsMarketplace.rs +++ b/packages/sdk-rust/src/DfsMarketplace.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.10.1. Do not edit +// This file is generated by rust-protobuf 2.14.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -24,7 +24,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; #[derive(PartialEq,Clone,Default)] pub struct BlockChallengeRequest { @@ -216,10 +216,7 @@ impl ::protobuf::Message for BlockChallengeRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -238,7 +235,7 @@ impl ::protobuf::Message for BlockChallengeRequest { |m: &BlockChallengeRequest| { &m.block_idx_random_guid }, |m: &mut BlockChallengeRequest| { &mut m.block_idx_random_guid }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "BlockChallengeRequest", fields, file_descriptor_proto() @@ -248,10 +245,7 @@ impl ::protobuf::Message for BlockChallengeRequest { } fn default_instance() -> &'static BlockChallengeRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const BlockChallengeRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(BlockChallengeRequest::new) } @@ -274,8 +268,8 @@ impl ::std::fmt::Debug for BlockChallengeRequest { } impl ::protobuf::reflect::ProtobufValue for BlockChallengeRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -433,10 +427,7 @@ impl ::protobuf::Message for BlockChallengeResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -450,7 +441,7 @@ impl ::protobuf::Message for BlockChallengeResponse { |m: &BlockChallengeResponse| { &m.block_challenge_request_hash }, |m: &mut BlockChallengeResponse| { &mut m.block_challenge_request_hash }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "BlockChallengeResponse", fields, file_descriptor_proto() @@ -460,10 +451,7 @@ impl ::protobuf::Message for BlockChallengeResponse { } fn default_instance() -> &'static BlockChallengeResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const BlockChallengeResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(BlockChallengeResponse::new) } @@ -485,8 +473,8 @@ impl ::std::fmt::Debug for BlockChallengeResponse { } impl ::protobuf::reflect::ProtobufValue for BlockChallengeResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -761,10 +749,7 @@ impl ::protobuf::Message for BlockChallengeBroadcast { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -788,7 +773,7 @@ impl ::protobuf::Message for BlockChallengeBroadcast { |m: &BlockChallengeBroadcast| { &m.challenged_by }, |m: &mut BlockChallengeBroadcast| { &mut m.challenged_by }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "BlockChallengeBroadcast", fields, file_descriptor_proto() @@ -798,10 +783,7 @@ impl ::protobuf::Message for BlockChallengeBroadcast { } fn default_instance() -> &'static BlockChallengeBroadcast { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const BlockChallengeBroadcast, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(BlockChallengeBroadcast::new) } @@ -825,8 +807,8 @@ impl ::std::fmt::Debug for BlockChallengeBroadcast { } impl ::protobuf::reflect::ProtobufValue for BlockChallengeBroadcast { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -843,60 +825,66 @@ static file_descriptor_proto_data: &'static [u8] = b"\ enge\x12\x16\n\x06answer\x18\x02\x20\x01(\tR\x06answer\x12G\n\x0fchallen\ ged_peer\x18\x03\x20\x01(\x0b2\x1e.Catalyst.Protocol.Peer.PeerIdR\x0echa\ llengedPeer\x12C\n\rchallenged_by\x18\x04\x20\x01(\x0b2\x1e.Catalyst.Pro\ - tocol.Peer.PeerIdR\x0cchallengedByB\x02P\x01J\xcb\x0b\n\x06\x12\x04\x13\ - \0+\x01\n\xdf\x06\n\x01\x0c\x12\x03\x13\0\x122\xd4\x06*\n\x20Copyright\ - \x20(c)\x202019\x20Catalyst\x20Network\n\n\x20This\x20file\x20is\x20part\ - \x20of\x20Catalyst.Network.Protocol.Protobuffs\x20\n\n\x20Catalyst.Network.Protocol.Pro\ - tobuffs\x20is\x20free\x20software:\x20you\x20can\x20redistribute\x20it\ - \x20and/or\x20modify\n\x20it\x20under\x20the\x20terms\x20of\x20the\x20GN\ - U\x20General\x20Public\x20License\x20as\x20published\x20by\n\x20the\x20F\ - ree\x20Software\x20Foundation,\x20either\x20version\x202\x20of\x20the\ - \x20License,\x20or\n\x20(at\x20your\x20option)\x20any\x20later\x20versio\ - n.\n\x20\n\x20Catalyst.Network.Protocol.Protobuffs\x20is\x20distributed\ - \x20in\x20the\x20hope\x20that\x20it\x20will\x20be\x20useful,\n\x20but\ - \x20WITHOUT\x20ANY\x20WARRANTY;\x20without\x20even\x20the\x20implied\x20\ - warranty\x20of\n\x20MERCHANTABILITY\x20or\x20FITNESS\x20FOR\x20A\x20PART\ - ICULAR\x20PURPOSE.\x20See\x20the\n\x20GNU\x20General\x20Public\x20Licens\ - e\x20for\x20more\x20details.\n\x20\n\x20You\x20should\x20have\x20receive\ - d\x20a\x20copy\x20of\x20the\x20GNU\x20General\x20Public\x20License\n\x20\ - along\x20with\x20Catalyst.Network.Protocol.Protobuffs\x20If\x20not,\x20s\ - ee\x20.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\ - \n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x02\x12\x03\x17\0)\n\t\n\ - \x02\x03\0\x12\x03\x19\0\x14\n\n\n\x02\x04\0\x12\x04\x1b\0\x1f\x01\n\n\n\ - \x03\x04\0\x01\x12\x03\x1b\x08\x1d\n\x0b\n\x04\x04\0\x02\0\x12\x03\x1c\ - \x08\"\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x1c\x08\x0e\n\x0c\n\x05\x04\0\ - \x02\0\x01\x12\x03\x1c\x0f\x1d\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1c\ - \x20!\n\x0b\n\x04\x04\0\x02\x01\x12\x03\x1d\x08!\n\x0c\n\x05\x04\0\x02\ - \x01\x05\x12\x03\x1d\x08\x0e\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x1d\ - \x0f\x1c\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x1d\x1f\x20\n\x0b\n\x04\ - \x04\0\x02\x02\x12\x03\x1e\x08(\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03\ + tocol.Peer.PeerIdR\x0cchallengedByB\x02P\x01J\x8f\r\n\x06\x12\x04\x13\0+\ + \x01\n\xdf\x06\n\x01\x0c\x12\x03\x13\0\x122\xd4\x06*\n\x20Copyright\x20(\ + c)\x202019\x20Catalyst\x20Network\n\n\x20This\x20file\x20is\x20part\x20o\ + f\x20Catalyst.Network.Protocol.Protobuffs\x20\n\n\x20Catalyst.Network.Protocol.Protobuf\ + fs\x20is\x20free\x20software:\x20you\x20can\x20redistribute\x20it\x20and\ + /or\x20modify\n\x20it\x20under\x20the\x20terms\x20of\x20the\x20GNU\x20Ge\ + neral\x20Public\x20License\x20as\x20published\x20by\n\x20the\x20Free\x20\ + Software\x20Foundation,\x20either\x20version\x202\x20of\x20the\x20Licens\ + e,\x20or\n\x20(at\x20your\x20option)\x20any\x20later\x20version.\n\x20\n\ + \x20Catalyst.Network.Protocol.Protobuffs\x20is\x20distributed\x20in\x20t\ + he\x20hope\x20that\x20it\x20will\x20be\x20useful,\n\x20but\x20WITHOUT\ + \x20ANY\x20WARRANTY;\x20without\x20even\x20the\x20implied\x20warranty\ + \x20of\n\x20MERCHANTABILITY\x20or\x20FITNESS\x20FOR\x20A\x20PARTICULAR\ + \x20PURPOSE.\x20See\x20the\n\x20GNU\x20General\x20Public\x20License\x20f\ + or\x20more\x20details.\n\x20\n\x20You\x20should\x20have\x20received\x20a\ + \x20copy\x20of\x20the\x20GNU\x20General\x20Public\x20License\n\x20along\ + \x20with\x20Catalyst.Network.Protocol.Protobuffs\x20If\x20not,\x20see\ + \x20.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\n\ + \x0b\n\x04\x08\xe7\x07\0\x12\x03\x15\0\"\n\x0c\n\x05\x08\xe7\x07\0\x02\ + \x12\x03\x15\x07\x1a\n\r\n\x06\x08\xe7\x07\0\x02\0\x12\x03\x15\x07\x1a\n\ + \x0e\n\x07\x08\xe7\x07\0\x02\0\x01\x12\x03\x15\x07\x1a\n\x0c\n\x05\x08\ + \xe7\x07\0\x03\x12\x03\x15\x1d!\n\x08\n\x01\x02\x12\x03\x17\x08(\n\t\n\ + \x02\x03\0\x12\x03\x19\x07\x13\n\n\n\x02\x04\0\x12\x04\x1b\0\x1f\x01\n\n\ + \n\x03\x04\0\x01\x12\x03\x1b\x08\x1d\n\x0b\n\x04\x04\0\x02\0\x12\x03\x1c\ + \x08\"\n\r\n\x05\x04\0\x02\0\x04\x12\x04\x1c\x08\x1b\x1f\n\x0c\n\x05\x04\ + \0\x02\0\x05\x12\x03\x1c\x08\x0e\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x1c\ + \x0f\x1d\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x1c\x20!\n\x0b\n\x04\x04\0\ + \x02\x01\x12\x03\x1d\x08!\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\x1d\x08\ + \x1c\"\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x1d\x08\x0e\n\x0c\n\x05\x04\ + \0\x02\x01\x01\x12\x03\x1d\x0f\x1c\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\ + \x1d\x1f\x20\n\x0b\n\x04\x04\0\x02\x02\x12\x03\x1e\x08(\n\r\n\x05\x04\0\ + \x02\x02\x04\x12\x04\x1e\x08\x1d!\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03\ \x1e\x08\r\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x1e\x0e#\n\x0c\n\x05\ \x04\0\x02\x02\x03\x12\x03\x1e&'\n\n\n\x02\x04\x01\x12\x04!\0$\x01\n\n\n\ \x03\x04\x01\x01\x12\x03!\x08\x1e\n\x0b\n\x04\x04\x01\x02\0\x12\x03\"\ - \x08\x1a\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\"\x08\x0e\n\x0c\n\x05\x04\ - \x01\x02\0\x01\x12\x03\"\x0f\x15\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\"\ - \x18\x19\n\x0b\n\x04\x04\x01\x02\x01\x12\x03#\x080\n\x0c\n\x05\x04\x01\ - \x02\x01\x05\x12\x03#\x08\x0e\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03#\ - \x0f+\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03#./\n\n\n\x02\x04\x02\x12\ - \x04&\0+\x01\n\n\n\x03\x04\x02\x01\x12\x03&\x08\x1f\n\x0b\n\x04\x04\x02\ - \x02\0\x12\x03'\x085\n\x0c\n\x05\x04\x02\x02\0\x06\x12\x03'\x08\x1d\n\ - \x0c\n\x05\x04\x02\x02\0\x01\x12\x03'\x1e0\n\x0c\n\x05\x04\x02\x02\0\x03\ - \x12\x03'34\n\x0b\n\x04\x04\x02\x02\x01\x12\x03(\x08\x1a\n\x0c\n\x05\x04\ - \x02\x02\x01\x05\x12\x03(\x08\x0e\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\ - \x03(\x0f\x15\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03(\x18\x19\n\x0b\n\ - \x04\x04\x02\x02\x02\x12\x03)\x08(\n\x0c\n\x05\x04\x02\x02\x02\x06\x12\ - \x03)\x08\x13\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03)\x14#\n\x0c\n\x05\ - \x04\x02\x02\x02\x03\x12\x03)&'\n\x0b\n\x04\x04\x02\x02\x03\x12\x03*\x08\ - &\n\x0c\n\x05\x04\x02\x02\x03\x06\x12\x03*\x08\x13\n\x0c\n\x05\x04\x02\ + \x08\x1a\n\r\n\x05\x04\x01\x02\0\x04\x12\x04\"\x08!\x20\n\x0c\n\x05\x04\ + \x01\x02\0\x05\x12\x03\"\x08\x0e\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\"\ + \x0f\x15\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\"\x18\x19\n\x0b\n\x04\x04\ + \x01\x02\x01\x12\x03#\x080\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04#\x08\"\ + \x1a\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03#\x08\x0e\n\x0c\n\x05\x04\ + \x01\x02\x01\x01\x12\x03#\x0f+\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03#.\ + /\n\n\n\x02\x04\x02\x12\x04&\0+\x01\n\n\n\x03\x04\x02\x01\x12\x03&\x08\ + \x1f\n\x0b\n\x04\x04\x02\x02\0\x12\x03'\x085\n\r\n\x05\x04\x02\x02\0\x04\ + \x12\x04'\x08&!\n\x0c\n\x05\x04\x02\x02\0\x06\x12\x03'\x08\x1d\n\x0c\n\ + \x05\x04\x02\x02\0\x01\x12\x03'\x1e0\n\x0c\n\x05\x04\x02\x02\0\x03\x12\ + \x03'34\n\x0b\n\x04\x04\x02\x02\x01\x12\x03(\x08\x1a\n\r\n\x05\x04\x02\ + \x02\x01\x04\x12\x04(\x08'5\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03(\x08\ + \x0e\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03(\x0f\x15\n\x0c\n\x05\x04\ + \x02\x02\x01\x03\x12\x03(\x18\x19\n\x0b\n\x04\x04\x02\x02\x02\x12\x03)\ + \x08(\n\r\n\x05\x04\x02\x02\x02\x04\x12\x04)\x08(\x1a\n\x0c\n\x05\x04\ + \x02\x02\x02\x06\x12\x03)\x08\x13\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\ + \x03)\x14#\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03)&'\n\x0b\n\x04\x04\ + \x02\x02\x03\x12\x03*\x08&\n\r\n\x05\x04\x02\x02\x03\x04\x12\x04*\x08)(\ + \n\x0c\n\x05\x04\x02\x02\x03\x06\x12\x03*\x08\x13\n\x0c\n\x05\x04\x02\ \x02\x03\x01\x12\x03*\x14!\n\x0c\n\x05\x04\x02\x02\x03\x03\x12\x03*$%b\ \x06proto3\ "; -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto, -}; +static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() diff --git a/packages/sdk-rust/src/IPPN.rs b/packages/sdk-rust/src/IPPN.rs index 17147f1..7607a53 100644 --- a/packages/sdk-rust/src/IPPN.rs +++ b/packages/sdk-rust/src/IPPN.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.10.1. Do not edit +// This file is generated by rust-protobuf 2.14.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -24,7 +24,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; #[derive(PartialEq,Clone,Default)] pub struct PeerNeighborsRequest { @@ -107,14 +107,11 @@ impl ::protobuf::Message for PeerNeighborsRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "PeerNeighborsRequest", fields, file_descriptor_proto() @@ -124,10 +121,7 @@ impl ::protobuf::Message for PeerNeighborsRequest { } fn default_instance() -> &'static PeerNeighborsRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const PeerNeighborsRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(PeerNeighborsRequest::new) } @@ -147,8 +141,8 @@ impl ::std::fmt::Debug for PeerNeighborsRequest { } impl ::protobuf::reflect::ProtobufValue for PeerNeighborsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -277,10 +271,7 @@ impl ::protobuf::Message for PeerNeighborsResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -289,7 +280,7 @@ impl ::protobuf::Message for PeerNeighborsResponse { |m: &PeerNeighborsResponse| { &m.peers }, |m: &mut PeerNeighborsResponse| { &mut m.peers }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "PeerNeighborsResponse", fields, file_descriptor_proto() @@ -299,10 +290,7 @@ impl ::protobuf::Message for PeerNeighborsResponse { } fn default_instance() -> &'static PeerNeighborsResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const PeerNeighborsResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(PeerNeighborsResponse::new) } @@ -323,8 +311,8 @@ impl ::std::fmt::Debug for PeerNeighborsResponse { } impl ::protobuf::reflect::ProtobufValue for PeerNeighborsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -409,14 +397,11 @@ impl ::protobuf::Message for PingRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "PingRequest", fields, file_descriptor_proto() @@ -426,10 +411,7 @@ impl ::protobuf::Message for PingRequest { } fn default_instance() -> &'static PingRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const PingRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(PingRequest::new) } @@ -449,8 +431,8 @@ impl ::std::fmt::Debug for PingRequest { } impl ::protobuf::reflect::ProtobufValue for PingRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -535,14 +517,11 @@ impl ::protobuf::Message for PingResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "PingResponse", fields, file_descriptor_proto() @@ -552,10 +531,7 @@ impl ::protobuf::Message for PingResponse { } fn default_instance() -> &'static PingResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const PingResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(PingResponse::new) } @@ -575,8 +551,8 @@ impl ::std::fmt::Debug for PingResponse { } impl ::protobuf::reflect::ProtobufValue for PingResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -661,14 +637,11 @@ impl ::protobuf::Message for LatestDeltaHashRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "LatestDeltaHashRequest", fields, file_descriptor_proto() @@ -678,10 +651,7 @@ impl ::protobuf::Message for LatestDeltaHashRequest { } fn default_instance() -> &'static LatestDeltaHashRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const LatestDeltaHashRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(LatestDeltaHashRequest::new) } @@ -701,15 +671,16 @@ impl ::std::fmt::Debug for LatestDeltaHashRequest { } impl ::protobuf::reflect::ProtobufValue for LatestDeltaHashRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] pub struct LatestDeltaHashResponse { // message fields - pub result: ::protobuf::SingularPtrField, + pub isSync: bool, + pub deltaIndex: ::protobuf::SingularPtrField, // special fields pub unknown_fields: ::protobuf::UnknownFields, pub cached_size: ::protobuf::CachedSize, @@ -726,43 +697,58 @@ impl LatestDeltaHashResponse { ::std::default::Default::default() } - // .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + // bool isSync = 1; - pub fn get_result(&self) -> &super::Deltas::DeltaIndex { - self.result.as_ref().unwrap_or_else(|| super::Deltas::DeltaIndex::default_instance()) + pub fn get_isSync(&self) -> bool { + self.isSync + } + pub fn clear_isSync(&mut self) { + self.isSync = false; } - pub fn clear_result(&mut self) { - self.result.clear(); + + // Param is passed by value, moved + pub fn set_isSync(&mut self, v: bool) { + self.isSync = v; } - pub fn has_result(&self) -> bool { - self.result.is_some() + // .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 2; + + + pub fn get_deltaIndex(&self) -> &super::Deltas::DeltaIndex { + self.deltaIndex.as_ref().unwrap_or_else(|| super::Deltas::DeltaIndex::default_instance()) + } + pub fn clear_deltaIndex(&mut self) { + self.deltaIndex.clear(); + } + + pub fn has_deltaIndex(&self) -> bool { + self.deltaIndex.is_some() } // Param is passed by value, moved - pub fn set_result(&mut self, v: super::Deltas::DeltaIndex) { - self.result = ::protobuf::SingularPtrField::some(v); + pub fn set_deltaIndex(&mut self, v: super::Deltas::DeltaIndex) { + self.deltaIndex = ::protobuf::SingularPtrField::some(v); } // Mutable pointer to the field. // If field is not initialized, it is initialized with default value first. - pub fn mut_result(&mut self) -> &mut super::Deltas::DeltaIndex { - if self.result.is_none() { - self.result.set_default(); + pub fn mut_deltaIndex(&mut self) -> &mut super::Deltas::DeltaIndex { + if self.deltaIndex.is_none() { + self.deltaIndex.set_default(); } - self.result.as_mut().unwrap() + self.deltaIndex.as_mut().unwrap() } // Take field - pub fn take_result(&mut self) -> super::Deltas::DeltaIndex { - self.result.take().unwrap_or_else(|| super::Deltas::DeltaIndex::new()) + pub fn take_deltaIndex(&mut self) -> super::Deltas::DeltaIndex { + self.deltaIndex.take().unwrap_or_else(|| super::Deltas::DeltaIndex::new()) } } impl ::protobuf::Message for LatestDeltaHashResponse { fn is_initialized(&self) -> bool { - for v in &self.result { + for v in &self.deltaIndex { if !v.is_initialized() { return false; } @@ -775,7 +761,14 @@ impl ::protobuf::Message for LatestDeltaHashResponse { let (field_number, wire_type) = is.read_tag_unpack()?; match field_number { 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.result)?; + if wire_type != ::protobuf::wire_format::WireTypeVarint { + return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); + } + let tmp = is.read_bool()?; + self.isSync = tmp; + }, + 2 => { + ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.deltaIndex)?; }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; @@ -789,7 +782,10 @@ impl ::protobuf::Message for LatestDeltaHashResponse { #[allow(unused_variables)] fn compute_size(&self) -> u32 { let mut my_size = 0; - if let Some(ref v) = self.result.as_ref() { + if self.isSync != false { + my_size += 2; + } + if let Some(ref v) = self.deltaIndex.as_ref() { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; } @@ -799,8 +795,11 @@ impl ::protobuf::Message for LatestDeltaHashResponse { } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.result.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; + if self.isSync != false { + os.write_bool(1, self.isSync)?; + } + if let Some(ref v) = self.deltaIndex.as_ref() { + os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; os.write_raw_varint32(v.get_cached_size())?; v.write_to_with_cached_sizes(os)?; } @@ -839,19 +838,21 @@ impl ::protobuf::Message for LatestDeltaHashResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); + fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( + "isSync", + |m: &LatestDeltaHashResponse| { &m.isSync }, + |m: &mut LatestDeltaHashResponse| { &mut m.isSync }, + )); fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "result", - |m: &LatestDeltaHashResponse| { &m.result }, - |m: &mut LatestDeltaHashResponse| { &mut m.result }, + "deltaIndex", + |m: &LatestDeltaHashResponse| { &m.deltaIndex }, + |m: &mut LatestDeltaHashResponse| { &mut m.deltaIndex }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "LatestDeltaHashResponse", fields, file_descriptor_proto() @@ -861,10 +862,7 @@ impl ::protobuf::Message for LatestDeltaHashResponse { } fn default_instance() -> &'static LatestDeltaHashResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const LatestDeltaHashResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(LatestDeltaHashResponse::new) } @@ -873,7 +871,8 @@ impl ::protobuf::Message for LatestDeltaHashResponse { impl ::protobuf::Clear for LatestDeltaHashResponse { fn clear(&mut self) { - self.result.clear(); + self.isSync = false; + self.deltaIndex.clear(); self.unknown_fields.clear(); } } @@ -885,8 +884,8 @@ impl ::std::fmt::Debug for LatestDeltaHashResponse { } impl ::protobuf::reflect::ProtobufValue for LatestDeltaHashResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1030,10 +1029,7 @@ impl ::protobuf::Message for DeltaHistoryRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -1047,7 +1043,7 @@ impl ::protobuf::Message for DeltaHistoryRequest { |m: &DeltaHistoryRequest| { &m.height }, |m: &mut DeltaHistoryRequest| { &mut m.height }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "DeltaHistoryRequest", fields, file_descriptor_proto() @@ -1057,10 +1053,7 @@ impl ::protobuf::Message for DeltaHistoryRequest { } fn default_instance() -> &'static DeltaHistoryRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const DeltaHistoryRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(DeltaHistoryRequest::new) } @@ -1082,15 +1075,15 @@ impl ::std::fmt::Debug for DeltaHistoryRequest { } impl ::protobuf::reflect::ProtobufValue for DeltaHistoryRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } #[derive(PartialEq,Clone,Default)] pub struct DeltaHistoryResponse { // message fields - pub result: ::protobuf::RepeatedField, + pub deltaIndex: ::protobuf::RepeatedField, // special fields pub unknown_fields: ::protobuf::UnknownFields, pub cached_size: ::protobuf::CachedSize, @@ -1107,35 +1100,35 @@ impl DeltaHistoryResponse { ::std::default::Default::default() } - // repeated .Catalyst.Protocol.Deltas.DeltaIndex result = 1; + // repeated .Catalyst.Protocol.Deltas.DeltaIndex deltaIndex = 1; - pub fn get_result(&self) -> &[super::Deltas::DeltaIndex] { - &self.result + pub fn get_deltaIndex(&self) -> &[super::Deltas::DeltaIndex] { + &self.deltaIndex } - pub fn clear_result(&mut self) { - self.result.clear(); + pub fn clear_deltaIndex(&mut self) { + self.deltaIndex.clear(); } // Param is passed by value, moved - pub fn set_result(&mut self, v: ::protobuf::RepeatedField) { - self.result = v; + pub fn set_deltaIndex(&mut self, v: ::protobuf::RepeatedField) { + self.deltaIndex = v; } // Mutable pointer to the field. - pub fn mut_result(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.result + pub fn mut_deltaIndex(&mut self) -> &mut ::protobuf::RepeatedField { + &mut self.deltaIndex } // Take field - pub fn take_result(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.result, ::protobuf::RepeatedField::new()) + pub fn take_deltaIndex(&mut self) -> ::protobuf::RepeatedField { + ::std::mem::replace(&mut self.deltaIndex, ::protobuf::RepeatedField::new()) } } impl ::protobuf::Message for DeltaHistoryResponse { fn is_initialized(&self) -> bool { - for v in &self.result { + for v in &self.deltaIndex { if !v.is_initialized() { return false; } @@ -1148,7 +1141,7 @@ impl ::protobuf::Message for DeltaHistoryResponse { let (field_number, wire_type) = is.read_tag_unpack()?; match field_number { 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.result)?; + ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.deltaIndex)?; }, _ => { ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; @@ -1162,7 +1155,7 @@ impl ::protobuf::Message for DeltaHistoryResponse { #[allow(unused_variables)] fn compute_size(&self) -> u32 { let mut my_size = 0; - for value in &self.result { + for value in &self.deltaIndex { let len = value.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; }; @@ -1172,7 +1165,7 @@ impl ::protobuf::Message for DeltaHistoryResponse { } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.result { + for v in &self.deltaIndex { os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; os.write_raw_varint32(v.get_cached_size())?; v.write_to_with_cached_sizes(os)?; @@ -1212,19 +1205,16 @@ impl ::protobuf::Message for DeltaHistoryResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "result", - |m: &DeltaHistoryResponse| { &m.result }, - |m: &mut DeltaHistoryResponse| { &mut m.result }, + "deltaIndex", + |m: &DeltaHistoryResponse| { &m.deltaIndex }, + |m: &mut DeltaHistoryResponse| { &mut m.deltaIndex }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "DeltaHistoryResponse", fields, file_descriptor_proto() @@ -1234,10 +1224,7 @@ impl ::protobuf::Message for DeltaHistoryResponse { } fn default_instance() -> &'static DeltaHistoryResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const DeltaHistoryResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(DeltaHistoryResponse::new) } @@ -1246,7 +1233,7 @@ impl ::protobuf::Message for DeltaHistoryResponse { impl ::protobuf::Clear for DeltaHistoryResponse { fn clear(&mut self) { - self.result.clear(); + self.deltaIndex.clear(); self.unknown_fields.clear(); } } @@ -1258,8 +1245,8 @@ impl ::std::fmt::Debug for DeltaHistoryResponse { } impl ::protobuf::reflect::ProtobufValue for DeltaHistoryResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1268,65 +1255,71 @@ static file_descriptor_proto_data: &'static [u8] = b"\ as.proto\"\x16\n\x14PeerNeighborsRequest\"M\n\x15PeerNeighborsResponse\ \x124\n\x05peers\x18\x01\x20\x03(\x0b2\x1e.Catalyst.Protocol.Peer.PeerId\ R\x05peers\"\r\n\x0bPingRequest\"\x0e\n\x0cPingResponse\"\x18\n\x16Lates\ - tDeltaHashRequest\"W\n\x17LatestDeltaHashResponse\x12<\n\x06result\x18\ - \x01\x20\x01(\x0b2$.Catalyst.Protocol.Deltas.DeltaIndexR\x06result\"C\n\ - \x13DeltaHistoryRequest\x12\x14\n\x05range\x18\x01\x20\x01(\rR\x05range\ - \x12\x16\n\x06height\x18\x02\x20\x01(\rR\x06height\"T\n\x14DeltaHistoryR\ - esponse\x12<\n\x06result\x18\x01\x20\x03(\x0b2$.Catalyst.Protocol.Deltas\ - .DeltaIndexR\x06resultB\x02P\x01J\xae\x0c\n\x06\x12\x04\x13\03\x01\n\xdf\ - \x06\n\x01\x0c\x12\x03\x13\0\x122\xd4\x06*\n\x20Copyright\x20(c)\x202019\ - \x20Catalyst\x20Network\n\n\x20This\x20file\x20is\x20part\x20of\x20Catal\ - yst.Network.Protocol.Protobuffs\x20\n\n\x20Catalyst.Network.Protocol.Protobuffs\x20is\ - \x20free\x20software:\x20you\x20can\x20redistribute\x20it\x20and/or\x20m\ - odify\n\x20it\x20under\x20the\x20terms\x20of\x20the\x20GNU\x20General\ - \x20Public\x20License\x20as\x20published\x20by\n\x20the\x20Free\x20Softw\ - are\x20Foundation,\x20either\x20version\x202\x20of\x20the\x20License,\ - \x20or\n\x20(at\x20your\x20option)\x20any\x20later\x20version.\n\x20\n\ - \x20Catalyst.Network.Protocol.Protobuffs\x20is\x20distributed\x20in\x20t\ - he\x20hope\x20that\x20it\x20will\x20be\x20useful,\n\x20but\x20WITHOUT\ - \x20ANY\x20WARRANTY;\x20without\x20even\x20the\x20implied\x20warranty\ - \x20of\n\x20MERCHANTABILITY\x20or\x20FITNESS\x20FOR\x20A\x20PARTICULAR\ - \x20PURPOSE.\x20See\x20the\n\x20GNU\x20General\x20Public\x20License\x20f\ - or\x20more\x20details.\n\x20\n\x20You\x20should\x20have\x20received\x20a\ - \x20copy\x20of\x20the\x20GNU\x20General\x20Public\x20License\n\x20along\ - \x20with\x20Catalyst.Network.Protocol.Protobuffs\x20If\x20not,\x20see\ - \x20.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\n\ - \t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x02\x12\x03\x17\0\x1f\n\t\n\ - \x02\x03\0\x12\x03\x19\0\x14\n\t\n\x02\x03\x01\x12\x03\x1a\0\x16\n\t\n\ - \x02\x04\0\x12\x03\x1c\0\x20\n\n\n\x03\x04\0\x01\x12\x03\x1c\x08\x1c\n\n\ - \n\x02\x04\x01\x12\x04\x1e\0\x20\x01\n\n\n\x03\x04\x01\x01\x12\x03\x1e\ - \x08\x1d\n0\n\x04\x04\x01\x02\0\x12\x03\x1f\x04#\"#\x20Random\x20subset\ - \x20of\x20a\x20nodes\x20peer\x20db.\n\n\x0c\n\x05\x04\x01\x02\0\x04\x12\ - \x03\x1f\x04\x0c\n\x0c\n\x05\x04\x01\x02\0\x06\x12\x03\x1f\r\x18\n\x0c\n\ - \x05\x04\x01\x02\0\x01\x12\x03\x1f\x19\x1e\n\x0c\n\x05\x04\x01\x02\0\x03\ - \x12\x03\x1f!\"\n\t\n\x02\x04\x02\x12\x03\"\0\x17\n\n\n\x03\x04\x02\x01\ - \x12\x03\"\x08\x13\n\t\n\x02\x04\x03\x12\x03$\0\x18\n\n\n\x03\x04\x03\ - \x01\x12\x03$\x08\x14\n\t\n\x02\x04\x04\x12\x03&\0\"\n\n\n\x03\x04\x04\ - \x01\x12\x03&\x08\x1e\n\n\n\x02\x04\x05\x12\x04(\0*\x01\n\n\n\x03\x04\ - \x05\x01\x12\x03(\x08\x1f\n\x1a\n\x04\x04\x05\x02\0\x12\x03)\x08%\"\r\ - \x20K\x20given\x20del\n\n\x0c\n\x05\x04\x05\x02\0\x06\x12\x03)\x08\x19\n\ - \x0c\n\x05\x04\x05\x02\0\x01\x12\x03)\x1a\x20\n\x0c\n\x05\x04\x05\x02\0\ - \x03\x12\x03)#$\n\n\n\x02\x04\x06\x12\x04,\0/\x01\n\n\n\x03\x04\x06\x01\ - \x12\x03,\x08\x1b\n9\n\x04\x04\x06\x02\0\x12\x03-\x04\x15\",\x20The\x20n\ - umber\x20of\x20deltas\x20CIDs\x20a\x20node\x20requests.\n\n\x0c\n\x05\ - \x04\x06\x02\0\x05\x12\x03-\x04\n\n\x0c\n\x05\x04\x06\x02\0\x01\x12\x03-\ - \x0b\x10\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03-\x13\x14\n>\n\x04\x04\x06\ - \x02\x01\x12\x03.\x04\x16\"1\x20The\x20given\x20height\x20the\x20node\ - \x20wants\x20the\x20range\x20from.\n\n\x0c\n\x05\x04\x06\x02\x01\x05\x12\ - \x03.\x04\n\n\x0c\n\x05\x04\x06\x02\x01\x01\x12\x03.\x0b\x11\n\x0c\n\x05\ - \x04\x06\x02\x01\x03\x12\x03.\x14\x15\n\n\n\x02\x04\x07\x12\x041\03\x01\ - \n\n\n\x03\x04\x07\x01\x12\x031\x08\x1c\n\x1a\n\x04\x04\x07\x02\0\x12\ - \x032\x04*\"\r\x20K\x20given\x20del\n\n\x0c\n\x05\x04\x07\x02\0\x04\x12\ - \x032\x04\x0c\n\x0c\n\x05\x04\x07\x02\0\x06\x12\x032\r\x1e\n\x0c\n\x05\ - \x04\x07\x02\0\x01\x12\x032\x1f%\n\x0c\n\x05\x04\x07\x02\0\x03\x12\x032(\ - )b\x06proto3\ + tDeltaHashRequest\"w\n\x17LatestDeltaHashResponse\x12\x16\n\x06isSync\ + \x18\x01\x20\x01(\x08R\x06isSync\x12D\n\ndeltaIndex\x18\x02\x20\x01(\x0b\ + 2$.Catalyst.Protocol.Deltas.DeltaIndexR\ndeltaIndex\"C\n\x13DeltaHistory\ + Request\x12\x14\n\x05range\x18\x01\x20\x01(\rR\x05range\x12\x16\n\x06hei\ + ght\x18\x02\x20\x01(\rR\x06height\"\\\n\x14DeltaHistoryResponse\x12D\n\n\ + deltaIndex\x18\x01\x20\x03(\x0b2$.Catalyst.Protocol.Deltas.DeltaIndexR\n\ + deltaIndexB\x02P\x01J\xe0\r\n\x06\x12\x04\x13\06\x01\n\xdf\x06\n\x01\x0c\ + \x12\x03\x13\0\x122\xd4\x06*\n\x20Copyright\x20(c)\x202019\x20Catalyst\ + \x20Network\n\n\x20This\x20file\x20is\x20part\x20of\x20Catalyst.Network.\ + Protocol.Protobuffs\x20\n\n\x20Catalyst.Network.Protocol.Protobuffs\x20is\x20free\x20so\ + ftware:\x20you\x20can\x20redistribute\x20it\x20and/or\x20modify\n\x20it\ + \x20under\x20the\x20terms\x20of\x20the\x20GNU\x20General\x20Public\x20Li\ + cense\x20as\x20published\x20by\n\x20the\x20Free\x20Software\x20Foundatio\ + n,\x20either\x20version\x202\x20of\x20the\x20License,\x20or\n\x20(at\x20\ + your\x20option)\x20any\x20later\x20version.\n\x20\n\x20Catalyst.Network.\ + Protocol.Protobuffs\x20is\x20distributed\x20in\x20the\x20hope\x20that\ + \x20it\x20will\x20be\x20useful,\n\x20but\x20WITHOUT\x20ANY\x20WARRANTY;\ + \x20without\x20even\x20the\x20implied\x20warranty\x20of\n\x20MERCHANTABI\ + LITY\x20or\x20FITNESS\x20FOR\x20A\x20PARTICULAR\x20PURPOSE.\x20See\x20th\ + e\n\x20GNU\x20General\x20Public\x20License\x20for\x20more\x20details.\n\ + \x20\n\x20You\x20should\x20have\x20received\x20a\x20copy\x20of\x20the\ + \x20GNU\x20General\x20Public\x20License\n\x20along\x20with\x20Catalyst.N\ + etwork.Protocol.Protobuffs\x20If\x20not,\x20see\x20.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\n\x0b\n\x04\x08\xe7\x07\0\ + \x12\x03\x15\0\"\n\x0c\n\x05\x08\xe7\x07\0\x02\x12\x03\x15\x07\x1a\n\r\n\ + \x06\x08\xe7\x07\0\x02\0\x12\x03\x15\x07\x1a\n\x0e\n\x07\x08\xe7\x07\0\ + \x02\0\x01\x12\x03\x15\x07\x1a\n\x0c\n\x05\x08\xe7\x07\0\x03\x12\x03\x15\ + \x1d!\n\x08\n\x01\x02\x12\x03\x17\x08\x1e\n\t\n\x02\x03\0\x12\x03\x19\ + \x07\x13\n\t\n\x02\x03\x01\x12\x03\x1a\x07\x15\n\t\n\x02\x04\0\x12\x03\ + \x1c\0\x20\n\n\n\x03\x04\0\x01\x12\x03\x1c\x08\x1c\n\n\n\x02\x04\x01\x12\ + \x04\x1e\0\x20\x01\n\n\n\x03\x04\x01\x01\x12\x03\x1e\x08\x1d\n0\n\x04\ + \x04\x01\x02\0\x12\x03\x1f\x04#\"#\x20Random\x20subset\x20of\x20a\x20nod\ + es\x20peer\x20db.\n\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03\x1f\x04\x0c\n\ + \x0c\n\x05\x04\x01\x02\0\x06\x12\x03\x1f\r\x18\n\x0c\n\x05\x04\x01\x02\0\ + \x01\x12\x03\x1f\x19\x1e\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\x1f!\"\n\ + \n\n\x02\x04\x02\x12\x04\"\0#\x01\n\n\n\x03\x04\x02\x01\x12\x03\"\x08\ + \x13\n\n\n\x02\x04\x03\x12\x04%\0&\x01\n\n\n\x03\x04\x03\x01\x12\x03%\ + \x08\x14\n\t\n\x02\x04\x04\x12\x03(\0\"\n\n\n\x03\x04\x04\x01\x12\x03(\ + \x08\x1e\n\n\n\x02\x04\x05\x12\x04*\0-\x01\n\n\n\x03\x04\x05\x01\x12\x03\ + *\x08\x1f\n\x0b\n\x04\x04\x05\x02\0\x12\x03+\x08\x18\n\r\n\x05\x04\x05\ + \x02\0\x04\x12\x04+\x08*!\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03+\x08\x0c\ + \n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03+\r\x13\n\x0c\n\x05\x04\x05\x02\0\ + \x03\x12\x03+\x16\x17\n\x1a\n\x04\x04\x05\x02\x01\x12\x03,\x08)\"\r\x20K\ + \x20given\x20del\n\n\r\n\x05\x04\x05\x02\x01\x04\x12\x04,\x08+\x18\n\x0c\ + \n\x05\x04\x05\x02\x01\x06\x12\x03,\x08\x19\n\x0c\n\x05\x04\x05\x02\x01\ + \x01\x12\x03,\x1a$\n\x0c\n\x05\x04\x05\x02\x01\x03\x12\x03,'(\n\n\n\x02\ + \x04\x06\x12\x04/\02\x01\n\n\n\x03\x04\x06\x01\x12\x03/\x08\x1b\n9\n\x04\ + \x04\x06\x02\0\x12\x030\x04\x15\",\x20The\x20number\x20of\x20deltas\x20C\ + IDs\x20a\x20node\x20requests.\n\n\r\n\x05\x04\x06\x02\0\x04\x12\x040\x04\ + /\x1d\n\x0c\n\x05\x04\x06\x02\0\x05\x12\x030\x04\n\n\x0c\n\x05\x04\x06\ + \x02\0\x01\x12\x030\x0b\x10\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x030\x13\ + \x14\n>\n\x04\x04\x06\x02\x01\x12\x031\x04\x16\"1\x20The\x20given\x20hei\ + ght\x20the\x20node\x20wants\x20the\x20range\x20from.\n\n\r\n\x05\x04\x06\ + \x02\x01\x04\x12\x041\x040\x15\n\x0c\n\x05\x04\x06\x02\x01\x05\x12\x031\ + \x04\n\n\x0c\n\x05\x04\x06\x02\x01\x01\x12\x031\x0b\x11\n\x0c\n\x05\x04\ + \x06\x02\x01\x03\x12\x031\x14\x15\n\n\n\x02\x04\x07\x12\x044\06\x01\n\n\ + \n\x03\x04\x07\x01\x12\x034\x08\x1c\n\x1a\n\x04\x04\x07\x02\0\x12\x035\ + \x04.\"\r\x20K\x20given\x20del\n\n\x0c\n\x05\x04\x07\x02\0\x04\x12\x035\ + \x04\x0c\n\x0c\n\x05\x04\x07\x02\0\x06\x12\x035\r\x1e\n\x0c\n\x05\x04\ + \x07\x02\0\x01\x12\x035\x1f)\n\x0c\n\x05\x04\x07\x02\0\x03\x12\x035,-b\ + \x06proto3\ "; -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto, -}; +static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() diff --git a/packages/sdk-rust/src/Network.rs b/packages/sdk-rust/src/Network.rs index 897626c..6218e7f 100644 --- a/packages/sdk-rust/src/Network.rs +++ b/packages/sdk-rust/src/Network.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.10.1. Do not edit +// This file is generated by rust-protobuf 2.14.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -24,7 +24,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; #[derive(Clone,PartialEq,Eq,Debug,Hash)] pub enum NetworkType { @@ -60,13 +60,10 @@ impl ::protobuf::ProtobufEnum for NetworkType { } fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::EnumDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new("NetworkType", file_descriptor_proto()) + ::protobuf::reflect::EnumDescriptor::new_pb_name::("NetworkType", file_descriptor_proto()) }) } } @@ -82,15 +79,15 @@ impl ::std::default::Default for NetworkType { } impl ::protobuf::reflect::ProtobufValue for NetworkType { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor()) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) } } static file_descriptor_proto_data: &'static [u8] = b"\ \n\rNetwork.proto\x12\x19Catalyst.Protocol.Network*M\n\x0bNetworkType\ \x12\x18\n\x14NETWORK_TYPE_UNKNOWN\x10\0\x12\x0b\n\x07MAINNET\x10\x01\ - \x12\n\n\x06DEVNET\x10\x02\x12\x0b\n\x07TESTNET\x10\x03B\x02P\x01J\x90\t\ + \x12\n\n\x06DEVNET\x10\x02\x12\x0b\n\x07TESTNET\x10\x03B\x02P\x01J\xcd\t\ \n\x06\x12\x04\x13\0\x1e\x01\n\xdf\x06\n\x01\x0c\x12\x03\x13\0\x122\xd4\ \x06*\n\x20Copyright\x20(c)\x202019\x20Catalyst\x20Network\n\n\x20This\ \x20file\x20is\x20part\x20of\x20Catalyst.Network.Protocol.Protobuffs\x20\ @@ -109,8 +106,11 @@ static file_descriptor_proto_data: &'static [u8] = b"\ uld\x20have\x20received\x20a\x20copy\x20of\x20the\x20GNU\x20General\x20P\ ublic\x20License\n\x20along\x20with\x20Catalyst.Network.Protocol.Protobu\ ffs\x20If\x20not,\x20see\x20.\n\n\x08\n\ - \x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x02\ - \x12\x03\x17\0\"\n\n\n\x02\x05\0\x12\x04\x19\0\x1e\x01\n\n\n\x03\x05\0\ + \x01\x08\x12\x03\x15\0\"\n\x0b\n\x04\x08\xe7\x07\0\x12\x03\x15\0\"\n\x0c\ + \n\x05\x08\xe7\x07\0\x02\x12\x03\x15\x07\x1a\n\r\n\x06\x08\xe7\x07\0\x02\ + \0\x12\x03\x15\x07\x1a\n\x0e\n\x07\x08\xe7\x07\0\x02\0\x01\x12\x03\x15\ + \x07\x1a\n\x0c\n\x05\x08\xe7\x07\0\x03\x12\x03\x15\x1d!\n\x08\n\x01\x02\ + \x12\x03\x17\x08!\n\n\n\x02\x05\0\x12\x04\x19\0\x1e\x01\n\n\n\x03\x05\0\ \x01\x12\x03\x19\x05\x10\n\x1f\n\x04\x05\0\x02\0\x12\x03\x1a\x04\x1d\"\ \x12\x20un-known\x20network\n\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03\x1a\ \x04\x18\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\x1a\x1b\x1c\n\x20\n\x04\x05\ @@ -124,10 +124,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x1d\x0e\x0fb\x06proto3\ "; -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto, -}; +static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() diff --git a/packages/sdk-rust/src/Peer.rs b/packages/sdk-rust/src/Peer.rs index 04211dc..2d421ef 100644 --- a/packages/sdk-rust/src/Peer.rs +++ b/packages/sdk-rust/src/Peer.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.10.1. Do not edit +// This file is generated by rust-protobuf 2.14.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -24,7 +24,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; #[derive(PartialEq,Clone,Default)] pub struct PeerId { @@ -209,10 +209,7 @@ impl ::protobuf::Message for PeerId { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -231,7 +228,7 @@ impl ::protobuf::Message for PeerId { |m: &PeerId| { &m.public_key }, |m: &mut PeerId| { &mut m.public_key }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "PeerId", fields, file_descriptor_proto() @@ -241,10 +238,7 @@ impl ::protobuf::Message for PeerId { } fn default_instance() -> &'static PeerId { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const PeerId, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(PeerId::new) } @@ -267,8 +261,8 @@ impl ::std::fmt::Debug for PeerId { } impl ::protobuf::reflect::ProtobufValue for PeerId { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -696,10 +690,7 @@ impl ::protobuf::Message for PeerInfo { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -743,7 +734,7 @@ impl ::protobuf::Message for PeerInfo { |m: &PeerInfo| { &m.created }, |m: &mut PeerInfo| { &mut m.created }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "PeerInfo", fields, file_descriptor_proto() @@ -753,10 +744,7 @@ impl ::protobuf::Message for PeerInfo { } fn default_instance() -> &'static PeerInfo { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const PeerInfo, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(PeerInfo::new) } @@ -784,8 +772,8 @@ impl ::std::fmt::Debug for PeerInfo { } impl ::protobuf::reflect::ProtobufValue for PeerInfo { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -802,8 +790,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\ onR\x0binactiveFor\x127\n\tlast_seen\x18\x06\x20\x01(\x0b2\x1a.google.pr\ otobuf.TimestampR\x08lastSeen\x126\n\x08modified\x18\x07\x20\x01(\x0b2\ \x1a.google.protobuf.TimestampR\x08modified\x124\n\x07created\x18\x08\ - \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07createdB\x02P\x01J\x85\ - \x11\n\x06\x12\x04\x13\0/\x01\n\xdf\x06\n\x01\x0c\x12\x03\x13\0\x122\xd4\ + \x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x07createdB\x02P\x01J\xe7\ + \x12\n\x06\x12\x04\x13\0/\x01\n\xdf\x06\n\x01\x0c\x12\x03\x13\0\x122\xd4\ \x06*\n\x20Copyright\x20(c)\x202019\x20Catalyst\x20Network\n\n\x20This\ \x20file\x20is\x20part\x20of\x20Catalyst.Network.Protocol.Protobuffs\x20\ \n\n\x20Catalys\ @@ -821,58 +809,65 @@ static file_descriptor_proto_data: &'static [u8] = b"\ uld\x20have\x20received\x20a\x20copy\x20of\x20the\x20GNU\x20General\x20P\ ublic\x20License\n\x20along\x20with\x20Catalyst.Network.Protocol.Protobu\ ffs\x20If\x20not,\x20see\x20.\n\n\x08\n\ - \x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\x08\n\x01\x02\ - \x12\x03\x17\0\x1f\n\t\n\x02\x03\0\x12\x03\x19\0)\n\t\n\x02\x03\x01\x12\ - \x03\x1a\0(\n\xaf\x01\n\x02\x04\0\x12\x04\x20\0$\x01\x1a\xa2\x01*\n\x20A\ - ggregated\x20size\x20of\x20the\x20fields\x20in\x20PeerId\x20should\x20be\ - \x2042\x20bytes\x20as\x20specified\x20in\n\x20https://github.com/catalys\ - t-network/protocol-blueprint/blob/master/PeerProtocol.md\n\n\n\n\x03\x04\ - \0\x01\x12\x03\x20\x08\x0e\n\x17\n\x04\x04\0\x02\0\x12\x03!\x04\x11\"\n\ - \x2016\x20bytes\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03!\x04\t\n\x0c\n\x05\ - \x04\0\x02\0\x01\x12\x03!\n\x0c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03!\x0f\ - \x10\n\x16\n\x04\x04\0\x02\x01\x12\x03\"\x04\x14\"\t\x202\x20bytes\n\n\ - \x0c\n\x05\x04\0\x02\x01\x05\x12\x03\"\x04\n\n\x0c\n\x05\x04\0\x02\x01\ - \x01\x12\x03\"\x0b\x0f\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\"\x12\x13\n\ - r\n\x04\x04\0\x02\x02\x12\x03#\x04\x19\"e\x20Peers\x20public\x20key,\x20\ - node\x20operators\x20are\x20encouraged\x20to\x20use\x20the\x20same,\x20p\ - ublic\x20key\x20across\x20all\x20their\x20nodes.\n\n\x0c\n\x05\x04\0\x02\ - \x02\x05\x12\x03#\x04\t\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03#\n\x14\n\ - \x0c\n\x05\x04\0\x02\x02\x03\x12\x03#\x17\x18\n\n\n\x02\x04\x01\x12\x04&\ - \0/\x01\n\n\n\x03\x04\x01\x01\x12\x03&\x08\x10\n#\n\x04\x04\x01\x02\0\ - \x12\x03'\x04\x17\"\x16\x20is\x20peerId\x20of\x20network\n\n\x0c\n\x05\ - \x04\x01\x02\0\x06\x12\x03'\x04\n\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03'\ - \x0b\x12\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03'\x15\x16\n!\n\x04\x04\x01\ - \x02\x01\x12\x03(\x04\x1a\"\x14\x20reputation\x20of\x20peer\n\n\x0c\n\ - \x05\x04\x01\x02\x01\x05\x12\x03(\x04\n\n\x0c\n\x05\x04\x01\x02\x01\x01\ - \x12\x03(\x0b\x15\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03(\x18\x19\n5\n\ - \x04\x04\x01\x02\x02\x12\x03)\x04\x1c\"(\x20is\x20to\x20check\x20if\x20t\ - he\x20peer\x20is\x20blackListed\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\ - \x03)\x04\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03)\t\x17\n\x0c\n\x05\ - \x04\x01\x02\x02\x03\x12\x03)\x1a\x1b\n@\n\x04\x04\x01\x02\x03\x12\x03*\ - \x04\x1c\"3\x20is\x20when\x20the\x20peer\x20cannot\x20be\x20reached\x20o\ - n\x20the\x20network\n\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03*\x04\x08\n\ - \x0c\n\x05\x04\x01\x02\x03\x01\x12\x03*\t\x17\n\x0c\n\x05\x04\x01\x02\ - \x03\x03\x12\x03*\x1a\x1b\n:\n\x04\x04\x01\x02\x04\x12\x03+\x04.\"-\x20i\ - s\x20how\x20long\x20the\x20peer\x20has\x20beekn\x20inactive\x20for\n\n\ - \x0c\n\x05\x04\x01\x02\x04\x06\x12\x03+\x04\x1c\n\x0c\n\x05\x04\x01\x02\ - \x04\x01\x12\x03+\x1d)\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x03+,-\n-\n\ - \x04\x04\x01\x02\x05\x12\x03,\x04,\"\x20\x20is\x20when\x20the\x20peer\ - \x20was\x20last\x20seen\n\n\x0c\n\x05\x04\x01\x02\x05\x06\x12\x03,\x04\ - \x1d\n\x0c\n\x05\x04\x01\x02\x05\x01\x12\x03,\x1e'\n\x0c\n\x05\x04\x01\ - \x02\x05\x03\x12\x03,*+\n:\n\x04\x04\x01\x02\x06\x12\x03-\x04+\"-\x20mod\ - ified\x20is\x20when\x20the\x20peer\x20was\x20last\x20modified\n\n\x0c\n\ - \x05\x04\x01\x02\x06\x06\x12\x03-\x04\x1d\n\x0c\n\x05\x04\x01\x02\x06\ - \x01\x12\x03-\x1e&\n\x0c\n\x05\x04\x01\x02\x06\x03\x12\x03-)*\n3\n\x04\ - \x04\x01\x02\x07\x12\x03.\x04*\"&\x20created\x20is\x20when\x20the\x20pee\ - r\x20was\x20created\n\n\x0c\n\x05\x04\x01\x02\x07\x06\x12\x03.\x04\x1d\n\ - \x0c\n\x05\x04\x01\x02\x07\x01\x12\x03.\x1e%\n\x0c\n\x05\x04\x01\x02\x07\ - \x03\x12\x03.()b\x06proto3\ + \x01\x08\x12\x03\x15\0\"\n\x0b\n\x04\x08\xe7\x07\0\x12\x03\x15\0\"\n\x0c\ + \n\x05\x08\xe7\x07\0\x02\x12\x03\x15\x07\x1a\n\r\n\x06\x08\xe7\x07\0\x02\ + \0\x12\x03\x15\x07\x1a\n\x0e\n\x07\x08\xe7\x07\0\x02\0\x01\x12\x03\x15\ + \x07\x1a\n\x0c\n\x05\x08\xe7\x07\0\x03\x12\x03\x15\x1d!\n\x08\n\x01\x02\ + \x12\x03\x17\x08\x1e\n\t\n\x02\x03\0\x12\x03\x19\x07(\n\t\n\x02\x03\x01\ + \x12\x03\x1a\x07'\n\xaf\x01\n\x02\x04\0\x12\x04\x20\0$\x01\x1a\xa2\x01*\ + \n\x20Aggregated\x20size\x20of\x20the\x20fields\x20in\x20PeerId\x20shoul\ + d\x20be\x2042\x20bytes\x20as\x20specified\x20in\n\x20https://github.com/\ + catalyst-network/protocol-blueprint/blob/master/PeerProtocol.md\n\n\n\n\ + \x03\x04\0\x01\x12\x03\x20\x08\x0e\n\x17\n\x04\x04\0\x02\0\x12\x03!\x04\ + \x11\"\n\x2016\x20bytes\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04!\x04\x20\x10\ + \n\x0c\n\x05\x04\0\x02\0\x05\x12\x03!\x04\t\n\x0c\n\x05\x04\0\x02\0\x01\ + \x12\x03!\n\x0c\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03!\x0f\x10\n\x16\n\x04\ + \x04\0\x02\x01\x12\x03\"\x04\x14\"\t\x202\x20bytes\n\n\r\n\x05\x04\0\x02\ + \x01\x04\x12\x04\"\x04!\x11\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\"\x04\ + \n\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\"\x0b\x0f\n\x0c\n\x05\x04\0\x02\ + \x01\x03\x12\x03\"\x12\x13\nr\n\x04\x04\0\x02\x02\x12\x03#\x04\x19\"e\ + \x20Peers\x20public\x20key,\x20node\x20operators\x20are\x20encouraged\ + \x20to\x20use\x20the\x20same,\x20public\x20key\x20across\x20all\x20their\ + \x20nodes.\n\n\r\n\x05\x04\0\x02\x02\x04\x12\x04#\x04\"\x14\n\x0c\n\x05\ + \x04\0\x02\x02\x05\x12\x03#\x04\t\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03#\ + \n\x14\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03#\x17\x18\n\n\n\x02\x04\x01\ + \x12\x04&\0/\x01\n\n\n\x03\x04\x01\x01\x12\x03&\x08\x10\n#\n\x04\x04\x01\ + \x02\0\x12\x03'\x04\x17\"\x16\x20is\x20peerId\x20of\x20network\n\n\r\n\ + \x05\x04\x01\x02\0\x04\x12\x04'\x04&\x12\n\x0c\n\x05\x04\x01\x02\0\x06\ + \x12\x03'\x04\n\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03'\x0b\x12\n\x0c\n\ + \x05\x04\x01\x02\0\x03\x12\x03'\x15\x16\n!\n\x04\x04\x01\x02\x01\x12\x03\ + (\x04\x1a\"\x14\x20reputation\x20of\x20peer\n\n\r\n\x05\x04\x01\x02\x01\ + \x04\x12\x04(\x04'\x17\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03(\x04\n\n\ + \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03(\x0b\x15\n\x0c\n\x05\x04\x01\x02\ + \x01\x03\x12\x03(\x18\x19\n5\n\x04\x04\x01\x02\x02\x12\x03)\x04\x1c\"(\ + \x20is\x20to\x20check\x20if\x20the\x20peer\x20is\x20blackListed\n\n\r\n\ + \x05\x04\x01\x02\x02\x04\x12\x04)\x04(\x1a\n\x0c\n\x05\x04\x01\x02\x02\ + \x05\x12\x03)\x04\x08\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03)\t\x17\n\ + \x0c\n\x05\x04\x01\x02\x02\x03\x12\x03)\x1a\x1b\n@\n\x04\x04\x01\x02\x03\ + \x12\x03*\x04\x1c\"3\x20is\x20when\x20the\x20peer\x20cannot\x20be\x20rea\ + ched\x20on\x20the\x20network\n\n\r\n\x05\x04\x01\x02\x03\x04\x12\x04*\ + \x04)\x1c\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03*\x04\x08\n\x0c\n\x05\ + \x04\x01\x02\x03\x01\x12\x03*\t\x17\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\ + \x03*\x1a\x1b\n:\n\x04\x04\x01\x02\x04\x12\x03+\x04.\"-\x20is\x20how\x20\ + long\x20the\x20peer\x20has\x20beekn\x20inactive\x20for\n\n\r\n\x05\x04\ + \x01\x02\x04\x04\x12\x04+\x04*\x1c\n\x0c\n\x05\x04\x01\x02\x04\x06\x12\ + \x03+\x04\x1c\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03+\x1d)\n\x0c\n\x05\ + \x04\x01\x02\x04\x03\x12\x03+,-\n-\n\x04\x04\x01\x02\x05\x12\x03,\x04,\"\ + \x20\x20is\x20when\x20the\x20peer\x20was\x20last\x20seen\n\n\r\n\x05\x04\ + \x01\x02\x05\x04\x12\x04,\x04+.\n\x0c\n\x05\x04\x01\x02\x05\x06\x12\x03,\ + \x04\x1d\n\x0c\n\x05\x04\x01\x02\x05\x01\x12\x03,\x1e'\n\x0c\n\x05\x04\ + \x01\x02\x05\x03\x12\x03,*+\n:\n\x04\x04\x01\x02\x06\x12\x03-\x04+\"-\ + \x20modified\x20is\x20when\x20the\x20peer\x20was\x20last\x20modified\n\n\ + \r\n\x05\x04\x01\x02\x06\x04\x12\x04-\x04,,\n\x0c\n\x05\x04\x01\x02\x06\ + \x06\x12\x03-\x04\x1d\n\x0c\n\x05\x04\x01\x02\x06\x01\x12\x03-\x1e&\n\ + \x0c\n\x05\x04\x01\x02\x06\x03\x12\x03-)*\n3\n\x04\x04\x01\x02\x07\x12\ + \x03.\x04*\"&\x20created\x20is\x20when\x20the\x20peer\x20was\x20created\ + \n\n\r\n\x05\x04\x01\x02\x07\x04\x12\x04.\x04-+\n\x0c\n\x05\x04\x01\x02\ + \x07\x06\x12\x03.\x04\x1d\n\x0c\n\x05\x04\x01\x02\x07\x01\x12\x03.\x1e%\ + \n\x0c\n\x05\x04\x01\x02\x07\x03\x12\x03.()b\x06proto3\ "; -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto, -}; +static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() diff --git a/packages/sdk-rust/src/Rpc.rs b/packages/sdk-rust/src/Rpc.rs index f4d5398..1782e85 100644 --- a/packages/sdk-rust/src/Rpc.rs +++ b/packages/sdk-rust/src/Rpc.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.10.1. Do not edit +// This file is generated by rust-protobuf 2.14.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -24,7 +24,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; #[derive(PartialEq,Clone,Default)] pub struct VersionRequest { @@ -137,10 +137,7 @@ impl ::protobuf::Message for VersionRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -149,7 +146,7 @@ impl ::protobuf::Message for VersionRequest { |m: &VersionRequest| { &m.query }, |m: &mut VersionRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "VersionRequest", fields, file_descriptor_proto() @@ -159,10 +156,7 @@ impl ::protobuf::Message for VersionRequest { } fn default_instance() -> &'static VersionRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const VersionRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(VersionRequest::new) } @@ -183,8 +177,8 @@ impl ::std::fmt::Debug for VersionRequest { } impl ::protobuf::reflect::ProtobufValue for VersionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -306,10 +300,7 @@ impl ::protobuf::Message for VersionResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -318,7 +309,7 @@ impl ::protobuf::Message for VersionResponse { |m: &VersionResponse| { &m.version }, |m: &mut VersionResponse| { &mut m.version }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "VersionResponse", fields, file_descriptor_proto() @@ -328,10 +319,7 @@ impl ::protobuf::Message for VersionResponse { } fn default_instance() -> &'static VersionResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const VersionResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(VersionResponse::new) } @@ -352,8 +340,8 @@ impl ::std::fmt::Debug for VersionResponse { } impl ::protobuf::reflect::ProtobufValue for VersionResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -468,10 +456,7 @@ impl ::protobuf::Message for GetInfoRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -480,7 +465,7 @@ impl ::protobuf::Message for GetInfoRequest { |m: &GetInfoRequest| { &m.query }, |m: &mut GetInfoRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetInfoRequest", fields, file_descriptor_proto() @@ -490,10 +475,7 @@ impl ::protobuf::Message for GetInfoRequest { } fn default_instance() -> &'static GetInfoRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetInfoRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetInfoRequest::new) } @@ -514,8 +496,8 @@ impl ::std::fmt::Debug for GetInfoRequest { } impl ::protobuf::reflect::ProtobufValue for GetInfoRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -637,10 +619,7 @@ impl ::protobuf::Message for GetInfoResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -649,7 +628,7 @@ impl ::protobuf::Message for GetInfoResponse { |m: &GetInfoResponse| { &m.query }, |m: &mut GetInfoResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetInfoResponse", fields, file_descriptor_proto() @@ -659,10 +638,7 @@ impl ::protobuf::Message for GetInfoResponse { } fn default_instance() -> &'static GetInfoResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetInfoResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetInfoResponse::new) } @@ -683,8 +659,8 @@ impl ::std::fmt::Debug for GetInfoResponse { } impl ::protobuf::reflect::ProtobufValue for GetInfoResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -799,10 +775,7 @@ impl ::protobuf::Message for CreateWalletRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -811,7 +784,7 @@ impl ::protobuf::Message for CreateWalletRequest { |m: &CreateWalletRequest| { &m.query }, |m: &mut CreateWalletRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "CreateWalletRequest", fields, file_descriptor_proto() @@ -821,10 +794,7 @@ impl ::protobuf::Message for CreateWalletRequest { } fn default_instance() -> &'static CreateWalletRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const CreateWalletRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(CreateWalletRequest::new) } @@ -845,8 +815,8 @@ impl ::std::fmt::Debug for CreateWalletRequest { } impl ::protobuf::reflect::ProtobufValue for CreateWalletRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -968,10 +938,7 @@ impl ::protobuf::Message for CreateWalletResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -980,7 +947,7 @@ impl ::protobuf::Message for CreateWalletResponse { |m: &CreateWalletResponse| { &m.query }, |m: &mut CreateWalletResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "CreateWalletResponse", fields, file_descriptor_proto() @@ -990,10 +957,7 @@ impl ::protobuf::Message for CreateWalletResponse { } fn default_instance() -> &'static CreateWalletResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const CreateWalletResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(CreateWalletResponse::new) } @@ -1014,8 +978,8 @@ impl ::std::fmt::Debug for CreateWalletResponse { } impl ::protobuf::reflect::ProtobufValue for CreateWalletResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1130,10 +1094,7 @@ impl ::protobuf::Message for ListWalletRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -1142,7 +1103,7 @@ impl ::protobuf::Message for ListWalletRequest { |m: &ListWalletRequest| { &m.query }, |m: &mut ListWalletRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ListWalletRequest", fields, file_descriptor_proto() @@ -1152,10 +1113,7 @@ impl ::protobuf::Message for ListWalletRequest { } fn default_instance() -> &'static ListWalletRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ListWalletRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(ListWalletRequest::new) } @@ -1176,8 +1134,8 @@ impl ::std::fmt::Debug for ListWalletRequest { } impl ::protobuf::reflect::ProtobufValue for ListWalletRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1299,10 +1257,7 @@ impl ::protobuf::Message for ListWalletResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -1311,7 +1266,7 @@ impl ::protobuf::Message for ListWalletResponse { |m: &ListWalletResponse| { &m.query }, |m: &mut ListWalletResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ListWalletResponse", fields, file_descriptor_proto() @@ -1321,10 +1276,7 @@ impl ::protobuf::Message for ListWalletResponse { } fn default_instance() -> &'static ListWalletResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ListWalletResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(ListWalletResponse::new) } @@ -1345,8 +1297,8 @@ impl ::std::fmt::Debug for ListWalletResponse { } impl ::protobuf::reflect::ProtobufValue for ListWalletResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1461,10 +1413,7 @@ impl ::protobuf::Message for CreateAddressRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -1473,7 +1422,7 @@ impl ::protobuf::Message for CreateAddressRequest { |m: &CreateAddressRequest| { &m.query }, |m: &mut CreateAddressRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "CreateAddressRequest", fields, file_descriptor_proto() @@ -1483,10 +1432,7 @@ impl ::protobuf::Message for CreateAddressRequest { } fn default_instance() -> &'static CreateAddressRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const CreateAddressRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(CreateAddressRequest::new) } @@ -1507,8 +1453,8 @@ impl ::std::fmt::Debug for CreateAddressRequest { } impl ::protobuf::reflect::ProtobufValue for CreateAddressRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1630,10 +1576,7 @@ impl ::protobuf::Message for CreateAddressResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -1642,7 +1585,7 @@ impl ::protobuf::Message for CreateAddressResponse { |m: &CreateAddressResponse| { &m.query }, |m: &mut CreateAddressResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "CreateAddressResponse", fields, file_descriptor_proto() @@ -1652,10 +1595,7 @@ impl ::protobuf::Message for CreateAddressResponse { } fn default_instance() -> &'static CreateAddressResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const CreateAddressResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(CreateAddressResponse::new) } @@ -1676,8 +1616,8 @@ impl ::std::fmt::Debug for CreateAddressResponse { } impl ::protobuf::reflect::ProtobufValue for CreateAddressResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1792,10 +1732,7 @@ impl ::protobuf::Message for GetAddressRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -1804,7 +1741,7 @@ impl ::protobuf::Message for GetAddressRequest { |m: &GetAddressRequest| { &m.query }, |m: &mut GetAddressRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetAddressRequest", fields, file_descriptor_proto() @@ -1814,10 +1751,7 @@ impl ::protobuf::Message for GetAddressRequest { } fn default_instance() -> &'static GetAddressRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetAddressRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetAddressRequest::new) } @@ -1838,8 +1772,8 @@ impl ::std::fmt::Debug for GetAddressRequest { } impl ::protobuf::reflect::ProtobufValue for GetAddressRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1961,10 +1895,7 @@ impl ::protobuf::Message for GetAddressResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -1973,7 +1904,7 @@ impl ::protobuf::Message for GetAddressResponse { |m: &GetAddressResponse| { &m.query }, |m: &mut GetAddressResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetAddressResponse", fields, file_descriptor_proto() @@ -1983,10 +1914,7 @@ impl ::protobuf::Message for GetAddressResponse { } fn default_instance() -> &'static GetAddressResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetAddressResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetAddressResponse::new) } @@ -2007,8 +1935,8 @@ impl ::std::fmt::Debug for GetAddressResponse { } impl ::protobuf::reflect::ProtobufValue for GetAddressResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -2123,10 +2051,7 @@ impl ::protobuf::Message for ListAddressRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -2135,7 +2060,7 @@ impl ::protobuf::Message for ListAddressRequest { |m: &ListAddressRequest| { &m.query }, |m: &mut ListAddressRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ListAddressRequest", fields, file_descriptor_proto() @@ -2145,10 +2070,7 @@ impl ::protobuf::Message for ListAddressRequest { } fn default_instance() -> &'static ListAddressRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ListAddressRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(ListAddressRequest::new) } @@ -2169,8 +2091,8 @@ impl ::std::fmt::Debug for ListAddressRequest { } impl ::protobuf::reflect::ProtobufValue for ListAddressRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -2292,10 +2214,7 @@ impl ::protobuf::Message for ListAddressResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -2304,7 +2223,7 @@ impl ::protobuf::Message for ListAddressResponse { |m: &ListAddressResponse| { &m.query }, |m: &mut ListAddressResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ListAddressResponse", fields, file_descriptor_proto() @@ -2314,10 +2233,7 @@ impl ::protobuf::Message for ListAddressResponse { } fn default_instance() -> &'static ListAddressResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ListAddressResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(ListAddressResponse::new) } @@ -2338,8 +2254,8 @@ impl ::std::fmt::Debug for ListAddressResponse { } impl ::protobuf::reflect::ProtobufValue for ListAddressResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -2454,10 +2370,7 @@ impl ::protobuf::Message for ValidateAddressRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -2466,7 +2379,7 @@ impl ::protobuf::Message for ValidateAddressRequest { |m: &ValidateAddressRequest| { &m.query }, |m: &mut ValidateAddressRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ValidateAddressRequest", fields, file_descriptor_proto() @@ -2476,10 +2389,7 @@ impl ::protobuf::Message for ValidateAddressRequest { } fn default_instance() -> &'static ValidateAddressRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ValidateAddressRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(ValidateAddressRequest::new) } @@ -2500,8 +2410,8 @@ impl ::std::fmt::Debug for ValidateAddressRequest { } impl ::protobuf::reflect::ProtobufValue for ValidateAddressRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -2623,10 +2533,7 @@ impl ::protobuf::Message for ValidateAddressResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -2635,7 +2542,7 @@ impl ::protobuf::Message for ValidateAddressResponse { |m: &ValidateAddressResponse| { &m.query }, |m: &mut ValidateAddressResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ValidateAddressResponse", fields, file_descriptor_proto() @@ -2645,10 +2552,7 @@ impl ::protobuf::Message for ValidateAddressResponse { } fn default_instance() -> &'static ValidateAddressResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ValidateAddressResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(ValidateAddressResponse::new) } @@ -2669,8 +2573,8 @@ impl ::std::fmt::Debug for ValidateAddressResponse { } impl ::protobuf::reflect::ProtobufValue for ValidateAddressResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -2785,10 +2689,7 @@ impl ::protobuf::Message for GetBalanceRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -2797,7 +2698,7 @@ impl ::protobuf::Message for GetBalanceRequest { |m: &GetBalanceRequest| { &m.query }, |m: &mut GetBalanceRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetBalanceRequest", fields, file_descriptor_proto() @@ -2807,10 +2708,7 @@ impl ::protobuf::Message for GetBalanceRequest { } fn default_instance() -> &'static GetBalanceRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetBalanceRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetBalanceRequest::new) } @@ -2831,8 +2729,8 @@ impl ::std::fmt::Debug for GetBalanceRequest { } impl ::protobuf::reflect::ProtobufValue for GetBalanceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -2954,10 +2852,7 @@ impl ::protobuf::Message for GetBalanceResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -2966,7 +2861,7 @@ impl ::protobuf::Message for GetBalanceResponse { |m: &GetBalanceResponse| { &m.query }, |m: &mut GetBalanceResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetBalanceResponse", fields, file_descriptor_proto() @@ -2976,10 +2871,7 @@ impl ::protobuf::Message for GetBalanceResponse { } fn default_instance() -> &'static GetBalanceResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetBalanceResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetBalanceResponse::new) } @@ -3000,8 +2892,8 @@ impl ::std::fmt::Debug for GetBalanceResponse { } impl ::protobuf::reflect::ProtobufValue for GetBalanceResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -3116,10 +3008,7 @@ impl ::protobuf::Message for CreateRawTransactionRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -3128,7 +3017,7 @@ impl ::protobuf::Message for CreateRawTransactionRequest { |m: &CreateRawTransactionRequest| { &m.query }, |m: &mut CreateRawTransactionRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "CreateRawTransactionRequest", fields, file_descriptor_proto() @@ -3138,10 +3027,7 @@ impl ::protobuf::Message for CreateRawTransactionRequest { } fn default_instance() -> &'static CreateRawTransactionRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const CreateRawTransactionRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(CreateRawTransactionRequest::new) } @@ -3162,8 +3048,8 @@ impl ::std::fmt::Debug for CreateRawTransactionRequest { } impl ::protobuf::reflect::ProtobufValue for CreateRawTransactionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -3285,10 +3171,7 @@ impl ::protobuf::Message for CreateRawTransactionResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -3297,7 +3180,7 @@ impl ::protobuf::Message for CreateRawTransactionResponse { |m: &CreateRawTransactionResponse| { &m.query }, |m: &mut CreateRawTransactionResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "CreateRawTransactionResponse", fields, file_descriptor_proto() @@ -3307,10 +3190,7 @@ impl ::protobuf::Message for CreateRawTransactionResponse { } fn default_instance() -> &'static CreateRawTransactionResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const CreateRawTransactionResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(CreateRawTransactionResponse::new) } @@ -3331,8 +3211,8 @@ impl ::std::fmt::Debug for CreateRawTransactionResponse { } impl ::protobuf::reflect::ProtobufValue for CreateRawTransactionResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -3447,10 +3327,7 @@ impl ::protobuf::Message for SignRawTransactionRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -3459,7 +3336,7 @@ impl ::protobuf::Message for SignRawTransactionRequest { |m: &SignRawTransactionRequest| { &m.query }, |m: &mut SignRawTransactionRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SignRawTransactionRequest", fields, file_descriptor_proto() @@ -3469,10 +3346,7 @@ impl ::protobuf::Message for SignRawTransactionRequest { } fn default_instance() -> &'static SignRawTransactionRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SignRawTransactionRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SignRawTransactionRequest::new) } @@ -3493,8 +3367,8 @@ impl ::std::fmt::Debug for SignRawTransactionRequest { } impl ::protobuf::reflect::ProtobufValue for SignRawTransactionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -3616,10 +3490,7 @@ impl ::protobuf::Message for SignRawTransactionResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -3628,7 +3499,7 @@ impl ::protobuf::Message for SignRawTransactionResponse { |m: &SignRawTransactionResponse| { &m.query }, |m: &mut SignRawTransactionResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SignRawTransactionResponse", fields, file_descriptor_proto() @@ -3638,10 +3509,7 @@ impl ::protobuf::Message for SignRawTransactionResponse { } fn default_instance() -> &'static SignRawTransactionResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SignRawTransactionResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SignRawTransactionResponse::new) } @@ -3662,8 +3530,8 @@ impl ::std::fmt::Debug for SignRawTransactionResponse { } impl ::protobuf::reflect::ProtobufValue for SignRawTransactionResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -3778,10 +3646,7 @@ impl ::protobuf::Message for DecodeRawTransactionRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -3790,7 +3655,7 @@ impl ::protobuf::Message for DecodeRawTransactionRequest { |m: &DecodeRawTransactionRequest| { &m.query }, |m: &mut DecodeRawTransactionRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "DecodeRawTransactionRequest", fields, file_descriptor_proto() @@ -3800,10 +3665,7 @@ impl ::protobuf::Message for DecodeRawTransactionRequest { } fn default_instance() -> &'static DecodeRawTransactionRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const DecodeRawTransactionRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(DecodeRawTransactionRequest::new) } @@ -3824,8 +3686,8 @@ impl ::std::fmt::Debug for DecodeRawTransactionRequest { } impl ::protobuf::reflect::ProtobufValue for DecodeRawTransactionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -3947,10 +3809,7 @@ impl ::protobuf::Message for DecodeRawTransactionResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -3959,7 +3818,7 @@ impl ::protobuf::Message for DecodeRawTransactionResponse { |m: &DecodeRawTransactionResponse| { &m.query }, |m: &mut DecodeRawTransactionResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "DecodeRawTransactionResponse", fields, file_descriptor_proto() @@ -3969,10 +3828,7 @@ impl ::protobuf::Message for DecodeRawTransactionResponse { } fn default_instance() -> &'static DecodeRawTransactionResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const DecodeRawTransactionResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(DecodeRawTransactionResponse::new) } @@ -3993,8 +3849,8 @@ impl ::std::fmt::Debug for DecodeRawTransactionResponse { } impl ::protobuf::reflect::ProtobufValue for DecodeRawTransactionResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -4131,10 +3987,7 @@ impl ::protobuf::Message for BroadcastRawTransactionRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -4143,7 +3996,7 @@ impl ::protobuf::Message for BroadcastRawTransactionRequest { |m: &BroadcastRawTransactionRequest| { &m.transaction }, |m: &mut BroadcastRawTransactionRequest| { &mut m.transaction }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "BroadcastRawTransactionRequest", fields, file_descriptor_proto() @@ -4153,10 +4006,7 @@ impl ::protobuf::Message for BroadcastRawTransactionRequest { } fn default_instance() -> &'static BroadcastRawTransactionRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const BroadcastRawTransactionRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(BroadcastRawTransactionRequest::new) } @@ -4177,8 +4027,8 @@ impl ::std::fmt::Debug for BroadcastRawTransactionRequest { } impl ::protobuf::reflect::ProtobufValue for BroadcastRawTransactionRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -4289,10 +4139,7 @@ impl ::protobuf::Message for BroadcastRawTransactionResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -4301,7 +4148,7 @@ impl ::protobuf::Message for BroadcastRawTransactionResponse { |m: &BroadcastRawTransactionResponse| { &m.response_code }, |m: &mut BroadcastRawTransactionResponse| { &mut m.response_code }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "BroadcastRawTransactionResponse", fields, file_descriptor_proto() @@ -4311,10 +4158,7 @@ impl ::protobuf::Message for BroadcastRawTransactionResponse { } fn default_instance() -> &'static BroadcastRawTransactionResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const BroadcastRawTransactionResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(BroadcastRawTransactionResponse::new) } @@ -4335,8 +4179,8 @@ impl ::std::fmt::Debug for BroadcastRawTransactionResponse { } impl ::protobuf::reflect::ProtobufValue for BroadcastRawTransactionResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -4451,10 +4295,7 @@ impl ::protobuf::Message for SendToRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -4463,7 +4304,7 @@ impl ::protobuf::Message for SendToRequest { |m: &SendToRequest| { &m.query }, |m: &mut SendToRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SendToRequest", fields, file_descriptor_proto() @@ -4473,10 +4314,7 @@ impl ::protobuf::Message for SendToRequest { } fn default_instance() -> &'static SendToRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SendToRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SendToRequest::new) } @@ -4497,8 +4335,8 @@ impl ::std::fmt::Debug for SendToRequest { } impl ::protobuf::reflect::ProtobufValue for SendToRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -4620,10 +4458,7 @@ impl ::protobuf::Message for SendToResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -4632,7 +4467,7 @@ impl ::protobuf::Message for SendToResponse { |m: &SendToResponse| { &m.query }, |m: &mut SendToResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SendToResponse", fields, file_descriptor_proto() @@ -4642,10 +4477,7 @@ impl ::protobuf::Message for SendToResponse { } fn default_instance() -> &'static SendToResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SendToResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SendToResponse::new) } @@ -4666,8 +4498,8 @@ impl ::std::fmt::Debug for SendToResponse { } impl ::protobuf::reflect::ProtobufValue for SendToResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -4782,10 +4614,7 @@ impl ::protobuf::Message for SendToFromRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -4794,7 +4623,7 @@ impl ::protobuf::Message for SendToFromRequest { |m: &SendToFromRequest| { &m.query }, |m: &mut SendToFromRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SendToFromRequest", fields, file_descriptor_proto() @@ -4804,10 +4633,7 @@ impl ::protobuf::Message for SendToFromRequest { } fn default_instance() -> &'static SendToFromRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SendToFromRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SendToFromRequest::new) } @@ -4828,8 +4654,8 @@ impl ::std::fmt::Debug for SendToFromRequest { } impl ::protobuf::reflect::ProtobufValue for SendToFromRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -4951,10 +4777,7 @@ impl ::protobuf::Message for SendToFromResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -4963,7 +4786,7 @@ impl ::protobuf::Message for SendToFromResponse { |m: &SendToFromResponse| { &m.query }, |m: &mut SendToFromResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SendToFromResponse", fields, file_descriptor_proto() @@ -4973,10 +4796,7 @@ impl ::protobuf::Message for SendToFromResponse { } fn default_instance() -> &'static SendToFromResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SendToFromResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SendToFromResponse::new) } @@ -4997,8 +4817,8 @@ impl ::std::fmt::Debug for SendToFromResponse { } impl ::protobuf::reflect::ProtobufValue for SendToFromResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -5113,10 +4933,7 @@ impl ::protobuf::Message for SendManyRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -5125,7 +4942,7 @@ impl ::protobuf::Message for SendManyRequest { |m: &SendManyRequest| { &m.query }, |m: &mut SendManyRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SendManyRequest", fields, file_descriptor_proto() @@ -5135,10 +4952,7 @@ impl ::protobuf::Message for SendManyRequest { } fn default_instance() -> &'static SendManyRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SendManyRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SendManyRequest::new) } @@ -5159,8 +4973,8 @@ impl ::std::fmt::Debug for SendManyRequest { } impl ::protobuf::reflect::ProtobufValue for SendManyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -5282,10 +5096,7 @@ impl ::protobuf::Message for SendManyResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -5294,7 +5105,7 @@ impl ::protobuf::Message for SendManyResponse { |m: &SendManyResponse| { &m.query }, |m: &mut SendManyResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SendManyResponse", fields, file_descriptor_proto() @@ -5304,10 +5115,7 @@ impl ::protobuf::Message for SendManyResponse { } fn default_instance() -> &'static SendManyResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SendManyResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SendManyResponse::new) } @@ -5328,8 +5136,8 @@ impl ::std::fmt::Debug for SendManyResponse { } impl ::protobuf::reflect::ProtobufValue for SendManyResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -5444,10 +5252,7 @@ impl ::protobuf::Message for SendFromManyRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -5456,7 +5261,7 @@ impl ::protobuf::Message for SendFromManyRequest { |m: &SendFromManyRequest| { &m.query }, |m: &mut SendFromManyRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SendFromManyRequest", fields, file_descriptor_proto() @@ -5466,10 +5271,7 @@ impl ::protobuf::Message for SendFromManyRequest { } fn default_instance() -> &'static SendFromManyRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SendFromManyRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SendFromManyRequest::new) } @@ -5490,8 +5292,8 @@ impl ::std::fmt::Debug for SendFromManyRequest { } impl ::protobuf::reflect::ProtobufValue for SendFromManyRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -5613,10 +5415,7 @@ impl ::protobuf::Message for SendFromManyResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -5625,7 +5424,7 @@ impl ::protobuf::Message for SendFromManyResponse { |m: &SendFromManyResponse| { &m.query }, |m: &mut SendFromManyResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SendFromManyResponse", fields, file_descriptor_proto() @@ -5635,10 +5434,7 @@ impl ::protobuf::Message for SendFromManyResponse { } fn default_instance() -> &'static SendFromManyResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SendFromManyResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SendFromManyResponse::new) } @@ -5659,8 +5455,8 @@ impl ::std::fmt::Debug for SendFromManyResponse { } impl ::protobuf::reflect::ProtobufValue for SendFromManyResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -5775,10 +5571,7 @@ impl ::protobuf::Message for AddNodeRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -5787,7 +5580,7 @@ impl ::protobuf::Message for AddNodeRequest { |m: &AddNodeRequest| { &m.query }, |m: &mut AddNodeRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "AddNodeRequest", fields, file_descriptor_proto() @@ -5797,10 +5590,7 @@ impl ::protobuf::Message for AddNodeRequest { } fn default_instance() -> &'static AddNodeRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const AddNodeRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(AddNodeRequest::new) } @@ -5821,8 +5611,8 @@ impl ::std::fmt::Debug for AddNodeRequest { } impl ::protobuf::reflect::ProtobufValue for AddNodeRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -5944,10 +5734,7 @@ impl ::protobuf::Message for AddNodeResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -5956,7 +5743,7 @@ impl ::protobuf::Message for AddNodeResponse { |m: &AddNodeResponse| { &m.query }, |m: &mut AddNodeResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "AddNodeResponse", fields, file_descriptor_proto() @@ -5966,10 +5753,7 @@ impl ::protobuf::Message for AddNodeResponse { } fn default_instance() -> &'static AddNodeResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const AddNodeResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(AddNodeResponse::new) } @@ -5990,8 +5774,8 @@ impl ::std::fmt::Debug for AddNodeResponse { } impl ::protobuf::reflect::ProtobufValue for AddNodeResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -6076,14 +5860,11 @@ impl ::protobuf::Message for GetPeerListRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetPeerListRequest", fields, file_descriptor_proto() @@ -6093,10 +5874,7 @@ impl ::protobuf::Message for GetPeerListRequest { } fn default_instance() -> &'static GetPeerListRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetPeerListRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetPeerListRequest::new) } @@ -6116,8 +5894,8 @@ impl ::std::fmt::Debug for GetPeerListRequest { } impl ::protobuf::reflect::ProtobufValue for GetPeerListRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -6246,10 +6024,7 @@ impl ::protobuf::Message for GetPeerListResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -6258,7 +6033,7 @@ impl ::protobuf::Message for GetPeerListResponse { |m: &GetPeerListResponse| { &m.peers }, |m: &mut GetPeerListResponse| { &mut m.peers }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetPeerListResponse", fields, file_descriptor_proto() @@ -6268,10 +6043,7 @@ impl ::protobuf::Message for GetPeerListResponse { } fn default_instance() -> &'static GetPeerListResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetPeerListResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetPeerListResponse::new) } @@ -6292,8 +6064,8 @@ impl ::std::fmt::Debug for GetPeerListResponse { } impl ::protobuf::reflect::ProtobufValue for GetPeerListResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -6451,10 +6223,7 @@ impl ::protobuf::Message for GetPeerReputationRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -6468,7 +6237,7 @@ impl ::protobuf::Message for GetPeerReputationRequest { |m: &GetPeerReputationRequest| { &m.ip }, |m: &mut GetPeerReputationRequest| { &mut m.ip }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetPeerReputationRequest", fields, file_descriptor_proto() @@ -6478,10 +6247,7 @@ impl ::protobuf::Message for GetPeerReputationRequest { } fn default_instance() -> &'static GetPeerReputationRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetPeerReputationRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetPeerReputationRequest::new) } @@ -6503,8 +6269,8 @@ impl ::std::fmt::Debug for GetPeerReputationRequest { } impl ::protobuf::reflect::ProtobufValue for GetPeerReputationRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -6619,10 +6385,7 @@ impl ::protobuf::Message for GetPeerReputationResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -6631,7 +6394,7 @@ impl ::protobuf::Message for GetPeerReputationResponse { |m: &GetPeerReputationResponse| { &m.reputation }, |m: &mut GetPeerReputationResponse| { &mut m.reputation }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetPeerReputationResponse", fields, file_descriptor_proto() @@ -6641,10 +6404,7 @@ impl ::protobuf::Message for GetPeerReputationResponse { } fn default_instance() -> &'static GetPeerReputationResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetPeerReputationResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetPeerReputationResponse::new) } @@ -6665,8 +6425,8 @@ impl ::std::fmt::Debug for GetPeerReputationResponse { } impl ::protobuf::reflect::ProtobufValue for GetPeerReputationResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -6853,10 +6613,7 @@ impl ::protobuf::Message for SetPeerBlackListRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -6875,7 +6632,7 @@ impl ::protobuf::Message for SetPeerBlackListRequest { |m: &SetPeerBlackListRequest| { &m.blacklist }, |m: &mut SetPeerBlackListRequest| { &mut m.blacklist }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SetPeerBlackListRequest", fields, file_descriptor_proto() @@ -6885,10 +6642,7 @@ impl ::protobuf::Message for SetPeerBlackListRequest { } fn default_instance() -> &'static SetPeerBlackListRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SetPeerBlackListRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SetPeerBlackListRequest::new) } @@ -6911,8 +6665,8 @@ impl ::std::fmt::Debug for SetPeerBlackListRequest { } impl ::protobuf::reflect::ProtobufValue for SetPeerBlackListRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -7099,10 +6853,7 @@ impl ::protobuf::Message for SetPeerBlackListResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -7121,7 +6872,7 @@ impl ::protobuf::Message for SetPeerBlackListResponse { |m: &SetPeerBlackListResponse| { &m.blacklist }, |m: &mut SetPeerBlackListResponse| { &mut m.blacklist }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SetPeerBlackListResponse", fields, file_descriptor_proto() @@ -7131,10 +6882,7 @@ impl ::protobuf::Message for SetPeerBlackListResponse { } fn default_instance() -> &'static SetPeerBlackListResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SetPeerBlackListResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SetPeerBlackListResponse::new) } @@ -7157,8 +6905,8 @@ impl ::std::fmt::Debug for SetPeerBlackListResponse { } impl ::protobuf::reflect::ProtobufValue for SetPeerBlackListResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -7316,10 +7064,7 @@ impl ::protobuf::Message for GetPeerInfoRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -7333,7 +7078,7 @@ impl ::protobuf::Message for GetPeerInfoRequest { |m: &GetPeerInfoRequest| { &m.ip }, |m: &mut GetPeerInfoRequest| { &mut m.ip }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetPeerInfoRequest", fields, file_descriptor_proto() @@ -7343,10 +7088,7 @@ impl ::protobuf::Message for GetPeerInfoRequest { } fn default_instance() -> &'static GetPeerInfoRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetPeerInfoRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetPeerInfoRequest::new) } @@ -7368,8 +7110,8 @@ impl ::std::fmt::Debug for GetPeerInfoRequest { } impl ::protobuf::reflect::ProtobufValue for GetPeerInfoRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -7498,10 +7240,7 @@ impl ::protobuf::Message for GetPeerInfoResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -7510,7 +7249,7 @@ impl ::protobuf::Message for GetPeerInfoResponse { |m: &GetPeerInfoResponse| { &m.peer_info }, |m: &mut GetPeerInfoResponse| { &mut m.peer_info }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetPeerInfoResponse", fields, file_descriptor_proto() @@ -7520,10 +7259,7 @@ impl ::protobuf::Message for GetPeerInfoResponse { } fn default_instance() -> &'static GetPeerInfoResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetPeerInfoResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetPeerInfoResponse::new) } @@ -7544,8 +7280,8 @@ impl ::std::fmt::Debug for GetPeerInfoResponse { } impl ::protobuf::reflect::ProtobufValue for GetPeerInfoResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -7660,10 +7396,7 @@ impl ::protobuf::Message for GetConnectionCountRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -7672,7 +7405,7 @@ impl ::protobuf::Message for GetConnectionCountRequest { |m: &GetConnectionCountRequest| { &m.query }, |m: &mut GetConnectionCountRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetConnectionCountRequest", fields, file_descriptor_proto() @@ -7682,10 +7415,7 @@ impl ::protobuf::Message for GetConnectionCountRequest { } fn default_instance() -> &'static GetConnectionCountRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetConnectionCountRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetConnectionCountRequest::new) } @@ -7706,8 +7436,8 @@ impl ::std::fmt::Debug for GetConnectionCountRequest { } impl ::protobuf::reflect::ProtobufValue for GetConnectionCountRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -7829,10 +7559,7 @@ impl ::protobuf::Message for GetConnectionCountResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -7841,7 +7568,7 @@ impl ::protobuf::Message for GetConnectionCountResponse { |m: &GetConnectionCountResponse| { &m.query }, |m: &mut GetConnectionCountResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetConnectionCountResponse", fields, file_descriptor_proto() @@ -7851,10 +7578,7 @@ impl ::protobuf::Message for GetConnectionCountResponse { } fn default_instance() -> &'static GetConnectionCountResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetConnectionCountResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetConnectionCountResponse::new) } @@ -7875,8 +7599,8 @@ impl ::std::fmt::Debug for GetConnectionCountResponse { } impl ::protobuf::reflect::ProtobufValue for GetConnectionCountResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -7998,10 +7722,7 @@ impl ::protobuf::Message for GetDeltaRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -8010,7 +7731,7 @@ impl ::protobuf::Message for GetDeltaRequest { |m: &GetDeltaRequest| { &m.delta_dfs_hash }, |m: &mut GetDeltaRequest| { &mut m.delta_dfs_hash }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetDeltaRequest", fields, file_descriptor_proto() @@ -8020,10 +7741,7 @@ impl ::protobuf::Message for GetDeltaRequest { } fn default_instance() -> &'static GetDeltaRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetDeltaRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetDeltaRequest::new) } @@ -8044,8 +7762,8 @@ impl ::std::fmt::Debug for GetDeltaRequest { } impl ::protobuf::reflect::ProtobufValue for GetDeltaRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -8182,10 +7900,7 @@ impl ::protobuf::Message for GetDeltaResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -8194,7 +7909,7 @@ impl ::protobuf::Message for GetDeltaResponse { |m: &GetDeltaResponse| { &m.delta }, |m: &mut GetDeltaResponse| { &mut m.delta }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetDeltaResponse", fields, file_descriptor_proto() @@ -8204,10 +7919,7 @@ impl ::protobuf::Message for GetDeltaResponse { } fn default_instance() -> &'static GetDeltaResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetDeltaResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetDeltaResponse::new) } @@ -8228,8 +7940,8 @@ impl ::std::fmt::Debug for GetDeltaResponse { } impl ::protobuf::reflect::ProtobufValue for GetDeltaResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -8344,10 +8056,7 @@ impl ::protobuf::Message for GetMempoolRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -8356,7 +8065,7 @@ impl ::protobuf::Message for GetMempoolRequest { |m: &GetMempoolRequest| { &m.query }, |m: &mut GetMempoolRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetMempoolRequest", fields, file_descriptor_proto() @@ -8366,10 +8075,7 @@ impl ::protobuf::Message for GetMempoolRequest { } fn default_instance() -> &'static GetMempoolRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetMempoolRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetMempoolRequest::new) } @@ -8390,8 +8096,8 @@ impl ::std::fmt::Debug for GetMempoolRequest { } impl ::protobuf::reflect::ProtobufValue for GetMempoolRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -8520,10 +8226,7 @@ impl ::protobuf::Message for GetMempoolResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -8532,7 +8235,7 @@ impl ::protobuf::Message for GetMempoolResponse { |m: &GetMempoolResponse| { &m.transactions }, |m: &mut GetMempoolResponse| { &mut m.transactions }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetMempoolResponse", fields, file_descriptor_proto() @@ -8542,10 +8245,7 @@ impl ::protobuf::Message for GetMempoolResponse { } fn default_instance() -> &'static GetMempoolResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetMempoolResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetMempoolResponse::new) } @@ -8566,8 +8266,8 @@ impl ::std::fmt::Debug for GetMempoolResponse { } impl ::protobuf::reflect::ProtobufValue for GetMempoolResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -8776,10 +8476,7 @@ impl ::protobuf::Message for SignMessageRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -8798,7 +8495,7 @@ impl ::protobuf::Message for SignMessageRequest { |m: &SignMessageRequest| { &m.signing_context }, |m: &mut SignMessageRequest| { &mut m.signing_context }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SignMessageRequest", fields, file_descriptor_proto() @@ -8808,10 +8505,7 @@ impl ::protobuf::Message for SignMessageRequest { } fn default_instance() -> &'static SignMessageRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SignMessageRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SignMessageRequest::new) } @@ -8834,8 +8528,8 @@ impl ::std::fmt::Debug for SignMessageRequest { } impl ::protobuf::reflect::ProtobufValue for SignMessageRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -9029,10 +8723,7 @@ impl ::protobuf::Message for SignMessageResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -9051,7 +8742,7 @@ impl ::protobuf::Message for SignMessageResponse { |m: &SignMessageResponse| { &m.original_message }, |m: &mut SignMessageResponse| { &mut m.original_message }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SignMessageResponse", fields, file_descriptor_proto() @@ -9061,10 +8752,7 @@ impl ::protobuf::Message for SignMessageResponse { } fn default_instance() -> &'static SignMessageResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SignMessageResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SignMessageResponse::new) } @@ -9087,8 +8775,8 @@ impl ::std::fmt::Debug for SignMessageResponse { } impl ::protobuf::reflect::ProtobufValue for SignMessageResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -9333,10 +9021,7 @@ impl ::protobuf::Message for VerifyMessageRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -9360,7 +9045,7 @@ impl ::protobuf::Message for VerifyMessageRequest { |m: &VerifyMessageRequest| { &m.signing_context }, |m: &mut VerifyMessageRequest| { &mut m.signing_context }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "VerifyMessageRequest", fields, file_descriptor_proto() @@ -9370,10 +9055,7 @@ impl ::protobuf::Message for VerifyMessageRequest { } fn default_instance() -> &'static VerifyMessageRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const VerifyMessageRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(VerifyMessageRequest::new) } @@ -9397,8 +9079,8 @@ impl ::std::fmt::Debug for VerifyMessageRequest { } impl ::protobuf::reflect::ProtobufValue for VerifyMessageRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -9513,10 +9195,7 @@ impl ::protobuf::Message for VerifyMessageResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -9525,7 +9204,7 @@ impl ::protobuf::Message for VerifyMessageResponse { |m: &VerifyMessageResponse| { &m.is_signed_by_key }, |m: &mut VerifyMessageResponse| { &mut m.is_signed_by_key }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "VerifyMessageResponse", fields, file_descriptor_proto() @@ -9535,10 +9214,7 @@ impl ::protobuf::Message for VerifyMessageResponse { } fn default_instance() -> &'static VerifyMessageResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const VerifyMessageResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(VerifyMessageResponse::new) } @@ -9559,8 +9235,8 @@ impl ::std::fmt::Debug for VerifyMessageResponse { } impl ::protobuf::reflect::ProtobufValue for VerifyMessageResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -9675,10 +9351,7 @@ impl ::protobuf::Message for ServiceStatusRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -9687,7 +9360,7 @@ impl ::protobuf::Message for ServiceStatusRequest { |m: &ServiceStatusRequest| { &m.query }, |m: &mut ServiceStatusRequest| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ServiceStatusRequest", fields, file_descriptor_proto() @@ -9697,10 +9370,7 @@ impl ::protobuf::Message for ServiceStatusRequest { } fn default_instance() -> &'static ServiceStatusRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ServiceStatusRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(ServiceStatusRequest::new) } @@ -9721,8 +9391,8 @@ impl ::std::fmt::Debug for ServiceStatusRequest { } impl ::protobuf::reflect::ProtobufValue for ServiceStatusRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -9844,10 +9514,7 @@ impl ::protobuf::Message for ServiceStatusResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -9856,7 +9523,7 @@ impl ::protobuf::Message for ServiceStatusResponse { |m: &ServiceStatusResponse| { &m.query }, |m: &mut ServiceStatusResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ServiceStatusResponse", fields, file_descriptor_proto() @@ -9866,10 +9533,7 @@ impl ::protobuf::Message for ServiceStatusResponse { } fn default_instance() -> &'static ServiceStatusResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ServiceStatusResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(ServiceStatusResponse::new) } @@ -9890,8 +9554,8 @@ impl ::std::fmt::Debug for ServiceStatusResponse { } impl ::protobuf::reflect::ProtobufValue for ServiceStatusResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -10078,10 +9742,7 @@ impl ::protobuf::Message for AddFileToDfsRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -10100,7 +9761,7 @@ impl ::protobuf::Message for AddFileToDfsRequest { |m: &AddFileToDfsRequest| { &m.node }, |m: &mut AddFileToDfsRequest| { &mut m.node }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "AddFileToDfsRequest", fields, file_descriptor_proto() @@ -10110,10 +9771,7 @@ impl ::protobuf::Message for AddFileToDfsRequest { } fn default_instance() -> &'static AddFileToDfsRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const AddFileToDfsRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(AddFileToDfsRequest::new) } @@ -10136,8 +9794,8 @@ impl ::std::fmt::Debug for AddFileToDfsRequest { } impl ::protobuf::reflect::ProtobufValue for AddFileToDfsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -10295,10 +9953,7 @@ impl ::protobuf::Message for AddFileToDfsResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -10312,7 +9967,7 @@ impl ::protobuf::Message for AddFileToDfsResponse { |m: &AddFileToDfsResponse| { &m.dfs_hash }, |m: &mut AddFileToDfsResponse| { &mut m.dfs_hash }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "AddFileToDfsResponse", fields, file_descriptor_proto() @@ -10322,10 +9977,7 @@ impl ::protobuf::Message for AddFileToDfsResponse { } fn default_instance() -> &'static AddFileToDfsResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const AddFileToDfsResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(AddFileToDfsResponse::new) } @@ -10347,8 +9999,8 @@ impl ::std::fmt::Debug for AddFileToDfsResponse { } impl ::protobuf::reflect::ProtobufValue for AddFileToDfsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -10535,10 +10187,7 @@ impl ::protobuf::Message for TransferFileBytesRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -10557,7 +10206,7 @@ impl ::protobuf::Message for TransferFileBytesRequest { |m: &TransferFileBytesRequest| { &m.correlation_file_name }, |m: &mut TransferFileBytesRequest| { &mut m.correlation_file_name }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "TransferFileBytesRequest", fields, file_descriptor_proto() @@ -10567,10 +10216,7 @@ impl ::protobuf::Message for TransferFileBytesRequest { } fn default_instance() -> &'static TransferFileBytesRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const TransferFileBytesRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(TransferFileBytesRequest::new) } @@ -10593,8 +10239,8 @@ impl ::std::fmt::Debug for TransferFileBytesRequest { } impl ::protobuf::reflect::ProtobufValue for TransferFileBytesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -10716,10 +10362,7 @@ impl ::protobuf::Message for TransferFileBytesResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -10728,7 +10371,7 @@ impl ::protobuf::Message for TransferFileBytesResponse { |m: &TransferFileBytesResponse| { &m.response_code }, |m: &mut TransferFileBytesResponse| { &mut m.response_code }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "TransferFileBytesResponse", fields, file_descriptor_proto() @@ -10738,10 +10381,7 @@ impl ::protobuf::Message for TransferFileBytesResponse { } fn default_instance() -> &'static TransferFileBytesResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const TransferFileBytesResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(TransferFileBytesResponse::new) } @@ -10762,8 +10402,8 @@ impl ::std::fmt::Debug for TransferFileBytesResponse { } impl ::protobuf::reflect::ProtobufValue for TransferFileBytesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -10921,10 +10561,7 @@ impl ::protobuf::Message for RemovePeerRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -10938,7 +10575,7 @@ impl ::protobuf::Message for RemovePeerRequest { |m: &RemovePeerRequest| { &m.public_key }, |m: &mut RemovePeerRequest| { &mut m.public_key }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "RemovePeerRequest", fields, file_descriptor_proto() @@ -10948,10 +10585,7 @@ impl ::protobuf::Message for RemovePeerRequest { } fn default_instance() -> &'static RemovePeerRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const RemovePeerRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(RemovePeerRequest::new) } @@ -10973,8 +10607,8 @@ impl ::std::fmt::Debug for RemovePeerRequest { } impl ::protobuf::reflect::ProtobufValue for RemovePeerRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -11089,10 +10723,7 @@ impl ::protobuf::Message for RemovePeerResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -11101,7 +10732,7 @@ impl ::protobuf::Message for RemovePeerResponse { |m: &RemovePeerResponse| { &m.deleted_count }, |m: &mut RemovePeerResponse| { &mut m.deleted_count }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "RemovePeerResponse", fields, file_descriptor_proto() @@ -11111,10 +10742,7 @@ impl ::protobuf::Message for RemovePeerResponse { } fn default_instance() -> &'static RemovePeerResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const RemovePeerResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(RemovePeerResponse::new) } @@ -11135,8 +10763,8 @@ impl ::std::fmt::Debug for RemovePeerResponse { } impl ::protobuf::reflect::ProtobufValue for RemovePeerResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -11221,14 +10849,11 @@ impl ::protobuf::Message for GetPeerCountRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetPeerCountRequest", fields, file_descriptor_proto() @@ -11238,10 +10863,7 @@ impl ::protobuf::Message for GetPeerCountRequest { } fn default_instance() -> &'static GetPeerCountRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetPeerCountRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetPeerCountRequest::new) } @@ -11261,8 +10883,8 @@ impl ::std::fmt::Debug for GetPeerCountRequest { } impl ::protobuf::reflect::ProtobufValue for GetPeerCountRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -11377,10 +10999,7 @@ impl ::protobuf::Message for GetPeerCountResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -11389,7 +11008,7 @@ impl ::protobuf::Message for GetPeerCountResponse { |m: &GetPeerCountResponse| { &m.peer_count }, |m: &mut GetPeerCountResponse| { &mut m.peer_count }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetPeerCountResponse", fields, file_descriptor_proto() @@ -11399,10 +11018,7 @@ impl ::protobuf::Message for GetPeerCountResponse { } fn default_instance() -> &'static GetPeerCountResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetPeerCountResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetPeerCountResponse::new) } @@ -11423,8 +11039,8 @@ impl ::std::fmt::Debug for GetPeerCountResponse { } impl ::protobuf::reflect::ProtobufValue for GetPeerCountResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -11546,10 +11162,7 @@ impl ::protobuf::Message for GetFileFromDfsRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -11558,7 +11171,7 @@ impl ::protobuf::Message for GetFileFromDfsRequest { |m: &GetFileFromDfsRequest| { &m.dfs_hash }, |m: &mut GetFileFromDfsRequest| { &mut m.dfs_hash }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetFileFromDfsRequest", fields, file_descriptor_proto() @@ -11568,10 +11181,7 @@ impl ::protobuf::Message for GetFileFromDfsRequest { } fn default_instance() -> &'static GetFileFromDfsRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetFileFromDfsRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetFileFromDfsRequest::new) } @@ -11592,8 +11202,8 @@ impl ::std::fmt::Debug for GetFileFromDfsRequest { } impl ::protobuf::reflect::ProtobufValue for GetFileFromDfsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -11744,10 +11354,7 @@ impl ::protobuf::Message for GetFileFromDfsResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -11761,7 +11368,7 @@ impl ::protobuf::Message for GetFileFromDfsResponse { |m: &GetFileFromDfsResponse| { &m.response_code }, |m: &mut GetFileFromDfsResponse| { &mut m.response_code }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "GetFileFromDfsResponse", fields, file_descriptor_proto() @@ -11771,10 +11378,7 @@ impl ::protobuf::Message for GetFileFromDfsResponse { } fn default_instance() -> &'static GetFileFromDfsResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const GetFileFromDfsResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(GetFileFromDfsResponse::new) } @@ -11796,8 +11400,8 @@ impl ::std::fmt::Debug for GetFileFromDfsResponse { } impl ::protobuf::reflect::ProtobufValue for GetFileFromDfsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -11919,10 +11523,7 @@ impl ::protobuf::Message for SetPeerDataFolderRequest { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -11931,7 +11532,7 @@ impl ::protobuf::Message for SetPeerDataFolderRequest { |m: &SetPeerDataFolderRequest| { &m.data_folder }, |m: &mut SetPeerDataFolderRequest| { &mut m.data_folder }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SetPeerDataFolderRequest", fields, file_descriptor_proto() @@ -11941,10 +11542,7 @@ impl ::protobuf::Message for SetPeerDataFolderRequest { } fn default_instance() -> &'static SetPeerDataFolderRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SetPeerDataFolderRequest, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SetPeerDataFolderRequest::new) } @@ -11965,8 +11563,8 @@ impl ::std::fmt::Debug for SetPeerDataFolderRequest { } impl ::protobuf::reflect::ProtobufValue for SetPeerDataFolderRequest { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -12081,10 +11679,7 @@ impl ::protobuf::Message for SetPeerDataFolderResponse { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -12093,7 +11688,7 @@ impl ::protobuf::Message for SetPeerDataFolderResponse { |m: &SetPeerDataFolderResponse| { &m.query }, |m: &mut SetPeerDataFolderResponse| { &mut m.query }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "SetPeerDataFolderResponse", fields, file_descriptor_proto() @@ -12103,10 +11698,7 @@ impl ::protobuf::Message for SetPeerDataFolderResponse { } fn default_instance() -> &'static SetPeerDataFolderResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const SetPeerDataFolderResponse, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(SetPeerDataFolderResponse::new) } @@ -12127,8 +11719,8 @@ impl ::std::fmt::Debug for SetPeerDataFolderResponse { } impl ::protobuf::reflect::ProtobufValue for SetPeerDataFolderResponse { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -12175,13 +11767,10 @@ impl ::protobuf::ProtobufEnum for ResponseCode { } fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::EnumDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new("ResponseCode", file_descriptor_proto()) + ::protobuf::reflect::EnumDescriptor::new_pb_name::("ResponseCode", file_descriptor_proto()) }) } } @@ -12197,8 +11786,8 @@ impl ::std::default::Default for ResponseCode { } impl ::protobuf::reflect::ProtobufValue for ResponseCode { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor()) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) } } @@ -12304,7 +11893,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x08R\x05query*i\n\x0cResponseCode\x12\x0b\n\x07PENDING\x10\0\x12\x0e\n\ \nSUCCESSFUL\x10\x01\x12\t\n\x05ERROR\x10\x02\x12\x0c\n\x08FINISHED\x10\ \x03\x12\x0b\n\x07EXPIRED\x10\x04\x12\n\n\x06FAILED\x10\x05\x12\n\n\x06E\ - XISTS\x10\x06B\x02P\x01J\x85?\n\x07\x12\x05\x13\0\xc7\x02\x01\n\xdf\x06\ + XISTS\x10\x06B\x02P\x01J\x99J\n\x07\x12\x05\x13\0\xc7\x02\x01\n\xdf\x06\ \n\x01\x0c\x12\x03\x13\0\x122\xd4\x06*\n\x20Copyright\x20(c)\x202019\x20\ Catalyst\x20Network\n\n\x20This\x20file\x20is\x20part\x20of\x20Catalyst.\ Network.Protocol.Protobuffs\x20.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\ - \x15\0\"\n\x08\n\x01\x02\x12\x03\x17\0#\n\t\n\x02\x03\0\x12\x03\x19\0\ - \x14\n\t\n\x02\x03\x01\x12\x03\x1a\0\x1c\n\t\n\x02\x03\x02\x12\x03\x1b\0\ - \x16\n\t\n\x02\x03\x03\x12\x03\x1c\0\x14\n\t\n\x02\x03\x04\x12\x03\x1d\0\ - \x1b\n\n\n\x02\x05\0\x12\x04\x1f\0'\x01\n\n\n\x03\x05\0\x01\x12\x03\x1f\ - \x05\x11\n\x0b\n\x04\x05\0\x02\0\x12\x03\x20\x08\x14\n\x0c\n\x05\x05\0\ - \x02\0\x01\x12\x03\x20\x08\x0f\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\x20\ - \x12\x13\n\x0b\n\x04\x05\0\x02\x01\x12\x03!\x08\x17\n\x0c\n\x05\x05\0\ - \x02\x01\x01\x12\x03!\x08\x12\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03!\x15\ - \x16\n\x0b\n\x04\x05\0\x02\x02\x12\x03\"\x08\x12\n\x0c\n\x05\x05\0\x02\ - \x02\x01\x12\x03\"\x08\r\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03\"\x10\x11\ - \n\x0b\n\x04\x05\0\x02\x03\x12\x03#\x08\x15\n\x0c\n\x05\x05\0\x02\x03\ - \x01\x12\x03#\x08\x10\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03#\x13\x14\n\ - \x0b\n\x04\x05\0\x02\x04\x12\x03$\x08\x14\n\x0c\n\x05\x05\0\x02\x04\x01\ - \x12\x03$\x08\x0f\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03$\x12\x13\n\x0b\n\ - \x04\x05\0\x02\x05\x12\x03%\x08\x13\n\x0c\n\x05\x05\0\x02\x05\x01\x12\ - \x03%\x08\x0e\n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03%\x11\x12\n\x0b\n\x04\ - \x05\0\x02\x06\x12\x03&\x08\x13\n\x0c\n\x05\x05\0\x02\x06\x01\x12\x03&\ - \x08\x0e\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03&\x11\x12\n\n\n\x02\x04\0\ - \x12\x04)\0+\x01\n\n\n\x03\x04\0\x01\x12\x03)\x08\x16\n\x0b\n\x04\x04\0\ - \x02\0\x12\x03*\x04\x13\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03*\x04\x08\n\ - \x0c\n\x05\x04\0\x02\0\x01\x12\x03*\t\x0e\n\x0c\n\x05\x04\0\x02\0\x03\ - \x12\x03*\x11\x12\n\n\n\x02\x04\x01\x12\x04-\0/\x01\n\n\n\x03\x04\x01\ - \x01\x12\x03-\x08\x17\n\x0b\n\x04\x04\x01\x02\0\x12\x03.\x04\x17\n\x0c\n\ - \x05\x04\x01\x02\0\x05\x12\x03.\x04\n\n\x0c\n\x05\x04\x01\x02\0\x01\x12\ - \x03.\x0b\x12\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03.\x15\x16\n\n\n\x02\ - \x04\x02\x12\x041\03\x01\n\n\n\x03\x04\x02\x01\x12\x031\x08\x16\n\x0b\n\ - \x04\x04\x02\x02\0\x12\x032\x04\x13\n\x0c\n\x05\x04\x02\x02\0\x05\x12\ - \x032\x04\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x032\t\x0e\n\x0c\n\x05\ - \x04\x02\x02\0\x03\x12\x032\x11\x12\n\n\n\x02\x04\x03\x12\x045\07\x01\n\ - \n\n\x03\x04\x03\x01\x12\x035\x08\x17\n\x0b\n\x04\x04\x03\x02\0\x12\x036\ - \x04\x15\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x036\x04\n\n\x0c\n\x05\x04\ - \x03\x02\0\x01\x12\x036\x0b\x10\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x036\ - \x13\x14\n\n\n\x02\x04\x04\x12\x049\0;\x01\n\n\n\x03\x04\x04\x01\x12\x03\ - 9\x08\x1b\n\x0b\n\x04\x04\x04\x02\0\x12\x03:\x04\x13\n\x0c\n\x05\x04\x04\ - \x02\0\x05\x12\x03:\x04\x08\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03:\t\x0e\ - \n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03:\x11\x12\n\n\n\x02\x04\x05\x12\ - \x04=\0?\x01\n\n\n\x03\x04\x05\x01\x12\x03=\x08\x1c\n\x0b\n\x04\x04\x05\ - \x02\0\x12\x03>\x04\x15\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03>\x04\n\n\ - \x0c\n\x05\x04\x05\x02\0\x01\x12\x03>\x0b\x10\n\x0c\n\x05\x04\x05\x02\0\ - \x03\x12\x03>\x13\x14\n\n\n\x02\x04\x06\x12\x04A\0C\x01\n\n\n\x03\x04\ - \x06\x01\x12\x03A\x08\x19\n\x0b\n\x04\x04\x06\x02\0\x12\x03B\x04\x13\n\ - \x0c\n\x05\x04\x06\x02\0\x05\x12\x03B\x04\x08\n\x0c\n\x05\x04\x06\x02\0\ - \x01\x12\x03B\t\x0e\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03B\x11\x12\n\n\n\ - \x02\x04\x07\x12\x04E\0G\x01\n\n\n\x03\x04\x07\x01\x12\x03E\x08\x1a\n\ - \x0b\n\x04\x04\x07\x02\0\x12\x03F\x04\x15\n\x0c\n\x05\x04\x07\x02\0\x05\ - \x12\x03F\x04\n\n\x0c\n\x05\x04\x07\x02\0\x01\x12\x03F\x0b\x10\n\x0c\n\ - \x05\x04\x07\x02\0\x03\x12\x03F\x13\x14\n\n\n\x02\x04\x08\x12\x04I\0K\ - \x01\n\n\n\x03\x04\x08\x01\x12\x03I\x08\x1c\n\x0b\n\x04\x04\x08\x02\0\ - \x12\x03J\x04\x13\n\x0c\n\x05\x04\x08\x02\0\x05\x12\x03J\x04\x08\n\x0c\n\ - \x05\x04\x08\x02\0\x01\x12\x03J\t\x0e\n\x0c\n\x05\x04\x08\x02\0\x03\x12\ - \x03J\x11\x12\n\n\n\x02\x04\t\x12\x04M\0O\x01\n\n\n\x03\x04\t\x01\x12\ - \x03M\x08\x1d\n\x0b\n\x04\x04\t\x02\0\x12\x03N\x04\x15\n\x0c\n\x05\x04\t\ - \x02\0\x05\x12\x03N\x04\n\n\x0c\n\x05\x04\t\x02\0\x01\x12\x03N\x0b\x10\n\ - \x0c\n\x05\x04\t\x02\0\x03\x12\x03N\x13\x14\n\n\n\x02\x04\n\x12\x04Q\0S\ - \x01\n\n\n\x03\x04\n\x01\x12\x03Q\x08\x19\n\x0b\n\x04\x04\n\x02\0\x12\ - \x03R\x04\x13\n\x0c\n\x05\x04\n\x02\0\x05\x12\x03R\x04\x08\n\x0c\n\x05\ - \x04\n\x02\0\x01\x12\x03R\t\x0e\n\x0c\n\x05\x04\n\x02\0\x03\x12\x03R\x11\ - \x12\n\n\n\x02\x04\x0b\x12\x04U\0W\x01\n\n\n\x03\x04\x0b\x01\x12\x03U\ - \x08\x1a\n\x0b\n\x04\x04\x0b\x02\0\x12\x03V\x04\x15\n\x0c\n\x05\x04\x0b\ - \x02\0\x05\x12\x03V\x04\n\n\x0c\n\x05\x04\x0b\x02\0\x01\x12\x03V\x0b\x10\ - \n\x0c\n\x05\x04\x0b\x02\0\x03\x12\x03V\x13\x14\n\n\n\x02\x04\x0c\x12\ - \x04Y\0[\x01\n\n\n\x03\x04\x0c\x01\x12\x03Y\x08\x1a\n\x0b\n\x04\x04\x0c\ - \x02\0\x12\x03Z\x04\x13\n\x0c\n\x05\x04\x0c\x02\0\x05\x12\x03Z\x04\x08\n\ - \x0c\n\x05\x04\x0c\x02\0\x01\x12\x03Z\t\x0e\n\x0c\n\x05\x04\x0c\x02\0\ - \x03\x12\x03Z\x11\x12\n\n\n\x02\x04\r\x12\x04]\0_\x01\n\n\n\x03\x04\r\ - \x01\x12\x03]\x08\x1b\n\x0b\n\x04\x04\r\x02\0\x12\x03^\x04\x15\n\x0c\n\ - \x05\x04\r\x02\0\x05\x12\x03^\x04\n\n\x0c\n\x05\x04\r\x02\0\x01\x12\x03^\ - \x0b\x10\n\x0c\n\x05\x04\r\x02\0\x03\x12\x03^\x13\x14\n\n\n\x02\x04\x0e\ - \x12\x04a\0c\x01\n\n\n\x03\x04\x0e\x01\x12\x03a\x08\x1e\n\x0b\n\x04\x04\ - \x0e\x02\0\x12\x03b\x04\x13\n\x0c\n\x05\x04\x0e\x02\0\x05\x12\x03b\x04\ - \x08\n\x0c\n\x05\x04\x0e\x02\0\x01\x12\x03b\t\x0e\n\x0c\n\x05\x04\x0e\ - \x02\0\x03\x12\x03b\x11\x12\n\n\n\x02\x04\x0f\x12\x04e\0g\x01\n\n\n\x03\ - \x04\x0f\x01\x12\x03e\x08\x1f\n\x0b\n\x04\x04\x0f\x02\0\x12\x03f\x04\x15\ - \n\x0c\n\x05\x04\x0f\x02\0\x05\x12\x03f\x04\n\n\x0c\n\x05\x04\x0f\x02\0\ - \x01\x12\x03f\x0b\x10\n\x0c\n\x05\x04\x0f\x02\0\x03\x12\x03f\x13\x14\n\n\ - \n\x02\x04\x10\x12\x04i\0k\x01\n\n\n\x03\x04\x10\x01\x12\x03i\x08\x19\n\ - \x0b\n\x04\x04\x10\x02\0\x12\x03j\x04\x13\n\x0c\n\x05\x04\x10\x02\0\x05\ - \x12\x03j\x04\x08\n\x0c\n\x05\x04\x10\x02\0\x01\x12\x03j\t\x0e\n\x0c\n\ - \x05\x04\x10\x02\0\x03\x12\x03j\x11\x12\n\n\n\x02\x04\x11\x12\x04m\0o\ - \x01\n\n\n\x03\x04\x11\x01\x12\x03m\x08\x1a\n\x0b\n\x04\x04\x11\x02\0\ - \x12\x03n\x04\x15\n\x0c\n\x05\x04\x11\x02\0\x05\x12\x03n\x04\n\n\x0c\n\ - \x05\x04\x11\x02\0\x01\x12\x03n\x0b\x10\n\x0c\n\x05\x04\x11\x02\0\x03\ - \x12\x03n\x13\x14\n\n\n\x02\x04\x12\x12\x04q\0s\x01\n\n\n\x03\x04\x12\ - \x01\x12\x03q\x08#\n\x0b\n\x04\x04\x12\x02\0\x12\x03r\x04\x13\n\x0c\n\ - \x05\x04\x12\x02\0\x05\x12\x03r\x04\x08\n\x0c\n\x05\x04\x12\x02\0\x01\ - \x12\x03r\t\x0e\n\x0c\n\x05\x04\x12\x02\0\x03\x12\x03r\x11\x12\n\n\n\x02\ - \x04\x13\x12\x04u\0w\x01\n\n\n\x03\x04\x13\x01\x12\x03u\x08$\n\x0b\n\x04\ - \x04\x13\x02\0\x12\x03v\x04\x15\n\x0c\n\x05\x04\x13\x02\0\x05\x12\x03v\ + rg/licenses/>.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\n\x0b\n\x04\x08\xe7\x07\ + \0\x12\x03\x15\0\"\n\x0c\n\x05\x08\xe7\x07\0\x02\x12\x03\x15\x07\x1a\n\r\ + \n\x06\x08\xe7\x07\0\x02\0\x12\x03\x15\x07\x1a\n\x0e\n\x07\x08\xe7\x07\0\ + \x02\0\x01\x12\x03\x15\x07\x1a\n\x0c\n\x05\x08\xe7\x07\0\x03\x12\x03\x15\ + \x1d!\n\x08\n\x01\x02\x12\x03\x17\x08\"\n\t\n\x02\x03\0\x12\x03\x19\x07\ + \x13\n\t\n\x02\x03\x01\x12\x03\x1a\x07\x1b\n\t\n\x02\x03\x02\x12\x03\x1b\ + \x07\x15\n\t\n\x02\x03\x03\x12\x03\x1c\x07\x13\n\t\n\x02\x03\x04\x12\x03\ + \x1d\x07\x1a\n\n\n\x02\x05\0\x12\x04\x1f\0'\x01\n\n\n\x03\x05\0\x01\x12\ + \x03\x1f\x05\x11\n\x0b\n\x04\x05\0\x02\0\x12\x03\x20\x08\x14\n\x0c\n\x05\ + \x05\0\x02\0\x01\x12\x03\x20\x08\x0f\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\ + \x20\x12\x13\n\x0b\n\x04\x05\0\x02\x01\x12\x03!\x08\x17\n\x0c\n\x05\x05\ + \0\x02\x01\x01\x12\x03!\x08\x12\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03!\ + \x15\x16\n\x0b\n\x04\x05\0\x02\x02\x12\x03\"\x08\x12\n\x0c\n\x05\x05\0\ + \x02\x02\x01\x12\x03\"\x08\r\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03\"\x10\ + \x11\n\x0b\n\x04\x05\0\x02\x03\x12\x03#\x08\x15\n\x0c\n\x05\x05\0\x02\ + \x03\x01\x12\x03#\x08\x10\n\x0c\n\x05\x05\0\x02\x03\x02\x12\x03#\x13\x14\ + \n\x0b\n\x04\x05\0\x02\x04\x12\x03$\x08\x14\n\x0c\n\x05\x05\0\x02\x04\ + \x01\x12\x03$\x08\x0f\n\x0c\n\x05\x05\0\x02\x04\x02\x12\x03$\x12\x13\n\ + \x0b\n\x04\x05\0\x02\x05\x12\x03%\x08\x13\n\x0c\n\x05\x05\0\x02\x05\x01\ + \x12\x03%\x08\x0e\n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03%\x11\x12\n\x0b\n\ + \x04\x05\0\x02\x06\x12\x03&\x08\x13\n\x0c\n\x05\x05\0\x02\x06\x01\x12\ + \x03&\x08\x0e\n\x0c\n\x05\x05\0\x02\x06\x02\x12\x03&\x11\x12\n\n\n\x02\ + \x04\0\x12\x04)\0+\x01\n\n\n\x03\x04\0\x01\x12\x03)\x08\x16\n\x0b\n\x04\ + \x04\0\x02\0\x12\x03*\x04\x13\n\r\n\x05\x04\0\x02\0\x04\x12\x04*\x04)\ + \x18\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03*\x04\x08\n\x0c\n\x05\x04\0\x02\ + \0\x01\x12\x03*\t\x0e\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03*\x11\x12\n\n\n\ + \x02\x04\x01\x12\x04-\0/\x01\n\n\n\x03\x04\x01\x01\x12\x03-\x08\x17\n\ + \x0b\n\x04\x04\x01\x02\0\x12\x03.\x04\x17\n\r\n\x05\x04\x01\x02\0\x04\ + \x12\x04.\x04-\x19\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03.\x04\n\n\x0c\n\ + \x05\x04\x01\x02\0\x01\x12\x03.\x0b\x12\n\x0c\n\x05\x04\x01\x02\0\x03\ + \x12\x03.\x15\x16\n\n\n\x02\x04\x02\x12\x041\03\x01\n\n\n\x03\x04\x02\ + \x01\x12\x031\x08\x16\n\x0b\n\x04\x04\x02\x02\0\x12\x032\x04\x13\n\r\n\ + \x05\x04\x02\x02\0\x04\x12\x042\x041\x18\n\x0c\n\x05\x04\x02\x02\0\x05\ + \x12\x032\x04\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x032\t\x0e\n\x0c\n\ + \x05\x04\x02\x02\0\x03\x12\x032\x11\x12\n\n\n\x02\x04\x03\x12\x045\07\ + \x01\n\n\n\x03\x04\x03\x01\x12\x035\x08\x17\n\x0b\n\x04\x04\x03\x02\0\ + \x12\x036\x04\x15\n\r\n\x05\x04\x03\x02\0\x04\x12\x046\x045\x19\n\x0c\n\ + \x05\x04\x03\x02\0\x05\x12\x036\x04\n\n\x0c\n\x05\x04\x03\x02\0\x01\x12\ + \x036\x0b\x10\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x036\x13\x14\n\n\n\x02\ + \x04\x04\x12\x049\0;\x01\n\n\n\x03\x04\x04\x01\x12\x039\x08\x1b\n\x0b\n\ + \x04\x04\x04\x02\0\x12\x03:\x04\x13\n\r\n\x05\x04\x04\x02\0\x04\x12\x04:\ + \x049\x1d\n\x0c\n\x05\x04\x04\x02\0\x05\x12\x03:\x04\x08\n\x0c\n\x05\x04\ + \x04\x02\0\x01\x12\x03:\t\x0e\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03:\x11\ + \x12\n\n\n\x02\x04\x05\x12\x04=\0?\x01\n\n\n\x03\x04\x05\x01\x12\x03=\ + \x08\x1c\n\x0b\n\x04\x04\x05\x02\0\x12\x03>\x04\x15\n\r\n\x05\x04\x05\ + \x02\0\x04\x12\x04>\x04=\x1e\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03>\x04\ + \n\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03>\x0b\x10\n\x0c\n\x05\x04\x05\ + \x02\0\x03\x12\x03>\x13\x14\n\n\n\x02\x04\x06\x12\x04A\0C\x01\n\n\n\x03\ + \x04\x06\x01\x12\x03A\x08\x19\n\x0b\n\x04\x04\x06\x02\0\x12\x03B\x04\x13\ + \n\r\n\x05\x04\x06\x02\0\x04\x12\x04B\x04A\x1b\n\x0c\n\x05\x04\x06\x02\0\ + \x05\x12\x03B\x04\x08\n\x0c\n\x05\x04\x06\x02\0\x01\x12\x03B\t\x0e\n\x0c\ + \n\x05\x04\x06\x02\0\x03\x12\x03B\x11\x12\n\n\n\x02\x04\x07\x12\x04E\0G\ + \x01\n\n\n\x03\x04\x07\x01\x12\x03E\x08\x1a\n\x0b\n\x04\x04\x07\x02\0\ + \x12\x03F\x04\x15\n\r\n\x05\x04\x07\x02\0\x04\x12\x04F\x04E\x1c\n\x0c\n\ + \x05\x04\x07\x02\0\x05\x12\x03F\x04\n\n\x0c\n\x05\x04\x07\x02\0\x01\x12\ + \x03F\x0b\x10\n\x0c\n\x05\x04\x07\x02\0\x03\x12\x03F\x13\x14\n\n\n\x02\ + \x04\x08\x12\x04I\0K\x01\n\n\n\x03\x04\x08\x01\x12\x03I\x08\x1c\n\x0b\n\ + \x04\x04\x08\x02\0\x12\x03J\x04\x13\n\r\n\x05\x04\x08\x02\0\x04\x12\x04J\ + \x04I\x1e\n\x0c\n\x05\x04\x08\x02\0\x05\x12\x03J\x04\x08\n\x0c\n\x05\x04\ + \x08\x02\0\x01\x12\x03J\t\x0e\n\x0c\n\x05\x04\x08\x02\0\x03\x12\x03J\x11\ + \x12\n\n\n\x02\x04\t\x12\x04M\0O\x01\n\n\n\x03\x04\t\x01\x12\x03M\x08\ + \x1d\n\x0b\n\x04\x04\t\x02\0\x12\x03N\x04\x15\n\r\n\x05\x04\t\x02\0\x04\ + \x12\x04N\x04M\x1f\n\x0c\n\x05\x04\t\x02\0\x05\x12\x03N\x04\n\n\x0c\n\ + \x05\x04\t\x02\0\x01\x12\x03N\x0b\x10\n\x0c\n\x05\x04\t\x02\0\x03\x12\ + \x03N\x13\x14\n\n\n\x02\x04\n\x12\x04Q\0S\x01\n\n\n\x03\x04\n\x01\x12\ + \x03Q\x08\x19\n\x0b\n\x04\x04\n\x02\0\x12\x03R\x04\x13\n\r\n\x05\x04\n\ + \x02\0\x04\x12\x04R\x04Q\x1b\n\x0c\n\x05\x04\n\x02\0\x05\x12\x03R\x04\ + \x08\n\x0c\n\x05\x04\n\x02\0\x01\x12\x03R\t\x0e\n\x0c\n\x05\x04\n\x02\0\ + \x03\x12\x03R\x11\x12\n\n\n\x02\x04\x0b\x12\x04U\0W\x01\n\n\n\x03\x04\ + \x0b\x01\x12\x03U\x08\x1a\n\x0b\n\x04\x04\x0b\x02\0\x12\x03V\x04\x15\n\r\ + \n\x05\x04\x0b\x02\0\x04\x12\x04V\x04U\x1c\n\x0c\n\x05\x04\x0b\x02\0\x05\ + \x12\x03V\x04\n\n\x0c\n\x05\x04\x0b\x02\0\x01\x12\x03V\x0b\x10\n\x0c\n\ + \x05\x04\x0b\x02\0\x03\x12\x03V\x13\x14\n\n\n\x02\x04\x0c\x12\x04Y\0[\ + \x01\n\n\n\x03\x04\x0c\x01\x12\x03Y\x08\x1a\n\x0b\n\x04\x04\x0c\x02\0\ + \x12\x03Z\x04\x13\n\r\n\x05\x04\x0c\x02\0\x04\x12\x04Z\x04Y\x1c\n\x0c\n\ + \x05\x04\x0c\x02\0\x05\x12\x03Z\x04\x08\n\x0c\n\x05\x04\x0c\x02\0\x01\ + \x12\x03Z\t\x0e\n\x0c\n\x05\x04\x0c\x02\0\x03\x12\x03Z\x11\x12\n\n\n\x02\ + \x04\r\x12\x04]\0_\x01\n\n\n\x03\x04\r\x01\x12\x03]\x08\x1b\n\x0b\n\x04\ + \x04\r\x02\0\x12\x03^\x04\x15\n\r\n\x05\x04\r\x02\0\x04\x12\x04^\x04]\ + \x1d\n\x0c\n\x05\x04\r\x02\0\x05\x12\x03^\x04\n\n\x0c\n\x05\x04\r\x02\0\ + \x01\x12\x03^\x0b\x10\n\x0c\n\x05\x04\r\x02\0\x03\x12\x03^\x13\x14\n\n\n\ + \x02\x04\x0e\x12\x04a\0c\x01\n\n\n\x03\x04\x0e\x01\x12\x03a\x08\x1e\n\ + \x0b\n\x04\x04\x0e\x02\0\x12\x03b\x04\x13\n\r\n\x05\x04\x0e\x02\0\x04\ + \x12\x04b\x04a\x20\n\x0c\n\x05\x04\x0e\x02\0\x05\x12\x03b\x04\x08\n\x0c\ + \n\x05\x04\x0e\x02\0\x01\x12\x03b\t\x0e\n\x0c\n\x05\x04\x0e\x02\0\x03\ + \x12\x03b\x11\x12\n\n\n\x02\x04\x0f\x12\x04e\0g\x01\n\n\n\x03\x04\x0f\ + \x01\x12\x03e\x08\x1f\n\x0b\n\x04\x04\x0f\x02\0\x12\x03f\x04\x15\n\r\n\ + \x05\x04\x0f\x02\0\x04\x12\x04f\x04e!\n\x0c\n\x05\x04\x0f\x02\0\x05\x12\ + \x03f\x04\n\n\x0c\n\x05\x04\x0f\x02\0\x01\x12\x03f\x0b\x10\n\x0c\n\x05\ + \x04\x0f\x02\0\x03\x12\x03f\x13\x14\n\n\n\x02\x04\x10\x12\x04i\0k\x01\n\ + \n\n\x03\x04\x10\x01\x12\x03i\x08\x19\n\x0b\n\x04\x04\x10\x02\0\x12\x03j\ + \x04\x13\n\r\n\x05\x04\x10\x02\0\x04\x12\x04j\x04i\x1b\n\x0c\n\x05\x04\ + \x10\x02\0\x05\x12\x03j\x04\x08\n\x0c\n\x05\x04\x10\x02\0\x01\x12\x03j\t\ + \x0e\n\x0c\n\x05\x04\x10\x02\0\x03\x12\x03j\x11\x12\n\n\n\x02\x04\x11\ + \x12\x04m\0o\x01\n\n\n\x03\x04\x11\x01\x12\x03m\x08\x1a\n\x0b\n\x04\x04\ + \x11\x02\0\x12\x03n\x04\x15\n\r\n\x05\x04\x11\x02\0\x04\x12\x04n\x04m\ + \x1c\n\x0c\n\x05\x04\x11\x02\0\x05\x12\x03n\x04\n\n\x0c\n\x05\x04\x11\ + \x02\0\x01\x12\x03n\x0b\x10\n\x0c\n\x05\x04\x11\x02\0\x03\x12\x03n\x13\ + \x14\n\n\n\x02\x04\x12\x12\x04q\0s\x01\n\n\n\x03\x04\x12\x01\x12\x03q\ + \x08#\n\x0b\n\x04\x04\x12\x02\0\x12\x03r\x04\x13\n\r\n\x05\x04\x12\x02\0\ + \x04\x12\x04r\x04q%\n\x0c\n\x05\x04\x12\x02\0\x05\x12\x03r\x04\x08\n\x0c\ + \n\x05\x04\x12\x02\0\x01\x12\x03r\t\x0e\n\x0c\n\x05\x04\x12\x02\0\x03\ + \x12\x03r\x11\x12\n\n\n\x02\x04\x13\x12\x04u\0w\x01\n\n\n\x03\x04\x13\ + \x01\x12\x03u\x08$\n\x0b\n\x04\x04\x13\x02\0\x12\x03v\x04\x15\n\r\n\x05\ + \x04\x13\x02\0\x04\x12\x04v\x04u&\n\x0c\n\x05\x04\x13\x02\0\x05\x12\x03v\ \x04\n\n\x0c\n\x05\x04\x13\x02\0\x01\x12\x03v\x0b\x10\n\x0c\n\x05\x04\ \x13\x02\0\x03\x12\x03v\x13\x14\n\n\n\x02\x04\x14\x12\x04y\0{\x01\n\n\n\ \x03\x04\x14\x01\x12\x03y\x08!\n\x0b\n\x04\x04\x14\x02\0\x12\x03z\x04\ - \x13\n\x0c\n\x05\x04\x14\x02\0\x05\x12\x03z\x04\x08\n\x0c\n\x05\x04\x14\ - \x02\0\x01\x12\x03z\t\x0e\n\x0c\n\x05\x04\x14\x02\0\x03\x12\x03z\x11\x12\ - \n\n\n\x02\x04\x15\x12\x04}\0\x7f\x01\n\n\n\x03\x04\x15\x01\x12\x03}\x08\ - \"\n\x0b\n\x04\x04\x15\x02\0\x12\x03~\x04\x15\n\x0c\n\x05\x04\x15\x02\0\ - \x05\x12\x03~\x04\n\n\x0c\n\x05\x04\x15\x02\0\x01\x12\x03~\x0b\x10\n\x0c\ - \n\x05\x04\x15\x02\0\x03\x12\x03~\x13\x14\n\x0c\n\x02\x04\x16\x12\x06\ - \x81\x01\0\x83\x01\x01\n\x0b\n\x03\x04\x16\x01\x12\x04\x81\x01\x08#\n\ - \x0c\n\x04\x04\x16\x02\0\x12\x04\x82\x01\x04\x13\n\r\n\x05\x04\x16\x02\0\ - \x05\x12\x04\x82\x01\x04\x08\n\r\n\x05\x04\x16\x02\0\x01\x12\x04\x82\x01\ - \t\x0e\n\r\n\x05\x04\x16\x02\0\x03\x12\x04\x82\x01\x11\x12\n\x0c\n\x02\ - \x04\x17\x12\x06\x85\x01\0\x87\x01\x01\n\x0b\n\x03\x04\x17\x01\x12\x04\ - \x85\x01\x08$\n\x0c\n\x04\x04\x17\x02\0\x12\x04\x86\x01\x04\x15\n\r\n\ - \x05\x04\x17\x02\0\x05\x12\x04\x86\x01\x04\n\n\r\n\x05\x04\x17\x02\0\x01\ - \x12\x04\x86\x01\x0b\x10\n\r\n\x05\x04\x17\x02\0\x03\x12\x04\x86\x01\x13\ - \x14\n\x0c\n\x02\x04\x18\x12\x06\x89\x01\0\x8b\x01\x01\n\x0b\n\x03\x04\ - \x18\x01\x12\x04\x89\x01\x08&\n\x0c\n\x04\x04\x18\x02\0\x12\x04\x8a\x01\ - \x082\n\r\n\x05\x04\x18\x02\0\x06\x12\x04\x8a\x01\x08!\n\r\n\x05\x04\x18\ - \x02\0\x01\x12\x04\x8a\x01\"-\n\r\n\x05\x04\x18\x02\0\x03\x12\x04\x8a\ - \x0101\n\x0c\n\x02\x04\x19\x12\x06\x8d\x01\0\x8f\x01\x01\n\x0b\n\x03\x04\ - \x19\x01\x12\x04\x8d\x01\x08'\n\x0c\n\x04\x04\x19\x02\0\x12\x04\x8e\x01\ - \x04#\n\r\n\x05\x04\x19\x02\0\x06\x12\x04\x8e\x01\x04\x10\n\r\n\x05\x04\ - \x19\x02\0\x01\x12\x04\x8e\x01\x11\x1e\n\r\n\x05\x04\x19\x02\0\x03\x12\ - \x04\x8e\x01!\"\n\x0c\n\x02\x04\x1a\x12\x06\x91\x01\0\x93\x01\x01\n\x0b\ - \n\x03\x04\x1a\x01\x12\x04\x91\x01\x08\x15\n\x0c\n\x04\x04\x1a\x02\0\x12\ - \x04\x92\x01\x04\x13\n\r\n\x05\x04\x1a\x02\0\x05\x12\x04\x92\x01\x04\x08\ - \n\r\n\x05\x04\x1a\x02\0\x01\x12\x04\x92\x01\t\x0e\n\r\n\x05\x04\x1a\x02\ - \0\x03\x12\x04\x92\x01\x11\x12\n\x0c\n\x02\x04\x1b\x12\x06\x95\x01\0\x97\ - \x01\x01\n\x0b\n\x03\x04\x1b\x01\x12\x04\x95\x01\x08\x16\n\x0c\n\x04\x04\ - \x1b\x02\0\x12\x04\x96\x01\x04\x15\n\r\n\x05\x04\x1b\x02\0\x05\x12\x04\ - \x96\x01\x04\n\n\r\n\x05\x04\x1b\x02\0\x01\x12\x04\x96\x01\x0b\x10\n\r\n\ - \x05\x04\x1b\x02\0\x03\x12\x04\x96\x01\x13\x14\n\x0c\n\x02\x04\x1c\x12\ - \x06\x99\x01\0\x9b\x01\x01\n\x0b\n\x03\x04\x1c\x01\x12\x04\x99\x01\x08\ - \x19\n\x0c\n\x04\x04\x1c\x02\0\x12\x04\x9a\x01\x04\x13\n\r\n\x05\x04\x1c\ - \x02\0\x05\x12\x04\x9a\x01\x04\x08\n\r\n\x05\x04\x1c\x02\0\x01\x12\x04\ - \x9a\x01\t\x0e\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\x9a\x01\x11\x12\n\x0c\ - \n\x02\x04\x1d\x12\x06\x9d\x01\0\x9f\x01\x01\n\x0b\n\x03\x04\x1d\x01\x12\ - \x04\x9d\x01\x08\x1a\n\x0c\n\x04\x04\x1d\x02\0\x12\x04\x9e\x01\x04\x15\n\ - \r\n\x05\x04\x1d\x02\0\x05\x12\x04\x9e\x01\x04\n\n\r\n\x05\x04\x1d\x02\0\ - \x01\x12\x04\x9e\x01\x0b\x10\n\r\n\x05\x04\x1d\x02\0\x03\x12\x04\x9e\x01\ - \x13\x14\n\x0c\n\x02\x04\x1e\x12\x06\xa1\x01\0\xa3\x01\x01\n\x0b\n\x03\ - \x04\x1e\x01\x12\x04\xa1\x01\x08\x17\n\x0c\n\x04\x04\x1e\x02\0\x12\x04\ - \xa2\x01\x04\x13\n\r\n\x05\x04\x1e\x02\0\x05\x12\x04\xa2\x01\x04\x08\n\r\ + \x13\n\r\n\x05\x04\x14\x02\0\x04\x12\x04z\x04y#\n\x0c\n\x05\x04\x14\x02\ + \0\x05\x12\x03z\x04\x08\n\x0c\n\x05\x04\x14\x02\0\x01\x12\x03z\t\x0e\n\ + \x0c\n\x05\x04\x14\x02\0\x03\x12\x03z\x11\x12\n\n\n\x02\x04\x15\x12\x04}\ + \0\x7f\x01\n\n\n\x03\x04\x15\x01\x12\x03}\x08\"\n\x0b\n\x04\x04\x15\x02\ + \0\x12\x03~\x04\x15\n\r\n\x05\x04\x15\x02\0\x04\x12\x04~\x04}$\n\x0c\n\ + \x05\x04\x15\x02\0\x05\x12\x03~\x04\n\n\x0c\n\x05\x04\x15\x02\0\x01\x12\ + \x03~\x0b\x10\n\x0c\n\x05\x04\x15\x02\0\x03\x12\x03~\x13\x14\n\x0c\n\x02\ + \x04\x16\x12\x06\x81\x01\0\x83\x01\x01\n\x0b\n\x03\x04\x16\x01\x12\x04\ + \x81\x01\x08#\n\x0c\n\x04\x04\x16\x02\0\x12\x04\x82\x01\x04\x13\n\x0f\n\ + \x05\x04\x16\x02\0\x04\x12\x06\x82\x01\x04\x81\x01%\n\r\n\x05\x04\x16\ + \x02\0\x05\x12\x04\x82\x01\x04\x08\n\r\n\x05\x04\x16\x02\0\x01\x12\x04\ + \x82\x01\t\x0e\n\r\n\x05\x04\x16\x02\0\x03\x12\x04\x82\x01\x11\x12\n\x0c\ + \n\x02\x04\x17\x12\x06\x85\x01\0\x87\x01\x01\n\x0b\n\x03\x04\x17\x01\x12\ + \x04\x85\x01\x08$\n\x0c\n\x04\x04\x17\x02\0\x12\x04\x86\x01\x04\x15\n\ + \x0f\n\x05\x04\x17\x02\0\x04\x12\x06\x86\x01\x04\x85\x01&\n\r\n\x05\x04\ + \x17\x02\0\x05\x12\x04\x86\x01\x04\n\n\r\n\x05\x04\x17\x02\0\x01\x12\x04\ + \x86\x01\x0b\x10\n\r\n\x05\x04\x17\x02\0\x03\x12\x04\x86\x01\x13\x14\n\ + \x0c\n\x02\x04\x18\x12\x06\x89\x01\0\x8b\x01\x01\n\x0b\n\x03\x04\x18\x01\ + \x12\x04\x89\x01\x08&\n\x0c\n\x04\x04\x18\x02\0\x12\x04\x8a\x01\x082\n\ + \x0f\n\x05\x04\x18\x02\0\x04\x12\x06\x8a\x01\x08\x89\x01(\n\r\n\x05\x04\ + \x18\x02\0\x06\x12\x04\x8a\x01\x08!\n\r\n\x05\x04\x18\x02\0\x01\x12\x04\ + \x8a\x01\"-\n\r\n\x05\x04\x18\x02\0\x03\x12\x04\x8a\x0101\n\x0c\n\x02\ + \x04\x19\x12\x06\x8d\x01\0\x8f\x01\x01\n\x0b\n\x03\x04\x19\x01\x12\x04\ + \x8d\x01\x08'\n\x0c\n\x04\x04\x19\x02\0\x12\x04\x8e\x01\x04#\n\x0f\n\x05\ + \x04\x19\x02\0\x04\x12\x06\x8e\x01\x04\x8d\x01)\n\r\n\x05\x04\x19\x02\0\ + \x06\x12\x04\x8e\x01\x04\x10\n\r\n\x05\x04\x19\x02\0\x01\x12\x04\x8e\x01\ + \x11\x1e\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\x8e\x01!\"\n\x0c\n\x02\x04\ + \x1a\x12\x06\x91\x01\0\x93\x01\x01\n\x0b\n\x03\x04\x1a\x01\x12\x04\x91\ + \x01\x08\x15\n\x0c\n\x04\x04\x1a\x02\0\x12\x04\x92\x01\x04\x13\n\x0f\n\ + \x05\x04\x1a\x02\0\x04\x12\x06\x92\x01\x04\x91\x01\x17\n\r\n\x05\x04\x1a\ + \x02\0\x05\x12\x04\x92\x01\x04\x08\n\r\n\x05\x04\x1a\x02\0\x01\x12\x04\ + \x92\x01\t\x0e\n\r\n\x05\x04\x1a\x02\0\x03\x12\x04\x92\x01\x11\x12\n\x0c\ + \n\x02\x04\x1b\x12\x06\x95\x01\0\x97\x01\x01\n\x0b\n\x03\x04\x1b\x01\x12\ + \x04\x95\x01\x08\x16\n\x0c\n\x04\x04\x1b\x02\0\x12\x04\x96\x01\x04\x15\n\ + \x0f\n\x05\x04\x1b\x02\0\x04\x12\x06\x96\x01\x04\x95\x01\x18\n\r\n\x05\ + \x04\x1b\x02\0\x05\x12\x04\x96\x01\x04\n\n\r\n\x05\x04\x1b\x02\0\x01\x12\ + \x04\x96\x01\x0b\x10\n\r\n\x05\x04\x1b\x02\0\x03\x12\x04\x96\x01\x13\x14\ + \n\x0c\n\x02\x04\x1c\x12\x06\x99\x01\0\x9b\x01\x01\n\x0b\n\x03\x04\x1c\ + \x01\x12\x04\x99\x01\x08\x19\n\x0c\n\x04\x04\x1c\x02\0\x12\x04\x9a\x01\ + \x04\x13\n\x0f\n\x05\x04\x1c\x02\0\x04\x12\x06\x9a\x01\x04\x99\x01\x1b\n\ + \r\n\x05\x04\x1c\x02\0\x05\x12\x04\x9a\x01\x04\x08\n\r\n\x05\x04\x1c\x02\ + \0\x01\x12\x04\x9a\x01\t\x0e\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\x9a\x01\ + \x11\x12\n\x0c\n\x02\x04\x1d\x12\x06\x9d\x01\0\x9f\x01\x01\n\x0b\n\x03\ + \x04\x1d\x01\x12\x04\x9d\x01\x08\x1a\n\x0c\n\x04\x04\x1d\x02\0\x12\x04\ + \x9e\x01\x04\x15\n\x0f\n\x05\x04\x1d\x02\0\x04\x12\x06\x9e\x01\x04\x9d\ + \x01\x1c\n\r\n\x05\x04\x1d\x02\0\x05\x12\x04\x9e\x01\x04\n\n\r\n\x05\x04\ + \x1d\x02\0\x01\x12\x04\x9e\x01\x0b\x10\n\r\n\x05\x04\x1d\x02\0\x03\x12\ + \x04\x9e\x01\x13\x14\n\x0c\n\x02\x04\x1e\x12\x06\xa1\x01\0\xa3\x01\x01\n\ + \x0b\n\x03\x04\x1e\x01\x12\x04\xa1\x01\x08\x17\n\x0c\n\x04\x04\x1e\x02\0\ + \x12\x04\xa2\x01\x04\x13\n\x0f\n\x05\x04\x1e\x02\0\x04\x12\x06\xa2\x01\ + \x04\xa1\x01\x19\n\r\n\x05\x04\x1e\x02\0\x05\x12\x04\xa2\x01\x04\x08\n\r\ \n\x05\x04\x1e\x02\0\x01\x12\x04\xa2\x01\t\x0e\n\r\n\x05\x04\x1e\x02\0\ \x03\x12\x04\xa2\x01\x11\x12\n\x0c\n\x02\x04\x1f\x12\x06\xa5\x01\0\xa7\ \x01\x01\n\x0b\n\x03\x04\x1f\x01\x12\x04\xa5\x01\x08\x18\n\x0c\n\x04\x04\ - \x1f\x02\0\x12\x04\xa6\x01\x04\x15\n\r\n\x05\x04\x1f\x02\0\x05\x12\x04\ - \xa6\x01\x04\n\n\r\n\x05\x04\x1f\x02\0\x01\x12\x04\xa6\x01\x0b\x10\n\r\n\ - \x05\x04\x1f\x02\0\x03\x12\x04\xa6\x01\x13\x14\n\x0c\n\x02\x04\x20\x12\ - \x06\xa9\x01\0\xab\x01\x01\n\x0b\n\x03\x04\x20\x01\x12\x04\xa9\x01\x08\ - \x1b\n\x0c\n\x04\x04\x20\x02\0\x12\x04\xaa\x01\x04\x13\n\r\n\x05\x04\x20\ - \x02\0\x05\x12\x04\xaa\x01\x04\x08\n\r\n\x05\x04\x20\x02\0\x01\x12\x04\ - \xaa\x01\t\x0e\n\r\n\x05\x04\x20\x02\0\x03\x12\x04\xaa\x01\x11\x12\n\x0c\ - \n\x02\x04!\x12\x06\xad\x01\0\xaf\x01\x01\n\x0b\n\x03\x04!\x01\x12\x04\ - \xad\x01\x08\x1c\n\x0c\n\x04\x04!\x02\0\x12\x04\xae\x01\x04\x15\n\r\n\ - \x05\x04!\x02\0\x05\x12\x04\xae\x01\x04\n\n\r\n\x05\x04!\x02\0\x01\x12\ - \x04\xae\x01\x0b\x10\n\r\n\x05\x04!\x02\0\x03\x12\x04\xae\x01\x13\x14\n\ - \x0c\n\x02\x04\"\x12\x06\xb1\x01\0\xb3\x01\x01\n\x0b\n\x03\x04\"\x01\x12\ - \x04\xb1\x01\x08\x16\n\x0c\n\x04\x04\"\x02\0\x12\x04\xb2\x01\x04\x13\n\r\ - \n\x05\x04\"\x02\0\x05\x12\x04\xb2\x01\x04\x08\n\r\n\x05\x04\"\x02\0\x01\ - \x12\x04\xb2\x01\t\x0e\n\r\n\x05\x04\"\x02\0\x03\x12\x04\xb2\x01\x11\x12\ - \n\x0c\n\x02\x04#\x12\x06\xb5\x01\0\xb7\x01\x01\n\x0b\n\x03\x04#\x01\x12\ - \x04\xb5\x01\x08\x17\n\x0c\n\x04\x04#\x02\0\x12\x04\xb6\x01\x04\x15\n\r\ - \n\x05\x04#\x02\0\x05\x12\x04\xb6\x01\x04\n\n\r\n\x05\x04#\x02\0\x01\x12\ - \x04\xb6\x01\x0b\x10\n\r\n\x05\x04#\x02\0\x03\x12\x04\xb6\x01\x13\x14\n\ - \n\n\x02\x04$\x12\x04\xb9\x01\0\x1e\n\x0b\n\x03\x04$\x01\x12\x04\xb9\x01\ - \x08\x1a\n\x0c\n\x02\x04%\x12\x06\xbb\x01\0\xbd\x01\x01\n\x0b\n\x03\x04%\ - \x01\x12\x04\xbb\x01\x08\x1b\n\x0c\n\x04\x04%\x02\0\x12\x04\xbc\x01\x04#\ - \n\r\n\x05\x04%\x02\0\x04\x12\x04\xbc\x01\x04\x0c\n\r\n\x05\x04%\x02\0\ - \x06\x12\x04\xbc\x01\r\x18\n\r\n\x05\x04%\x02\0\x01\x12\x04\xbc\x01\x19\ - \x1e\n\r\n\x05\x04%\x02\0\x03\x12\x04\xbc\x01!\"\n\x0c\n\x02\x04&\x12\ - \x06\xbf\x01\0\xc2\x01\x01\n\x0b\n\x03\x04&\x01\x12\x04\xbf\x01\x08\x20\ - \n\x0c\n\x04\x04&\x02\0\x12\x04\xc0\x01\x04\x19\n\r\n\x05\x04&\x02\0\x05\ + \x1f\x02\0\x12\x04\xa6\x01\x04\x15\n\x0f\n\x05\x04\x1f\x02\0\x04\x12\x06\ + \xa6\x01\x04\xa5\x01\x1a\n\r\n\x05\x04\x1f\x02\0\x05\x12\x04\xa6\x01\x04\ + \n\n\r\n\x05\x04\x1f\x02\0\x01\x12\x04\xa6\x01\x0b\x10\n\r\n\x05\x04\x1f\ + \x02\0\x03\x12\x04\xa6\x01\x13\x14\n\x0c\n\x02\x04\x20\x12\x06\xa9\x01\0\ + \xab\x01\x01\n\x0b\n\x03\x04\x20\x01\x12\x04\xa9\x01\x08\x1b\n\x0c\n\x04\ + \x04\x20\x02\0\x12\x04\xaa\x01\x04\x13\n\x0f\n\x05\x04\x20\x02\0\x04\x12\ + \x06\xaa\x01\x04\xa9\x01\x1d\n\r\n\x05\x04\x20\x02\0\x05\x12\x04\xaa\x01\ + \x04\x08\n\r\n\x05\x04\x20\x02\0\x01\x12\x04\xaa\x01\t\x0e\n\r\n\x05\x04\ + \x20\x02\0\x03\x12\x04\xaa\x01\x11\x12\n\x0c\n\x02\x04!\x12\x06\xad\x01\ + \0\xaf\x01\x01\n\x0b\n\x03\x04!\x01\x12\x04\xad\x01\x08\x1c\n\x0c\n\x04\ + \x04!\x02\0\x12\x04\xae\x01\x04\x15\n\x0f\n\x05\x04!\x02\0\x04\x12\x06\ + \xae\x01\x04\xad\x01\x1e\n\r\n\x05\x04!\x02\0\x05\x12\x04\xae\x01\x04\n\ + \n\r\n\x05\x04!\x02\0\x01\x12\x04\xae\x01\x0b\x10\n\r\n\x05\x04!\x02\0\ + \x03\x12\x04\xae\x01\x13\x14\n\x0c\n\x02\x04\"\x12\x06\xb1\x01\0\xb3\x01\ + \x01\n\x0b\n\x03\x04\"\x01\x12\x04\xb1\x01\x08\x16\n\x0c\n\x04\x04\"\x02\ + \0\x12\x04\xb2\x01\x04\x13\n\x0f\n\x05\x04\"\x02\0\x04\x12\x06\xb2\x01\ + \x04\xb1\x01\x18\n\r\n\x05\x04\"\x02\0\x05\x12\x04\xb2\x01\x04\x08\n\r\n\ + \x05\x04\"\x02\0\x01\x12\x04\xb2\x01\t\x0e\n\r\n\x05\x04\"\x02\0\x03\x12\ + \x04\xb2\x01\x11\x12\n\x0c\n\x02\x04#\x12\x06\xb5\x01\0\xb7\x01\x01\n\ + \x0b\n\x03\x04#\x01\x12\x04\xb5\x01\x08\x17\n\x0c\n\x04\x04#\x02\0\x12\ + \x04\xb6\x01\x04\x15\n\x0f\n\x05\x04#\x02\0\x04\x12\x06\xb6\x01\x04\xb5\ + \x01\x19\n\r\n\x05\x04#\x02\0\x05\x12\x04\xb6\x01\x04\n\n\r\n\x05\x04#\ + \x02\0\x01\x12\x04\xb6\x01\x0b\x10\n\r\n\x05\x04#\x02\0\x03\x12\x04\xb6\ + \x01\x13\x14\n\n\n\x02\x04$\x12\x04\xb9\x01\0\x1e\n\x0b\n\x03\x04$\x01\ + \x12\x04\xb9\x01\x08\x1a\n\x0c\n\x02\x04%\x12\x06\xbb\x01\0\xbd\x01\x01\ + \n\x0b\n\x03\x04%\x01\x12\x04\xbb\x01\x08\x1b\n\x0c\n\x04\x04%\x02\0\x12\ + \x04\xbc\x01\x04#\n\r\n\x05\x04%\x02\0\x04\x12\x04\xbc\x01\x04\x0c\n\r\n\ + \x05\x04%\x02\0\x06\x12\x04\xbc\x01\r\x18\n\r\n\x05\x04%\x02\0\x01\x12\ + \x04\xbc\x01\x19\x1e\n\r\n\x05\x04%\x02\0\x03\x12\x04\xbc\x01!\"\n\x0c\n\ + \x02\x04&\x12\x06\xbf\x01\0\xc2\x01\x01\n\x0b\n\x03\x04&\x01\x12\x04\xbf\ + \x01\x08\x20\n\x0c\n\x04\x04&\x02\0\x12\x04\xc0\x01\x04\x19\n\x0f\n\x05\ + \x04&\x02\0\x04\x12\x06\xc0\x01\x04\xbf\x01\"\n\r\n\x05\x04&\x02\0\x05\ \x12\x04\xc0\x01\x04\t\n\r\n\x05\x04&\x02\0\x01\x12\x04\xc0\x01\n\x14\n\ \r\n\x05\x04&\x02\0\x03\x12\x04\xc0\x01\x17\x18\n\x0c\n\x04\x04&\x02\x01\ - \x12\x04\xc1\x01\x04\x11\n\r\n\x05\x04&\x02\x01\x05\x12\x04\xc1\x01\x04\ - \t\n\r\n\x05\x04&\x02\x01\x01\x12\x04\xc1\x01\n\x0c\n\r\n\x05\x04&\x02\ - \x01\x03\x12\x04\xc1\x01\x0f\x10\n\x0c\n\x02\x04'\x12\x06\xc4\x01\0\xc6\ - \x01\x01\n\x0b\n\x03\x04'\x01\x12\x04\xc4\x01\x08!\n\x0c\n\x04\x04'\x02\ - \0\x12\x04\xc5\x01\x03\x18\n\r\n\x05\x04'\x02\0\x05\x12\x04\xc5\x01\x03\ - \x08\n\r\n\x05\x04'\x02\0\x01\x12\x04\xc5\x01\t\x13\n\r\n\x05\x04'\x02\0\ - \x03\x12\x04\xc5\x01\x16\x17\n\x0c\n\x02\x04(\x12\x06\xc8\x01\0\xcc\x01\ - \x01\n\x0b\n\x03\x04(\x01\x12\x04\xc8\x01\x08\x1f\n\x0c\n\x04\x04(\x02\0\ - \x12\x04\xc9\x01\x04\x19\n\r\n\x05\x04(\x02\0\x05\x12\x04\xc9\x01\x04\t\ - \n\r\n\x05\x04(\x02\0\x01\x12\x04\xc9\x01\n\x14\n\r\n\x05\x04(\x02\0\x03\ - \x12\x04\xc9\x01\x17\x18\n\x0c\n\x04\x04(\x02\x01\x12\x04\xca\x01\x04\ - \x11\n\r\n\x05\x04(\x02\x01\x05\x12\x04\xca\x01\x04\t\n\r\n\x05\x04(\x02\ - \x01\x01\x12\x04\xca\x01\n\x0c\n\r\n\x05\x04(\x02\x01\x03\x12\x04\xca\ - \x01\x0f\x10\n\x0c\n\x04\x04(\x02\x02\x12\x04\xcb\x01\x04\x17\n\r\n\x05\ - \x04(\x02\x02\x05\x12\x04\xcb\x01\x04\x08\n\r\n\x05\x04(\x02\x02\x01\x12\ - \x04\xcb\x01\t\x12\n\r\n\x05\x04(\x02\x02\x03\x12\x04\xcb\x01\x15\x16\n\ - \x0c\n\x02\x04)\x12\x06\xce\x01\0\xd2\x01\x01\n\x0b\n\x03\x04)\x01\x12\ - \x04\xce\x01\x08\x20\n\x0c\n\x04\x04)\x02\0\x12\x04\xcf\x01\x04\x19\n\r\ - \n\x05\x04)\x02\0\x05\x12\x04\xcf\x01\x04\t\n\r\n\x05\x04)\x02\0\x01\x12\ - \x04\xcf\x01\n\x14\n\r\n\x05\x04)\x02\0\x03\x12\x04\xcf\x01\x17\x18\n\ - \x0c\n\x04\x04)\x02\x01\x12\x04\xd0\x01\x04\x11\n\r\n\x05\x04)\x02\x01\ + \x12\x04\xc1\x01\x04\x11\n\x0f\n\x05\x04&\x02\x01\x04\x12\x06\xc1\x01\ + \x04\xc0\x01\x19\n\r\n\x05\x04&\x02\x01\x05\x12\x04\xc1\x01\x04\t\n\r\n\ + \x05\x04&\x02\x01\x01\x12\x04\xc1\x01\n\x0c\n\r\n\x05\x04&\x02\x01\x03\ + \x12\x04\xc1\x01\x0f\x10\n\x0c\n\x02\x04'\x12\x06\xc4\x01\0\xc6\x01\x01\ + \n\x0b\n\x03\x04'\x01\x12\x04\xc4\x01\x08!\n\x0c\n\x04\x04'\x02\0\x12\ + \x04\xc5\x01\x03\x18\n\x0f\n\x05\x04'\x02\0\x04\x12\x06\xc5\x01\x03\xc4\ + \x01#\n\r\n\x05\x04'\x02\0\x05\x12\x04\xc5\x01\x03\x08\n\r\n\x05\x04'\ + \x02\0\x01\x12\x04\xc5\x01\t\x13\n\r\n\x05\x04'\x02\0\x03\x12\x04\xc5\ + \x01\x16\x17\n\x0c\n\x02\x04(\x12\x06\xc8\x01\0\xcc\x01\x01\n\x0b\n\x03\ + \x04(\x01\x12\x04\xc8\x01\x08\x1f\n\x0c\n\x04\x04(\x02\0\x12\x04\xc9\x01\ + \x04\x19\n\x0f\n\x05\x04(\x02\0\x04\x12\x06\xc9\x01\x04\xc8\x01!\n\r\n\ + \x05\x04(\x02\0\x05\x12\x04\xc9\x01\x04\t\n\r\n\x05\x04(\x02\0\x01\x12\ + \x04\xc9\x01\n\x14\n\r\n\x05\x04(\x02\0\x03\x12\x04\xc9\x01\x17\x18\n\ + \x0c\n\x04\x04(\x02\x01\x12\x04\xca\x01\x04\x11\n\x0f\n\x05\x04(\x02\x01\ + \x04\x12\x06\xca\x01\x04\xc9\x01\x19\n\r\n\x05\x04(\x02\x01\x05\x12\x04\ + \xca\x01\x04\t\n\r\n\x05\x04(\x02\x01\x01\x12\x04\xca\x01\n\x0c\n\r\n\ + \x05\x04(\x02\x01\x03\x12\x04\xca\x01\x0f\x10\n\x0c\n\x04\x04(\x02\x02\ + \x12\x04\xcb\x01\x04\x17\n\x0f\n\x05\x04(\x02\x02\x04\x12\x06\xcb\x01\ + \x04\xca\x01\x11\n\r\n\x05\x04(\x02\x02\x05\x12\x04\xcb\x01\x04\x08\n\r\ + \n\x05\x04(\x02\x02\x01\x12\x04\xcb\x01\t\x12\n\r\n\x05\x04(\x02\x02\x03\ + \x12\x04\xcb\x01\x15\x16\n\x0c\n\x02\x04)\x12\x06\xce\x01\0\xd2\x01\x01\ + \n\x0b\n\x03\x04)\x01\x12\x04\xce\x01\x08\x20\n\x0c\n\x04\x04)\x02\0\x12\ + \x04\xcf\x01\x04\x19\n\x0f\n\x05\x04)\x02\0\x04\x12\x06\xcf\x01\x04\xce\ + \x01!\n\r\n\x05\x04)\x02\0\x05\x12\x04\xcf\x01\x04\t\n\r\n\x05\x04)\x02\ + \0\x01\x12\x04\xcf\x01\n\x14\n\r\n\x05\x04)\x02\0\x03\x12\x04\xcf\x01\ + \x17\x18\n\x0c\n\x04\x04)\x02\x01\x12\x04\xd0\x01\x04\x11\n\x0f\n\x05\ + \x04)\x02\x01\x04\x12\x06\xd0\x01\x04\xcf\x01\x19\n\r\n\x05\x04)\x02\x01\ \x05\x12\x04\xd0\x01\x04\t\n\r\n\x05\x04)\x02\x01\x01\x12\x04\xd0\x01\n\ \x0c\n\r\n\x05\x04)\x02\x01\x03\x12\x04\xd0\x01\x0f\x10\n\x0c\n\x04\x04)\ - \x02\x02\x12\x04\xd1\x01\x04\x17\n\r\n\x05\x04)\x02\x02\x05\x12\x04\xd1\ - \x01\x04\x08\n\r\n\x05\x04)\x02\x02\x01\x12\x04\xd1\x01\t\x12\n\r\n\x05\ - \x04)\x02\x02\x03\x12\x04\xd1\x01\x15\x16\n\x0c\n\x02\x04*\x12\x06\xd4\ - \x01\0\xd7\x01\x01\n\x0b\n\x03\x04*\x01\x12\x04\xd4\x01\x08\x1a\n\x0c\n\ - \x04\x04*\x02\0\x12\x04\xd5\x01\x04\x19\n\r\n\x05\x04*\x02\0\x05\x12\x04\ - \xd5\x01\x04\t\n\r\n\x05\x04*\x02\0\x01\x12\x04\xd5\x01\n\x14\n\r\n\x05\ - \x04*\x02\0\x03\x12\x04\xd5\x01\x17\x18\n\x0c\n\x04\x04*\x02\x01\x12\x04\ - \xd6\x01\x04\x11\n\r\n\x05\x04*\x02\x01\x05\x12\x04\xd6\x01\x04\t\n\r\n\ - \x05\x04*\x02\x01\x01\x12\x04\xd6\x01\n\x0c\n\r\n\x05\x04*\x02\x01\x03\ - \x12\x04\xd6\x01\x0f\x10\n\x0c\n\x02\x04+\x12\x06\xd9\x01\0\xdb\x01\x01\ - \n\x0b\n\x03\x04+\x01\x12\x04\xd9\x01\x08\x1b\n\x0c\n\x04\x04+\x02\0\x12\ - \x04\xda\x01\x04)\n\r\n\x05\x04+\x02\0\x04\x12\x04\xda\x01\x04\x0c\n\r\n\ - \x05\x04+\x02\0\x06\x12\x04\xda\x01\r\x1a\n\r\n\x05\x04+\x02\0\x01\x12\ - \x04\xda\x01\x1b$\n\r\n\x05\x04+\x02\0\x03\x12\x04\xda\x01'(\n\x0c\n\x02\ - \x04,\x12\x06\xdd\x01\0\xdf\x01\x01\n\x0b\n\x03\x04,\x01\x12\x04\xdd\x01\ - \x08!\n\x0c\n\x04\x04,\x02\0\x12\x04\xde\x01\x04\x13\n\r\n\x05\x04,\x02\ - \0\x05\x12\x04\xde\x01\x04\x08\n\r\n\x05\x04,\x02\0\x01\x12\x04\xde\x01\ - \t\x0e\n\r\n\x05\x04,\x02\0\x03\x12\x04\xde\x01\x11\x12\n\x0c\n\x02\x04-\ - \x12\x06\xe1\x01\0\xe3\x01\x01\n\x0b\n\x03\x04-\x01\x12\x04\xe1\x01\x08\ - \"\n\x0c\n\x04\x04-\x02\0\x12\x04\xe2\x01\x04\x15\n\r\n\x05\x04-\x02\0\ - \x05\x12\x04\xe2\x01\x04\n\n\r\n\x05\x04-\x02\0\x01\x12\x04\xe2\x01\x0b\ - \x10\n\r\n\x05\x04-\x02\0\x03\x12\x04\xe2\x01\x13\x14\n\x0c\n\x02\x04.\ - \x12\x06\xe5\x01\0\xe7\x01\x01\n\x0b\n\x03\x04.\x01\x12\x04\xe5\x01\x08\ - \x17\n\x0c\n\x04\x04.\x02\0\x12\x04\xe6\x01\x04\x1d\n\r\n\x05\x04.\x02\0\ - \x05\x12\x04\xe6\x01\x04\t\n\r\n\x05\x04.\x02\0\x01\x12\x04\xe6\x01\n\ - \x18\n\r\n\x05\x04.\x02\0\x03\x12\x04\xe6\x01\x1b\x1c\n\x0c\n\x02\x04/\ - \x12\x06\xe9\x01\0\xeb\x01\x01\n\x0b\n\x03\x04/\x01\x12\x04\xe9\x01\x08\ - \x18\n\x0c\n\x04\x04/\x02\0\x12\x04\xea\x01\x04\x1b\n\r\n\x05\x04/\x02\0\ - \x06\x12\x04\xea\x01\x04\x10\n\r\n\x05\x04/\x02\0\x01\x12\x04\xea\x01\ - \x11\x16\n\r\n\x05\x04/\x02\0\x03\x12\x04\xea\x01\x19\x1a\n\x0c\n\x02\ - \x040\x12\x06\xed\x01\0\xef\x01\x01\n\x0b\n\x03\x040\x01\x12\x04\xed\x01\ - \x08\x19\n\x0c\n\x04\x040\x02\0\x12\x04\xee\x01\x04\x13\n\r\n\x05\x040\ - \x02\0\x05\x12\x04\xee\x01\x04\x08\n\r\n\x05\x040\x02\0\x01\x12\x04\xee\ - \x01\t\x0e\n\r\n\x05\x040\x02\0\x03\x12\x04\xee\x01\x11\x12\n\x0c\n\x02\ - \x041\x12\x06\xf1\x01\0\xf3\x01\x01\n\x0b\n\x03\x041\x01\x12\x04\xf1\x01\ - \x08\x1a\n\x0c\n\x04\x041\x02\0\x12\x04\xf2\x01\x046\n\r\n\x05\x041\x02\ - \0\x04\x12\x04\xf2\x01\x04\x0c\n\r\n\x05\x041\x02\0\x06\x12\x04\xf2\x01\ - \r$\n\r\n\x05\x041\x02\0\x01\x12\x04\xf2\x01%1\n\r\n\x05\x041\x02\0\x03\ - \x12\x04\xf2\x0145\n\x0c\n\x02\x042\x12\x06\xf5\x01\0\xf9\x01\x01\n\x0b\ - \n\x03\x042\x01\x12\x04\xf5\x01\x08\x1a\n\x0c\n\x04\x042\x02\0\x12\x04\ - \xf6\x01\x04\x16\n\r\n\x05\x042\x02\0\x05\x12\x04\xf6\x01\x04\t\n\r\n\ - \x05\x042\x02\0\x01\x12\x04\xf6\x01\n\x11\n\r\n\x05\x042\x02\0\x03\x12\ - \x04\xf6\x01\x14\x15\n\x0c\n\x04\x042\x02\x01\x12\x04\xf7\x01\x04\x16\n\ - \r\n\x05\x042\x02\x01\x05\x12\x04\xf7\x01\x04\n\n\r\n\x05\x042\x02\x01\ - \x01\x12\x04\xf7\x01\x0b\x11\n\r\n\x05\x042\x02\x01\x03\x12\x04\xf7\x01\ - \x14\x15\n\x0c\n\x04\x042\x02\x02\x12\x04\xf8\x01\x044\n\r\n\x05\x042\ - \x02\x02\x06\x12\x04\xf8\x01\x04\x1f\n\r\n\x05\x042\x02\x02\x01\x12\x04\ - \xf8\x01\x20/\n\r\n\x05\x042\x02\x02\x03\x12\x04\xf8\x0123\n\x0c\n\x02\ - \x043\x12\x06\xfb\x01\0\xff\x01\x01\n\x0b\n\x03\x043\x01\x12\x04\xfb\x01\ - \x08\x1b\n\x0c\n\x04\x043\x02\0\x12\x04\xfc\x01\x04\x18\n\r\n\x05\x043\ - \x02\0\x05\x12\x04\xfc\x01\x04\t\n\r\n\x05\x043\x02\0\x01\x12\x04\xfc\ - \x01\n\x13\n\r\n\x05\x043\x02\0\x03\x12\x04\xfc\x01\x16\x17\n\x0c\n\x04\ - \x043\x02\x01\x12\x04\xfd\x01\x04\x19\n\r\n\x05\x043\x02\x01\x05\x12\x04\ - \xfd\x01\x04\t\n\r\n\x05\x043\x02\x01\x01\x12\x04\xfd\x01\n\x14\n\r\n\ - \x05\x043\x02\x01\x03\x12\x04\xfd\x01\x17\x18\n\x0c\n\x04\x043\x02\x02\ - \x12\x04\xfe\x01\x04\x1f\n\r\n\x05\x043\x02\x02\x05\x12\x04\xfe\x01\x04\ - \t\n\r\n\x05\x043\x02\x02\x01\x12\x04\xfe\x01\n\x1a\n\r\n\x05\x043\x02\ - \x02\x03\x12\x04\xfe\x01\x1d\x1e\n\x0c\n\x02\x044\x12\x06\x81\x02\0\x86\ - \x02\x01\n\x0b\n\x03\x044\x01\x12\x04\x81\x02\x08\x1c\n\x0c\n\x04\x044\ - \x02\0\x12\x04\x82\x02\x04\x18\n\r\n\x05\x044\x02\0\x05\x12\x04\x82\x02\ - \x04\t\n\r\n\x05\x044\x02\0\x01\x12\x04\x82\x02\n\x13\n\r\n\x05\x044\x02\ - \0\x03\x12\x04\x82\x02\x16\x17\n\x0c\n\x04\x044\x02\x01\x12\x04\x83\x02\ - \x04\x19\n\r\n\x05\x044\x02\x01\x05\x12\x04\x83\x02\x04\t\n\r\n\x05\x044\ - \x02\x01\x01\x12\x04\x83\x02\n\x14\n\r\n\x05\x044\x02\x01\x03\x12\x04\ - \x83\x02\x17\x18\n\x0c\n\x04\x044\x02\x02\x12\x04\x84\x02\x04\x16\n\r\n\ - \x05\x044\x02\x02\x05\x12\x04\x84\x02\x04\t\n\r\n\x05\x044\x02\x02\x01\ - \x12\x04\x84\x02\n\x11\n\r\n\x05\x044\x02\x02\x03\x12\x04\x84\x02\x14\ - \x15\n\x0c\n\x04\x044\x02\x03\x12\x04\x85\x02\x044\n\r\n\x05\x044\x02\ - \x03\x06\x12\x04\x85\x02\x04\x1f\n\r\n\x05\x044\x02\x03\x01\x12\x04\x85\ - \x02\x20/\n\r\n\x05\x044\x02\x03\x03\x12\x04\x85\x0223\n\x0c\n\x02\x045\ - \x12\x06\x88\x02\0\x8a\x02\x01\n\x0b\n\x03\x045\x01\x12\x04\x88\x02\x08\ - \x1d\n\x0c\n\x04\x045\x02\0\x12\x04\x89\x02\x04\x1e\n\r\n\x05\x045\x02\0\ - \x05\x12\x04\x89\x02\x04\x08\n\r\n\x05\x045\x02\0\x01\x12\x04\x89\x02\t\ - \x19\n\r\n\x05\x045\x02\0\x03\x12\x04\x89\x02\x1c\x1d\n\x0c\n\x02\x046\ - \x12\x06\x8c\x02\0\x8e\x02\x01\n\x0b\n\x03\x046\x01\x12\x04\x8c\x02\x08\ - \x1c\n\x0c\n\x04\x046\x02\0\x12\x04\x8d\x02\x04\x13\n\r\n\x05\x046\x02\0\ - \x05\x12\x04\x8d\x02\x04\x08\n\r\n\x05\x046\x02\0\x01\x12\x04\x8d\x02\t\ - \x0e\n\r\n\x05\x046\x02\0\x03\x12\x04\x8d\x02\x11\x12\n\x0c\n\x02\x047\ - \x12\x06\x90\x02\0\x92\x02\x01\n\x0b\n\x03\x047\x01\x12\x04\x90\x02\x08\ - \x1d\n\x0c\n\x04\x047\x02\0\x12\x04\x91\x02\x04\x15\n\r\n\x05\x047\x02\0\ - \x05\x12\x04\x91\x02\x04\n\n\r\n\x05\x047\x02\0\x01\x12\x04\x91\x02\x0b\ - \x10\n\r\n\x05\x047\x02\0\x03\x12\x04\x91\x02\x13\x14\n\x0c\n\x02\x048\ - \x12\x06\x94\x02\0\x98\x02\x01\n\x0b\n\x03\x048\x01\x12\x04\x94\x02\x08\ - \x1b\n\x0c\n\x04\x048\x02\0\x12\x04\x95\x02\x08\x1d\n\r\n\x05\x048\x02\0\ - \x05\x12\x04\x95\x02\x08\x0e\n\r\n\x05\x048\x02\0\x01\x12\x04\x95\x02\ - \x0f\x18\n\r\n\x05\x048\x02\0\x03\x12\x04\x95\x02\x1b\x1c\n\x0c\n\x04\ - \x048\x02\x01\x12\x04\x96\x02\x08\x1d\n\r\n\x05\x048\x02\x01\x05\x12\x04\ - \x96\x02\x08\x0e\n\r\n\x05\x048\x02\x01\x01\x12\x04\x96\x02\x0f\x18\n\r\ - \n\x05\x048\x02\x01\x03\x12\x04\x96\x02\x1b\x1c\n\x0c\n\x04\x048\x02\x02\ - \x12\x04\x97\x02\x08\x18\n\r\n\x05\x048\x02\x02\x05\x12\x04\x97\x02\x08\ - \x0e\n\r\n\x05\x048\x02\x02\x01\x12\x04\x97\x02\x0f\x13\n\r\n\x05\x048\ - \x02\x02\x03\x12\x04\x97\x02\x16\x17\n\x0c\n\x02\x049\x12\x06\x9a\x02\0\ - \x9d\x02\x01\n\x0b\n\x03\x049\x01\x12\x04\x9a\x02\x08\x1c\n\x0c\n\x04\ - \x049\x02\0\x12\x04\x9b\x02\x08\x20\n\r\n\x05\x049\x02\0\x05\x12\x04\x9b\ - \x02\x08\r\n\r\n\x05\x049\x02\0\x01\x12\x04\x9b\x02\x0e\x1b\n\r\n\x05\ - \x049\x02\0\x03\x12\x04\x9b\x02\x1e\x1f\n\x0c\n\x04\x049\x02\x01\x12\x04\ - \x9c\x02\x08\x1c\n\r\n\x05\x049\x02\x01\x05\x12\x04\x9c\x02\x08\x0e\n\r\ - \n\x05\x049\x02\x01\x01\x12\x04\x9c\x02\x0f\x17\n\r\n\x05\x049\x02\x01\ - \x03\x12\x04\x9c\x02\x1a\x1b\n\x0c\n\x02\x04:\x12\x06\x9f\x02\0\xa3\x02\ - \x01\n\x0b\n\x03\x04:\x01\x12\x04\x9f\x02\x08\x20\n\x0c\n\x04\x04:\x02\0\ - \x12\x04\xa0\x02\x08\x1c\n\r\n\x05\x04:\x02\0\x05\x12\x04\xa0\x02\x08\ - \x0e\n\r\n\x05\x04:\x02\0\x01\x12\x04\xa0\x02\x0f\x17\n\r\n\x05\x04:\x02\ - \0\x03\x12\x04\xa0\x02\x1a\x1b\n\x0c\n\x04\x04:\x02\x01\x12\x04\xa1\x02\ - \x08\x1e\n\r\n\x05\x04:\x02\x01\x05\x12\x04\xa1\x02\x08\r\n\r\n\x05\x04:\ - \x02\x01\x01\x12\x04\xa1\x02\x0e\x19\n\r\n\x05\x04:\x02\x01\x03\x12\x04\ - \xa1\x02\x1c\x1d\n\x0c\n\x04\x04:\x02\x02\x12\x04\xa2\x02\x08(\n\r\n\x05\ - \x04:\x02\x02\x05\x12\x04\xa2\x02\x08\r\n\r\n\x05\x04:\x02\x02\x01\x12\ - \x04\xa2\x02\x0e#\n\r\n\x05\x04:\x02\x02\x03\x12\x04\xa2\x02&'\n\x0c\n\ - \x02\x04;\x12\x06\xa5\x02\0\xa7\x02\x01\n\x0b\n\x03\x04;\x01\x12\x04\xa5\ - \x02\x08!\n\x0c\n\x04\x04;\x02\0\x12\x04\xa6\x02\x08\x20\n\r\n\x05\x04;\ - \x02\0\x05\x12\x04\xa6\x02\x08\r\n\r\n\x05\x04;\x02\0\x01\x12\x04\xa6\ - \x02\x0e\x1b\n\r\n\x05\x04;\x02\0\x03\x12\x04\xa6\x02\x1e\x1f\n\x0c\n\ - \x02\x04<\x12\x06\xa9\x02\0\xac\x02\x01\n\x0b\n\x03\x04<\x01\x12\x04\xa9\ - \x02\x08\x19\n\x0c\n\x04\x04<\x02\0\x12\x04\xaa\x02\x08\x1a\n\r\n\x05\ - \x04<\x02\0\x05\x12\x04\xaa\x02\x08\r\n\r\n\x05\x04<\x02\0\x01\x12\x04\ - \xaa\x02\x0e\x15\n\r\n\x05\x04<\x02\0\x03\x12\x04\xaa\x02\x18\x19\n\x0c\ - \n\x04\x04<\x02\x01\x12\x04\xab\x02\x08\x1d\n\r\n\x05\x04<\x02\x01\x05\ - \x12\x04\xab\x02\x08\r\n\r\n\x05\x04<\x02\x01\x01\x12\x04\xab\x02\x0e\ - \x18\n\r\n\x05\x04<\x02\x01\x03\x12\x04\xab\x02\x1b\x1c\n\x0c\n\x02\x04=\ - \x12\x06\xae\x02\0\xb0\x02\x01\n\x0b\n\x03\x04=\x01\x12\x04\xae\x02\x08\ - \x1a\n\x0c\n\x04\x04=\x02\0\x12\x04\xaf\x02\x08!\n\r\n\x05\x04=\x02\0\ - \x05\x12\x04\xaf\x02\x08\x0e\n\r\n\x05\x04=\x02\0\x01\x12\x04\xaf\x02\ - \x0f\x1c\n\r\n\x05\x04=\x02\0\x03\x12\x04\xaf\x02\x1f\x20\n\n\n\x02\x04>\ - \x12\x04\xb2\x02\0\x1f\n\x0b\n\x03\x04>\x01\x12\x04\xb2\x02\x08\x1b\n\ - \x0c\n\x02\x04?\x12\x06\xb4\x02\0\xb6\x02\x01\n\x0b\n\x03\x04?\x01\x12\ - \x04\xb4\x02\x08\x1c\n\x0c\n\x04\x04?\x02\0\x12\x04\xb5\x02\x08\x1d\n\r\ - \n\x05\x04?\x02\0\x05\x12\x04\xb5\x02\x08\r\n\r\n\x05\x04?\x02\0\x01\x12\ - \x04\xb5\x02\x0e\x18\n\r\n\x05\x04?\x02\0\x03\x12\x04\xb5\x02\x1b\x1c\n\ - \x0c\n\x02\x04@\x12\x06\xb8\x02\0\xba\x02\x01\n\x0b\n\x03\x04@\x01\x12\ - \x04\xb8\x02\x08\x1d\n\x0c\n\x04\x04@\x02\0\x12\x04\xb9\x02\x08\x1c\n\r\ - \n\x05\x04@\x02\0\x05\x12\x04\xb9\x02\x08\x0e\n\r\n\x05\x04@\x02\0\x01\ - \x12\x04\xb9\x02\x0f\x17\n\r\n\x05\x04@\x02\0\x03\x12\x04\xb9\x02\x1a\ - \x1b\n\x0c\n\x02\x04A\x12\x06\xbc\x02\0\xbf\x02\x01\n\x0b\n\x03\x04A\x01\ - \x12\x04\xbc\x02\x08\x1e\n\x0c\n\x04\x04A\x02\0\x12\x04\xbd\x02\x08\x1d\ - \n\r\n\x05\x04A\x02\0\x05\x12\x04\xbd\x02\x08\x0e\n\r\n\x05\x04A\x02\0\ - \x01\x12\x04\xbd\x02\x0f\x18\n\r\n\x05\x04A\x02\0\x03\x12\x04\xbd\x02\ - \x1b\x1c\n\x0c\n\x04\x04A\x02\x01\x12\x04\xbe\x02\x08\x20\n\r\n\x05\x04A\ - \x02\x01\x05\x12\x04\xbe\x02\x08\r\n\r\n\x05\x04A\x02\x01\x01\x12\x04\ - \xbe\x02\x0e\x1b\n\r\n\x05\x04A\x02\x01\x03\x12\x04\xbe\x02\x1e\x1f\n\ - \x0c\n\x02\x04B\x12\x06\xc1\x02\0\xc3\x02\x01\n\x0b\n\x03\x04B\x01\x12\ - \x04\xc1\x02\x08\x20\n\x0c\n\x04\x04B\x02\0\x12\x04\xc2\x02\x04\x1b\n\r\ - \n\x05\x04B\x02\0\x05\x12\x04\xc2\x02\x04\n\n\r\n\x05\x04B\x02\0\x01\x12\ - \x04\xc2\x02\x0b\x16\n\r\n\x05\x04B\x02\0\x03\x12\x04\xc2\x02\x19\x1a\n\ - \x0c\n\x02\x04C\x12\x06\xc5\x02\0\xc7\x02\x01\n\x0b\n\x03\x04C\x01\x12\ - \x04\xc5\x02\x08!\n\x0c\n\x04\x04C\x02\0\x12\x04\xc6\x02\x04\x13\n\r\n\ - \x05\x04C\x02\0\x05\x12\x04\xc6\x02\x04\x08\n\r\n\x05\x04C\x02\0\x01\x12\ - \x04\xc6\x02\t\x0e\n\r\n\x05\x04C\x02\0\x03\x12\x04\xc6\x02\x11\x12b\x06\ - proto3\ + \x02\x02\x12\x04\xd1\x01\x04\x17\n\x0f\n\x05\x04)\x02\x02\x04\x12\x06\ + \xd1\x01\x04\xd0\x01\x11\n\r\n\x05\x04)\x02\x02\x05\x12\x04\xd1\x01\x04\ + \x08\n\r\n\x05\x04)\x02\x02\x01\x12\x04\xd1\x01\t\x12\n\r\n\x05\x04)\x02\ + \x02\x03\x12\x04\xd1\x01\x15\x16\n\x0c\n\x02\x04*\x12\x06\xd4\x01\0\xd7\ + \x01\x01\n\x0b\n\x03\x04*\x01\x12\x04\xd4\x01\x08\x1a\n\x0c\n\x04\x04*\ + \x02\0\x12\x04\xd5\x01\x04\x19\n\x0f\n\x05\x04*\x02\0\x04\x12\x06\xd5\ + \x01\x04\xd4\x01\x1c\n\r\n\x05\x04*\x02\0\x05\x12\x04\xd5\x01\x04\t\n\r\ + \n\x05\x04*\x02\0\x01\x12\x04\xd5\x01\n\x14\n\r\n\x05\x04*\x02\0\x03\x12\ + \x04\xd5\x01\x17\x18\n\x0c\n\x04\x04*\x02\x01\x12\x04\xd6\x01\x04\x11\n\ + \x0f\n\x05\x04*\x02\x01\x04\x12\x06\xd6\x01\x04\xd5\x01\x19\n\r\n\x05\ + \x04*\x02\x01\x05\x12\x04\xd6\x01\x04\t\n\r\n\x05\x04*\x02\x01\x01\x12\ + \x04\xd6\x01\n\x0c\n\r\n\x05\x04*\x02\x01\x03\x12\x04\xd6\x01\x0f\x10\n\ + \x0c\n\x02\x04+\x12\x06\xd9\x01\0\xdb\x01\x01\n\x0b\n\x03\x04+\x01\x12\ + \x04\xd9\x01\x08\x1b\n\x0c\n\x04\x04+\x02\0\x12\x04\xda\x01\x04)\n\r\n\ + \x05\x04+\x02\0\x04\x12\x04\xda\x01\x04\x0c\n\r\n\x05\x04+\x02\0\x06\x12\ + \x04\xda\x01\r\x1a\n\r\n\x05\x04+\x02\0\x01\x12\x04\xda\x01\x1b$\n\r\n\ + \x05\x04+\x02\0\x03\x12\x04\xda\x01'(\n\x0c\n\x02\x04,\x12\x06\xdd\x01\0\ + \xdf\x01\x01\n\x0b\n\x03\x04,\x01\x12\x04\xdd\x01\x08!\n\x0c\n\x04\x04,\ + \x02\0\x12\x04\xde\x01\x04\x13\n\x0f\n\x05\x04,\x02\0\x04\x12\x06\xde\ + \x01\x04\xdd\x01#\n\r\n\x05\x04,\x02\0\x05\x12\x04\xde\x01\x04\x08\n\r\n\ + \x05\x04,\x02\0\x01\x12\x04\xde\x01\t\x0e\n\r\n\x05\x04,\x02\0\x03\x12\ + \x04\xde\x01\x11\x12\n\x0c\n\x02\x04-\x12\x06\xe1\x01\0\xe3\x01\x01\n\ + \x0b\n\x03\x04-\x01\x12\x04\xe1\x01\x08\"\n\x0c\n\x04\x04-\x02\0\x12\x04\ + \xe2\x01\x04\x15\n\x0f\n\x05\x04-\x02\0\x04\x12\x06\xe2\x01\x04\xe1\x01$\ + \n\r\n\x05\x04-\x02\0\x05\x12\x04\xe2\x01\x04\n\n\r\n\x05\x04-\x02\0\x01\ + \x12\x04\xe2\x01\x0b\x10\n\r\n\x05\x04-\x02\0\x03\x12\x04\xe2\x01\x13\ + \x14\n\x0c\n\x02\x04.\x12\x06\xe5\x01\0\xe7\x01\x01\n\x0b\n\x03\x04.\x01\ + \x12\x04\xe5\x01\x08\x17\n\x0c\n\x04\x04.\x02\0\x12\x04\xe6\x01\x04\x1d\ + \n\x0f\n\x05\x04.\x02\0\x04\x12\x06\xe6\x01\x04\xe5\x01\x19\n\r\n\x05\ + \x04.\x02\0\x05\x12\x04\xe6\x01\x04\t\n\r\n\x05\x04.\x02\0\x01\x12\x04\ + \xe6\x01\n\x18\n\r\n\x05\x04.\x02\0\x03\x12\x04\xe6\x01\x1b\x1c\n\x0c\n\ + \x02\x04/\x12\x06\xe9\x01\0\xeb\x01\x01\n\x0b\n\x03\x04/\x01\x12\x04\xe9\ + \x01\x08\x18\n\x0c\n\x04\x04/\x02\0\x12\x04\xea\x01\x04\x1b\n\x0f\n\x05\ + \x04/\x02\0\x04\x12\x06\xea\x01\x04\xe9\x01\x1a\n\r\n\x05\x04/\x02\0\x06\ + \x12\x04\xea\x01\x04\x10\n\r\n\x05\x04/\x02\0\x01\x12\x04\xea\x01\x11\ + \x16\n\r\n\x05\x04/\x02\0\x03\x12\x04\xea\x01\x19\x1a\n\x0c\n\x02\x040\ + \x12\x06\xed\x01\0\xef\x01\x01\n\x0b\n\x03\x040\x01\x12\x04\xed\x01\x08\ + \x19\n\x0c\n\x04\x040\x02\0\x12\x04\xee\x01\x04\x13\n\x0f\n\x05\x040\x02\ + \0\x04\x12\x06\xee\x01\x04\xed\x01\x1b\n\r\n\x05\x040\x02\0\x05\x12\x04\ + \xee\x01\x04\x08\n\r\n\x05\x040\x02\0\x01\x12\x04\xee\x01\t\x0e\n\r\n\ + \x05\x040\x02\0\x03\x12\x04\xee\x01\x11\x12\n\x0c\n\x02\x041\x12\x06\xf1\ + \x01\0\xf3\x01\x01\n\x0b\n\x03\x041\x01\x12\x04\xf1\x01\x08\x1a\n\x0c\n\ + \x04\x041\x02\0\x12\x04\xf2\x01\x046\n\r\n\x05\x041\x02\0\x04\x12\x04\ + \xf2\x01\x04\x0c\n\r\n\x05\x041\x02\0\x06\x12\x04\xf2\x01\r$\n\r\n\x05\ + \x041\x02\0\x01\x12\x04\xf2\x01%1\n\r\n\x05\x041\x02\0\x03\x12\x04\xf2\ + \x0145\n\x0c\n\x02\x042\x12\x06\xf5\x01\0\xf9\x01\x01\n\x0b\n\x03\x042\ + \x01\x12\x04\xf5\x01\x08\x1a\n\x0c\n\x04\x042\x02\0\x12\x04\xf6\x01\x04\ + \x16\n\x0f\n\x05\x042\x02\0\x04\x12\x06\xf6\x01\x04\xf5\x01\x1c\n\r\n\ + \x05\x042\x02\0\x05\x12\x04\xf6\x01\x04\t\n\r\n\x05\x042\x02\0\x01\x12\ + \x04\xf6\x01\n\x11\n\r\n\x05\x042\x02\0\x03\x12\x04\xf6\x01\x14\x15\n\ + \x0c\n\x04\x042\x02\x01\x12\x04\xf7\x01\x04\x16\n\x0f\n\x05\x042\x02\x01\ + \x04\x12\x06\xf7\x01\x04\xf6\x01\x16\n\r\n\x05\x042\x02\x01\x05\x12\x04\ + \xf7\x01\x04\n\n\r\n\x05\x042\x02\x01\x01\x12\x04\xf7\x01\x0b\x11\n\r\n\ + \x05\x042\x02\x01\x03\x12\x04\xf7\x01\x14\x15\n\x0c\n\x04\x042\x02\x02\ + \x12\x04\xf8\x01\x044\n\x0f\n\x05\x042\x02\x02\x04\x12\x06\xf8\x01\x04\ + \xf7\x01\x16\n\r\n\x05\x042\x02\x02\x06\x12\x04\xf8\x01\x04\x1f\n\r\n\ + \x05\x042\x02\x02\x01\x12\x04\xf8\x01\x20/\n\r\n\x05\x042\x02\x02\x03\ + \x12\x04\xf8\x0123\n\x0c\n\x02\x043\x12\x06\xfb\x01\0\xff\x01\x01\n\x0b\ + \n\x03\x043\x01\x12\x04\xfb\x01\x08\x1b\n\x0c\n\x04\x043\x02\0\x12\x04\ + \xfc\x01\x04\x18\n\x0f\n\x05\x043\x02\0\x04\x12\x06\xfc\x01\x04\xfb\x01\ + \x1d\n\r\n\x05\x043\x02\0\x05\x12\x04\xfc\x01\x04\t\n\r\n\x05\x043\x02\0\ + \x01\x12\x04\xfc\x01\n\x13\n\r\n\x05\x043\x02\0\x03\x12\x04\xfc\x01\x16\ + \x17\n\x0c\n\x04\x043\x02\x01\x12\x04\xfd\x01\x04\x19\n\x0f\n\x05\x043\ + \x02\x01\x04\x12\x06\xfd\x01\x04\xfc\x01\x18\n\r\n\x05\x043\x02\x01\x05\ + \x12\x04\xfd\x01\x04\t\n\r\n\x05\x043\x02\x01\x01\x12\x04\xfd\x01\n\x14\ + \n\r\n\x05\x043\x02\x01\x03\x12\x04\xfd\x01\x17\x18\n\x0c\n\x04\x043\x02\ + \x02\x12\x04\xfe\x01\x04\x1f\n\x0f\n\x05\x043\x02\x02\x04\x12\x06\xfe\ + \x01\x04\xfd\x01\x19\n\r\n\x05\x043\x02\x02\x05\x12\x04\xfe\x01\x04\t\n\ + \r\n\x05\x043\x02\x02\x01\x12\x04\xfe\x01\n\x1a\n\r\n\x05\x043\x02\x02\ + \x03\x12\x04\xfe\x01\x1d\x1e\n\x0c\n\x02\x044\x12\x06\x81\x02\0\x86\x02\ + \x01\n\x0b\n\x03\x044\x01\x12\x04\x81\x02\x08\x1c\n\x0c\n\x04\x044\x02\0\ + \x12\x04\x82\x02\x04\x18\n\x0f\n\x05\x044\x02\0\x04\x12\x06\x82\x02\x04\ + \x81\x02\x1e\n\r\n\x05\x044\x02\0\x05\x12\x04\x82\x02\x04\t\n\r\n\x05\ + \x044\x02\0\x01\x12\x04\x82\x02\n\x13\n\r\n\x05\x044\x02\0\x03\x12\x04\ + \x82\x02\x16\x17\n\x0c\n\x04\x044\x02\x01\x12\x04\x83\x02\x04\x19\n\x0f\ + \n\x05\x044\x02\x01\x04\x12\x06\x83\x02\x04\x82\x02\x18\n\r\n\x05\x044\ + \x02\x01\x05\x12\x04\x83\x02\x04\t\n\r\n\x05\x044\x02\x01\x01\x12\x04\ + \x83\x02\n\x14\n\r\n\x05\x044\x02\x01\x03\x12\x04\x83\x02\x17\x18\n\x0c\ + \n\x04\x044\x02\x02\x12\x04\x84\x02\x04\x16\n\x0f\n\x05\x044\x02\x02\x04\ + \x12\x06\x84\x02\x04\x83\x02\x19\n\r\n\x05\x044\x02\x02\x05\x12\x04\x84\ + \x02\x04\t\n\r\n\x05\x044\x02\x02\x01\x12\x04\x84\x02\n\x11\n\r\n\x05\ + \x044\x02\x02\x03\x12\x04\x84\x02\x14\x15\n\x0c\n\x04\x044\x02\x03\x12\ + \x04\x85\x02\x044\n\x0f\n\x05\x044\x02\x03\x04\x12\x06\x85\x02\x04\x84\ + \x02\x16\n\r\n\x05\x044\x02\x03\x06\x12\x04\x85\x02\x04\x1f\n\r\n\x05\ + \x044\x02\x03\x01\x12\x04\x85\x02\x20/\n\r\n\x05\x044\x02\x03\x03\x12\ + \x04\x85\x0223\n\x0c\n\x02\x045\x12\x06\x88\x02\0\x8a\x02\x01\n\x0b\n\ + \x03\x045\x01\x12\x04\x88\x02\x08\x1d\n\x0c\n\x04\x045\x02\0\x12\x04\x89\ + \x02\x04\x1e\n\x0f\n\x05\x045\x02\0\x04\x12\x06\x89\x02\x04\x88\x02\x1f\ + \n\r\n\x05\x045\x02\0\x05\x12\x04\x89\x02\x04\x08\n\r\n\x05\x045\x02\0\ + \x01\x12\x04\x89\x02\t\x19\n\r\n\x05\x045\x02\0\x03\x12\x04\x89\x02\x1c\ + \x1d\n\x0c\n\x02\x046\x12\x06\x8c\x02\0\x8e\x02\x01\n\x0b\n\x03\x046\x01\ + \x12\x04\x8c\x02\x08\x1c\n\x0c\n\x04\x046\x02\0\x12\x04\x8d\x02\x04\x13\ + \n\x0f\n\x05\x046\x02\0\x04\x12\x06\x8d\x02\x04\x8c\x02\x1e\n\r\n\x05\ + \x046\x02\0\x05\x12\x04\x8d\x02\x04\x08\n\r\n\x05\x046\x02\0\x01\x12\x04\ + \x8d\x02\t\x0e\n\r\n\x05\x046\x02\0\x03\x12\x04\x8d\x02\x11\x12\n\x0c\n\ + \x02\x047\x12\x06\x90\x02\0\x92\x02\x01\n\x0b\n\x03\x047\x01\x12\x04\x90\ + \x02\x08\x1d\n\x0c\n\x04\x047\x02\0\x12\x04\x91\x02\x04\x15\n\x0f\n\x05\ + \x047\x02\0\x04\x12\x06\x91\x02\x04\x90\x02\x1f\n\r\n\x05\x047\x02\0\x05\ + \x12\x04\x91\x02\x04\n\n\r\n\x05\x047\x02\0\x01\x12\x04\x91\x02\x0b\x10\ + \n\r\n\x05\x047\x02\0\x03\x12\x04\x91\x02\x13\x14\n\x0c\n\x02\x048\x12\ + \x06\x94\x02\0\x98\x02\x01\n\x0b\n\x03\x048\x01\x12\x04\x94\x02\x08\x1b\ + \n\x0c\n\x04\x048\x02\0\x12\x04\x95\x02\x08\x1d\n\x0f\n\x05\x048\x02\0\ + \x04\x12\x06\x95\x02\x08\x94\x02\x1d\n\r\n\x05\x048\x02\0\x05\x12\x04\ + \x95\x02\x08\x0e\n\r\n\x05\x048\x02\0\x01\x12\x04\x95\x02\x0f\x18\n\r\n\ + \x05\x048\x02\0\x03\x12\x04\x95\x02\x1b\x1c\n\x0c\n\x04\x048\x02\x01\x12\ + \x04\x96\x02\x08\x1d\n\x0f\n\x05\x048\x02\x01\x04\x12\x06\x96\x02\x08\ + \x95\x02\x1d\n\r\n\x05\x048\x02\x01\x05\x12\x04\x96\x02\x08\x0e\n\r\n\ + \x05\x048\x02\x01\x01\x12\x04\x96\x02\x0f\x18\n\r\n\x05\x048\x02\x01\x03\ + \x12\x04\x96\x02\x1b\x1c\n\x0c\n\x04\x048\x02\x02\x12\x04\x97\x02\x08\ + \x18\n\x0f\n\x05\x048\x02\x02\x04\x12\x06\x97\x02\x08\x96\x02\x1d\n\r\n\ + \x05\x048\x02\x02\x05\x12\x04\x97\x02\x08\x0e\n\r\n\x05\x048\x02\x02\x01\ + \x12\x04\x97\x02\x0f\x13\n\r\n\x05\x048\x02\x02\x03\x12\x04\x97\x02\x16\ + \x17\n\x0c\n\x02\x049\x12\x06\x9a\x02\0\x9d\x02\x01\n\x0b\n\x03\x049\x01\ + \x12\x04\x9a\x02\x08\x1c\n\x0c\n\x04\x049\x02\0\x12\x04\x9b\x02\x08\x20\ + \n\x0f\n\x05\x049\x02\0\x04\x12\x06\x9b\x02\x08\x9a\x02\x1e\n\r\n\x05\ + \x049\x02\0\x05\x12\x04\x9b\x02\x08\r\n\r\n\x05\x049\x02\0\x01\x12\x04\ + \x9b\x02\x0e\x1b\n\r\n\x05\x049\x02\0\x03\x12\x04\x9b\x02\x1e\x1f\n\x0c\ + \n\x04\x049\x02\x01\x12\x04\x9c\x02\x08\x1c\n\x0f\n\x05\x049\x02\x01\x04\ + \x12\x06\x9c\x02\x08\x9b\x02\x20\n\r\n\x05\x049\x02\x01\x05\x12\x04\x9c\ + \x02\x08\x0e\n\r\n\x05\x049\x02\x01\x01\x12\x04\x9c\x02\x0f\x17\n\r\n\ + \x05\x049\x02\x01\x03\x12\x04\x9c\x02\x1a\x1b\n\x0c\n\x02\x04:\x12\x06\ + \x9f\x02\0\xa3\x02\x01\n\x0b\n\x03\x04:\x01\x12\x04\x9f\x02\x08\x20\n\ + \x0c\n\x04\x04:\x02\0\x12\x04\xa0\x02\x08\x1c\n\x0f\n\x05\x04:\x02\0\x04\ + \x12\x06\xa0\x02\x08\x9f\x02\"\n\r\n\x05\x04:\x02\0\x05\x12\x04\xa0\x02\ + \x08\x0e\n\r\n\x05\x04:\x02\0\x01\x12\x04\xa0\x02\x0f\x17\n\r\n\x05\x04:\ + \x02\0\x03\x12\x04\xa0\x02\x1a\x1b\n\x0c\n\x04\x04:\x02\x01\x12\x04\xa1\ + \x02\x08\x1e\n\x0f\n\x05\x04:\x02\x01\x04\x12\x06\xa1\x02\x08\xa0\x02\ + \x1c\n\r\n\x05\x04:\x02\x01\x05\x12\x04\xa1\x02\x08\r\n\r\n\x05\x04:\x02\ + \x01\x01\x12\x04\xa1\x02\x0e\x19\n\r\n\x05\x04:\x02\x01\x03\x12\x04\xa1\ + \x02\x1c\x1d\n\x0c\n\x04\x04:\x02\x02\x12\x04\xa2\x02\x08(\n\x0f\n\x05\ + \x04:\x02\x02\x04\x12\x06\xa2\x02\x08\xa1\x02\x1e\n\r\n\x05\x04:\x02\x02\ + \x05\x12\x04\xa2\x02\x08\r\n\r\n\x05\x04:\x02\x02\x01\x12\x04\xa2\x02\ + \x0e#\n\r\n\x05\x04:\x02\x02\x03\x12\x04\xa2\x02&'\n\x0c\n\x02\x04;\x12\ + \x06\xa5\x02\0\xa7\x02\x01\n\x0b\n\x03\x04;\x01\x12\x04\xa5\x02\x08!\n\ + \x0c\n\x04\x04;\x02\0\x12\x04\xa6\x02\x08\x20\n\x0f\n\x05\x04;\x02\0\x04\ + \x12\x06\xa6\x02\x08\xa5\x02#\n\r\n\x05\x04;\x02\0\x05\x12\x04\xa6\x02\ + \x08\r\n\r\n\x05\x04;\x02\0\x01\x12\x04\xa6\x02\x0e\x1b\n\r\n\x05\x04;\ + \x02\0\x03\x12\x04\xa6\x02\x1e\x1f\n\x0c\n\x02\x04<\x12\x06\xa9\x02\0\ + \xac\x02\x01\n\x0b\n\x03\x04<\x01\x12\x04\xa9\x02\x08\x19\n\x0c\n\x04\ + \x04<\x02\0\x12\x04\xaa\x02\x08\x1a\n\x0f\n\x05\x04<\x02\0\x04\x12\x06\ + \xaa\x02\x08\xa9\x02\x1b\n\r\n\x05\x04<\x02\0\x05\x12\x04\xaa\x02\x08\r\ + \n\r\n\x05\x04<\x02\0\x01\x12\x04\xaa\x02\x0e\x15\n\r\n\x05\x04<\x02\0\ + \x03\x12\x04\xaa\x02\x18\x19\n\x0c\n\x04\x04<\x02\x01\x12\x04\xab\x02\ + \x08\x1d\n\x0f\n\x05\x04<\x02\x01\x04\x12\x06\xab\x02\x08\xaa\x02\x1a\n\ + \r\n\x05\x04<\x02\x01\x05\x12\x04\xab\x02\x08\r\n\r\n\x05\x04<\x02\x01\ + \x01\x12\x04\xab\x02\x0e\x18\n\r\n\x05\x04<\x02\x01\x03\x12\x04\xab\x02\ + \x1b\x1c\n\x0c\n\x02\x04=\x12\x06\xae\x02\0\xb0\x02\x01\n\x0b\n\x03\x04=\ + \x01\x12\x04\xae\x02\x08\x1a\n\x0c\n\x04\x04=\x02\0\x12\x04\xaf\x02\x08!\ + \n\x0f\n\x05\x04=\x02\0\x04\x12\x06\xaf\x02\x08\xae\x02\x1c\n\r\n\x05\ + \x04=\x02\0\x05\x12\x04\xaf\x02\x08\x0e\n\r\n\x05\x04=\x02\0\x01\x12\x04\ + \xaf\x02\x0f\x1c\n\r\n\x05\x04=\x02\0\x03\x12\x04\xaf\x02\x1f\x20\n\n\n\ + \x02\x04>\x12\x04\xb2\x02\0\x1f\n\x0b\n\x03\x04>\x01\x12\x04\xb2\x02\x08\ + \x1b\n\x0c\n\x02\x04?\x12\x06\xb4\x02\0\xb6\x02\x01\n\x0b\n\x03\x04?\x01\ + \x12\x04\xb4\x02\x08\x1c\n\x0c\n\x04\x04?\x02\0\x12\x04\xb5\x02\x08\x1d\ + \n\x0f\n\x05\x04?\x02\0\x04\x12\x06\xb5\x02\x08\xb4\x02\x1e\n\r\n\x05\ + \x04?\x02\0\x05\x12\x04\xb5\x02\x08\r\n\r\n\x05\x04?\x02\0\x01\x12\x04\ + \xb5\x02\x0e\x18\n\r\n\x05\x04?\x02\0\x03\x12\x04\xb5\x02\x1b\x1c\n\x0c\ + \n\x02\x04@\x12\x06\xb8\x02\0\xba\x02\x01\n\x0b\n\x03\x04@\x01\x12\x04\ + \xb8\x02\x08\x1d\n\x0c\n\x04\x04@\x02\0\x12\x04\xb9\x02\x08\x1c\n\x0f\n\ + \x05\x04@\x02\0\x04\x12\x06\xb9\x02\x08\xb8\x02\x1f\n\r\n\x05\x04@\x02\0\ + \x05\x12\x04\xb9\x02\x08\x0e\n\r\n\x05\x04@\x02\0\x01\x12\x04\xb9\x02\ + \x0f\x17\n\r\n\x05\x04@\x02\0\x03\x12\x04\xb9\x02\x1a\x1b\n\x0c\n\x02\ + \x04A\x12\x06\xbc\x02\0\xbf\x02\x01\n\x0b\n\x03\x04A\x01\x12\x04\xbc\x02\ + \x08\x1e\n\x0c\n\x04\x04A\x02\0\x12\x04\xbd\x02\x08\x1d\n\x0f\n\x05\x04A\ + \x02\0\x04\x12\x06\xbd\x02\x08\xbc\x02\x20\n\r\n\x05\x04A\x02\0\x05\x12\ + \x04\xbd\x02\x08\x0e\n\r\n\x05\x04A\x02\0\x01\x12\x04\xbd\x02\x0f\x18\n\ + \r\n\x05\x04A\x02\0\x03\x12\x04\xbd\x02\x1b\x1c\n\x0c\n\x04\x04A\x02\x01\ + \x12\x04\xbe\x02\x08\x20\n\x0f\n\x05\x04A\x02\x01\x04\x12\x06\xbe\x02\ + \x08\xbd\x02\x1d\n\r\n\x05\x04A\x02\x01\x05\x12\x04\xbe\x02\x08\r\n\r\n\ + \x05\x04A\x02\x01\x01\x12\x04\xbe\x02\x0e\x1b\n\r\n\x05\x04A\x02\x01\x03\ + \x12\x04\xbe\x02\x1e\x1f\n\x0c\n\x02\x04B\x12\x06\xc1\x02\0\xc3\x02\x01\ + \n\x0b\n\x03\x04B\x01\x12\x04\xc1\x02\x08\x20\n\x0c\n\x04\x04B\x02\0\x12\ + \x04\xc2\x02\x04\x1b\n\x0f\n\x05\x04B\x02\0\x04\x12\x06\xc2\x02\x04\xc1\ + \x02\"\n\r\n\x05\x04B\x02\0\x05\x12\x04\xc2\x02\x04\n\n\r\n\x05\x04B\x02\ + \0\x01\x12\x04\xc2\x02\x0b\x16\n\r\n\x05\x04B\x02\0\x03\x12\x04\xc2\x02\ + \x19\x1a\n\x0c\n\x02\x04C\x12\x06\xc5\x02\0\xc7\x02\x01\n\x0b\n\x03\x04C\ + \x01\x12\x04\xc5\x02\x08!\n\x0c\n\x04\x04C\x02\0\x12\x04\xc6\x02\x04\x13\ + \n\x0f\n\x05\x04C\x02\0\x04\x12\x06\xc6\x02\x04\xc5\x02#\n\r\n\x05\x04C\ + \x02\0\x05\x12\x04\xc6\x02\x04\x08\n\r\n\x05\x04C\x02\0\x01\x12\x04\xc6\ + \x02\t\x0e\n\r\n\x05\x04C\x02\0\x03\x12\x04\xc6\x02\x11\x12b\x06proto3\ "; -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto, -}; +static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() diff --git a/packages/sdk-rust/src/Transaction.rs b/packages/sdk-rust/src/Transaction.rs index 47b8e12..fe50ef2 100644 --- a/packages/sdk-rust/src/Transaction.rs +++ b/packages/sdk-rust/src/Transaction.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.10.1. Do not edit +// This file is generated by rust-protobuf 2.14.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -24,7 +24,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; #[derive(PartialEq,Clone,Default)] pub struct PublicEntry { @@ -33,7 +33,6 @@ pub struct PublicEntry { pub sender_address: ::std::vec::Vec, pub amount: ::std::vec::Vec, pub data: ::std::vec::Vec, - pub timestamp: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>, pub gas_price: ::std::vec::Vec, pub gas_limit: u64, pub nonce: u64, @@ -158,40 +157,7 @@ impl PublicEntry { ::std::mem::replace(&mut self.data, ::std::vec::Vec::new()) } - // .google.protobuf.Timestamp timestamp = 5; - - - pub fn get_timestamp(&self) -> &::protobuf::well_known_types::Timestamp { - self.timestamp.as_ref().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::default_instance()) - } - pub fn clear_timestamp(&mut self) { - self.timestamp.clear(); - } - - pub fn has_timestamp(&self) -> bool { - self.timestamp.is_some() - } - - // Param is passed by value, moved - pub fn set_timestamp(&mut self, v: ::protobuf::well_known_types::Timestamp) { - self.timestamp = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_timestamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp { - if self.timestamp.is_none() { - self.timestamp.set_default(); - } - self.timestamp.as_mut().unwrap() - } - - // Take field - pub fn take_timestamp(&mut self) -> ::protobuf::well_known_types::Timestamp { - self.timestamp.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new()) - } - - // bytes gas_price = 6; + // bytes gas_price = 5; pub fn get_gas_price(&self) -> &[u8] { @@ -217,7 +183,7 @@ impl PublicEntry { ::std::mem::replace(&mut self.gas_price, ::std::vec::Vec::new()) } - // uint64 gas_limit = 7; + // uint64 gas_limit = 6; pub fn get_gas_limit(&self) -> u64 { @@ -232,7 +198,7 @@ impl PublicEntry { self.gas_limit = v; } - // uint64 nonce = 9; + // uint64 nonce = 7; pub fn get_nonce(&self) -> u64 { @@ -247,7 +213,7 @@ impl PublicEntry { self.nonce = v; } - // .Catalyst.Protocol.Cryptography.Signature signature = 10; + // .Catalyst.Protocol.Cryptography.Signature signature = 8; pub fn get_signature(&self) -> &super::Cryptography::Signature { @@ -283,11 +249,6 @@ impl PublicEntry { impl ::protobuf::Message for PublicEntry { fn is_initialized(&self) -> bool { - for v in &self.timestamp { - if !v.is_initialized() { - return false; - } - }; for v in &self.signature { if !v.is_initialized() { return false; @@ -313,26 +274,23 @@ impl ::protobuf::Message for PublicEntry { ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?; }, 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.timestamp)?; - }, - 6 => { ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.gas_price)?; }, - 7 => { + 6 => { if wire_type != ::protobuf::wire_format::WireTypeVarint { return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); } let tmp = is.read_uint64()?; self.gas_limit = tmp; }, - 9 => { + 7 => { if wire_type != ::protobuf::wire_format::WireTypeVarint { return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); } let tmp = is.read_uint64()?; self.nonce = tmp; }, - 10 => { + 8 => { ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.signature)?; }, _ => { @@ -359,18 +317,14 @@ impl ::protobuf::Message for PublicEntry { if !self.data.is_empty() { my_size += ::protobuf::rt::bytes_size(4, &self.data); } - if let Some(ref v) = self.timestamp.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } if !self.gas_price.is_empty() { - my_size += ::protobuf::rt::bytes_size(6, &self.gas_price); + my_size += ::protobuf::rt::bytes_size(5, &self.gas_price); } if self.gas_limit != 0 { - my_size += ::protobuf::rt::value_size(7, self.gas_limit, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::value_size(6, self.gas_limit, ::protobuf::wire_format::WireTypeVarint); } if self.nonce != 0 { - my_size += ::protobuf::rt::value_size(9, self.nonce, ::protobuf::wire_format::WireTypeVarint); + my_size += ::protobuf::rt::value_size(7, self.nonce, ::protobuf::wire_format::WireTypeVarint); } if let Some(ref v) = self.signature.as_ref() { let len = v.compute_size(); @@ -394,22 +348,17 @@ impl ::protobuf::Message for PublicEntry { if !self.data.is_empty() { os.write_bytes(4, &self.data)?; } - if let Some(ref v) = self.timestamp.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } if !self.gas_price.is_empty() { - os.write_bytes(6, &self.gas_price)?; + os.write_bytes(5, &self.gas_price)?; } if self.gas_limit != 0 { - os.write_uint64(7, self.gas_limit)?; + os.write_uint64(6, self.gas_limit)?; } if self.nonce != 0 { - os.write_uint64(9, self.nonce)?; + os.write_uint64(7, self.nonce)?; } if let Some(ref v) = self.signature.as_ref() { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; + os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; os.write_raw_varint32(v.get_cached_size())?; v.write_to_with_cached_sizes(os)?; } @@ -448,10 +397,7 @@ impl ::protobuf::Message for PublicEntry { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -475,11 +421,6 @@ impl ::protobuf::Message for PublicEntry { |m: &PublicEntry| { &m.data }, |m: &mut PublicEntry| { &mut m.data }, )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>( - "timestamp", - |m: &PublicEntry| { &m.timestamp }, - |m: &mut PublicEntry| { &mut m.timestamp }, - )); fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( "gas_price", |m: &PublicEntry| { &m.gas_price }, @@ -500,7 +441,7 @@ impl ::protobuf::Message for PublicEntry { |m: &PublicEntry| { &m.signature }, |m: &mut PublicEntry| { &mut m.signature }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "PublicEntry", fields, file_descriptor_proto() @@ -510,10 +451,7 @@ impl ::protobuf::Message for PublicEntry { } fn default_instance() -> &'static PublicEntry { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const PublicEntry, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(PublicEntry::new) } @@ -526,7 +464,6 @@ impl ::protobuf::Clear for PublicEntry { self.sender_address.clear(); self.amount.clear(); self.data.clear(); - self.timestamp.clear(); self.gas_price.clear(); self.gas_limit = 0; self.nonce = 0; @@ -542,8 +479,8 @@ impl ::std::fmt::Debug for PublicEntry { } impl ::protobuf::reflect::ProtobufValue for PublicEntry { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -853,10 +790,7 @@ impl ::protobuf::Message for ConfidentialEntry { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -890,7 +824,7 @@ impl ::protobuf::Message for ConfidentialEntry { |m: &ConfidentialEntry| { &m.nonce }, |m: &mut ConfidentialEntry| { &mut m.nonce }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ConfidentialEntry", fields, file_descriptor_proto() @@ -900,10 +834,7 @@ impl ::protobuf::Message for ConfidentialEntry { } fn default_instance() -> &'static ConfidentialEntry { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ConfidentialEntry, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(ConfidentialEntry::new) } @@ -929,8 +860,8 @@ impl ::std::fmt::Debug for ConfidentialEntry { } impl ::protobuf::reflect::ProtobufValue for ConfidentialEntry { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1088,10 +1019,7 @@ impl ::protobuf::Message for CoinbaseEntry { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -1105,7 +1033,7 @@ impl ::protobuf::Message for CoinbaseEntry { |m: &CoinbaseEntry| { &m.amount }, |m: &mut CoinbaseEntry| { &mut m.amount }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "CoinbaseEntry", fields, file_descriptor_proto() @@ -1115,10 +1043,7 @@ impl ::protobuf::Message for CoinbaseEntry { } fn default_instance() -> &'static CoinbaseEntry { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const CoinbaseEntry, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(CoinbaseEntry::new) } @@ -1140,8 +1065,8 @@ impl ::std::fmt::Debug for CoinbaseEntry { } impl ::protobuf::reflect::ProtobufValue for CoinbaseEntry { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1656,10 +1581,7 @@ impl ::protobuf::Message for RangeProof { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -1723,7 +1645,7 @@ impl ::protobuf::Message for RangeProof { |m: &RangeProof| { &m.t }, |m: &mut RangeProof| { &mut m.t }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "RangeProof", fields, file_descriptor_proto() @@ -1733,10 +1655,7 @@ impl ::protobuf::Message for RangeProof { } fn default_instance() -> &'static RangeProof { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const RangeProof, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(RangeProof::new) } @@ -1768,8 +1687,8 @@ impl ::std::fmt::Debug for RangeProof { } impl ::protobuf::reflect::ProtobufValue for RangeProof { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1804,13 +1723,10 @@ impl ::protobuf::ProtobufEnum for TransactionType { } fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::EnumDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new("TransactionType", file_descriptor_proto()) + ::protobuf::reflect::EnumDescriptor::new_pb_name::("TransactionType", file_descriptor_proto()) }) } } @@ -1826,186 +1742,197 @@ impl ::std::default::Default for TransactionType { } impl ::protobuf::reflect::ProtobufValue for TransactionType { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor()) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) } } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x11Transaction.proto\x12\x1dCatalyst.Protocol.Transaction\x1a\x12Cryp\ - tography.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xde\x02\n\x0bPub\ - licEntry\x12)\n\x10receiver_address\x18\x01\x20\x01(\x0cR\x0freceiverAdd\ - ress\x12%\n\x0esender_address\x18\x02\x20\x01(\x0cR\rsenderAddress\x12\ - \x16\n\x06amount\x18\x03\x20\x01(\x0cR\x06amount\x12\x12\n\x04data\x18\ - \x04\x20\x01(\x0cR\x04data\x128\n\ttimestamp\x18\x05\x20\x01(\x0b2\x1a.g\ - oogle.protobuf.TimestampR\ttimestamp\x12\x1b\n\tgas_price\x18\x06\x20\ - \x01(\x0cR\x08gasPrice\x12\x1b\n\tgas_limit\x18\x07\x20\x01(\x04R\x08gas\ - Limit\x12\x14\n\x05nonce\x18\t\x20\x01(\x04R\x05nonce\x12G\n\tsignature\ - \x18\n\x20\x01(\x0b2).Catalyst.Protocol.Cryptography.SignatureR\tsignatu\ - re\"\xad\x02\n\x11ConfidentialEntry\x12.\n\x13receiver_public_key\x18\ - \x01\x20\x01(\x0cR\x11receiverPublicKey\x12*\n\x11sender_public_key\x18\ - \x02\x20\x01(\x0cR\x0fsenderPublicKey\x12/\n\x13pedersen_commitment\x18\ - \x03\x20\x01(\x0cR\x12pedersenCommitment\x12J\n\x0brange_proof\x18\x04\ - \x20\x01(\x0b2).Catalyst.Protocol.Transaction.RangeProofR\nrangeProof\ - \x12)\n\x10transaction_fees\x18\x05\x20\x01(\x0cR\x0ftransactionFees\x12\ - \x14\n\x05nonce\x18\x06\x20\x01(\x04R\x05nonce\"W\n\rCoinbaseEntry\x12.\ - \n\x13receiver_public_key\x18\x01\x20\x01(\x0cR\x11receiverPublicKey\x12\ - \x16\n\x06amount\x18\x02\x20\x01(\x0cR\x06amount\"\xae\x04\n\nRangeProof\ - \x12)\n\x10value_commitment\x18\x01\x20\x03(\x0cR\x0fvalueCommitment\x12\ - %\n\x0ebit_commitment\x18\x02\x20\x01(\x0cR\rbitCommitment\x12J\n\"per_b\ - it_blinding_factor_commitment\x18\x03\x20\x01(\x0cR\x1eperBitBlindingFac\ - torCommitment\x12,\n\x12poly_commitment_t1\x18\x04\x20\x01(\x0cR\x10poly\ - CommitmentT1\x12,\n\x12poly_commitment_t2\x18\x05\x20\x01(\x0cR\x10polyC\ - ommitmentT2\x12+\n\x12proof_of_share_tau\x18\x06\x20\x01(\x0cR\x0fproofO\ - fShareTau\x12)\n\x11proof_of_share_mu\x18\x07\x20\x01(\x0cR\x0eproofOfSh\ - areMu\x12C\n\x1eaggregated_vector_polynomial_l\x18\x08\x20\x03(\x0cR\x1b\ - aggregatedVectorPolynomialL\x12C\n\x1eaggregated_vector_polynomial_r\x18\ - \t\x20\x03(\x0cR\x1baggregatedVectorPolynomialR\x12\x1a\n\ta_prime_0\x18\ - \n\x20\x01(\x0cR\x07aPrime0\x12\x1a\n\tb_prime_0\x18\x0b\x20\x01(\x0cR\ - \x07bPrime0\x12\x0c\n\x01t\x18\x0c\x20\x01(\x0cR\x01t*M\n\x0fTransaction\ - Type\x12\x1c\n\x18TRANSACTION_TYPE_UNKNOWN\x10\0\x12\n\n\x06PUBLIC\x10\ - \x01\x12\x10\n\x0cCONFIDENTIAL\x10\x02B\x02P\x01J\xfa\x1f\n\x06\x12\x04\ - \x13\0M\x01\n\xdf\x06\n\x01\x0c\x12\x03\x13\0\x122\xd4\x06*\n\x20Copyrig\ - ht\x20(c)\x202019\x20Catalyst\x20Network\n\n\x20This\x20file\x20is\x20pa\ - rt\x20of\x20Catalyst.Network.Protocol.Protobuffs\x20\n\n\x20Catalyst.Network.Protocol.P\ - rotobuffs\x20is\x20free\x20software:\x20you\x20can\x20redistribute\x20it\ - \x20and/or\x20modify\n\x20it\x20under\x20the\x20terms\x20of\x20the\x20GN\ - U\x20General\x20Public\x20License\x20as\x20published\x20by\n\x20the\x20F\ - ree\x20Software\x20Foundation,\x20either\x20version\x202\x20of\x20the\ - \x20License,\x20or\n\x20(at\x20your\x20option)\x20any\x20later\x20versio\ - n.\n\x20\n\x20Catalyst.Network.Protocol.Protobuffs\x20is\x20distributed\ - \x20in\x20the\x20hope\x20that\x20it\x20will\x20be\x20useful,\n\x20but\ - \x20WITHOUT\x20ANY\x20WARRANTY;\x20without\x20even\x20the\x20implied\x20\ - warranty\x20of\n\x20MERCHANTABILITY\x20or\x20FITNESS\x20FOR\x20A\x20PART\ - ICULAR\x20PURPOSE.\x20See\x20the\n\x20GNU\x20General\x20Public\x20Licens\ - e\x20for\x20more\x20details.\n\x20\n\x20You\x20should\x20have\x20receive\ - d\x20a\x20copy\x20of\x20the\x20GNU\x20General\x20Public\x20License\n\x20\ - along\x20with\x20Catalyst.Network.Protocol.Protobuffs\x20If\x20not,\x20s\ - ee\x20.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\ - \n\t\n\x02\x08\n\x12\x03\x15\0\"\n\t\n\x02\x03\0\x12\x03\x17\0\x1c\n\t\n\ - \x02\x03\x01\x12\x03\x18\0)\n\x08\n\x01\x02\x12\x03\x1a\0&\n\n\n\x02\x05\ - \0\x12\x04\x1c\0\x20\x01\n\n\n\x03\x05\0\x01\x12\x03\x1c\x05\x14\n'\n\ - \x04\x05\0\x02\0\x12\x03\x1d\x08%\"\x1aUnknown\x20transaction\x20type.\n\ - \n\x0c\n\x05\x05\0\x02\0\x01\x12\x03\x1d\x08\x20\n\x0c\n\x05\x05\0\x02\0\ - \x02\x12\x03\x1d#$\n'\n\x04\x05\0\x02\x01\x12\x03\x1e\x08\x13\"\x1a\x20P\ + tography.proto\"\xa4\x02\n\x0bPublicEntry\x12)\n\x10receiver_address\x18\ + \x01\x20\x01(\x0cR\x0freceiverAddress\x12%\n\x0esender_address\x18\x02\ + \x20\x01(\x0cR\rsenderAddress\x12\x16\n\x06amount\x18\x03\x20\x01(\x0cR\ + \x06amount\x12\x12\n\x04data\x18\x04\x20\x01(\x0cR\x04data\x12\x1b\n\tga\ + s_price\x18\x05\x20\x01(\x0cR\x08gasPrice\x12\x1b\n\tgas_limit\x18\x06\ + \x20\x01(\x04R\x08gasLimit\x12\x14\n\x05nonce\x18\x07\x20\x01(\x04R\x05n\ + once\x12G\n\tsignature\x18\x08\x20\x01(\x0b2).Catalyst.Protocol.Cryptogr\ + aphy.SignatureR\tsignature\"\xad\x02\n\x11ConfidentialEntry\x12.\n\x13re\ + ceiver_public_key\x18\x01\x20\x01(\x0cR\x11receiverPublicKey\x12*\n\x11s\ + ender_public_key\x18\x02\x20\x01(\x0cR\x0fsenderPublicKey\x12/\n\x13pede\ + rsen_commitment\x18\x03\x20\x01(\x0cR\x12pedersenCommitment\x12J\n\x0bra\ + nge_proof\x18\x04\x20\x01(\x0b2).Catalyst.Protocol.Transaction.RangeProo\ + fR\nrangeProof\x12)\n\x10transaction_fees\x18\x05\x20\x01(\x0cR\x0ftrans\ + actionFees\x12\x14\n\x05nonce\x18\x06\x20\x01(\x04R\x05nonce\"W\n\rCoinb\ + aseEntry\x12.\n\x13receiver_public_key\x18\x01\x20\x01(\x0cR\x11receiver\ + PublicKey\x12\x16\n\x06amount\x18\x02\x20\x01(\x0cR\x06amount\"\xae\x04\ + \n\nRangeProof\x12)\n\x10value_commitment\x18\x01\x20\x03(\x0cR\x0fvalue\ + Commitment\x12%\n\x0ebit_commitment\x18\x02\x20\x01(\x0cR\rbitCommitment\ + \x12J\n\"per_bit_blinding_factor_commitment\x18\x03\x20\x01(\x0cR\x1eper\ + BitBlindingFactorCommitment\x12,\n\x12poly_commitment_t1\x18\x04\x20\x01\ + (\x0cR\x10polyCommitmentT1\x12,\n\x12poly_commitment_t2\x18\x05\x20\x01(\ + \x0cR\x10polyCommitmentT2\x12+\n\x12proof_of_share_tau\x18\x06\x20\x01(\ + \x0cR\x0fproofOfShareTau\x12)\n\x11proof_of_share_mu\x18\x07\x20\x01(\ + \x0cR\x0eproofOfShareMu\x12C\n\x1eaggregated_vector_polynomial_l\x18\x08\ + \x20\x03(\x0cR\x1baggregatedVectorPolynomialL\x12C\n\x1eaggregated_vecto\ + r_polynomial_r\x18\t\x20\x03(\x0cR\x1baggregatedVectorPolynomialR\x12\ + \x1a\n\ta_prime_0\x18\n\x20\x01(\x0cR\x07aPrime0\x12\x1a\n\tb_prime_0\ + \x18\x0b\x20\x01(\x0cR\x07bPrime0\x12\x0c\n\x01t\x18\x0c\x20\x01(\x0cR\ + \x01t*M\n\x0fTransactionType\x12\x1c\n\x18TRANSACTION_TYPE_UNKNOWN\x10\0\ + \x12\n\n\x06PUBLIC\x10\x01\x12\x10\n\x0cCONFIDENTIAL\x10\x02B\x02P\x01J\ + \xec\"\n\x06\x12\x04\x13\0K\x01\n\xdf\x06\n\x01\x0c\x12\x03\x13\0\x122\ + \xd4\x06*\n\x20Copyright\x20(c)\x202019\x20Catalyst\x20Network\n\n\x20Th\ + is\x20file\x20is\x20part\x20of\x20Catalyst.Network.Protocol.Protobuffs\ + \x20\n\n\x20Cat\ + alyst.Network.Protocol.Protobuffs\x20is\x20free\x20software:\x20you\x20c\ + an\x20redistribute\x20it\x20and/or\x20modify\n\x20it\x20under\x20the\x20\ + terms\x20of\x20the\x20GNU\x20General\x20Public\x20License\x20as\x20publi\ + shed\x20by\n\x20the\x20Free\x20Software\x20Foundation,\x20either\x20vers\ + ion\x202\x20of\x20the\x20License,\x20or\n\x20(at\x20your\x20option)\x20a\ + ny\x20later\x20version.\n\x20\n\x20Catalyst.Network.Protocol.Protobuffs\ + \x20is\x20distributed\x20in\x20the\x20hope\x20that\x20it\x20will\x20be\ + \x20useful,\n\x20but\x20WITHOUT\x20ANY\x20WARRANTY;\x20without\x20even\ + \x20the\x20implied\x20warranty\x20of\n\x20MERCHANTABILITY\x20or\x20FITNE\ + SS\x20FOR\x20A\x20PARTICULAR\x20PURPOSE.\x20See\x20the\n\x20GNU\x20Gener\ + al\x20Public\x20License\x20for\x20more\x20details.\n\x20\n\x20You\x20sho\ + uld\x20have\x20received\x20a\x20copy\x20of\x20the\x20GNU\x20General\x20P\ + ublic\x20License\n\x20along\x20with\x20Catalyst.Network.Protocol.Protobu\ + ffs\x20If\x20not,\x20see\x20.\n\n\x08\n\ + \x01\x08\x12\x03\x15\0\"\n\x0b\n\x04\x08\xe7\x07\0\x12\x03\x15\0\"\n\x0c\ + \n\x05\x08\xe7\x07\0\x02\x12\x03\x15\x07\x1a\n\r\n\x06\x08\xe7\x07\0\x02\ + \0\x12\x03\x15\x07\x1a\n\x0e\n\x07\x08\xe7\x07\0\x02\0\x01\x12\x03\x15\ + \x07\x1a\n\x0c\n\x05\x08\xe7\x07\0\x03\x12\x03\x15\x1d!\n\t\n\x02\x03\0\ + \x12\x03\x17\x07\x1b\n\x08\n\x01\x02\x12\x03\x19\x08%\n\n\n\x02\x05\0\ + \x12\x04\x1b\0\x1f\x01\n\n\n\x03\x05\0\x01\x12\x03\x1b\x05\x14\n'\n\x04\ + \x05\0\x02\0\x12\x03\x1c\x08%\"\x1aUnknown\x20transaction\x20type.\n\n\ + \x0c\n\x05\x05\0\x02\0\x01\x12\x03\x1c\x08\x20\n\x0c\n\x05\x05\0\x02\0\ + \x02\x12\x03\x1c#$\n'\n\x04\x05\0\x02\x01\x12\x03\x1d\x08\x13\"\x1a\x20P\ ublic\x20transaction\x20type.\n\n\x0c\n\x05\x05\0\x02\x01\x01\x12\x03\ - \x1e\x08\x0e\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03\x1e\x11\x12\n(\n\x04\ - \x05\0\x02\x02\x12\x03\x1f\x08\x19\"\x1b\x20Private\x20transaction\x20ty\ - pe.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03\x1f\x08\x14\n\x0c\n\x05\x05\ - \0\x02\x02\x02\x12\x03\x1f\x17\x18\n\n\n\x02\x04\0\x12\x04\"\0,\x01\n\n\ - \n\x03\x04\0\x01\x12\x03\"\x08\x13\n#\n\x04\x04\0\x02\0\x12\x03#\x08#\"\ - \x16\x20Address\x20of\x20receiver.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\ - #\x08\r\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03#\x0e\x1e\n\x0c\n\x05\x04\0\ - \x02\0\x03\x12\x03#!\"\n!\n\x04\x04\0\x02\x01\x12\x03$\x08!\"\x14\x20Add\ - ress\x20of\x20sender.\n\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03$\x08\r\n\ - \x0c\n\x05\x04\0\x02\x01\x01\x12\x03$\x0e\x1c\n\x0c\n\x05\x04\0\x02\x01\ - \x03\x12\x03$\x1f\x20\n\x1d\n\x04\x04\0\x02\x02\x12\x03%\x02\x13\"\x10\ - \x20uint256\x20amount\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03%\x02\x07\n\ - \x0c\n\x05\x04\0\x02\x02\x01\x12\x03%\x08\x0e\n\x0c\n\x05\x04\0\x02\x02\ - \x03\x12\x03%\x11\x12\n#\n\x04\x04\0\x02\x03\x12\x03&\x02\x11\"\x16\x20S\ - mart\x20contract\x20data.\n\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03&\x02\ - \x07\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03&\x08\x0c\n\x0c\n\x05\x04\0\ - \x02\x03\x03\x12\x03&\x0f\x10\n\x0b\n\x04\x04\0\x02\x04\x12\x03'\x080\n\ - \x0c\n\x05\x04\0\x02\x04\x06\x12\x03'\x08!\n\x0c\n\x05\x04\0\x02\x04\x01\ - \x12\x03'\"+\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03'./\n\x0b\n\x04\x04\0\ - \x02\x05\x12\x03(\x08\x1c\n\x0c\n\x05\x04\0\x02\x05\x05\x12\x03(\x08\r\n\ - \x0c\n\x05\x04\0\x02\x05\x01\x12\x03(\x0e\x17\n\x0c\n\x05\x04\0\x02\x05\ - \x03\x12\x03(\x1a\x1b\n\x0b\n\x04\x04\0\x02\x06\x12\x03)\x08\x1d\n\x0c\n\ - \x05\x04\0\x02\x06\x05\x12\x03)\x08\x0e\n\x0c\n\x05\x04\0\x02\x06\x01\ - \x12\x03)\x0f\x18\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03)\x1b\x1c\ns\n\ - \x04\x04\0\x02\x07\x12\x03*\x08\x19\"f\x20A\x20nonce,\x20similar\x20to\ - \x20Ethereum,\x20incremented\x20on\x20each\x20transaction\x20on\x20the\ - \x20account\x20issuing\x20the\x20transaction\n\n\x0c\n\x05\x04\0\x02\x07\ - \x05\x12\x03*\x08\x0e\n\x0c\n\x05\x04\0\x02\x07\x01\x12\x03*\x0f\x14\n\ - \x0c\n\x05\x04\0\x02\x07\x03\x12\x03*\x17\x18\n1\n\x04\x04\0\x02\x08\x12\ - \x03+\x08.\"$\x20is\x20the\x20ed25519ph\x20context\x20signature\n\n\x0c\ - \n\x05\x04\0\x02\x08\x06\x12\x03+\x08\x1e\n\x0c\n\x05\x04\0\x02\x08\x01\ - \x12\x03+\x1f(\n\x0c\n\x05\x04\0\x02\x08\x03\x12\x03++-\n\n\n\x02\x04\ - \x01\x12\x04.\05\x01\n\n\n\x03\x04\x01\x01\x12\x03.\x08\x19\n%\n\x04\x04\ - \x01\x02\0\x12\x03/\x08&\"\x18\x20PublicKey\x20of\x20receiver.\n\n\x0c\n\ - \x05\x04\x01\x02\0\x05\x12\x03/\x08\r\n\x0c\n\x05\x04\x01\x02\0\x01\x12\ - \x03/\x0e!\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03/$%\n#\n\x04\x04\x01\x02\ - \x01\x12\x030\x08$\"\x16\x20PublicKey\x20of\x20sender.\n\n\x0c\n\x05\x04\ - \x01\x02\x01\x05\x12\x030\x08\r\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x030\ - \x0e\x1f\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x030\"#\n\x17\n\x04\x04\x01\ - \x02\x02\x12\x031\x02\x20\"\n\x2032\x20bytes\n\n\x0c\n\x05\x04\x01\x02\ - \x02\x05\x12\x031\x02\x07\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x031\x08\ - \x1b\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x031\x1e\x1f\n\x0b\n\x04\x04\ - \x01\x02\x03\x12\x032\x02\x1d\n\x0c\n\x05\x04\x01\x02\x03\x06\x12\x032\ - \x02\x0c\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x032\r\x18\n\x0c\n\x05\x04\ - \x01\x02\x03\x03\x12\x032\x1b\x1c\n0\n\x04\x04\x01\x02\x04\x12\x033\x08#\ - \"#\x208\x20bytes,\x20clear\x20text,\x20fees\x20*\x2010^12\n\n\x0c\n\x05\ - \x04\x01\x02\x04\x05\x12\x033\x08\r\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\ - \x033\x0e\x1e\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x033!\"\ns\n\x04\x04\ - \x01\x02\x05\x12\x034\x08\x19\"f\x20A\x20nonce,\x20similar\x20to\x20Ethe\ - reum,\x20incremented\x20on\x20each\x20transaction\x20on\x20the\x20accoun\ - t\x20issuing\x20the\x20transaction\n\n\x0c\n\x05\x04\x01\x02\x05\x05\x12\ - \x034\x08\x0e\n\x0c\n\x05\x04\x01\x02\x05\x01\x12\x034\x0f\x14\n\x0c\n\ - \x05\x04\x01\x02\x05\x03\x12\x034\x17\x18\n\n\n\x02\x04\x02\x12\x047\0:\ - \x01\n\n\n\x03\x04\x02\x01\x12\x037\x08\x15\nP\n\x04\x04\x02\x02\0\x12\ - \x038\x04\"\"C\x20public\x20key\x20behind\x20the\x20address\x20where\x20\ - the\x20Coinbase\x20will\x20be\x20credited\n\n\x0c\n\x05\x04\x02\x02\0\ - \x05\x12\x038\x04\t\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x038\n\x1d\n\x0c\n\ - \x05\x04\x02\x02\0\x03\x12\x038\x20!\n\x1d\n\x04\x04\x02\x02\x01\x12\x03\ - 9\x04\x15\"\x10\x20uint256\x20amount\n\n\x0c\n\x05\x04\x02\x02\x01\x05\ - \x12\x039\x04\t\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x039\n\x10\n\x0c\n\ - \x05\x04\x02\x02\x01\x03\x12\x039\x13\x14\n\xf7\x01\n\x02\x04\x03\x12\ - \x04@\0M\x01\x1a\xea\x01*\n\x20BulletProof-based\x20range\x20proof.\x20S\ - ee\x20https://eprint.iacr.org/2017/1066.pdf\x20for\x20references\x20to\ - \x20equations\x20below.\n\x20Total\x20byte\x20size\x20is\x20(9+2k)*32,\ - \x20where\x20k\x20=\x20log_2(n*m),\x20m\x20is\x20number\x20of\x20aggrega\ - tes\x20in\x20proof,\x20(2^n)-1\x20is\x20upper\x20range\x20of\x20values.\ - \n\n\n\n\x03\x04\x03\x01\x12\x03@\x08\x12\n7\n\x04\x04\x03\x02\0\x12\x03\ - A\x08,\"*\x20m\x20*\x2032\x20bytes,\x20value\x20commitment\x20(eq.\x2036\ - )\x20\n\n\x0c\n\x05\x04\x03\x02\0\x04\x12\x03A\x08\x10\n\x0c\n\x05\x04\ - \x03\x02\0\x05\x12\x03A\x11\x16\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03A\ - \x17'\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03A*+\n0\n\x04\x04\x03\x02\x01\ - \x12\x03B\x08!\"#\x2032\x20bytes,\x20bit\x20commitment\x20(eq.\x2048)\n\ - \n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03B\x08\r\n\x0c\n\x05\x04\x03\x02\ - \x01\x01\x12\x03B\x0e\x1c\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x03B\x1f\ - \x20\nD\n\x04\x04\x03\x02\x02\x12\x03C\x085\"7\x2032\x20bytes,\x20per\ - \x20bit\x20blinding\x20factor\x20commitment\x20(eq.\x2048)\n\n\x0c\n\x05\ - \x04\x03\x02\x02\x05\x12\x03C\x08\r\n\x0c\n\x05\x04\x03\x02\x02\x01\x12\ - \x03C\x0e0\n\x0c\n\x05\x04\x03\x02\x02\x03\x12\x03C34\n1\n\x04\x04\x03\ - \x02\x03\x12\x03D\x08%\"$\x2032\x20bytes,\x20poly\x20commitment\x20(eq.\ - \x2054)\n\n\x0c\n\x05\x04\x03\x02\x03\x05\x12\x03D\x08\r\n\x0c\n\x05\x04\ - \x03\x02\x03\x01\x12\x03D\x0e\x20\n\x0c\n\x05\x04\x03\x02\x03\x03\x12\ - \x03D#$\n1\n\x04\x04\x03\x02\x04\x12\x03E\x08%\"$\x2032\x20bytes,\x20pol\ - y\x20commitment\x20(eq.\x2054)\n\n\x0c\n\x05\x04\x03\x02\x04\x05\x12\x03\ - E\x08\r\n\x0c\n\x05\x04\x03\x02\x04\x01\x12\x03E\x0e\x20\n\x0c\n\x05\x04\ - \x03\x02\x04\x03\x12\x03E#$\n0\n\x04\x04\x03\x02\x05\x12\x03F\x08%\"#\ - \x2032\x20bytes,\x20proof\x20of\x20share\x20(eq.\x2063)\n\n\x0c\n\x05\ - \x04\x03\x02\x05\x05\x12\x03F\x08\r\n\x0c\n\x05\x04\x03\x02\x05\x01\x12\ - \x03F\x0e\x20\n\x0c\n\x05\x04\x03\x02\x05\x03\x12\x03F#$\n0\n\x04\x04\ - \x03\x02\x06\x12\x03G\x08$\"#\x2032\x20bytes,\x20proof\x20of\x20share\ - \x20(eq.\x2063)\n\n\x0c\n\x05\x04\x03\x02\x06\x05\x12\x03G\x08\r\n\x0c\n\ - \x05\x04\x03\x02\x06\x01\x12\x03G\x0e\x1f\n\x0c\n\x05\x04\x03\x02\x06\ - \x03\x12\x03G\"#\nB\n\x04\x04\x03\x02\x07\x12\x03H\x08:\"5\x20k\x20*\x20\ + \x1d\x08\x0e\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03\x1d\x11\x12\n(\n\x04\ + \x05\0\x02\x02\x12\x03\x1e\x08\x19\"\x1b\x20Private\x20transaction\x20ty\ + pe.\n\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03\x1e\x08\x14\n\x0c\n\x05\x05\ + \0\x02\x02\x02\x12\x03\x1e\x17\x18\n\n\n\x02\x04\0\x12\x04!\0*\x01\n\n\n\ + \x03\x04\0\x01\x12\x03!\x08\x13\n#\n\x04\x04\0\x02\0\x12\x03\"\x08#\"\ + \x16\x20Address\x20of\x20receiver.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04\"\ + \x08!\x15\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\"\x08\r\n\x0c\n\x05\x04\0\ + \x02\0\x01\x12\x03\"\x0e\x1e\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\"!\"\n!\ + \n\x04\x04\0\x02\x01\x12\x03#\x08!\"\x14\x20Address\x20of\x20sender.\n\n\ + \r\n\x05\x04\0\x02\x01\x04\x12\x04#\x08\"#\n\x0c\n\x05\x04\0\x02\x01\x05\ + \x12\x03#\x08\r\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03#\x0e\x1c\n\x0c\n\ + \x05\x04\0\x02\x01\x03\x12\x03#\x1f\x20\n\x1d\n\x04\x04\0\x02\x02\x12\ + \x03$\x02\x13\"\x10\x20uint256\x20amount\n\n\r\n\x05\x04\0\x02\x02\x04\ + \x12\x04$\x02#!\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03$\x02\x07\n\x0c\n\ + \x05\x04\0\x02\x02\x01\x12\x03$\x08\x0e\n\x0c\n\x05\x04\0\x02\x02\x03\ + \x12\x03$\x11\x12\n#\n\x04\x04\0\x02\x03\x12\x03%\x02\x11\"\x16\x20Smart\ + \x20contract\x20data.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04%\x02$\x13\n\ + \x0c\n\x05\x04\0\x02\x03\x05\x12\x03%\x02\x07\n\x0c\n\x05\x04\0\x02\x03\ + \x01\x12\x03%\x08\x0c\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03%\x0f\x10\n\ + \x0b\n\x04\x04\0\x02\x04\x12\x03&\x08\x1c\n\r\n\x05\x04\0\x02\x04\x04\ + \x12\x04&\x08%\x11\n\x0c\n\x05\x04\0\x02\x04\x05\x12\x03&\x08\r\n\x0c\n\ + \x05\x04\0\x02\x04\x01\x12\x03&\x0e\x17\n\x0c\n\x05\x04\0\x02\x04\x03\ + \x12\x03&\x1a\x1b\n\x0b\n\x04\x04\0\x02\x05\x12\x03'\x08\x1d\n\r\n\x05\ + \x04\0\x02\x05\x04\x12\x04'\x08&\x1c\n\x0c\n\x05\x04\0\x02\x05\x05\x12\ + \x03'\x08\x0e\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03'\x0f\x18\n\x0c\n\x05\ + \x04\0\x02\x05\x03\x12\x03'\x1b\x1c\ns\n\x04\x04\0\x02\x06\x12\x03(\x08\ + \x19\"f\x20A\x20nonce,\x20similar\x20to\x20Ethereum,\x20incremented\x20o\ + n\x20each\x20transaction\x20on\x20the\x20account\x20issuing\x20the\x20tr\ + ansaction\n\n\r\n\x05\x04\0\x02\x06\x04\x12\x04(\x08'\x1d\n\x0c\n\x05\ + \x04\0\x02\x06\x05\x12\x03(\x08\x0e\n\x0c\n\x05\x04\0\x02\x06\x01\x12\ + \x03(\x0f\x14\n\x0c\n\x05\x04\0\x02\x06\x03\x12\x03(\x17\x18\n1\n\x04\ + \x04\0\x02\x07\x12\x03)\x08-\"$\x20is\x20the\x20ed25519ph\x20context\x20\ + signature\n\n\r\n\x05\x04\0\x02\x07\x04\x12\x04)\x08(\x19\n\x0c\n\x05\ + \x04\0\x02\x07\x06\x12\x03)\x08\x1e\n\x0c\n\x05\x04\0\x02\x07\x01\x12\ + \x03)\x1f(\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03)+,\n\n\n\x02\x04\x01\ + \x12\x04,\03\x01\n\n\n\x03\x04\x01\x01\x12\x03,\x08\x19\n%\n\x04\x04\x01\ + \x02\0\x12\x03-\x08&\"\x18\x20PublicKey\x20of\x20receiver.\n\n\r\n\x05\ + \x04\x01\x02\0\x04\x12\x04-\x08,\x1b\n\x0c\n\x05\x04\x01\x02\0\x05\x12\ + \x03-\x08\r\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03-\x0e!\n\x0c\n\x05\x04\ + \x01\x02\0\x03\x12\x03-$%\n#\n\x04\x04\x01\x02\x01\x12\x03.\x08$\"\x16\ + \x20PublicKey\x20of\x20sender.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04.\ + \x08-&\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03.\x08\r\n\x0c\n\x05\x04\ + \x01\x02\x01\x01\x12\x03.\x0e\x1f\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\ + \x03.\"#\n\x17\n\x04\x04\x01\x02\x02\x12\x03/\x02\x20\"\n\x2032\x20bytes\ + \n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04/\x02.$\n\x0c\n\x05\x04\x01\x02\ + \x02\x05\x12\x03/\x02\x07\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03/\x08\ + \x1b\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03/\x1e\x1f\n\x0b\n\x04\x04\ + \x01\x02\x03\x12\x030\x02\x1d\n\r\n\x05\x04\x01\x02\x03\x04\x12\x040\x02\ + /\x20\n\x0c\n\x05\x04\x01\x02\x03\x06\x12\x030\x02\x0c\n\x0c\n\x05\x04\ + \x01\x02\x03\x01\x12\x030\r\x18\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x030\ + \x1b\x1c\n0\n\x04\x04\x01\x02\x04\x12\x031\x08#\"#\x208\x20bytes,\x20cle\ + ar\x20text,\x20fees\x20*\x2010^12\n\n\r\n\x05\x04\x01\x02\x04\x04\x12\ + \x041\x080\x1d\n\x0c\n\x05\x04\x01\x02\x04\x05\x12\x031\x08\r\n\x0c\n\ + \x05\x04\x01\x02\x04\x01\x12\x031\x0e\x1e\n\x0c\n\x05\x04\x01\x02\x04\ + \x03\x12\x031!\"\ns\n\x04\x04\x01\x02\x05\x12\x032\x08\x19\"f\x20A\x20no\ + nce,\x20similar\x20to\x20Ethereum,\x20incremented\x20on\x20each\x20trans\ + action\x20on\x20the\x20account\x20issuing\x20the\x20transaction\n\n\r\n\ + \x05\x04\x01\x02\x05\x04\x12\x042\x081#\n\x0c\n\x05\x04\x01\x02\x05\x05\ + \x12\x032\x08\x0e\n\x0c\n\x05\x04\x01\x02\x05\x01\x12\x032\x0f\x14\n\x0c\ + \n\x05\x04\x01\x02\x05\x03\x12\x032\x17\x18\n\n\n\x02\x04\x02\x12\x045\0\ + 8\x01\n\n\n\x03\x04\x02\x01\x12\x035\x08\x15\nP\n\x04\x04\x02\x02\0\x12\ + \x036\x04\"\"C\x20public\x20key\x20behind\x20the\x20address\x20where\x20\ + the\x20Coinbase\x20will\x20be\x20credited\n\n\r\n\x05\x04\x02\x02\0\x04\ + \x12\x046\x045\x17\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x036\x04\t\n\x0c\n\ + \x05\x04\x02\x02\0\x01\x12\x036\n\x1d\n\x0c\n\x05\x04\x02\x02\0\x03\x12\ + \x036\x20!\n\x1d\n\x04\x04\x02\x02\x01\x12\x037\x04\x15\"\x10\x20uint256\ + \x20amount\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x047\x046\"\n\x0c\n\x05\ + \x04\x02\x02\x01\x05\x12\x037\x04\t\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\ + \x037\n\x10\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x037\x13\x14\n\xf7\x01\n\ + \x02\x04\x03\x12\x04>\0K\x01\x1a\xea\x01*\n\x20BulletProof-based\x20rang\ + e\x20proof.\x20See\x20https://eprint.iacr.org/2017/1066.pdf\x20for\x20re\ + ferences\x20to\x20equations\x20below.\n\x20Total\x20byte\x20size\x20is\ + \x20(9+2k)*32,\x20where\x20k\x20=\x20log_2(n*m),\x20m\x20is\x20number\ + \x20of\x20aggregates\x20in\x20proof,\x20(2^n)-1\x20is\x20upper\x20range\ + \x20of\x20values.\n\n\n\n\x03\x04\x03\x01\x12\x03>\x08\x12\n7\n\x04\x04\ + \x03\x02\0\x12\x03?\x08,\"*\x20m\x20*\x2032\x20bytes,\x20value\x20commit\ + ment\x20(eq.\x2036)\x20\n\n\x0c\n\x05\x04\x03\x02\0\x04\x12\x03?\x08\x10\ + \n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03?\x11\x16\n\x0c\n\x05\x04\x03\x02\ + \0\x01\x12\x03?\x17'\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03?*+\n0\n\x04\ + \x04\x03\x02\x01\x12\x03@\x08!\"#\x2032\x20bytes,\x20bit\x20commitment\ + \x20(eq.\x2048)\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\x04@\x08?,\n\x0c\n\ + \x05\x04\x03\x02\x01\x05\x12\x03@\x08\r\n\x0c\n\x05\x04\x03\x02\x01\x01\ + \x12\x03@\x0e\x1c\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x03@\x1f\x20\nD\n\ + \x04\x04\x03\x02\x02\x12\x03A\x085\"7\x2032\x20bytes,\x20per\x20bit\x20b\ + linding\x20factor\x20commitment\x20(eq.\x2048)\n\n\r\n\x05\x04\x03\x02\ + \x02\x04\x12\x04A\x08@!\n\x0c\n\x05\x04\x03\x02\x02\x05\x12\x03A\x08\r\n\ + \x0c\n\x05\x04\x03\x02\x02\x01\x12\x03A\x0e0\n\x0c\n\x05\x04\x03\x02\x02\ + \x03\x12\x03A34\n1\n\x04\x04\x03\x02\x03\x12\x03B\x08%\"$\x2032\x20bytes\ + ,\x20poly\x20commitment\x20(eq.\x2054)\n\n\r\n\x05\x04\x03\x02\x03\x04\ + \x12\x04B\x08A5\n\x0c\n\x05\x04\x03\x02\x03\x05\x12\x03B\x08\r\n\x0c\n\ + \x05\x04\x03\x02\x03\x01\x12\x03B\x0e\x20\n\x0c\n\x05\x04\x03\x02\x03\ + \x03\x12\x03B#$\n1\n\x04\x04\x03\x02\x04\x12\x03C\x08%\"$\x2032\x20bytes\ + ,\x20poly\x20commitment\x20(eq.\x2054)\n\n\r\n\x05\x04\x03\x02\x04\x04\ + \x12\x04C\x08B%\n\x0c\n\x05\x04\x03\x02\x04\x05\x12\x03C\x08\r\n\x0c\n\ + \x05\x04\x03\x02\x04\x01\x12\x03C\x0e\x20\n\x0c\n\x05\x04\x03\x02\x04\ + \x03\x12\x03C#$\n0\n\x04\x04\x03\x02\x05\x12\x03D\x08%\"#\x2032\x20bytes\ + ,\x20proof\x20of\x20share\x20(eq.\x2063)\n\n\r\n\x05\x04\x03\x02\x05\x04\ + \x12\x04D\x08C%\n\x0c\n\x05\x04\x03\x02\x05\x05\x12\x03D\x08\r\n\x0c\n\ + \x05\x04\x03\x02\x05\x01\x12\x03D\x0e\x20\n\x0c\n\x05\x04\x03\x02\x05\ + \x03\x12\x03D#$\n0\n\x04\x04\x03\x02\x06\x12\x03E\x08$\"#\x2032\x20bytes\ + ,\x20proof\x20of\x20share\x20(eq.\x2063)\n\n\r\n\x05\x04\x03\x02\x06\x04\ + \x12\x04E\x08D%\n\x0c\n\x05\x04\x03\x02\x06\x05\x12\x03E\x08\r\n\x0c\n\ + \x05\x04\x03\x02\x06\x01\x12\x03E\x0e\x1f\n\x0c\n\x05\x04\x03\x02\x06\ + \x03\x12\x03E\"#\nB\n\x04\x04\x03\x02\x07\x12\x03F\x08:\"5\x20k\x20*\x20\ 32\x20bytes,\x20aggregated\x20vector\x20polynomial\x20(eq.\x2063)\n\n\ - \x0c\n\x05\x04\x03\x02\x07\x04\x12\x03H\x08\x10\n\x0c\n\x05\x04\x03\x02\ - \x07\x05\x12\x03H\x11\x16\n\x0c\n\x05\x04\x03\x02\x07\x01\x12\x03H\x175\ - \n\x0c\n\x05\x04\x03\x02\x07\x03\x12\x03H89\nB\n\x04\x04\x03\x02\x08\x12\ - \x03I\x08:\"5\x20k\x20*\x2032\x20bytes,\x20aggregated\x20vector\x20polyn\ - omial\x20(eq.\x2063)\n\n\x0c\n\x05\x04\x03\x02\x08\x04\x12\x03I\x08\x10\ - \n\x0c\n\x05\x04\x03\x02\x08\x05\x12\x03I\x11\x16\n\x0c\n\x05\x04\x03\ - \x02\x08\x01\x12\x03I\x175\n\x0c\n\x05\x04\x03\x02\x08\x03\x12\x03I89\n\ - \x20\n\x04\x04\x03\x02\t\x12\x03J\x08\x1d\"\x13\x2032\x20bytes\x20(eq.\ - \x2063)\n\n\x0c\n\x05\x04\x03\x02\t\x05\x12\x03J\x08\r\n\x0c\n\x05\x04\ - \x03\x02\t\x01\x12\x03J\x0e\x17\n\x0c\n\x05\x04\x03\x02\t\x03\x12\x03J\ - \x1a\x1c\n\x20\n\x04\x04\x03\x02\n\x12\x03K\x08\x1d\"\x13\x2032\x20bytes\ - \x20(eq.\x2063)\n\n\x0c\n\x05\x04\x03\x02\n\x05\x12\x03K\x08\r\n\x0c\n\ - \x05\x04\x03\x02\n\x01\x12\x03K\x0e\x17\n\x0c\n\x05\x04\x03\x02\n\x03\ - \x12\x03K\x1a\x1c\n\x0b\n\x04\x04\x03\x02\x0b\x12\x03L\x08\x15\n\x0c\n\ - \x05\x04\x03\x02\x0b\x05\x12\x03L\x08\r\n\x0c\n\x05\x04\x03\x02\x0b\x01\ - \x12\x03L\x0e\x0f\n\x0c\n\x05\x04\x03\x02\x0b\x03\x12\x03L\x12\x14b\x06p\ - roto3\ + \x0c\n\x05\x04\x03\x02\x07\x04\x12\x03F\x08\x10\n\x0c\n\x05\x04\x03\x02\ + \x07\x05\x12\x03F\x11\x16\n\x0c\n\x05\x04\x03\x02\x07\x01\x12\x03F\x175\ + \n\x0c\n\x05\x04\x03\x02\x07\x03\x12\x03F89\nB\n\x04\x04\x03\x02\x08\x12\ + \x03G\x08:\"5\x20k\x20*\x2032\x20bytes,\x20aggregated\x20vector\x20polyn\ + omial\x20(eq.\x2063)\n\n\x0c\n\x05\x04\x03\x02\x08\x04\x12\x03G\x08\x10\ + \n\x0c\n\x05\x04\x03\x02\x08\x05\x12\x03G\x11\x16\n\x0c\n\x05\x04\x03\ + \x02\x08\x01\x12\x03G\x175\n\x0c\n\x05\x04\x03\x02\x08\x03\x12\x03G89\n\ + \x20\n\x04\x04\x03\x02\t\x12\x03H\x08\x1d\"\x13\x2032\x20bytes\x20(eq.\ + \x2063)\n\n\r\n\x05\x04\x03\x02\t\x04\x12\x04H\x08G:\n\x0c\n\x05\x04\x03\ + \x02\t\x05\x12\x03H\x08\r\n\x0c\n\x05\x04\x03\x02\t\x01\x12\x03H\x0e\x17\ + \n\x0c\n\x05\x04\x03\x02\t\x03\x12\x03H\x1a\x1c\n\x20\n\x04\x04\x03\x02\ + \n\x12\x03I\x08\x1d\"\x13\x2032\x20bytes\x20(eq.\x2063)\n\n\r\n\x05\x04\ + \x03\x02\n\x04\x12\x04I\x08H\x1d\n\x0c\n\x05\x04\x03\x02\n\x05\x12\x03I\ + \x08\r\n\x0c\n\x05\x04\x03\x02\n\x01\x12\x03I\x0e\x17\n\x0c\n\x05\x04\ + \x03\x02\n\x03\x12\x03I\x1a\x1c\n\x0b\n\x04\x04\x03\x02\x0b\x12\x03J\x08\ + \x15\n\r\n\x05\x04\x03\x02\x0b\x04\x12\x04J\x08I\x1d\n\x0c\n\x05\x04\x03\ + \x02\x0b\x05\x12\x03J\x08\r\n\x0c\n\x05\x04\x03\x02\x0b\x01\x12\x03J\x0e\ + \x0f\n\x0c\n\x05\x04\x03\x02\x0b\x03\x12\x03J\x12\x14b\x06proto3\ "; -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto, -}; +static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() diff --git a/packages/sdk-rust/src/Wire.rs b/packages/sdk-rust/src/Wire.rs index e529319..aa17f41 100644 --- a/packages/sdk-rust/src/Wire.rs +++ b/packages/sdk-rust/src/Wire.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.10.1. Do not edit +// This file is generated by rust-protobuf 2.14.0. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -24,7 +24,7 @@ use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_10_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; #[derive(PartialEq,Clone,Default)] pub struct ProtocolErrorMessage { @@ -275,10 +275,7 @@ impl ::protobuf::Message for ProtocolErrorMessage { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -302,7 +299,7 @@ impl ::protobuf::Message for ProtocolErrorMessage { |m: &ProtocolErrorMessage| { &m.code }, |m: &mut ProtocolErrorMessage| { &mut m.code }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ProtocolErrorMessage", fields, file_descriptor_proto() @@ -312,10 +309,7 @@ impl ::protobuf::Message for ProtocolErrorMessage { } fn default_instance() -> &'static ProtocolErrorMessage { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ProtocolErrorMessage, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(ProtocolErrorMessage::new) } @@ -339,8 +333,8 @@ impl ::std::fmt::Debug for ProtocolErrorMessage { } impl ::protobuf::reflect::ProtobufValue for ProtocolErrorMessage { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -636,10 +630,7 @@ impl ::protobuf::Message for ProtocolMessage { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -668,7 +659,7 @@ impl ::protobuf::Message for ProtocolMessage { |m: &ProtocolMessage| { &m.signature }, |m: &mut ProtocolMessage| { &mut m.signature }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "ProtocolMessage", fields, file_descriptor_proto() @@ -678,10 +669,7 @@ impl ::protobuf::Message for ProtocolMessage { } fn default_instance() -> &'static ProtocolMessage { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ProtocolMessage, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(ProtocolMessage::new) } @@ -706,8 +694,8 @@ impl ::std::fmt::Debug for ProtocolMessage { } impl ::protobuf::reflect::ProtobufValue for ProtocolMessage { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -844,10 +832,7 @@ impl ::protobuf::Message for TransactionBroadcast { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -856,7 +841,7 @@ impl ::protobuf::Message for TransactionBroadcast { |m: &TransactionBroadcast| { &m.public_entry }, |m: &mut TransactionBroadcast| { &mut m.public_entry }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "TransactionBroadcast", fields, file_descriptor_proto() @@ -866,10 +851,7 @@ impl ::protobuf::Message for TransactionBroadcast { } fn default_instance() -> &'static TransactionBroadcast { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const TransactionBroadcast, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(TransactionBroadcast::new) } @@ -890,8 +872,8 @@ impl ::std::fmt::Debug for TransactionBroadcast { } impl ::protobuf::reflect::ProtobufValue for TransactionBroadcast { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1100,10 +1082,7 @@ impl ::protobuf::Message for CandidateDeltaBroadcast { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -1122,7 +1101,7 @@ impl ::protobuf::Message for CandidateDeltaBroadcast { |m: &CandidateDeltaBroadcast| { &m.previous_delta_dfs_hash }, |m: &mut CandidateDeltaBroadcast| { &mut m.previous_delta_dfs_hash }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "CandidateDeltaBroadcast", fields, file_descriptor_proto() @@ -1132,10 +1111,7 @@ impl ::protobuf::Message for CandidateDeltaBroadcast { } fn default_instance() -> &'static CandidateDeltaBroadcast { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const CandidateDeltaBroadcast, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(CandidateDeltaBroadcast::new) } @@ -1158,8 +1134,8 @@ impl ::std::fmt::Debug for CandidateDeltaBroadcast { } impl ::protobuf::reflect::ProtobufValue for CandidateDeltaBroadcast { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1347,10 +1323,7 @@ impl ::protobuf::Message for FavouriteDeltaBroadcast { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -1364,7 +1337,7 @@ impl ::protobuf::Message for FavouriteDeltaBroadcast { |m: &FavouriteDeltaBroadcast| { &m.voter_id }, |m: &mut FavouriteDeltaBroadcast| { &mut m.voter_id }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "FavouriteDeltaBroadcast", fields, file_descriptor_proto() @@ -1374,10 +1347,7 @@ impl ::protobuf::Message for FavouriteDeltaBroadcast { } fn default_instance() -> &'static FavouriteDeltaBroadcast { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const FavouriteDeltaBroadcast, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(FavouriteDeltaBroadcast::new) } @@ -1399,8 +1369,8 @@ impl ::std::fmt::Debug for FavouriteDeltaBroadcast { } impl ::protobuf::reflect::ProtobufValue for FavouriteDeltaBroadcast { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1558,10 +1528,7 @@ impl ::protobuf::Message for DeltaDfsHashBroadcast { } fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::reflect::MessageDescriptor, - }; + static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; unsafe { descriptor.get(|| { let mut fields = ::std::vec::Vec::new(); @@ -1575,7 +1542,7 @@ impl ::protobuf::Message for DeltaDfsHashBroadcast { |m: &DeltaDfsHashBroadcast| { &m.previous_delta_dfs_hash }, |m: &mut DeltaDfsHashBroadcast| { &mut m.previous_delta_dfs_hash }, )); - ::protobuf::reflect::MessageDescriptor::new::( + ::protobuf::reflect::MessageDescriptor::new_pb_name::( "DeltaDfsHashBroadcast", fields, file_descriptor_proto() @@ -1585,10 +1552,7 @@ impl ::protobuf::Message for DeltaDfsHashBroadcast { } fn default_instance() -> &'static DeltaDfsHashBroadcast { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const DeltaDfsHashBroadcast, - }; + static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; unsafe { instance.get(DeltaDfsHashBroadcast::new) } @@ -1610,8 +1574,8 @@ impl ::std::fmt::Debug for DeltaDfsHashBroadcast { } impl ::protobuf::reflect::ProtobufValue for DeltaDfsHashBroadcast { - fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef { - ::protobuf::reflect::ProtobufValueRef::Message(self) + fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { + ::protobuf::reflect::ReflectValueRef::Message(self) } } @@ -1639,7 +1603,7 @@ static file_descriptor_proto_data: &'static [u8] = b"\ talyst.Protocol.Peer.PeerIdR\x07voterId\"t\n\x15DeltaDfsHashBroadcast\ \x12$\n\x0edelta_dfs_hash\x18\x01\x20\x01(\x0cR\x0cdeltaDfsHash\x125\n\ \x17previous_delta_dfs_hash\x18\x02\x20\x01(\x0cR\x14previousDeltaDfsHas\ - hB\x02P\x01J\xf3\x18\n\x06\x12\x04\x13\0E\x01\n\xdf\x06\n\x01\x0c\x12\ + hB\x02P\x01J\xaf\x1b\n\x06\x12\x04\x13\0E\x01\n\xdf\x06\n\x01\x0c\x12\ \x03\x13\0\x122\xd4\x06*\n\x20Copyright\x20(c)\x202019\x20Catalyst\x20Ne\ twork\n\n\x20This\x20file\x20is\x20part\x20of\x20Catalyst.Network.Protoc\ ol.Protobuffs\x20.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\n\t\n\x02\x08\n\x12\x03\x15\0\"\n\ - \t\n\x02\x03\0\x12\x03\x17\0\x1c\n\t\n\x02\x03\x01\x12\x03\x18\0\x14\n\t\ - \n\x02\x03\x02\x12\x03\x19\0\x1b\n\t\n\x02\x03\x03\x12\x03\x1a\0)\n\x08\ - \n\x01\x02\x12\x03\x1c\0\x1f\nc\n\x02\x04\0\x12\x04!\0&\x01\x1aW*\n\x20P\ - rovides\x20a\x20network\x20error\x20message,\x20for\x20when\x20a\x20node\ - \x20cant\x20send/\x20build\x20a\x20valid\x20response\n\n\n\n\x03\x04\0\ - \x01\x12\x03!\x08\x1c\n\x0b\n\x04\x04\0\x02\0\x12\x03\"\x08-\n\x0c\n\x05\ - \x04\0\x02\0\x06\x12\x03\"\x08\x1e\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\"\ - \x1f(\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\"+,\n\x0b\n\x04\x04\0\x02\x01\ - \x12\x03#\x04\x1c\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03#\x04\x0f\n\x0c\n\ - \x05\x04\0\x02\x01\x01\x12\x03#\x10\x17\n\x0c\n\x05\x04\0\x02\x01\x03\ - \x12\x03#\x1a\x1b\n\x0b\n\x04\x04\0\x02\x02\x12\x03$\x04\x1d\n\x0c\n\x05\ - \x04\0\x02\x02\x05\x12\x03$\x04\t\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03$\ - \n\x18\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03$\x1b\x1c\n\x0b\n\x04\x04\0\ - \x02\x03\x12\x03%\x04\x13\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03%\x04\t\n\ - \x0c\n\x05\x04\0\x02\x03\x01\x12\x03%\n\x0e\n\x0c\n\x05\x04\0\x02\x03\ - \x03\x12\x03%\x11\x12\n\x95\x01\n\x02\x04\x01\x12\x04+\01\x01\x1a\x88\ - \x01*\n\x20A\x20wrapper\x20around\x20the\x20service\x20message,\x20the\ - \x20contents\x20of\x20service\x20message\x20should\x20be\x20signed\x20by\ - \x20the\x20sender\x20to\x20avoid\x20tampering\x20mid-transit.\n\n\n\n\ - \x03\x04\x01\x01\x12\x03+\x08\x17\n%\n\x04\x04\x01\x02\0\x12\x03,\x04\ - \x1c\"\x18\x20is\x20the\x20sender's\x20peerId\n\n\x0c\n\x05\x04\x01\x02\ - \0\x06\x12\x03,\x04\x0f\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03,\x10\x17\n\ - \x0c\n\x05\x04\x01\x02\0\x03\x12\x03,\x1a\x1b\nT\n\x04\x04\x01\x02\x01\ - \x12\x03-\x04\x1d\"G\x20is\x20a\x2016\x20bytes\x20guid\x20used\x20to\x20\ - match\x20responses\x20to\x20their\x20original\x20requests\n\n\x0c\n\x05\ - \x04\x01\x02\x01\x05\x12\x03-\x04\t\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\ - \x03-\n\x18\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03-\x1b\x1c\n\x88\x01\n\ - \x04\x04\x01\x02\x02\x12\x03.\x04\x18\"{\x20is\x20the\x20shortened\x20pr\ - otocol\x20name\x20of\x20the\x20message\x20type\x20being\x20encoded\x20in\ - \x20the\x20value\x20field\x20(cf\x20Any\x20from\x20protobuf\x20WellKnown\ - Types)\n\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03.\x04\n\n\x0c\n\x05\x04\ - \x01\x02\x02\x01\x12\x03.\x0b\x13\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\ - \x03.\x16\x17\ne\n\x04\x04\x01\x02\x03\x12\x03/\x04\x14\"X\x20is\x20the\ - \x20actual\x20value\x20of\x20the\x20message\x20being\x20wrapped\x20(cf\ - \x20Any\x20from\x20protobuf\x20WellKnownTypes)\n\n\x0c\n\x05\x04\x01\x02\ - \x03\x05\x12\x03/\x04\t\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03/\n\x0f\n\ - \x0c\n\x05\x04\x01\x02\x03\x03\x12\x03/\x12\x13\n1\n\x04\x04\x01\x02\x04\ - \x12\x030\x04)\"$\x20is\x20the\x20ed25519ph\x20context\x20signature\n\n\ - \x0c\n\x05\x04\x01\x02\x04\x06\x12\x030\x04\x1a\n\x0c\n\x05\x04\x01\x02\ - \x04\x01\x12\x030\x1b$\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x030'(\n\n\n\ - \x02\x04\x02\x12\x043\05\x01\n\n\n\x03\x04\x02\x01\x12\x033\x08\x1c\n3\n\ - \x04\x04\x02\x02\0\x12\x034\x081\"&\x200\x20field\x20for\x20confidential\ - \x20transaction\n\n\x0c\n\x05\x04\x02\x02\0\x06\x12\x034\x08\x1f\n\x0c\n\ - \x05\x04\x02\x02\0\x01\x12\x034\x20,\n\x0c\n\x05\x04\x02\x02\0\x03\x12\ - \x034/0\n\n\n\x02\x04\x03\x12\x047\x01;\x01\n\n\n\x03\x04\x03\x01\x12\ - \x037\t\x20\n\x8c\x01\n\x04\x04\x03\x02\0\x12\x038\x08\x17\"\x7f\x20The\ - \x20hash\x20computed\x20for\x20the\x20current\x20delta\x20produced\x20by\ - \x20ProducerId.\x20This\x20is\x20meant\x20to\x20be\x20used\x20when\x20vo\ - ting\x20for\x20most\x20popular\x20hashes.\n\n\x0c\n\x05\x04\x03\x02\0\ - \x05\x12\x038\x08\r\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x038\x0e\x12\n\x0c\ - \n\x05\x04\x03\x02\0\x03\x12\x038\x15\x16\n;\n\x04\x04\x03\x02\x01\x12\ - \x039\x08$\".\x20Identifier\x20of\x20the\x20producer\x20of\x20the\x20can\ - didate.\n\n\x0c\n\x05\x04\x03\x02\x01\x06\x12\x039\x08\x13\n\x0c\n\x05\ - \x04\x03\x02\x01\x01\x12\x039\x14\x1f\n\x0c\n\x05\x04\x03\x02\x01\x03\ - \x12\x039\"#\nU\n\x04\x04\x03\x02\x02\x12\x03:\x08*\"H\x20The\x20DFS\x20\ - address\x20for\x20the\x20content\x20of\x20the\x20delta\x20preceding\x20t\ - his\x20candidate.\n\n\x0c\n\x05\x04\x03\x02\x02\x05\x12\x03:\x08\r\n\x0c\ - \n\x05\x04\x03\x02\x02\x01\x12\x03:\x0e%\n\x0c\n\x05\x04\x03\x02\x02\x03\ - \x12\x03:()\n\n\n\x02\x04\x04\x12\x04=\0@\x01\n\n\n\x03\x04\x04\x01\x12\ - \x03=\x08\x1f\nM\n\x04\x04\x04\x02\0\x12\x03>\x08.\"@\x20The\x20candidat\ - e\x20favoured\x20by\x20the\x20voter\x20broadcasting\x20this\x20message.\ - \n\n\x0c\n\x05\x04\x04\x02\0\x06\x12\x03>\x08\x1f\n\x0c\n\x05\x04\x04\ - \x02\0\x01\x12\x03>\x20)\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03>,-\nP\n\ - \x04\x04\x04\x02\x01\x12\x03?\x08!\"C\x20The\x20PeerId\x20of\x20the\x20p\ - articipant\x20submitting\x20its\x20vote\x20to\x20the\x20network.\n\n\x0c\ - \n\x05\x04\x04\x02\x01\x06\x12\x03?\x08\x13\n\x0c\n\x05\x04\x04\x02\x01\ - \x01\x12\x03?\x14\x1c\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03?\x1f\x20\n\ - \n\n\x02\x04\x05\x12\x04B\x01E\x01\n\n\n\x03\x04\x05\x01\x12\x03B\t\x1e\ - \nW\n\x04\x04\x05\x02\0\x12\x03C\x08!\"J\x20The\x20DFS\x20address\x20at\ - \x20which\x20the\x20full\x20content\x20of\x20the\x20delta\x20can\x20be\ - \x20retrieved.\n\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03C\x08\r\n\x0c\n\ - \x05\x04\x05\x02\0\x01\x12\x03C\x0e\x1c\n\x0c\n\x05\x04\x05\x02\0\x03\ - \x12\x03C\x1f\x20\nU\n\x04\x04\x05\x02\x01\x12\x03D\x08*\"H\x20The\x20DF\ - S\x20address\x20for\x20the\x20content\x20of\x20the\x20delta\x20preceding\ - \x20this\x20candidate.\n\n\x0c\n\x05\x04\x05\x02\x01\x05\x12\x03D\x08\r\ - \n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03D\x0e%\n\x0c\n\x05\x04\x05\x02\ + s/>.\n\n\x08\n\x01\x08\x12\x03\x15\0\"\n\x0b\n\x04\x08\xe7\x07\0\x12\x03\ + \x15\0\"\n\x0c\n\x05\x08\xe7\x07\0\x02\x12\x03\x15\x07\x1a\n\r\n\x06\x08\ + \xe7\x07\0\x02\0\x12\x03\x15\x07\x1a\n\x0e\n\x07\x08\xe7\x07\0\x02\0\x01\ + \x12\x03\x15\x07\x1a\n\x0c\n\x05\x08\xe7\x07\0\x03\x12\x03\x15\x1d!\n\t\ + \n\x02\x03\0\x12\x03\x17\x07\x1b\n\t\n\x02\x03\x01\x12\x03\x18\x07\x13\n\ + \t\n\x02\x03\x02\x12\x03\x19\x07\x1a\n\t\n\x02\x03\x03\x12\x03\x1a\x07(\ + \n\x08\n\x01\x02\x12\x03\x1c\x08\x1e\nc\n\x02\x04\0\x12\x04!\0&\x01\x1aW\ + *\n\x20Provides\x20a\x20network\x20error\x20message,\x20for\x20when\x20a\ + \x20node\x20cant\x20send/\x20build\x20a\x20valid\x20response\n\n\n\n\x03\ + \x04\0\x01\x12\x03!\x08\x1c\n\x0b\n\x04\x04\0\x02\0\x12\x03\"\x08-\n\r\n\ + \x05\x04\0\x02\0\x04\x12\x04\"\x08!\x1e\n\x0c\n\x05\x04\0\x02\0\x06\x12\ + \x03\"\x08\x1e\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\"\x1f(\n\x0c\n\x05\ + \x04\0\x02\0\x03\x12\x03\"+,\n\x0b\n\x04\x04\0\x02\x01\x12\x03#\x04\x1c\ + \n\r\n\x05\x04\0\x02\x01\x04\x12\x04#\x04\"-\n\x0c\n\x05\x04\0\x02\x01\ + \x06\x12\x03#\x04\x0f\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03#\x10\x17\n\ + \x0c\n\x05\x04\0\x02\x01\x03\x12\x03#\x1a\x1b\n\x0b\n\x04\x04\0\x02\x02\ + \x12\x03$\x04\x1d\n\r\n\x05\x04\0\x02\x02\x04\x12\x04$\x04#\x1c\n\x0c\n\ + \x05\x04\0\x02\x02\x05\x12\x03$\x04\t\n\x0c\n\x05\x04\0\x02\x02\x01\x12\ + \x03$\n\x18\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x03$\x1b\x1c\n\x0b\n\x04\ + \x04\0\x02\x03\x12\x03%\x04\x13\n\r\n\x05\x04\0\x02\x03\x04\x12\x04%\x04\ + $\x1d\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03%\x04\t\n\x0c\n\x05\x04\0\x02\ + \x03\x01\x12\x03%\n\x0e\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03%\x11\x12\n\ + \x95\x01\n\x02\x04\x01\x12\x04+\01\x01\x1a\x88\x01*\n\x20A\x20wrapper\ + \x20around\x20the\x20service\x20message,\x20the\x20contents\x20of\x20ser\ + vice\x20message\x20should\x20be\x20signed\x20by\x20the\x20sender\x20to\ + \x20avoid\x20tampering\x20mid-transit.\n\n\n\n\x03\x04\x01\x01\x12\x03+\ + \x08\x17\n%\n\x04\x04\x01\x02\0\x12\x03,\x04\x1c\"\x18\x20is\x20the\x20s\ + ender's\x20peerId\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x04,\x04+\x19\n\x0c\ + \n\x05\x04\x01\x02\0\x06\x12\x03,\x04\x0f\n\x0c\n\x05\x04\x01\x02\0\x01\ + \x12\x03,\x10\x17\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03,\x1a\x1b\nT\n\ + \x04\x04\x01\x02\x01\x12\x03-\x04\x1d\"G\x20is\x20a\x2016\x20bytes\x20gu\ + id\x20used\x20to\x20match\x20responses\x20to\x20their\x20original\x20req\ + uests\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x04-\x04,\x1c\n\x0c\n\x05\x04\ + \x01\x02\x01\x05\x12\x03-\x04\t\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03-\ + \n\x18\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03-\x1b\x1c\n\x88\x01\n\x04\ + \x04\x01\x02\x02\x12\x03.\x04\x18\"{\x20is\x20the\x20shortened\x20protoc\ + ol\x20name\x20of\x20the\x20message\x20type\x20being\x20encoded\x20in\x20\ + the\x20value\x20field\x20(cf\x20Any\x20from\x20protobuf\x20WellKnownType\ + s)\n\n\r\n\x05\x04\x01\x02\x02\x04\x12\x04.\x04-\x1d\n\x0c\n\x05\x04\x01\ + \x02\x02\x05\x12\x03.\x04\n\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03.\x0b\ + \x13\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03.\x16\x17\ne\n\x04\x04\x01\ + \x02\x03\x12\x03/\x04\x14\"X\x20is\x20the\x20actual\x20value\x20of\x20th\ + e\x20message\x20being\x20wrapped\x20(cf\x20Any\x20from\x20protobuf\x20We\ + llKnownTypes)\n\n\r\n\x05\x04\x01\x02\x03\x04\x12\x04/\x04.\x18\n\x0c\n\ + \x05\x04\x01\x02\x03\x05\x12\x03/\x04\t\n\x0c\n\x05\x04\x01\x02\x03\x01\ + \x12\x03/\n\x0f\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03/\x12\x13\n1\n\ + \x04\x04\x01\x02\x04\x12\x030\x04)\"$\x20is\x20the\x20ed25519ph\x20conte\ + xt\x20signature\n\n\r\n\x05\x04\x01\x02\x04\x04\x12\x040\x04/\x14\n\x0c\ + \n\x05\x04\x01\x02\x04\x06\x12\x030\x04\x1a\n\x0c\n\x05\x04\x01\x02\x04\ + \x01\x12\x030\x1b$\n\x0c\n\x05\x04\x01\x02\x04\x03\x12\x030'(\n\n\n\x02\ + \x04\x02\x12\x043\05\x01\n\n\n\x03\x04\x02\x01\x12\x033\x08\x1c\n3\n\x04\ + \x04\x02\x02\0\x12\x034\x081\"&\x200\x20field\x20for\x20confidential\x20\ + transaction\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x044\x083\x1e\n\x0c\n\x05\ + \x04\x02\x02\0\x06\x12\x034\x08\x1f\n\x0c\n\x05\x04\x02\x02\0\x01\x12\ + \x034\x20,\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x034/0\n\n\n\x02\x04\x03\ + \x12\x047\x01;\x01\n\n\n\x03\x04\x03\x01\x12\x037\t\x20\n\x8c\x01\n\x04\ + \x04\x03\x02\0\x12\x038\x08\x17\"\x7f\x20The\x20hash\x20computed\x20for\ + \x20the\x20current\x20delta\x20produced\x20by\x20ProducerId.\x20This\x20\ + is\x20meant\x20to\x20be\x20used\x20when\x20voting\x20for\x20most\x20popu\ + lar\x20hashes.\n\n\r\n\x05\x04\x03\x02\0\x04\x12\x048\x087\"\n\x0c\n\x05\ + \x04\x03\x02\0\x05\x12\x038\x08\r\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x038\ + \x0e\x12\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x038\x15\x16\n;\n\x04\x04\x03\ + \x02\x01\x12\x039\x08$\".\x20Identifier\x20of\x20the\x20producer\x20of\ + \x20the\x20candidate.\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\x049\x088\x17\ + \n\x0c\n\x05\x04\x03\x02\x01\x06\x12\x039\x08\x13\n\x0c\n\x05\x04\x03\ + \x02\x01\x01\x12\x039\x14\x1f\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x039\"\ + #\nU\n\x04\x04\x03\x02\x02\x12\x03:\x08*\"H\x20The\x20DFS\x20address\x20\ + for\x20the\x20content\x20of\x20the\x20delta\x20preceding\x20this\x20cand\ + idate.\n\n\r\n\x05\x04\x03\x02\x02\x04\x12\x04:\x089$\n\x0c\n\x05\x04\ + \x03\x02\x02\x05\x12\x03:\x08\r\n\x0c\n\x05\x04\x03\x02\x02\x01\x12\x03:\ + \x0e%\n\x0c\n\x05\x04\x03\x02\x02\x03\x12\x03:()\n\n\n\x02\x04\x04\x12\ + \x04=\0@\x01\n\n\n\x03\x04\x04\x01\x12\x03=\x08\x1f\nM\n\x04\x04\x04\x02\ + \0\x12\x03>\x08.\"@\x20The\x20candidate\x20favoured\x20by\x20the\x20vote\ + r\x20broadcasting\x20this\x20message.\n\n\r\n\x05\x04\x04\x02\0\x04\x12\ + \x04>\x08=!\n\x0c\n\x05\x04\x04\x02\0\x06\x12\x03>\x08\x1f\n\x0c\n\x05\ + \x04\x04\x02\0\x01\x12\x03>\x20)\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03>,\ + -\nP\n\x04\x04\x04\x02\x01\x12\x03?\x08!\"C\x20The\x20PeerId\x20of\x20th\ + e\x20participant\x20submitting\x20its\x20vote\x20to\x20the\x20network.\n\ + \n\r\n\x05\x04\x04\x02\x01\x04\x12\x04?\x08>.\n\x0c\n\x05\x04\x04\x02\ + \x01\x06\x12\x03?\x08\x13\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\x03?\x14\ + \x1c\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03?\x1f\x20\n\n\n\x02\x04\x05\ + \x12\x04B\x01E\x01\n\n\n\x03\x04\x05\x01\x12\x03B\t\x1e\nW\n\x04\x04\x05\ + \x02\0\x12\x03C\x08!\"J\x20The\x20DFS\x20address\x20at\x20which\x20the\ + \x20full\x20content\x20of\x20the\x20delta\x20can\x20be\x20retrieved.\n\n\ + \r\n\x05\x04\x05\x02\0\x04\x12\x04C\x08B\x20\n\x0c\n\x05\x04\x05\x02\0\ + \x05\x12\x03C\x08\r\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03C\x0e\x1c\n\x0c\ + \n\x05\x04\x05\x02\0\x03\x12\x03C\x1f\x20\nU\n\x04\x04\x05\x02\x01\x12\ + \x03D\x08*\"H\x20The\x20DFS\x20address\x20for\x20the\x20content\x20of\ + \x20the\x20delta\x20preceding\x20this\x20candidate.\n\n\r\n\x05\x04\x05\ + \x02\x01\x04\x12\x04D\x08C!\n\x0c\n\x05\x04\x05\x02\x01\x05\x12\x03D\x08\ + \r\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03D\x0e%\n\x0c\n\x05\x04\x05\x02\ \x01\x03\x12\x03D()b\x06proto3\ "; -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy { - lock: ::protobuf::lazy::ONCE_INIT, - ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto, -}; +static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() diff --git a/src/Transaction.proto b/src/Transaction.proto index 8d92e50..d2be6d4 100644 --- a/src/Transaction.proto +++ b/src/Transaction.proto @@ -22,7 +22,6 @@ syntax = "proto3"; option java_multiple_files = true; import "Cryptography.proto"; -import "google/protobuf/timestamp.proto"; package Catalyst.Protocol.Transaction; From 1987730dc410a34a1c19535d9ed79ac1d4480488 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 12 Aug 2020 10:19:19 +0100 Subject: [PATCH 7/8] Update producer type (#128) * Use multi address * new protocol changes for multi address * Update wire --- src/DfsMarketplace.proto | 4 ++-- src/IPPN.proto | 2 +- src/Peer.proto | 2 +- src/Rpc.proto | 21 ++++++++------------- src/Wire.proto | 8 ++++---- 5 files changed, 16 insertions(+), 21 deletions(-) diff --git a/src/DfsMarketplace.proto b/src/DfsMarketplace.proto index 8e797d7..c6af69a 100644 --- a/src/DfsMarketplace.proto +++ b/src/DfsMarketplace.proto @@ -39,6 +39,6 @@ message BlockChallengeResponse { message BlockChallengeBroadcast { BlockChallengeRequest original_challenge = 1; string answer = 2; - Peer.PeerId challenged_peer = 3; - Peer.PeerId challenged_by = 4; + string challenged_peer = 3; + string challenged_by = 4; } diff --git a/src/IPPN.proto b/src/IPPN.proto index d3e0a2d..4c9c370 100644 --- a/src/IPPN.proto +++ b/src/IPPN.proto @@ -29,7 +29,7 @@ import "Deltas.proto"; message PeerNeighborsRequest { } message PeerNeighborsResponse { - repeated Peer.PeerId peers = 1; // Random subset of a nodes peer db. + repeated string peers = 1; // Random subset of a nodes peer db. } message PingRequest { diff --git a/src/Peer.proto b/src/Peer.proto index b7a5dde..d3ba6a9 100644 --- a/src/Peer.proto +++ b/src/Peer.proto @@ -37,7 +37,7 @@ message PeerId { } message PeerInfo { - PeerId peer_id = 1; // is peerId of network + string address = 1; // is multiaddress of network sint32 reputation = 2; // reputation of peer bool is_blacklisted = 3; // is to check if the peer is blackListed bool is_unreachable = 4; // is when the peer cannot be reached on the network diff --git a/src/Rpc.proto b/src/Rpc.proto index 025fc9f..1692072 100644 --- a/src/Rpc.proto +++ b/src/Rpc.proto @@ -186,12 +186,11 @@ message AddNodeResponse { message GetPeerListRequest { } message GetPeerListResponse { - repeated Peer.PeerId peers = 1; + repeated string peers = 1; } message GetPeerReputationRequest { - bytes public_key = 1; - bytes ip = 2; + string address = 1; } message GetPeerReputationResponse { @@ -199,20 +198,17 @@ message GetPeerReputationResponse { } message SetPeerBlackListRequest { - bytes public_key = 1; - bytes ip = 2; - bool blacklist = 3; + string address = 1; + bool blacklist = 2; } message SetPeerBlackListResponse{ - bytes public_key = 1; - bytes ip = 2; - bool blacklist = 3; + string address = 1; + bool blacklist = 2; } message GetPeerInfoRequest { - bytes public_key = 1; - bytes ip = 2; + string address = 1; } message GetPeerInfoResponse { @@ -296,8 +292,7 @@ message TransferFileBytesResponse { } message RemovePeerRequest { - bytes peer_ip = 1; - bytes public_key = 2; + string address = 1; } message RemovePeerResponse { diff --git a/src/Wire.proto b/src/Wire.proto index e285705..46461e0 100644 --- a/src/Wire.proto +++ b/src/Wire.proto @@ -33,7 +33,7 @@ package Catalyst.Protocol.Wire; */ message ProtocolErrorMessage { Cryptography.Signature signature = 1; - Peer.PeerId peer_id = 2; + string address = 2; bytes correlation_id = 3; int32 code = 4; } @@ -42,7 +42,7 @@ message ProtocolErrorMessage { * A wrapper around the service message, the contents of service message should be signed by the sender to avoid tampering mid-transit. */ message ProtocolMessage { - Peer.PeerId peer_id = 1; // is the sender's peerId + string address = 1; // is the sender's address bytes correlation_id = 2; // is a 16 bytes guid used to match responses to their original requests string type_url = 3; // is the shortened protocol name of the message type being encoded in the value field (cf Any from protobuf WellKnownTypes) bytes value = 4; // is the actual value of the message being wrapped (cf Any from protobuf WellKnownTypes) @@ -55,13 +55,13 @@ message TransactionBroadcast { message CandidateDeltaBroadcast { bytes hash = 1; // The hash computed for the current delta produced by ProducerId. This is meant to be used when voting for most popular hashes. - Peer.PeerId producer_id = 2; // Identifier of the producer of the candidate. + bytes producer = 2; // Identifier of the producer of the candidate. bytes previous_delta_dfs_hash = 3; // The DFS address for the content of the delta preceding this candidate. } message FavouriteDeltaBroadcast { CandidateDeltaBroadcast candidate = 1; // The candidate favoured by the voter broadcasting this message. - Peer.PeerId voter_id = 2; // The PeerId of the participant submitting its vote to the network. + bytes voter = 2; // The address of the participant submitting its vote to the network. } message DeltaDfsHashBroadcast { From 1a4f95a96e161dcef782325c9f2adb0891ae0973 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 18 Aug 2020 12:46:59 +0100 Subject: [PATCH 8/8] Update coinbase entries to use kvm address instead of public key (#129) --- src/Transaction.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transaction.proto b/src/Transaction.proto index d2be6d4..040bc1c 100644 --- a/src/Transaction.proto +++ b/src/Transaction.proto @@ -52,7 +52,7 @@ message ConfidentialEntry { } message CoinbaseEntry { - bytes receiver_public_key = 1; // public key behind the address where the Coinbase will be credited + bytes receiver_kvm_address = 1; // kvm address behind the address where the Coinbase will be credited bytes amount = 2; // uint256 amount }