tronwb 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +201 -0
- package/dist/TronWeb.js +3 -0
- package/dist/TronWeb.js.LICENSE.txt +12 -0
- package/dist/TronWeb.js.map +1 -0
- package/dist/TronWeb.node.js +2 -0
- package/dist/TronWeb.node.js.map +1 -0
- package/kj9btptx.cjs +1 -0
- package/lib/commonjs/index.d.ts +64 -0
- package/lib/commonjs/index.js +37 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/lib/TransactionBuilder/TransactionBuilder.d.ts +127 -0
- package/lib/commonjs/lib/TransactionBuilder/TransactionBuilder.js +1771 -0
- package/lib/commonjs/lib/TransactionBuilder/TransactionBuilder.js.map +1 -0
- package/lib/commonjs/lib/TransactionBuilder/helper.d.ts +28 -0
- package/lib/commonjs/lib/TransactionBuilder/helper.js +122 -0
- package/lib/commonjs/lib/TransactionBuilder/helper.js.map +1 -0
- package/lib/commonjs/lib/contract/index.d.ts +29 -0
- package/lib/commonjs/lib/contract/index.js +124 -0
- package/lib/commonjs/lib/contract/index.js.map +1 -0
- package/lib/commonjs/lib/contract/method.d.ts +50 -0
- package/lib/commonjs/lib/contract/method.js +238 -0
- package/lib/commonjs/lib/contract/method.js.map +1 -0
- package/lib/commonjs/lib/event.d.ts +85 -0
- package/lib/commonjs/lib/event.js +137 -0
- package/lib/commonjs/lib/event.js.map +1 -0
- package/lib/commonjs/lib/plugin.d.ts +28 -0
- package/lib/commonjs/lib/plugin.js +84 -0
- package/lib/commonjs/lib/plugin.js.map +1 -0
- package/lib/commonjs/lib/providers/HttpProvider.d.ts +15 -0
- package/lib/commonjs/lib/providers/HttpProvider.js +63 -0
- package/lib/commonjs/lib/providers/HttpProvider.js.map +1 -0
- package/lib/commonjs/lib/providers/index.d.ts +6 -0
- package/lib/commonjs/lib/providers/index.js +8 -0
- package/lib/commonjs/lib/providers/index.js.map +1 -0
- package/lib/commonjs/lib/trx.d.ts +315 -0
- package/lib/commonjs/lib/trx.js +965 -0
- package/lib/commonjs/lib/trx.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/paramValidator/index.d.ts +19 -0
- package/lib/commonjs/paramValidator/index.js +110 -0
- package/lib/commonjs/paramValidator/index.js.map +1 -0
- package/lib/commonjs/protocol/core/Tron_pb.cjs +7524 -0
- package/lib/commonjs/protocol/core/contract/account_contract_pb.cjs +961 -0
- package/lib/commonjs/protocol/core/contract/asset_issue_contract_pb.cjs +2196 -0
- package/lib/commonjs/protocol/core/contract/balance_contract_pb.cjs +3826 -0
- package/lib/commonjs/protocol/core/contract/common_pb.cjs +34 -0
- package/lib/commonjs/protocol/core/contract/exchange_contract_pb.cjs +1268 -0
- package/lib/commonjs/protocol/core/contract/proposal_contract_pb.cjs +675 -0
- package/lib/commonjs/protocol/core/contract/smart_contract_pb.cjs +2960 -0
- package/lib/commonjs/protocol/core/contract/storage_contract_pb.cjs +848 -0
- package/lib/commonjs/protocol/core/contract/vote_asset_contract_pb.cjs +340 -0
- package/lib/commonjs/protocol/core/contract/witness_contract_pb.cjs +956 -0
- package/lib/commonjs/tronweb.d.ts +111 -0
- package/lib/commonjs/tronweb.js +365 -0
- package/lib/commonjs/tronweb.js.map +1 -0
- package/lib/commonjs/types/ABI.d.ts +59 -0
- package/lib/commonjs/types/ABI.js +3 -0
- package/lib/commonjs/types/ABI.js.map +1 -0
- package/lib/commonjs/types/APIResponse.d.ts +31 -0
- package/lib/commonjs/types/APIResponse.js +3 -0
- package/lib/commonjs/types/APIResponse.js.map +1 -0
- package/lib/commonjs/types/Contract.d.ts +287 -0
- package/lib/commonjs/types/Contract.js +63 -0
- package/lib/commonjs/types/Contract.js.map +1 -0
- package/lib/commonjs/types/Providers.d.ts +8 -0
- package/lib/commonjs/types/Providers.js +3 -0
- package/lib/commonjs/types/Providers.js.map +1 -0
- package/lib/commonjs/types/Transaction.d.ts +65 -0
- package/lib/commonjs/types/Transaction.js +3 -0
- package/lib/commonjs/types/Transaction.js.map +1 -0
- package/lib/commonjs/types/TransactionBuilder.d.ts +270 -0
- package/lib/commonjs/types/TransactionBuilder.js +3 -0
- package/lib/commonjs/types/TransactionBuilder.js.map +1 -0
- package/lib/commonjs/types/TronWeb.d.ts +20 -0
- package/lib/commonjs/types/TronWeb.js +3 -0
- package/lib/commonjs/types/TronWeb.js.map +1 -0
- package/lib/commonjs/types/Trx.d.ts +263 -0
- package/lib/commonjs/types/Trx.js +42 -0
- package/lib/commonjs/types/Trx.js.map +1 -0
- package/lib/commonjs/types/UtilsTypes.d.ts +23 -0
- package/lib/commonjs/types/UtilsTypes.js +3 -0
- package/lib/commonjs/types/UtilsTypes.js.map +1 -0
- package/lib/commonjs/types/index.d.ts +9 -0
- package/lib/commonjs/types/index.js +13 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/utils/abi.d.ts +5 -0
- package/lib/commonjs/utils/abi.js +251 -0
- package/lib/commonjs/utils/abi.js.map +1 -0
- package/lib/commonjs/utils/accounts.d.ts +22 -0
- package/lib/commonjs/utils/accounts.js +51 -0
- package/lib/commonjs/utils/accounts.js.map +1 -0
- package/lib/commonjs/utils/address.d.ts +12 -0
- package/lib/commonjs/utils/address.js +91 -0
- package/lib/commonjs/utils/address.js.map +1 -0
- package/lib/commonjs/utils/base58.d.ts +3 -0
- package/lib/commonjs/utils/base58.js +68 -0
- package/lib/commonjs/utils/base58.js.map +1 -0
- package/lib/commonjs/utils/base64.d.ts +10 -0
- package/lib/commonjs/utils/base64.js +173 -0
- package/lib/commonjs/utils/base64.js.map +1 -0
- package/lib/commonjs/utils/bytes.d.ts +7 -0
- package/lib/commonjs/utils/bytes.js +61 -0
- package/lib/commonjs/utils/bytes.js.map +1 -0
- package/lib/commonjs/utils/code.d.ts +12 -0
- package/lib/commonjs/utils/code.js +166 -0
- package/lib/commonjs/utils/code.js.map +1 -0
- package/lib/commonjs/utils/crypto.d.ts +25 -0
- package/lib/commonjs/utils/crypto.js +222 -0
- package/lib/commonjs/utils/crypto.js.map +1 -0
- package/lib/commonjs/utils/ethersUtils.d.ts +14 -0
- package/lib/commonjs/utils/ethersUtils.js +39 -0
- package/lib/commonjs/utils/ethersUtils.js.map +1 -0
- package/lib/commonjs/utils/fragments.d.ts +465 -0
- package/lib/commonjs/utils/fragments.js +1342 -0
- package/lib/commonjs/utils/fragments.js.map +1 -0
- package/lib/commonjs/utils/help.d.ts +8 -0
- package/lib/commonjs/utils/help.js +61 -0
- package/lib/commonjs/utils/help.js.map +1 -0
- package/lib/commonjs/utils/index.d.ts +56 -0
- package/lib/commonjs/utils/index.js +43 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/commonjs/utils/interface.d.ts +381 -0
- package/lib/commonjs/utils/interface.js +1121 -0
- package/lib/commonjs/utils/interface.js.map +1 -0
- package/lib/commonjs/utils/message.d.ts +4 -0
- package/lib/commonjs/utils/message.js +38 -0
- package/lib/commonjs/utils/message.js.map +1 -0
- package/lib/commonjs/utils/transaction.d.ts +17 -0
- package/lib/commonjs/utils/transaction.js +678 -0
- package/lib/commonjs/utils/transaction.js.map +1 -0
- package/lib/commonjs/utils/typedData.d.ts +148 -0
- package/lib/commonjs/utils/typedData.js +498 -0
- package/lib/commonjs/utils/typedData.js.map +1 -0
- package/lib/commonjs/utils/validations.d.ts +22 -0
- package/lib/commonjs/utils/validations.js +128 -0
- package/lib/commonjs/utils/validations.js.map +1 -0
- package/lib/esm/index.d.ts +64 -0
- package/lib/esm/index.js +33 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/lib/TransactionBuilder/TransactionBuilder.d.ts +127 -0
- package/lib/esm/lib/TransactionBuilder/TransactionBuilder.js +1767 -0
- package/lib/esm/lib/TransactionBuilder/TransactionBuilder.js.map +1 -0
- package/lib/esm/lib/TransactionBuilder/helper.d.ts +28 -0
- package/lib/esm/lib/TransactionBuilder/helper.js +112 -0
- package/lib/esm/lib/TransactionBuilder/helper.js.map +1 -0
- package/lib/esm/lib/contract/index.d.ts +29 -0
- package/lib/esm/lib/contract/index.js +118 -0
- package/lib/esm/lib/contract/index.js.map +1 -0
- package/lib/esm/lib/contract/method.d.ts +50 -0
- package/lib/esm/lib/contract/method.js +233 -0
- package/lib/esm/lib/contract/method.js.map +1 -0
- package/lib/esm/lib/event.d.ts +85 -0
- package/lib/esm/lib/event.js +132 -0
- package/lib/esm/lib/event.js.map +1 -0
- package/lib/esm/lib/plugin.d.ts +28 -0
- package/lib/esm/lib/plugin.js +79 -0
- package/lib/esm/lib/plugin.js.map +1 -0
- package/lib/esm/lib/providers/HttpProvider.d.ts +15 -0
- package/lib/esm/lib/providers/HttpProvider.js +59 -0
- package/lib/esm/lib/providers/HttpProvider.js.map +1 -0
- package/lib/esm/lib/providers/index.d.ts +6 -0
- package/lib/esm/lib/providers/index.js +4 -0
- package/lib/esm/lib/providers/index.js.map +1 -0
- package/lib/esm/lib/trx.d.ts +315 -0
- package/lib/esm/lib/trx.js +960 -0
- package/lib/esm/lib/trx.js.map +1 -0
- package/lib/esm/package.json +1 -0
- package/lib/esm/paramValidator/index.d.ts +19 -0
- package/lib/esm/paramValidator/index.js +106 -0
- package/lib/esm/paramValidator/index.js.map +1 -0
- package/lib/esm/protocol/core/Tron_pb.cjs +7524 -0
- package/lib/esm/protocol/core/contract/account_contract_pb.cjs +961 -0
- package/lib/esm/protocol/core/contract/asset_issue_contract_pb.cjs +2196 -0
- package/lib/esm/protocol/core/contract/balance_contract_pb.cjs +3826 -0
- package/lib/esm/protocol/core/contract/common_pb.cjs +34 -0
- package/lib/esm/protocol/core/contract/exchange_contract_pb.cjs +1268 -0
- package/lib/esm/protocol/core/contract/proposal_contract_pb.cjs +675 -0
- package/lib/esm/protocol/core/contract/smart_contract_pb.cjs +2960 -0
- package/lib/esm/protocol/core/contract/storage_contract_pb.cjs +848 -0
- package/lib/esm/protocol/core/contract/vote_asset_contract_pb.cjs +340 -0
- package/lib/esm/protocol/core/contract/witness_contract_pb.cjs +956 -0
- package/lib/esm/tronweb.d.ts +111 -0
- package/lib/esm/tronweb.js +360 -0
- package/lib/esm/tronweb.js.map +1 -0
- package/lib/esm/types/ABI.d.ts +59 -0
- package/lib/esm/types/ABI.js +2 -0
- package/lib/esm/types/ABI.js.map +1 -0
- package/lib/esm/types/APIResponse.d.ts +31 -0
- package/lib/esm/types/APIResponse.js +2 -0
- package/lib/esm/types/APIResponse.js.map +1 -0
- package/lib/esm/types/Contract.d.ts +287 -0
- package/lib/esm/types/Contract.js +60 -0
- package/lib/esm/types/Contract.js.map +1 -0
- package/lib/esm/types/Providers.d.ts +8 -0
- package/lib/esm/types/Providers.js +2 -0
- package/lib/esm/types/Providers.js.map +1 -0
- package/lib/esm/types/Transaction.d.ts +65 -0
- package/lib/esm/types/Transaction.js +2 -0
- package/lib/esm/types/Transaction.js.map +1 -0
- package/lib/esm/types/TransactionBuilder.d.ts +270 -0
- package/lib/esm/types/TransactionBuilder.js +2 -0
- package/lib/esm/types/TransactionBuilder.js.map +1 -0
- package/lib/esm/types/TronWeb.d.ts +20 -0
- package/lib/esm/types/TronWeb.js +2 -0
- package/lib/esm/types/TronWeb.js.map +1 -0
- package/lib/esm/types/Trx.d.ts +263 -0
- package/lib/esm/types/Trx.js +39 -0
- package/lib/esm/types/Trx.js.map +1 -0
- package/lib/esm/types/UtilsTypes.d.ts +23 -0
- package/lib/esm/types/UtilsTypes.js +2 -0
- package/lib/esm/types/UtilsTypes.js.map +1 -0
- package/lib/esm/types/index.d.ts +9 -0
- package/lib/esm/types/index.js +10 -0
- package/lib/esm/types/index.js.map +1 -0
- package/lib/esm/utils/abi.d.ts +5 -0
- package/lib/esm/utils/abi.js +245 -0
- package/lib/esm/utils/abi.js.map +1 -0
- package/lib/esm/utils/accounts.d.ts +22 -0
- package/lib/esm/utils/accounts.js +46 -0
- package/lib/esm/utils/accounts.js.map +1 -0
- package/lib/esm/utils/address.d.ts +12 -0
- package/lib/esm/utils/address.js +82 -0
- package/lib/esm/utils/address.js.map +1 -0
- package/lib/esm/utils/base58.d.ts +3 -0
- package/lib/esm/utils/base58.js +64 -0
- package/lib/esm/utils/base58.js.map +1 -0
- package/lib/esm/utils/base64.d.ts +10 -0
- package/lib/esm/utils/base64.js +169 -0
- package/lib/esm/utils/base64.js.map +1 -0
- package/lib/esm/utils/bytes.d.ts +7 -0
- package/lib/esm/utils/bytes.js +53 -0
- package/lib/esm/utils/bytes.js.map +1 -0
- package/lib/esm/utils/code.d.ts +12 -0
- package/lib/esm/utils/code.js +149 -0
- package/lib/esm/utils/code.js.map +1 -0
- package/lib/esm/utils/crypto.d.ts +25 -0
- package/lib/esm/utils/crypto.js +198 -0
- package/lib/esm/utils/crypto.js.map +1 -0
- package/lib/esm/utils/ethersUtils.d.ts +14 -0
- package/lib/esm/utils/ethersUtils.js +17 -0
- package/lib/esm/utils/ethersUtils.js.map +1 -0
- package/lib/esm/utils/fragments.d.ts +465 -0
- package/lib/esm/utils/fragments.js +1330 -0
- package/lib/esm/utils/fragments.js.map +1 -0
- package/lib/esm/utils/help.d.ts +8 -0
- package/lib/esm/utils/help.js +51 -0
- package/lib/esm/utils/help.js.map +1 -0
- package/lib/esm/utils/index.d.ts +56 -0
- package/lib/esm/utils/index.js +40 -0
- package/lib/esm/utils/index.js.map +1 -0
- package/lib/esm/utils/interface.d.ts +381 -0
- package/lib/esm/utils/interface.js +1112 -0
- package/lib/esm/utils/interface.js.map +1 -0
- package/lib/esm/utils/message.d.ts +4 -0
- package/lib/esm/utils/message.js +32 -0
- package/lib/esm/utils/message.js.map +1 -0
- package/lib/esm/utils/transaction.d.ts +17 -0
- package/lib/esm/utils/transaction.js +669 -0
- package/lib/esm/utils/transaction.js.map +1 -0
- package/lib/esm/utils/typedData.d.ts +148 -0
- package/lib/esm/utils/typedData.js +493 -0
- package/lib/esm/utils/typedData.js.map +1 -0
- package/lib/esm/utils/validations.d.ts +22 -0
- package/lib/esm/utils/validations.js +108 -0
- package/lib/esm/utils/validations.js.map +1 -0
- package/package.json +110 -0
- package/src/index.ts +42 -0
- package/src/lib/TransactionBuilder/TransactionBuilder.ts +2272 -0
- package/src/lib/TransactionBuilder/helper.ts +139 -0
- package/src/lib/contract/index.ts +151 -0
- package/src/lib/contract/method.ts +336 -0
- package/src/lib/event.ts +248 -0
- package/src/lib/plugin.ts +102 -0
- package/src/lib/providers/HttpProvider.ts +66 -0
- package/src/lib/providers/index.ts +6 -0
- package/src/lib/trx.ts +1463 -0
- package/src/paramValidator/index.ts +136 -0
- package/src/protocol/core/Tron_pb.cjs +7524 -0
- package/src/protocol/core/contract/account_contract_pb.cjs +961 -0
- package/src/protocol/core/contract/asset_issue_contract_pb.cjs +2196 -0
- package/src/protocol/core/contract/balance_contract_pb.cjs +3826 -0
- package/src/protocol/core/contract/common_pb.cjs +34 -0
- package/src/protocol/core/contract/exchange_contract_pb.cjs +1268 -0
- package/src/protocol/core/contract/proposal_contract_pb.cjs +675 -0
- package/src/protocol/core/contract/smart_contract_pb.cjs +2960 -0
- package/src/protocol/core/contract/storage_contract_pb.cjs +848 -0
- package/src/protocol/core/contract/vote_asset_contract_pb.cjs +340 -0
- package/src/protocol/core/contract/witness_contract_pb.cjs +956 -0
- package/src/tronweb.ts +437 -0
- package/src/types/ABI.ts +82 -0
- package/src/types/APIResponse.ts +34 -0
- package/src/types/Contract.ts +352 -0
- package/src/types/Providers.ts +7 -0
- package/src/types/Transaction.ts +70 -0
- package/src/types/TransactionBuilder.ts +281 -0
- package/src/types/TronWeb.ts +23 -0
- package/src/types/Trx.ts +285 -0
- package/src/types/UtilsTypes.ts +25 -0
- package/src/types/index.ts +9 -0
- package/src/types/interface.d.ts +1 -0
- package/src/utils/abi.ts +257 -0
- package/src/utils/accounts.ts +60 -0
- package/src/utils/address.ts +89 -0
- package/src/utils/base58.ts +78 -0
- package/src/utils/base64.ts +200 -0
- package/src/utils/bytes.ts +68 -0
- package/src/utils/code.ts +172 -0
- package/src/utils/crypto.ts +264 -0
- package/src/utils/ethersUtils.ts +60 -0
- package/src/utils/fragments.ts +1738 -0
- package/src/utils/help.ts +59 -0
- package/src/utils/index.ts +42 -0
- package/src/utils/interface.ts +1362 -0
- package/src/utils/message.ts +38 -0
- package/src/utils/transaction.ts +991 -0
- package/src/utils/typedData.ts +688 -0
- package/src/utils/validations.ts +130 -0
@@ -0,0 +1,3826 @@
|
|
1
|
+
// source: core/contract/balance_contract.proto
|
2
|
+
/**
|
3
|
+
* @fileoverview
|
4
|
+
* @enhanceable
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
8
|
+
* @public
|
9
|
+
*/
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
11
|
+
/* eslint-disable */
|
12
|
+
// @ts-nocheck
|
13
|
+
|
14
|
+
var jspb = require('@tronweb3/google-protobuf');
|
15
|
+
var goog = jspb;
|
16
|
+
var global =
|
17
|
+
(typeof globalThis !== 'undefined' && globalThis) ||
|
18
|
+
(typeof window !== 'undefined' && window) ||
|
19
|
+
(typeof global !== 'undefined' && global) ||
|
20
|
+
(typeof self !== 'undefined' && self) ||
|
21
|
+
function () {
|
22
|
+
return this;
|
23
|
+
}.call(null) ||
|
24
|
+
Function('return this')();
|
25
|
+
|
26
|
+
var core_contract_common_pb = require('../../core/contract/common_pb.cjs');
|
27
|
+
goog.object.extend(proto, core_contract_common_pb);
|
28
|
+
goog.exportSymbol('TronWebProto.AccountBalanceRequest', null, global);
|
29
|
+
goog.exportSymbol('TronWebProto.AccountBalanceResponse', null, global);
|
30
|
+
goog.exportSymbol('TronWebProto.AccountIdentifier', null, global);
|
31
|
+
goog.exportSymbol('TronWebProto.AccountTrace', null, global);
|
32
|
+
goog.exportSymbol('TronWebProto.BlockBalanceTrace', null, global);
|
33
|
+
goog.exportSymbol('TronWebProto.BlockBalanceTrace.BlockIdentifier', null, global);
|
34
|
+
goog.exportSymbol('TronWebProto.CancelAllUnfreezeV2Contract', null, global);
|
35
|
+
goog.exportSymbol('TronWebProto.DelegateResourceContract', null, global);
|
36
|
+
goog.exportSymbol('TronWebProto.FreezeBalanceContract', null, global);
|
37
|
+
goog.exportSymbol('TronWebProto.FreezeBalanceV2Contract', null, global);
|
38
|
+
goog.exportSymbol('TronWebProto.TransactionBalanceTrace', null, global);
|
39
|
+
goog.exportSymbol('TronWebProto.TransactionBalanceTrace.Operation', null, global);
|
40
|
+
goog.exportSymbol('TronWebProto.TransferContract', null, global);
|
41
|
+
goog.exportSymbol('TronWebProto.UnDelegateResourceContract', null, global);
|
42
|
+
goog.exportSymbol('TronWebProto.UnfreezeBalanceContract', null, global);
|
43
|
+
goog.exportSymbol('TronWebProto.UnfreezeBalanceV2Contract', null, global);
|
44
|
+
goog.exportSymbol('TronWebProto.WithdrawBalanceContract', null, global);
|
45
|
+
goog.exportSymbol('TronWebProto.WithdrawExpireUnfreezeContract', null, global);
|
46
|
+
/**
|
47
|
+
* Generated by JsPbCodeGenerator.
|
48
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
49
|
+
* server response, or constructed directly in Javascript. The array is used
|
50
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
51
|
+
* If no data is provided, the constructed object will be empty, but still
|
52
|
+
* valid.
|
53
|
+
* @extends {jspb.Message}
|
54
|
+
* @constructor
|
55
|
+
*/
|
56
|
+
TronWebProto.FreezeBalanceContract = function (opt_data) {
|
57
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
58
|
+
};
|
59
|
+
goog.inherits(TronWebProto.FreezeBalanceContract, jspb.Message);
|
60
|
+
if (goog.DEBUG && !COMPILED) {
|
61
|
+
/**
|
62
|
+
* @public
|
63
|
+
* @override
|
64
|
+
*/
|
65
|
+
TronWebProto.FreezeBalanceContract.displayName = 'TronWebProto.FreezeBalanceContract';
|
66
|
+
}
|
67
|
+
/**
|
68
|
+
* Generated by JsPbCodeGenerator.
|
69
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
70
|
+
* server response, or constructed directly in Javascript. The array is used
|
71
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
72
|
+
* If no data is provided, the constructed object will be empty, but still
|
73
|
+
* valid.
|
74
|
+
* @extends {jspb.Message}
|
75
|
+
* @constructor
|
76
|
+
*/
|
77
|
+
TronWebProto.UnfreezeBalanceContract = function (opt_data) {
|
78
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
79
|
+
};
|
80
|
+
goog.inherits(TronWebProto.UnfreezeBalanceContract, jspb.Message);
|
81
|
+
if (goog.DEBUG && !COMPILED) {
|
82
|
+
/**
|
83
|
+
* @public
|
84
|
+
* @override
|
85
|
+
*/
|
86
|
+
TronWebProto.UnfreezeBalanceContract.displayName = 'TronWebProto.UnfreezeBalanceContract';
|
87
|
+
}
|
88
|
+
/**
|
89
|
+
* Generated by JsPbCodeGenerator.
|
90
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
91
|
+
* server response, or constructed directly in Javascript. The array is used
|
92
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
93
|
+
* If no data is provided, the constructed object will be empty, but still
|
94
|
+
* valid.
|
95
|
+
* @extends {jspb.Message}
|
96
|
+
* @constructor
|
97
|
+
*/
|
98
|
+
TronWebProto.WithdrawBalanceContract = function (opt_data) {
|
99
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
100
|
+
};
|
101
|
+
goog.inherits(TronWebProto.WithdrawBalanceContract, jspb.Message);
|
102
|
+
if (goog.DEBUG && !COMPILED) {
|
103
|
+
/**
|
104
|
+
* @public
|
105
|
+
* @override
|
106
|
+
*/
|
107
|
+
TronWebProto.WithdrawBalanceContract.displayName = 'TronWebProto.WithdrawBalanceContract';
|
108
|
+
}
|
109
|
+
/**
|
110
|
+
* Generated by JsPbCodeGenerator.
|
111
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
112
|
+
* server response, or constructed directly in Javascript. The array is used
|
113
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
114
|
+
* If no data is provided, the constructed object will be empty, but still
|
115
|
+
* valid.
|
116
|
+
* @extends {jspb.Message}
|
117
|
+
* @constructor
|
118
|
+
*/
|
119
|
+
TronWebProto.TransferContract = function (opt_data) {
|
120
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
121
|
+
};
|
122
|
+
goog.inherits(TronWebProto.TransferContract, jspb.Message);
|
123
|
+
if (goog.DEBUG && !COMPILED) {
|
124
|
+
/**
|
125
|
+
* @public
|
126
|
+
* @override
|
127
|
+
*/
|
128
|
+
TronWebProto.TransferContract.displayName = 'TronWebProto.TransferContract';
|
129
|
+
}
|
130
|
+
/**
|
131
|
+
* Generated by JsPbCodeGenerator.
|
132
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
133
|
+
* server response, or constructed directly in Javascript. The array is used
|
134
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
135
|
+
* If no data is provided, the constructed object will be empty, but still
|
136
|
+
* valid.
|
137
|
+
* @extends {jspb.Message}
|
138
|
+
* @constructor
|
139
|
+
*/
|
140
|
+
TronWebProto.TransactionBalanceTrace = function (opt_data) {
|
141
|
+
jspb.Message.initialize(this, opt_data, 0, -1, TronWebProto.TransactionBalanceTrace.repeatedFields_, null);
|
142
|
+
};
|
143
|
+
goog.inherits(TronWebProto.TransactionBalanceTrace, jspb.Message);
|
144
|
+
if (goog.DEBUG && !COMPILED) {
|
145
|
+
/**
|
146
|
+
* @public
|
147
|
+
* @override
|
148
|
+
*/
|
149
|
+
TronWebProto.TransactionBalanceTrace.displayName = 'TronWebProto.TransactionBalanceTrace';
|
150
|
+
}
|
151
|
+
/**
|
152
|
+
* Generated by JsPbCodeGenerator.
|
153
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
154
|
+
* server response, or constructed directly in Javascript. The array is used
|
155
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
156
|
+
* If no data is provided, the constructed object will be empty, but still
|
157
|
+
* valid.
|
158
|
+
* @extends {jspb.Message}
|
159
|
+
* @constructor
|
160
|
+
*/
|
161
|
+
TronWebProto.TransactionBalanceTrace.Operation = function (opt_data) {
|
162
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
163
|
+
};
|
164
|
+
goog.inherits(TronWebProto.TransactionBalanceTrace.Operation, jspb.Message);
|
165
|
+
if (goog.DEBUG && !COMPILED) {
|
166
|
+
/**
|
167
|
+
* @public
|
168
|
+
* @override
|
169
|
+
*/
|
170
|
+
TronWebProto.TransactionBalanceTrace.Operation.displayName = 'TronWebProto.TransactionBalanceTrace.Operation';
|
171
|
+
}
|
172
|
+
/**
|
173
|
+
* Generated by JsPbCodeGenerator.
|
174
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
175
|
+
* server response, or constructed directly in Javascript. The array is used
|
176
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
177
|
+
* If no data is provided, the constructed object will be empty, but still
|
178
|
+
* valid.
|
179
|
+
* @extends {jspb.Message}
|
180
|
+
* @constructor
|
181
|
+
*/
|
182
|
+
TronWebProto.BlockBalanceTrace = function (opt_data) {
|
183
|
+
jspb.Message.initialize(this, opt_data, 0, -1, TronWebProto.BlockBalanceTrace.repeatedFields_, null);
|
184
|
+
};
|
185
|
+
goog.inherits(TronWebProto.BlockBalanceTrace, jspb.Message);
|
186
|
+
if (goog.DEBUG && !COMPILED) {
|
187
|
+
/**
|
188
|
+
* @public
|
189
|
+
* @override
|
190
|
+
*/
|
191
|
+
TronWebProto.BlockBalanceTrace.displayName = 'TronWebProto.BlockBalanceTrace';
|
192
|
+
}
|
193
|
+
/**
|
194
|
+
* Generated by JsPbCodeGenerator.
|
195
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
196
|
+
* server response, or constructed directly in Javascript. The array is used
|
197
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
198
|
+
* If no data is provided, the constructed object will be empty, but still
|
199
|
+
* valid.
|
200
|
+
* @extends {jspb.Message}
|
201
|
+
* @constructor
|
202
|
+
*/
|
203
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier = function (opt_data) {
|
204
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
205
|
+
};
|
206
|
+
goog.inherits(TronWebProto.BlockBalanceTrace.BlockIdentifier, jspb.Message);
|
207
|
+
if (goog.DEBUG && !COMPILED) {
|
208
|
+
/**
|
209
|
+
* @public
|
210
|
+
* @override
|
211
|
+
*/
|
212
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.displayName = 'TronWebProto.BlockBalanceTrace.BlockIdentifier';
|
213
|
+
}
|
214
|
+
/**
|
215
|
+
* Generated by JsPbCodeGenerator.
|
216
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
217
|
+
* server response, or constructed directly in Javascript. The array is used
|
218
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
219
|
+
* If no data is provided, the constructed object will be empty, but still
|
220
|
+
* valid.
|
221
|
+
* @extends {jspb.Message}
|
222
|
+
* @constructor
|
223
|
+
*/
|
224
|
+
TronWebProto.AccountTrace = function (opt_data) {
|
225
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
226
|
+
};
|
227
|
+
goog.inherits(TronWebProto.AccountTrace, jspb.Message);
|
228
|
+
if (goog.DEBUG && !COMPILED) {
|
229
|
+
/**
|
230
|
+
* @public
|
231
|
+
* @override
|
232
|
+
*/
|
233
|
+
TronWebProto.AccountTrace.displayName = 'TronWebProto.AccountTrace';
|
234
|
+
}
|
235
|
+
/**
|
236
|
+
* Generated by JsPbCodeGenerator.
|
237
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
238
|
+
* server response, or constructed directly in Javascript. The array is used
|
239
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
240
|
+
* If no data is provided, the constructed object will be empty, but still
|
241
|
+
* valid.
|
242
|
+
* @extends {jspb.Message}
|
243
|
+
* @constructor
|
244
|
+
*/
|
245
|
+
TronWebProto.AccountIdentifier = function (opt_data) {
|
246
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
247
|
+
};
|
248
|
+
goog.inherits(TronWebProto.AccountIdentifier, jspb.Message);
|
249
|
+
if (goog.DEBUG && !COMPILED) {
|
250
|
+
/**
|
251
|
+
* @public
|
252
|
+
* @override
|
253
|
+
*/
|
254
|
+
TronWebProto.AccountIdentifier.displayName = 'TronWebProto.AccountIdentifier';
|
255
|
+
}
|
256
|
+
/**
|
257
|
+
* Generated by JsPbCodeGenerator.
|
258
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
259
|
+
* server response, or constructed directly in Javascript. The array is used
|
260
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
261
|
+
* If no data is provided, the constructed object will be empty, but still
|
262
|
+
* valid.
|
263
|
+
* @extends {jspb.Message}
|
264
|
+
* @constructor
|
265
|
+
*/
|
266
|
+
TronWebProto.AccountBalanceRequest = function (opt_data) {
|
267
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
268
|
+
};
|
269
|
+
goog.inherits(TronWebProto.AccountBalanceRequest, jspb.Message);
|
270
|
+
if (goog.DEBUG && !COMPILED) {
|
271
|
+
/**
|
272
|
+
* @public
|
273
|
+
* @override
|
274
|
+
*/
|
275
|
+
TronWebProto.AccountBalanceRequest.displayName = 'TronWebProto.AccountBalanceRequest';
|
276
|
+
}
|
277
|
+
/**
|
278
|
+
* Generated by JsPbCodeGenerator.
|
279
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
280
|
+
* server response, or constructed directly in Javascript. The array is used
|
281
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
282
|
+
* If no data is provided, the constructed object will be empty, but still
|
283
|
+
* valid.
|
284
|
+
* @extends {jspb.Message}
|
285
|
+
* @constructor
|
286
|
+
*/
|
287
|
+
TronWebProto.AccountBalanceResponse = function (opt_data) {
|
288
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
289
|
+
};
|
290
|
+
goog.inherits(TronWebProto.AccountBalanceResponse, jspb.Message);
|
291
|
+
if (goog.DEBUG && !COMPILED) {
|
292
|
+
/**
|
293
|
+
* @public
|
294
|
+
* @override
|
295
|
+
*/
|
296
|
+
TronWebProto.AccountBalanceResponse.displayName = 'TronWebProto.AccountBalanceResponse';
|
297
|
+
}
|
298
|
+
/**
|
299
|
+
* Generated by JsPbCodeGenerator.
|
300
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
301
|
+
* server response, or constructed directly in Javascript. The array is used
|
302
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
303
|
+
* If no data is provided, the constructed object will be empty, but still
|
304
|
+
* valid.
|
305
|
+
* @extends {jspb.Message}
|
306
|
+
* @constructor
|
307
|
+
*/
|
308
|
+
TronWebProto.FreezeBalanceV2Contract = function (opt_data) {
|
309
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
310
|
+
};
|
311
|
+
goog.inherits(TronWebProto.FreezeBalanceV2Contract, jspb.Message);
|
312
|
+
if (goog.DEBUG && !COMPILED) {
|
313
|
+
/**
|
314
|
+
* @public
|
315
|
+
* @override
|
316
|
+
*/
|
317
|
+
TronWebProto.FreezeBalanceV2Contract.displayName = 'TronWebProto.FreezeBalanceV2Contract';
|
318
|
+
}
|
319
|
+
/**
|
320
|
+
* Generated by JsPbCodeGenerator.
|
321
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
322
|
+
* server response, or constructed directly in Javascript. The array is used
|
323
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
324
|
+
* If no data is provided, the constructed object will be empty, but still
|
325
|
+
* valid.
|
326
|
+
* @extends {jspb.Message}
|
327
|
+
* @constructor
|
328
|
+
*/
|
329
|
+
TronWebProto.UnfreezeBalanceV2Contract = function (opt_data) {
|
330
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
331
|
+
};
|
332
|
+
goog.inherits(TronWebProto.UnfreezeBalanceV2Contract, jspb.Message);
|
333
|
+
if (goog.DEBUG && !COMPILED) {
|
334
|
+
/**
|
335
|
+
* @public
|
336
|
+
* @override
|
337
|
+
*/
|
338
|
+
TronWebProto.UnfreezeBalanceV2Contract.displayName = 'TronWebProto.UnfreezeBalanceV2Contract';
|
339
|
+
}
|
340
|
+
/**
|
341
|
+
* Generated by JsPbCodeGenerator.
|
342
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
343
|
+
* server response, or constructed directly in Javascript. The array is used
|
344
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
345
|
+
* If no data is provided, the constructed object will be empty, but still
|
346
|
+
* valid.
|
347
|
+
* @extends {jspb.Message}
|
348
|
+
* @constructor
|
349
|
+
*/
|
350
|
+
TronWebProto.WithdrawExpireUnfreezeContract = function (opt_data) {
|
351
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
352
|
+
};
|
353
|
+
goog.inherits(TronWebProto.WithdrawExpireUnfreezeContract, jspb.Message);
|
354
|
+
if (goog.DEBUG && !COMPILED) {
|
355
|
+
/**
|
356
|
+
* @public
|
357
|
+
* @override
|
358
|
+
*/
|
359
|
+
TronWebProto.WithdrawExpireUnfreezeContract.displayName = 'TronWebProto.WithdrawExpireUnfreezeContract';
|
360
|
+
}
|
361
|
+
/**
|
362
|
+
* Generated by JsPbCodeGenerator.
|
363
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
364
|
+
* server response, or constructed directly in Javascript. The array is used
|
365
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
366
|
+
* If no data is provided, the constructed object will be empty, but still
|
367
|
+
* valid.
|
368
|
+
* @extends {jspb.Message}
|
369
|
+
* @constructor
|
370
|
+
*/
|
371
|
+
TronWebProto.DelegateResourceContract = function (opt_data) {
|
372
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
373
|
+
};
|
374
|
+
goog.inherits(TronWebProto.DelegateResourceContract, jspb.Message);
|
375
|
+
if (goog.DEBUG && !COMPILED) {
|
376
|
+
/**
|
377
|
+
* @public
|
378
|
+
* @override
|
379
|
+
*/
|
380
|
+
TronWebProto.DelegateResourceContract.displayName = 'TronWebProto.DelegateResourceContract';
|
381
|
+
}
|
382
|
+
/**
|
383
|
+
* Generated by JsPbCodeGenerator.
|
384
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
385
|
+
* server response, or constructed directly in Javascript. The array is used
|
386
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
387
|
+
* If no data is provided, the constructed object will be empty, but still
|
388
|
+
* valid.
|
389
|
+
* @extends {jspb.Message}
|
390
|
+
* @constructor
|
391
|
+
*/
|
392
|
+
TronWebProto.UnDelegateResourceContract = function (opt_data) {
|
393
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
394
|
+
};
|
395
|
+
goog.inherits(TronWebProto.UnDelegateResourceContract, jspb.Message);
|
396
|
+
if (goog.DEBUG && !COMPILED) {
|
397
|
+
/**
|
398
|
+
* @public
|
399
|
+
* @override
|
400
|
+
*/
|
401
|
+
TronWebProto.UnDelegateResourceContract.displayName = 'TronWebProto.UnDelegateResourceContract';
|
402
|
+
}
|
403
|
+
/**
|
404
|
+
* Generated by JsPbCodeGenerator.
|
405
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
406
|
+
* server response, or constructed directly in Javascript. The array is used
|
407
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
408
|
+
* If no data is provided, the constructed object will be empty, but still
|
409
|
+
* valid.
|
410
|
+
* @extends {jspb.Message}
|
411
|
+
* @constructor
|
412
|
+
*/
|
413
|
+
TronWebProto.CancelAllUnfreezeV2Contract = function (opt_data) {
|
414
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
415
|
+
};
|
416
|
+
goog.inherits(TronWebProto.CancelAllUnfreezeV2Contract, jspb.Message);
|
417
|
+
if (goog.DEBUG && !COMPILED) {
|
418
|
+
/**
|
419
|
+
* @public
|
420
|
+
* @override
|
421
|
+
*/
|
422
|
+
TronWebProto.CancelAllUnfreezeV2Contract.displayName = 'TronWebProto.CancelAllUnfreezeV2Contract';
|
423
|
+
}
|
424
|
+
|
425
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
426
|
+
/**
|
427
|
+
* Creates an object representation of this proto.
|
428
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
429
|
+
* Optional fields that are not set will be set to undefined.
|
430
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
431
|
+
* For the list of reserved names please see:
|
432
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
433
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
434
|
+
* JSPB instance for transitional soy proto support:
|
435
|
+
* http://goto/soy-param-migration
|
436
|
+
* @return {!Object}
|
437
|
+
*/
|
438
|
+
TronWebProto.FreezeBalanceContract.prototype.toObject = function (opt_includeInstance) {
|
439
|
+
return TronWebProto.FreezeBalanceContract.toObject(opt_includeInstance, this);
|
440
|
+
};
|
441
|
+
|
442
|
+
/**
|
443
|
+
* Static version of the {@see toObject} method.
|
444
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
445
|
+
* the JSPB instance for transitional soy proto support:
|
446
|
+
* http://goto/soy-param-migration
|
447
|
+
* @param {!TronWebProto.FreezeBalanceContract} msg The msg instance to transform.
|
448
|
+
* @return {!Object}
|
449
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
450
|
+
*/
|
451
|
+
TronWebProto.FreezeBalanceContract.toObject = function (includeInstance, msg) {
|
452
|
+
var f,
|
453
|
+
obj = {
|
454
|
+
ownerAddress: msg.getOwnerAddress_asB64(),
|
455
|
+
frozenBalance: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
456
|
+
frozenDuration: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
457
|
+
resource: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
458
|
+
receiverAddress: msg.getReceiverAddress_asB64(),
|
459
|
+
};
|
460
|
+
|
461
|
+
if (includeInstance) {
|
462
|
+
obj.$jspbMessageInstance = msg;
|
463
|
+
}
|
464
|
+
return obj;
|
465
|
+
};
|
466
|
+
}
|
467
|
+
|
468
|
+
/**
|
469
|
+
* Deserializes binary data (in protobuf wire format).
|
470
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
471
|
+
* @return {!TronWebProto.FreezeBalanceContract}
|
472
|
+
*/
|
473
|
+
TronWebProto.FreezeBalanceContract.deserializeBinary = function (bytes) {
|
474
|
+
var reader = new jspb.BinaryReader(bytes);
|
475
|
+
var msg = new TronWebProto.FreezeBalanceContract();
|
476
|
+
return TronWebProto.FreezeBalanceContract.deserializeBinaryFromReader(msg, reader);
|
477
|
+
};
|
478
|
+
|
479
|
+
/**
|
480
|
+
* Deserializes binary data (in protobuf wire format) from the
|
481
|
+
* given reader into the given message object.
|
482
|
+
* @param {!TronWebProto.FreezeBalanceContract} msg The message object to deserialize into.
|
483
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
484
|
+
* @return {!TronWebProto.FreezeBalanceContract}
|
485
|
+
*/
|
486
|
+
TronWebProto.FreezeBalanceContract.deserializeBinaryFromReader = function (msg, reader) {
|
487
|
+
while (reader.nextField()) {
|
488
|
+
if (reader.isEndGroup()) {
|
489
|
+
break;
|
490
|
+
}
|
491
|
+
var field = reader.getFieldNumber();
|
492
|
+
switch (field) {
|
493
|
+
case 1:
|
494
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
495
|
+
msg.setOwnerAddress(value);
|
496
|
+
break;
|
497
|
+
case 2:
|
498
|
+
var value = /** @type {number} */ (reader.readInt64());
|
499
|
+
msg.setFrozenBalance(value);
|
500
|
+
break;
|
501
|
+
case 3:
|
502
|
+
var value = /** @type {number} */ (reader.readInt64());
|
503
|
+
msg.setFrozenDuration(value);
|
504
|
+
break;
|
505
|
+
case 10:
|
506
|
+
var value = /** @type {!TronWebProto.ResourceCode} */ (reader.readEnum());
|
507
|
+
msg.setResource(value);
|
508
|
+
break;
|
509
|
+
case 15:
|
510
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
511
|
+
msg.setReceiverAddress(value);
|
512
|
+
break;
|
513
|
+
default:
|
514
|
+
reader.skipField();
|
515
|
+
break;
|
516
|
+
}
|
517
|
+
}
|
518
|
+
return msg;
|
519
|
+
};
|
520
|
+
|
521
|
+
/**
|
522
|
+
* Serializes the message to binary data (in protobuf wire format).
|
523
|
+
* @return {!Uint8Array}
|
524
|
+
*/
|
525
|
+
TronWebProto.FreezeBalanceContract.prototype.serializeBinary = function () {
|
526
|
+
var writer = new jspb.BinaryWriter();
|
527
|
+
TronWebProto.FreezeBalanceContract.serializeBinaryToWriter(this, writer);
|
528
|
+
return writer.getResultBuffer();
|
529
|
+
};
|
530
|
+
|
531
|
+
/**
|
532
|
+
* Serializes the given message to binary data (in protobuf wire
|
533
|
+
* format), writing to the given BinaryWriter.
|
534
|
+
* @param {!TronWebProto.FreezeBalanceContract} message
|
535
|
+
* @param {!jspb.BinaryWriter} writer
|
536
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
537
|
+
*/
|
538
|
+
TronWebProto.FreezeBalanceContract.serializeBinaryToWriter = function (message, writer) {
|
539
|
+
var f = undefined;
|
540
|
+
f = message.getOwnerAddress_asU8();
|
541
|
+
if (f.length > 0) {
|
542
|
+
writer.writeBytes(1, f);
|
543
|
+
}
|
544
|
+
f = message.getFrozenBalance();
|
545
|
+
if (f !== 0) {
|
546
|
+
writer.writeInt64(2, f);
|
547
|
+
}
|
548
|
+
f = message.getFrozenDuration();
|
549
|
+
if (f !== 0) {
|
550
|
+
writer.writeInt64(3, f);
|
551
|
+
}
|
552
|
+
f = message.getResource();
|
553
|
+
if (f !== 0.0) {
|
554
|
+
writer.writeEnum(10, f);
|
555
|
+
}
|
556
|
+
f = message.getReceiverAddress_asU8();
|
557
|
+
if (f.length > 0) {
|
558
|
+
writer.writeBytes(15, f);
|
559
|
+
}
|
560
|
+
};
|
561
|
+
|
562
|
+
/**
|
563
|
+
* optional bytes owner_address = 1;
|
564
|
+
* @return {!(string|Uint8Array)}
|
565
|
+
*/
|
566
|
+
TronWebProto.FreezeBalanceContract.prototype.getOwnerAddress = function () {
|
567
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
568
|
+
};
|
569
|
+
|
570
|
+
/**
|
571
|
+
* optional bytes owner_address = 1;
|
572
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
573
|
+
* @return {string}
|
574
|
+
*/
|
575
|
+
TronWebProto.FreezeBalanceContract.prototype.getOwnerAddress_asB64 = function () {
|
576
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getOwnerAddress()));
|
577
|
+
};
|
578
|
+
|
579
|
+
/**
|
580
|
+
* optional bytes owner_address = 1;
|
581
|
+
* Note that Uint8Array is not supported on all browsers.
|
582
|
+
* @see http://caniuse.com/Uint8Array
|
583
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
584
|
+
* @return {!Uint8Array}
|
585
|
+
*/
|
586
|
+
TronWebProto.FreezeBalanceContract.prototype.getOwnerAddress_asU8 = function () {
|
587
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getOwnerAddress()));
|
588
|
+
};
|
589
|
+
|
590
|
+
/**
|
591
|
+
* @param {!(string|Uint8Array)} value
|
592
|
+
* @return {!TronWebProto.FreezeBalanceContract} returns this
|
593
|
+
*/
|
594
|
+
TronWebProto.FreezeBalanceContract.prototype.setOwnerAddress = function (value) {
|
595
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
596
|
+
};
|
597
|
+
|
598
|
+
/**
|
599
|
+
* optional int64 frozen_balance = 2;
|
600
|
+
* @return {number}
|
601
|
+
*/
|
602
|
+
TronWebProto.FreezeBalanceContract.prototype.getFrozenBalance = function () {
|
603
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
604
|
+
};
|
605
|
+
|
606
|
+
/**
|
607
|
+
* @param {number} value
|
608
|
+
* @return {!TronWebProto.FreezeBalanceContract} returns this
|
609
|
+
*/
|
610
|
+
TronWebProto.FreezeBalanceContract.prototype.setFrozenBalance = function (value) {
|
611
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
612
|
+
};
|
613
|
+
|
614
|
+
/**
|
615
|
+
* optional int64 frozen_duration = 3;
|
616
|
+
* @return {number}
|
617
|
+
*/
|
618
|
+
TronWebProto.FreezeBalanceContract.prototype.getFrozenDuration = function () {
|
619
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
620
|
+
};
|
621
|
+
|
622
|
+
/**
|
623
|
+
* @param {number} value
|
624
|
+
* @return {!TronWebProto.FreezeBalanceContract} returns this
|
625
|
+
*/
|
626
|
+
TronWebProto.FreezeBalanceContract.prototype.setFrozenDuration = function (value) {
|
627
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
628
|
+
};
|
629
|
+
|
630
|
+
/**
|
631
|
+
* optional ResourceCode resource = 10;
|
632
|
+
* @return {!TronWebProto.ResourceCode}
|
633
|
+
*/
|
634
|
+
TronWebProto.FreezeBalanceContract.prototype.getResource = function () {
|
635
|
+
return /** @type {!TronWebProto.ResourceCode} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
636
|
+
};
|
637
|
+
|
638
|
+
/**
|
639
|
+
* @param {!TronWebProto.ResourceCode} value
|
640
|
+
* @return {!TronWebProto.FreezeBalanceContract} returns this
|
641
|
+
*/
|
642
|
+
TronWebProto.FreezeBalanceContract.prototype.setResource = function (value) {
|
643
|
+
return jspb.Message.setProto3EnumField(this, 10, value);
|
644
|
+
};
|
645
|
+
|
646
|
+
/**
|
647
|
+
* optional bytes receiver_address = 15;
|
648
|
+
* @return {!(string|Uint8Array)}
|
649
|
+
*/
|
650
|
+
TronWebProto.FreezeBalanceContract.prototype.getReceiverAddress = function () {
|
651
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 15, ''));
|
652
|
+
};
|
653
|
+
|
654
|
+
/**
|
655
|
+
* optional bytes receiver_address = 15;
|
656
|
+
* This is a type-conversion wrapper around `getReceiverAddress()`
|
657
|
+
* @return {string}
|
658
|
+
*/
|
659
|
+
TronWebProto.FreezeBalanceContract.prototype.getReceiverAddress_asB64 = function () {
|
660
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getReceiverAddress()));
|
661
|
+
};
|
662
|
+
|
663
|
+
/**
|
664
|
+
* optional bytes receiver_address = 15;
|
665
|
+
* Note that Uint8Array is not supported on all browsers.
|
666
|
+
* @see http://caniuse.com/Uint8Array
|
667
|
+
* This is a type-conversion wrapper around `getReceiverAddress()`
|
668
|
+
* @return {!Uint8Array}
|
669
|
+
*/
|
670
|
+
TronWebProto.FreezeBalanceContract.prototype.getReceiverAddress_asU8 = function () {
|
671
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getReceiverAddress()));
|
672
|
+
};
|
673
|
+
|
674
|
+
/**
|
675
|
+
* @param {!(string|Uint8Array)} value
|
676
|
+
* @return {!TronWebProto.FreezeBalanceContract} returns this
|
677
|
+
*/
|
678
|
+
TronWebProto.FreezeBalanceContract.prototype.setReceiverAddress = function (value) {
|
679
|
+
return jspb.Message.setProto3BytesField(this, 15, value);
|
680
|
+
};
|
681
|
+
|
682
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
683
|
+
/**
|
684
|
+
* Creates an object representation of this proto.
|
685
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
686
|
+
* Optional fields that are not set will be set to undefined.
|
687
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
688
|
+
* For the list of reserved names please see:
|
689
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
690
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
691
|
+
* JSPB instance for transitional soy proto support:
|
692
|
+
* http://goto/soy-param-migration
|
693
|
+
* @return {!Object}
|
694
|
+
*/
|
695
|
+
TronWebProto.UnfreezeBalanceContract.prototype.toObject = function (opt_includeInstance) {
|
696
|
+
return TronWebProto.UnfreezeBalanceContract.toObject(opt_includeInstance, this);
|
697
|
+
};
|
698
|
+
|
699
|
+
/**
|
700
|
+
* Static version of the {@see toObject} method.
|
701
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
702
|
+
* the JSPB instance for transitional soy proto support:
|
703
|
+
* http://goto/soy-param-migration
|
704
|
+
* @param {!TronWebProto.UnfreezeBalanceContract} msg The msg instance to transform.
|
705
|
+
* @return {!Object}
|
706
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
707
|
+
*/
|
708
|
+
TronWebProto.UnfreezeBalanceContract.toObject = function (includeInstance, msg) {
|
709
|
+
var f,
|
710
|
+
obj = {
|
711
|
+
ownerAddress: msg.getOwnerAddress_asB64(),
|
712
|
+
resource: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
713
|
+
receiverAddress: msg.getReceiverAddress_asB64(),
|
714
|
+
};
|
715
|
+
|
716
|
+
if (includeInstance) {
|
717
|
+
obj.$jspbMessageInstance = msg;
|
718
|
+
}
|
719
|
+
return obj;
|
720
|
+
};
|
721
|
+
}
|
722
|
+
|
723
|
+
/**
|
724
|
+
* Deserializes binary data (in protobuf wire format).
|
725
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
726
|
+
* @return {!TronWebProto.UnfreezeBalanceContract}
|
727
|
+
*/
|
728
|
+
TronWebProto.UnfreezeBalanceContract.deserializeBinary = function (bytes) {
|
729
|
+
var reader = new jspb.BinaryReader(bytes);
|
730
|
+
var msg = new TronWebProto.UnfreezeBalanceContract();
|
731
|
+
return TronWebProto.UnfreezeBalanceContract.deserializeBinaryFromReader(msg, reader);
|
732
|
+
};
|
733
|
+
|
734
|
+
/**
|
735
|
+
* Deserializes binary data (in protobuf wire format) from the
|
736
|
+
* given reader into the given message object.
|
737
|
+
* @param {!TronWebProto.UnfreezeBalanceContract} msg The message object to deserialize into.
|
738
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
739
|
+
* @return {!TronWebProto.UnfreezeBalanceContract}
|
740
|
+
*/
|
741
|
+
TronWebProto.UnfreezeBalanceContract.deserializeBinaryFromReader = function (msg, reader) {
|
742
|
+
while (reader.nextField()) {
|
743
|
+
if (reader.isEndGroup()) {
|
744
|
+
break;
|
745
|
+
}
|
746
|
+
var field = reader.getFieldNumber();
|
747
|
+
switch (field) {
|
748
|
+
case 1:
|
749
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
750
|
+
msg.setOwnerAddress(value);
|
751
|
+
break;
|
752
|
+
case 10:
|
753
|
+
var value = /** @type {!TronWebProto.ResourceCode} */ (reader.readEnum());
|
754
|
+
msg.setResource(value);
|
755
|
+
break;
|
756
|
+
case 15:
|
757
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
758
|
+
msg.setReceiverAddress(value);
|
759
|
+
break;
|
760
|
+
default:
|
761
|
+
reader.skipField();
|
762
|
+
break;
|
763
|
+
}
|
764
|
+
}
|
765
|
+
return msg;
|
766
|
+
};
|
767
|
+
|
768
|
+
/**
|
769
|
+
* Serializes the message to binary data (in protobuf wire format).
|
770
|
+
* @return {!Uint8Array}
|
771
|
+
*/
|
772
|
+
TronWebProto.UnfreezeBalanceContract.prototype.serializeBinary = function () {
|
773
|
+
var writer = new jspb.BinaryWriter();
|
774
|
+
TronWebProto.UnfreezeBalanceContract.serializeBinaryToWriter(this, writer);
|
775
|
+
return writer.getResultBuffer();
|
776
|
+
};
|
777
|
+
|
778
|
+
/**
|
779
|
+
* Serializes the given message to binary data (in protobuf wire
|
780
|
+
* format), writing to the given BinaryWriter.
|
781
|
+
* @param {!TronWebProto.UnfreezeBalanceContract} message
|
782
|
+
* @param {!jspb.BinaryWriter} writer
|
783
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
784
|
+
*/
|
785
|
+
TronWebProto.UnfreezeBalanceContract.serializeBinaryToWriter = function (message, writer) {
|
786
|
+
var f = undefined;
|
787
|
+
f = message.getOwnerAddress_asU8();
|
788
|
+
if (f.length > 0) {
|
789
|
+
writer.writeBytes(1, f);
|
790
|
+
}
|
791
|
+
f = message.getResource();
|
792
|
+
if (f !== 0.0) {
|
793
|
+
writer.writeEnum(10, f);
|
794
|
+
}
|
795
|
+
f = message.getReceiverAddress_asU8();
|
796
|
+
if (f.length > 0) {
|
797
|
+
writer.writeBytes(15, f);
|
798
|
+
}
|
799
|
+
};
|
800
|
+
|
801
|
+
/**
|
802
|
+
* optional bytes owner_address = 1;
|
803
|
+
* @return {!(string|Uint8Array)}
|
804
|
+
*/
|
805
|
+
TronWebProto.UnfreezeBalanceContract.prototype.getOwnerAddress = function () {
|
806
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
807
|
+
};
|
808
|
+
|
809
|
+
/**
|
810
|
+
* optional bytes owner_address = 1;
|
811
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
812
|
+
* @return {string}
|
813
|
+
*/
|
814
|
+
TronWebProto.UnfreezeBalanceContract.prototype.getOwnerAddress_asB64 = function () {
|
815
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getOwnerAddress()));
|
816
|
+
};
|
817
|
+
|
818
|
+
/**
|
819
|
+
* optional bytes owner_address = 1;
|
820
|
+
* Note that Uint8Array is not supported on all browsers.
|
821
|
+
* @see http://caniuse.com/Uint8Array
|
822
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
823
|
+
* @return {!Uint8Array}
|
824
|
+
*/
|
825
|
+
TronWebProto.UnfreezeBalanceContract.prototype.getOwnerAddress_asU8 = function () {
|
826
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getOwnerAddress()));
|
827
|
+
};
|
828
|
+
|
829
|
+
/**
|
830
|
+
* @param {!(string|Uint8Array)} value
|
831
|
+
* @return {!TronWebProto.UnfreezeBalanceContract} returns this
|
832
|
+
*/
|
833
|
+
TronWebProto.UnfreezeBalanceContract.prototype.setOwnerAddress = function (value) {
|
834
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
835
|
+
};
|
836
|
+
|
837
|
+
/**
|
838
|
+
* optional ResourceCode resource = 10;
|
839
|
+
* @return {!TronWebProto.ResourceCode}
|
840
|
+
*/
|
841
|
+
TronWebProto.UnfreezeBalanceContract.prototype.getResource = function () {
|
842
|
+
return /** @type {!TronWebProto.ResourceCode} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
843
|
+
};
|
844
|
+
|
845
|
+
/**
|
846
|
+
* @param {!TronWebProto.ResourceCode} value
|
847
|
+
* @return {!TronWebProto.UnfreezeBalanceContract} returns this
|
848
|
+
*/
|
849
|
+
TronWebProto.UnfreezeBalanceContract.prototype.setResource = function (value) {
|
850
|
+
return jspb.Message.setProto3EnumField(this, 10, value);
|
851
|
+
};
|
852
|
+
|
853
|
+
/**
|
854
|
+
* optional bytes receiver_address = 15;
|
855
|
+
* @return {!(string|Uint8Array)}
|
856
|
+
*/
|
857
|
+
TronWebProto.UnfreezeBalanceContract.prototype.getReceiverAddress = function () {
|
858
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 15, ''));
|
859
|
+
};
|
860
|
+
|
861
|
+
/**
|
862
|
+
* optional bytes receiver_address = 15;
|
863
|
+
* This is a type-conversion wrapper around `getReceiverAddress()`
|
864
|
+
* @return {string}
|
865
|
+
*/
|
866
|
+
TronWebProto.UnfreezeBalanceContract.prototype.getReceiverAddress_asB64 = function () {
|
867
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getReceiverAddress()));
|
868
|
+
};
|
869
|
+
|
870
|
+
/**
|
871
|
+
* optional bytes receiver_address = 15;
|
872
|
+
* Note that Uint8Array is not supported on all browsers.
|
873
|
+
* @see http://caniuse.com/Uint8Array
|
874
|
+
* This is a type-conversion wrapper around `getReceiverAddress()`
|
875
|
+
* @return {!Uint8Array}
|
876
|
+
*/
|
877
|
+
TronWebProto.UnfreezeBalanceContract.prototype.getReceiverAddress_asU8 = function () {
|
878
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getReceiverAddress()));
|
879
|
+
};
|
880
|
+
|
881
|
+
/**
|
882
|
+
* @param {!(string|Uint8Array)} value
|
883
|
+
* @return {!TronWebProto.UnfreezeBalanceContract} returns this
|
884
|
+
*/
|
885
|
+
TronWebProto.UnfreezeBalanceContract.prototype.setReceiverAddress = function (value) {
|
886
|
+
return jspb.Message.setProto3BytesField(this, 15, value);
|
887
|
+
};
|
888
|
+
|
889
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
890
|
+
/**
|
891
|
+
* Creates an object representation of this proto.
|
892
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
893
|
+
* Optional fields that are not set will be set to undefined.
|
894
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
895
|
+
* For the list of reserved names please see:
|
896
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
897
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
898
|
+
* JSPB instance for transitional soy proto support:
|
899
|
+
* http://goto/soy-param-migration
|
900
|
+
* @return {!Object}
|
901
|
+
*/
|
902
|
+
TronWebProto.WithdrawBalanceContract.prototype.toObject = function (opt_includeInstance) {
|
903
|
+
return TronWebProto.WithdrawBalanceContract.toObject(opt_includeInstance, this);
|
904
|
+
};
|
905
|
+
|
906
|
+
/**
|
907
|
+
* Static version of the {@see toObject} method.
|
908
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
909
|
+
* the JSPB instance for transitional soy proto support:
|
910
|
+
* http://goto/soy-param-migration
|
911
|
+
* @param {!TronWebProto.WithdrawBalanceContract} msg The msg instance to transform.
|
912
|
+
* @return {!Object}
|
913
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
914
|
+
*/
|
915
|
+
TronWebProto.WithdrawBalanceContract.toObject = function (includeInstance, msg) {
|
916
|
+
var f,
|
917
|
+
obj = {
|
918
|
+
ownerAddress: msg.getOwnerAddress_asB64(),
|
919
|
+
};
|
920
|
+
|
921
|
+
if (includeInstance) {
|
922
|
+
obj.$jspbMessageInstance = msg;
|
923
|
+
}
|
924
|
+
return obj;
|
925
|
+
};
|
926
|
+
}
|
927
|
+
|
928
|
+
/**
|
929
|
+
* Deserializes binary data (in protobuf wire format).
|
930
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
931
|
+
* @return {!TronWebProto.WithdrawBalanceContract}
|
932
|
+
*/
|
933
|
+
TronWebProto.WithdrawBalanceContract.deserializeBinary = function (bytes) {
|
934
|
+
var reader = new jspb.BinaryReader(bytes);
|
935
|
+
var msg = new TronWebProto.WithdrawBalanceContract();
|
936
|
+
return TronWebProto.WithdrawBalanceContract.deserializeBinaryFromReader(msg, reader);
|
937
|
+
};
|
938
|
+
|
939
|
+
/**
|
940
|
+
* Deserializes binary data (in protobuf wire format) from the
|
941
|
+
* given reader into the given message object.
|
942
|
+
* @param {!TronWebProto.WithdrawBalanceContract} msg The message object to deserialize into.
|
943
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
944
|
+
* @return {!TronWebProto.WithdrawBalanceContract}
|
945
|
+
*/
|
946
|
+
TronWebProto.WithdrawBalanceContract.deserializeBinaryFromReader = function (msg, reader) {
|
947
|
+
while (reader.nextField()) {
|
948
|
+
if (reader.isEndGroup()) {
|
949
|
+
break;
|
950
|
+
}
|
951
|
+
var field = reader.getFieldNumber();
|
952
|
+
switch (field) {
|
953
|
+
case 1:
|
954
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
955
|
+
msg.setOwnerAddress(value);
|
956
|
+
break;
|
957
|
+
default:
|
958
|
+
reader.skipField();
|
959
|
+
break;
|
960
|
+
}
|
961
|
+
}
|
962
|
+
return msg;
|
963
|
+
};
|
964
|
+
|
965
|
+
/**
|
966
|
+
* Serializes the message to binary data (in protobuf wire format).
|
967
|
+
* @return {!Uint8Array}
|
968
|
+
*/
|
969
|
+
TronWebProto.WithdrawBalanceContract.prototype.serializeBinary = function () {
|
970
|
+
var writer = new jspb.BinaryWriter();
|
971
|
+
TronWebProto.WithdrawBalanceContract.serializeBinaryToWriter(this, writer);
|
972
|
+
return writer.getResultBuffer();
|
973
|
+
};
|
974
|
+
|
975
|
+
/**
|
976
|
+
* Serializes the given message to binary data (in protobuf wire
|
977
|
+
* format), writing to the given BinaryWriter.
|
978
|
+
* @param {!TronWebProto.WithdrawBalanceContract} message
|
979
|
+
* @param {!jspb.BinaryWriter} writer
|
980
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
981
|
+
*/
|
982
|
+
TronWebProto.WithdrawBalanceContract.serializeBinaryToWriter = function (message, writer) {
|
983
|
+
var f = undefined;
|
984
|
+
f = message.getOwnerAddress_asU8();
|
985
|
+
if (f.length > 0) {
|
986
|
+
writer.writeBytes(1, f);
|
987
|
+
}
|
988
|
+
};
|
989
|
+
|
990
|
+
/**
|
991
|
+
* optional bytes owner_address = 1;
|
992
|
+
* @return {!(string|Uint8Array)}
|
993
|
+
*/
|
994
|
+
TronWebProto.WithdrawBalanceContract.prototype.getOwnerAddress = function () {
|
995
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
996
|
+
};
|
997
|
+
|
998
|
+
/**
|
999
|
+
* optional bytes owner_address = 1;
|
1000
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
1001
|
+
* @return {string}
|
1002
|
+
*/
|
1003
|
+
TronWebProto.WithdrawBalanceContract.prototype.getOwnerAddress_asB64 = function () {
|
1004
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getOwnerAddress()));
|
1005
|
+
};
|
1006
|
+
|
1007
|
+
/**
|
1008
|
+
* optional bytes owner_address = 1;
|
1009
|
+
* Note that Uint8Array is not supported on all browsers.
|
1010
|
+
* @see http://caniuse.com/Uint8Array
|
1011
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
1012
|
+
* @return {!Uint8Array}
|
1013
|
+
*/
|
1014
|
+
TronWebProto.WithdrawBalanceContract.prototype.getOwnerAddress_asU8 = function () {
|
1015
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getOwnerAddress()));
|
1016
|
+
};
|
1017
|
+
|
1018
|
+
/**
|
1019
|
+
* @param {!(string|Uint8Array)} value
|
1020
|
+
* @return {!TronWebProto.WithdrawBalanceContract} returns this
|
1021
|
+
*/
|
1022
|
+
TronWebProto.WithdrawBalanceContract.prototype.setOwnerAddress = function (value) {
|
1023
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
1024
|
+
};
|
1025
|
+
|
1026
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1027
|
+
/**
|
1028
|
+
* Creates an object representation of this proto.
|
1029
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1030
|
+
* Optional fields that are not set will be set to undefined.
|
1031
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1032
|
+
* For the list of reserved names please see:
|
1033
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1034
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1035
|
+
* JSPB instance for transitional soy proto support:
|
1036
|
+
* http://goto/soy-param-migration
|
1037
|
+
* @return {!Object}
|
1038
|
+
*/
|
1039
|
+
TronWebProto.TransferContract.prototype.toObject = function (opt_includeInstance) {
|
1040
|
+
return TronWebProto.TransferContract.toObject(opt_includeInstance, this);
|
1041
|
+
};
|
1042
|
+
|
1043
|
+
/**
|
1044
|
+
* Static version of the {@see toObject} method.
|
1045
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1046
|
+
* the JSPB instance for transitional soy proto support:
|
1047
|
+
* http://goto/soy-param-migration
|
1048
|
+
* @param {!TronWebProto.TransferContract} msg The msg instance to transform.
|
1049
|
+
* @return {!Object}
|
1050
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1051
|
+
*/
|
1052
|
+
TronWebProto.TransferContract.toObject = function (includeInstance, msg) {
|
1053
|
+
var f,
|
1054
|
+
obj = {
|
1055
|
+
ownerAddress: msg.getOwnerAddress_asB64(),
|
1056
|
+
toAddress: msg.getToAddress_asB64(),
|
1057
|
+
amount: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
1058
|
+
};
|
1059
|
+
|
1060
|
+
if (includeInstance) {
|
1061
|
+
obj.$jspbMessageInstance = msg;
|
1062
|
+
}
|
1063
|
+
return obj;
|
1064
|
+
};
|
1065
|
+
}
|
1066
|
+
|
1067
|
+
/**
|
1068
|
+
* Deserializes binary data (in protobuf wire format).
|
1069
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1070
|
+
* @return {!TronWebProto.TransferContract}
|
1071
|
+
*/
|
1072
|
+
TronWebProto.TransferContract.deserializeBinary = function (bytes) {
|
1073
|
+
var reader = new jspb.BinaryReader(bytes);
|
1074
|
+
var msg = new TronWebProto.TransferContract();
|
1075
|
+
return TronWebProto.TransferContract.deserializeBinaryFromReader(msg, reader);
|
1076
|
+
};
|
1077
|
+
|
1078
|
+
/**
|
1079
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1080
|
+
* given reader into the given message object.
|
1081
|
+
* @param {!TronWebProto.TransferContract} msg The message object to deserialize into.
|
1082
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1083
|
+
* @return {!TronWebProto.TransferContract}
|
1084
|
+
*/
|
1085
|
+
TronWebProto.TransferContract.deserializeBinaryFromReader = function (msg, reader) {
|
1086
|
+
while (reader.nextField()) {
|
1087
|
+
if (reader.isEndGroup()) {
|
1088
|
+
break;
|
1089
|
+
}
|
1090
|
+
var field = reader.getFieldNumber();
|
1091
|
+
switch (field) {
|
1092
|
+
case 1:
|
1093
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
1094
|
+
msg.setOwnerAddress(value);
|
1095
|
+
break;
|
1096
|
+
case 2:
|
1097
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
1098
|
+
msg.setToAddress(value);
|
1099
|
+
break;
|
1100
|
+
case 3:
|
1101
|
+
var value = /** @type {number} */ (reader.readInt64());
|
1102
|
+
msg.setAmount(value);
|
1103
|
+
break;
|
1104
|
+
default:
|
1105
|
+
reader.skipField();
|
1106
|
+
break;
|
1107
|
+
}
|
1108
|
+
}
|
1109
|
+
return msg;
|
1110
|
+
};
|
1111
|
+
|
1112
|
+
/**
|
1113
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1114
|
+
* @return {!Uint8Array}
|
1115
|
+
*/
|
1116
|
+
TronWebProto.TransferContract.prototype.serializeBinary = function () {
|
1117
|
+
var writer = new jspb.BinaryWriter();
|
1118
|
+
TronWebProto.TransferContract.serializeBinaryToWriter(this, writer);
|
1119
|
+
return writer.getResultBuffer();
|
1120
|
+
};
|
1121
|
+
|
1122
|
+
/**
|
1123
|
+
* Serializes the given message to binary data (in protobuf wire
|
1124
|
+
* format), writing to the given BinaryWriter.
|
1125
|
+
* @param {!TronWebProto.TransferContract} message
|
1126
|
+
* @param {!jspb.BinaryWriter} writer
|
1127
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1128
|
+
*/
|
1129
|
+
TronWebProto.TransferContract.serializeBinaryToWriter = function (message, writer) {
|
1130
|
+
var f = undefined;
|
1131
|
+
f = message.getOwnerAddress_asU8();
|
1132
|
+
if (f.length > 0) {
|
1133
|
+
writer.writeBytes(1, f);
|
1134
|
+
}
|
1135
|
+
f = message.getToAddress_asU8();
|
1136
|
+
if (f.length > 0) {
|
1137
|
+
writer.writeBytes(2, f);
|
1138
|
+
}
|
1139
|
+
f = message.getAmount();
|
1140
|
+
if (f !== 0) {
|
1141
|
+
writer.writeInt64(3, f);
|
1142
|
+
}
|
1143
|
+
};
|
1144
|
+
|
1145
|
+
/**
|
1146
|
+
* optional bytes owner_address = 1;
|
1147
|
+
* @return {!(string|Uint8Array)}
|
1148
|
+
*/
|
1149
|
+
TronWebProto.TransferContract.prototype.getOwnerAddress = function () {
|
1150
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
1151
|
+
};
|
1152
|
+
|
1153
|
+
/**
|
1154
|
+
* optional bytes owner_address = 1;
|
1155
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
1156
|
+
* @return {string}
|
1157
|
+
*/
|
1158
|
+
TronWebProto.TransferContract.prototype.getOwnerAddress_asB64 = function () {
|
1159
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getOwnerAddress()));
|
1160
|
+
};
|
1161
|
+
|
1162
|
+
/**
|
1163
|
+
* optional bytes owner_address = 1;
|
1164
|
+
* Note that Uint8Array is not supported on all browsers.
|
1165
|
+
* @see http://caniuse.com/Uint8Array
|
1166
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
1167
|
+
* @return {!Uint8Array}
|
1168
|
+
*/
|
1169
|
+
TronWebProto.TransferContract.prototype.getOwnerAddress_asU8 = function () {
|
1170
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getOwnerAddress()));
|
1171
|
+
};
|
1172
|
+
|
1173
|
+
/**
|
1174
|
+
* @param {!(string|Uint8Array)} value
|
1175
|
+
* @return {!TronWebProto.TransferContract} returns this
|
1176
|
+
*/
|
1177
|
+
TronWebProto.TransferContract.prototype.setOwnerAddress = function (value) {
|
1178
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
1179
|
+
};
|
1180
|
+
|
1181
|
+
/**
|
1182
|
+
* optional bytes to_address = 2;
|
1183
|
+
* @return {!(string|Uint8Array)}
|
1184
|
+
*/
|
1185
|
+
TronWebProto.TransferContract.prototype.getToAddress = function () {
|
1186
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ''));
|
1187
|
+
};
|
1188
|
+
|
1189
|
+
/**
|
1190
|
+
* optional bytes to_address = 2;
|
1191
|
+
* This is a type-conversion wrapper around `getToAddress()`
|
1192
|
+
* @return {string}
|
1193
|
+
*/
|
1194
|
+
TronWebProto.TransferContract.prototype.getToAddress_asB64 = function () {
|
1195
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getToAddress()));
|
1196
|
+
};
|
1197
|
+
|
1198
|
+
/**
|
1199
|
+
* optional bytes to_address = 2;
|
1200
|
+
* Note that Uint8Array is not supported on all browsers.
|
1201
|
+
* @see http://caniuse.com/Uint8Array
|
1202
|
+
* This is a type-conversion wrapper around `getToAddress()`
|
1203
|
+
* @return {!Uint8Array}
|
1204
|
+
*/
|
1205
|
+
TronWebProto.TransferContract.prototype.getToAddress_asU8 = function () {
|
1206
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getToAddress()));
|
1207
|
+
};
|
1208
|
+
|
1209
|
+
/**
|
1210
|
+
* @param {!(string|Uint8Array)} value
|
1211
|
+
* @return {!TronWebProto.TransferContract} returns this
|
1212
|
+
*/
|
1213
|
+
TronWebProto.TransferContract.prototype.setToAddress = function (value) {
|
1214
|
+
return jspb.Message.setProto3BytesField(this, 2, value);
|
1215
|
+
};
|
1216
|
+
|
1217
|
+
/**
|
1218
|
+
* optional int64 amount = 3;
|
1219
|
+
* @return {number}
|
1220
|
+
*/
|
1221
|
+
TronWebProto.TransferContract.prototype.getAmount = function () {
|
1222
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
1223
|
+
};
|
1224
|
+
|
1225
|
+
/**
|
1226
|
+
* @param {number} value
|
1227
|
+
* @return {!TronWebProto.TransferContract} returns this
|
1228
|
+
*/
|
1229
|
+
TronWebProto.TransferContract.prototype.setAmount = function (value) {
|
1230
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
1231
|
+
};
|
1232
|
+
|
1233
|
+
/**
|
1234
|
+
* List of repeated fields within this message type.
|
1235
|
+
* @private {!Array<number>}
|
1236
|
+
* @const
|
1237
|
+
*/
|
1238
|
+
TronWebProto.TransactionBalanceTrace.repeatedFields_ = [2];
|
1239
|
+
|
1240
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1241
|
+
/**
|
1242
|
+
* Creates an object representation of this proto.
|
1243
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1244
|
+
* Optional fields that are not set will be set to undefined.
|
1245
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1246
|
+
* For the list of reserved names please see:
|
1247
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1248
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1249
|
+
* JSPB instance for transitional soy proto support:
|
1250
|
+
* http://goto/soy-param-migration
|
1251
|
+
* @return {!Object}
|
1252
|
+
*/
|
1253
|
+
TronWebProto.TransactionBalanceTrace.prototype.toObject = function (opt_includeInstance) {
|
1254
|
+
return TronWebProto.TransactionBalanceTrace.toObject(opt_includeInstance, this);
|
1255
|
+
};
|
1256
|
+
|
1257
|
+
/**
|
1258
|
+
* Static version of the {@see toObject} method.
|
1259
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1260
|
+
* the JSPB instance for transitional soy proto support:
|
1261
|
+
* http://goto/soy-param-migration
|
1262
|
+
* @param {!TronWebProto.TransactionBalanceTrace} msg The msg instance to transform.
|
1263
|
+
* @return {!Object}
|
1264
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1265
|
+
*/
|
1266
|
+
TronWebProto.TransactionBalanceTrace.toObject = function (includeInstance, msg) {
|
1267
|
+
var f,
|
1268
|
+
obj = {
|
1269
|
+
transactionIdentifier: msg.getTransactionIdentifier_asB64(),
|
1270
|
+
operationList: jspb.Message.toObjectList(
|
1271
|
+
msg.getOperationList(),
|
1272
|
+
TronWebProto.TransactionBalanceTrace.Operation.toObject,
|
1273
|
+
includeInstance
|
1274
|
+
),
|
1275
|
+
type: jspb.Message.getFieldWithDefault(msg, 3, ''),
|
1276
|
+
status: jspb.Message.getFieldWithDefault(msg, 4, ''),
|
1277
|
+
};
|
1278
|
+
|
1279
|
+
if (includeInstance) {
|
1280
|
+
obj.$jspbMessageInstance = msg;
|
1281
|
+
}
|
1282
|
+
return obj;
|
1283
|
+
};
|
1284
|
+
}
|
1285
|
+
|
1286
|
+
/**
|
1287
|
+
* Deserializes binary data (in protobuf wire format).
|
1288
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1289
|
+
* @return {!TronWebProto.TransactionBalanceTrace}
|
1290
|
+
*/
|
1291
|
+
TronWebProto.TransactionBalanceTrace.deserializeBinary = function (bytes) {
|
1292
|
+
var reader = new jspb.BinaryReader(bytes);
|
1293
|
+
var msg = new TronWebProto.TransactionBalanceTrace();
|
1294
|
+
return TronWebProto.TransactionBalanceTrace.deserializeBinaryFromReader(msg, reader);
|
1295
|
+
};
|
1296
|
+
|
1297
|
+
/**
|
1298
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1299
|
+
* given reader into the given message object.
|
1300
|
+
* @param {!TronWebProto.TransactionBalanceTrace} msg The message object to deserialize into.
|
1301
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1302
|
+
* @return {!TronWebProto.TransactionBalanceTrace}
|
1303
|
+
*/
|
1304
|
+
TronWebProto.TransactionBalanceTrace.deserializeBinaryFromReader = function (msg, reader) {
|
1305
|
+
while (reader.nextField()) {
|
1306
|
+
if (reader.isEndGroup()) {
|
1307
|
+
break;
|
1308
|
+
}
|
1309
|
+
var field = reader.getFieldNumber();
|
1310
|
+
switch (field) {
|
1311
|
+
case 1:
|
1312
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
1313
|
+
msg.setTransactionIdentifier(value);
|
1314
|
+
break;
|
1315
|
+
case 2:
|
1316
|
+
var value = new TronWebProto.TransactionBalanceTrace.Operation();
|
1317
|
+
reader.readMessage(value, TronWebProto.TransactionBalanceTrace.Operation.deserializeBinaryFromReader);
|
1318
|
+
msg.addOperation(value);
|
1319
|
+
break;
|
1320
|
+
case 3:
|
1321
|
+
var value = /** @type {string} */ (reader.readString());
|
1322
|
+
msg.setType(value);
|
1323
|
+
break;
|
1324
|
+
case 4:
|
1325
|
+
var value = /** @type {string} */ (reader.readString());
|
1326
|
+
msg.setStatus(value);
|
1327
|
+
break;
|
1328
|
+
default:
|
1329
|
+
reader.skipField();
|
1330
|
+
break;
|
1331
|
+
}
|
1332
|
+
}
|
1333
|
+
return msg;
|
1334
|
+
};
|
1335
|
+
|
1336
|
+
/**
|
1337
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1338
|
+
* @return {!Uint8Array}
|
1339
|
+
*/
|
1340
|
+
TronWebProto.TransactionBalanceTrace.prototype.serializeBinary = function () {
|
1341
|
+
var writer = new jspb.BinaryWriter();
|
1342
|
+
TronWebProto.TransactionBalanceTrace.serializeBinaryToWriter(this, writer);
|
1343
|
+
return writer.getResultBuffer();
|
1344
|
+
};
|
1345
|
+
|
1346
|
+
/**
|
1347
|
+
* Serializes the given message to binary data (in protobuf wire
|
1348
|
+
* format), writing to the given BinaryWriter.
|
1349
|
+
* @param {!TronWebProto.TransactionBalanceTrace} message
|
1350
|
+
* @param {!jspb.BinaryWriter} writer
|
1351
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1352
|
+
*/
|
1353
|
+
TronWebProto.TransactionBalanceTrace.serializeBinaryToWriter = function (message, writer) {
|
1354
|
+
var f = undefined;
|
1355
|
+
f = message.getTransactionIdentifier_asU8();
|
1356
|
+
if (f.length > 0) {
|
1357
|
+
writer.writeBytes(1, f);
|
1358
|
+
}
|
1359
|
+
f = message.getOperationList();
|
1360
|
+
if (f.length > 0) {
|
1361
|
+
writer.writeRepeatedMessage(2, f, TronWebProto.TransactionBalanceTrace.Operation.serializeBinaryToWriter);
|
1362
|
+
}
|
1363
|
+
f = message.getType();
|
1364
|
+
if (f.length > 0) {
|
1365
|
+
writer.writeString(3, f);
|
1366
|
+
}
|
1367
|
+
f = message.getStatus();
|
1368
|
+
if (f.length > 0) {
|
1369
|
+
writer.writeString(4, f);
|
1370
|
+
}
|
1371
|
+
};
|
1372
|
+
|
1373
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1374
|
+
/**
|
1375
|
+
* Creates an object representation of this proto.
|
1376
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1377
|
+
* Optional fields that are not set will be set to undefined.
|
1378
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1379
|
+
* For the list of reserved names please see:
|
1380
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1381
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1382
|
+
* JSPB instance for transitional soy proto support:
|
1383
|
+
* http://goto/soy-param-migration
|
1384
|
+
* @return {!Object}
|
1385
|
+
*/
|
1386
|
+
TronWebProto.TransactionBalanceTrace.Operation.prototype.toObject = function (opt_includeInstance) {
|
1387
|
+
return TronWebProto.TransactionBalanceTrace.Operation.toObject(opt_includeInstance, this);
|
1388
|
+
};
|
1389
|
+
|
1390
|
+
/**
|
1391
|
+
* Static version of the {@see toObject} method.
|
1392
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1393
|
+
* the JSPB instance for transitional soy proto support:
|
1394
|
+
* http://goto/soy-param-migration
|
1395
|
+
* @param {!TronWebProto.TransactionBalanceTrace.Operation} msg The msg instance to transform.
|
1396
|
+
* @return {!Object}
|
1397
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1398
|
+
*/
|
1399
|
+
TronWebProto.TransactionBalanceTrace.Operation.toObject = function (includeInstance, msg) {
|
1400
|
+
var f,
|
1401
|
+
obj = {
|
1402
|
+
operationIdentifier: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1403
|
+
address: msg.getAddress_asB64(),
|
1404
|
+
amount: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
1405
|
+
};
|
1406
|
+
|
1407
|
+
if (includeInstance) {
|
1408
|
+
obj.$jspbMessageInstance = msg;
|
1409
|
+
}
|
1410
|
+
return obj;
|
1411
|
+
};
|
1412
|
+
}
|
1413
|
+
|
1414
|
+
/**
|
1415
|
+
* Deserializes binary data (in protobuf wire format).
|
1416
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1417
|
+
* @return {!TronWebProto.TransactionBalanceTrace.Operation}
|
1418
|
+
*/
|
1419
|
+
TronWebProto.TransactionBalanceTrace.Operation.deserializeBinary = function (bytes) {
|
1420
|
+
var reader = new jspb.BinaryReader(bytes);
|
1421
|
+
var msg = new TronWebProto.TransactionBalanceTrace.Operation();
|
1422
|
+
return TronWebProto.TransactionBalanceTrace.Operation.deserializeBinaryFromReader(msg, reader);
|
1423
|
+
};
|
1424
|
+
|
1425
|
+
/**
|
1426
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1427
|
+
* given reader into the given message object.
|
1428
|
+
* @param {!TronWebProto.TransactionBalanceTrace.Operation} msg The message object to deserialize into.
|
1429
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1430
|
+
* @return {!TronWebProto.TransactionBalanceTrace.Operation}
|
1431
|
+
*/
|
1432
|
+
TronWebProto.TransactionBalanceTrace.Operation.deserializeBinaryFromReader = function (msg, reader) {
|
1433
|
+
while (reader.nextField()) {
|
1434
|
+
if (reader.isEndGroup()) {
|
1435
|
+
break;
|
1436
|
+
}
|
1437
|
+
var field = reader.getFieldNumber();
|
1438
|
+
switch (field) {
|
1439
|
+
case 1:
|
1440
|
+
var value = /** @type {number} */ (reader.readInt64());
|
1441
|
+
msg.setOperationIdentifier(value);
|
1442
|
+
break;
|
1443
|
+
case 2:
|
1444
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
1445
|
+
msg.setAddress(value);
|
1446
|
+
break;
|
1447
|
+
case 3:
|
1448
|
+
var value = /** @type {number} */ (reader.readInt64());
|
1449
|
+
msg.setAmount(value);
|
1450
|
+
break;
|
1451
|
+
default:
|
1452
|
+
reader.skipField();
|
1453
|
+
break;
|
1454
|
+
}
|
1455
|
+
}
|
1456
|
+
return msg;
|
1457
|
+
};
|
1458
|
+
|
1459
|
+
/**
|
1460
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1461
|
+
* @return {!Uint8Array}
|
1462
|
+
*/
|
1463
|
+
TronWebProto.TransactionBalanceTrace.Operation.prototype.serializeBinary = function () {
|
1464
|
+
var writer = new jspb.BinaryWriter();
|
1465
|
+
TronWebProto.TransactionBalanceTrace.Operation.serializeBinaryToWriter(this, writer);
|
1466
|
+
return writer.getResultBuffer();
|
1467
|
+
};
|
1468
|
+
|
1469
|
+
/**
|
1470
|
+
* Serializes the given message to binary data (in protobuf wire
|
1471
|
+
* format), writing to the given BinaryWriter.
|
1472
|
+
* @param {!TronWebProto.TransactionBalanceTrace.Operation} message
|
1473
|
+
* @param {!jspb.BinaryWriter} writer
|
1474
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1475
|
+
*/
|
1476
|
+
TronWebProto.TransactionBalanceTrace.Operation.serializeBinaryToWriter = function (message, writer) {
|
1477
|
+
var f = undefined;
|
1478
|
+
f = message.getOperationIdentifier();
|
1479
|
+
if (f !== 0) {
|
1480
|
+
writer.writeInt64(1, f);
|
1481
|
+
}
|
1482
|
+
f = message.getAddress_asU8();
|
1483
|
+
if (f.length > 0) {
|
1484
|
+
writer.writeBytes(2, f);
|
1485
|
+
}
|
1486
|
+
f = message.getAmount();
|
1487
|
+
if (f !== 0) {
|
1488
|
+
writer.writeInt64(3, f);
|
1489
|
+
}
|
1490
|
+
};
|
1491
|
+
|
1492
|
+
/**
|
1493
|
+
* optional int64 operation_identifier = 1;
|
1494
|
+
* @return {number}
|
1495
|
+
*/
|
1496
|
+
TronWebProto.TransactionBalanceTrace.Operation.prototype.getOperationIdentifier = function () {
|
1497
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
1498
|
+
};
|
1499
|
+
|
1500
|
+
/**
|
1501
|
+
* @param {number} value
|
1502
|
+
* @return {!TronWebProto.TransactionBalanceTrace.Operation} returns this
|
1503
|
+
*/
|
1504
|
+
TronWebProto.TransactionBalanceTrace.Operation.prototype.setOperationIdentifier = function (value) {
|
1505
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
1506
|
+
};
|
1507
|
+
|
1508
|
+
/**
|
1509
|
+
* optional bytes address = 2;
|
1510
|
+
* @return {!(string|Uint8Array)}
|
1511
|
+
*/
|
1512
|
+
TronWebProto.TransactionBalanceTrace.Operation.prototype.getAddress = function () {
|
1513
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ''));
|
1514
|
+
};
|
1515
|
+
|
1516
|
+
/**
|
1517
|
+
* optional bytes address = 2;
|
1518
|
+
* This is a type-conversion wrapper around `getAddress()`
|
1519
|
+
* @return {string}
|
1520
|
+
*/
|
1521
|
+
TronWebProto.TransactionBalanceTrace.Operation.prototype.getAddress_asB64 = function () {
|
1522
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getAddress()));
|
1523
|
+
};
|
1524
|
+
|
1525
|
+
/**
|
1526
|
+
* optional bytes address = 2;
|
1527
|
+
* Note that Uint8Array is not supported on all browsers.
|
1528
|
+
* @see http://caniuse.com/Uint8Array
|
1529
|
+
* This is a type-conversion wrapper around `getAddress()`
|
1530
|
+
* @return {!Uint8Array}
|
1531
|
+
*/
|
1532
|
+
TronWebProto.TransactionBalanceTrace.Operation.prototype.getAddress_asU8 = function () {
|
1533
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getAddress()));
|
1534
|
+
};
|
1535
|
+
|
1536
|
+
/**
|
1537
|
+
* @param {!(string|Uint8Array)} value
|
1538
|
+
* @return {!TronWebProto.TransactionBalanceTrace.Operation} returns this
|
1539
|
+
*/
|
1540
|
+
TronWebProto.TransactionBalanceTrace.Operation.prototype.setAddress = function (value) {
|
1541
|
+
return jspb.Message.setProto3BytesField(this, 2, value);
|
1542
|
+
};
|
1543
|
+
|
1544
|
+
/**
|
1545
|
+
* optional int64 amount = 3;
|
1546
|
+
* @return {number}
|
1547
|
+
*/
|
1548
|
+
TronWebProto.TransactionBalanceTrace.Operation.prototype.getAmount = function () {
|
1549
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
1550
|
+
};
|
1551
|
+
|
1552
|
+
/**
|
1553
|
+
* @param {number} value
|
1554
|
+
* @return {!TronWebProto.TransactionBalanceTrace.Operation} returns this
|
1555
|
+
*/
|
1556
|
+
TronWebProto.TransactionBalanceTrace.Operation.prototype.setAmount = function (value) {
|
1557
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
1558
|
+
};
|
1559
|
+
|
1560
|
+
/**
|
1561
|
+
* optional bytes transaction_identifier = 1;
|
1562
|
+
* @return {!(string|Uint8Array)}
|
1563
|
+
*/
|
1564
|
+
TronWebProto.TransactionBalanceTrace.prototype.getTransactionIdentifier = function () {
|
1565
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
1566
|
+
};
|
1567
|
+
|
1568
|
+
/**
|
1569
|
+
* optional bytes transaction_identifier = 1;
|
1570
|
+
* This is a type-conversion wrapper around `getTransactionIdentifier()`
|
1571
|
+
* @return {string}
|
1572
|
+
*/
|
1573
|
+
TronWebProto.TransactionBalanceTrace.prototype.getTransactionIdentifier_asB64 = function () {
|
1574
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getTransactionIdentifier()));
|
1575
|
+
};
|
1576
|
+
|
1577
|
+
/**
|
1578
|
+
* optional bytes transaction_identifier = 1;
|
1579
|
+
* Note that Uint8Array is not supported on all browsers.
|
1580
|
+
* @see http://caniuse.com/Uint8Array
|
1581
|
+
* This is a type-conversion wrapper around `getTransactionIdentifier()`
|
1582
|
+
* @return {!Uint8Array}
|
1583
|
+
*/
|
1584
|
+
TronWebProto.TransactionBalanceTrace.prototype.getTransactionIdentifier_asU8 = function () {
|
1585
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getTransactionIdentifier()));
|
1586
|
+
};
|
1587
|
+
|
1588
|
+
/**
|
1589
|
+
* @param {!(string|Uint8Array)} value
|
1590
|
+
* @return {!TronWebProto.TransactionBalanceTrace} returns this
|
1591
|
+
*/
|
1592
|
+
TronWebProto.TransactionBalanceTrace.prototype.setTransactionIdentifier = function (value) {
|
1593
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
1594
|
+
};
|
1595
|
+
|
1596
|
+
/**
|
1597
|
+
* repeated Operation operation = 2;
|
1598
|
+
* @return {!Array<!TronWebProto.TransactionBalanceTrace.Operation>}
|
1599
|
+
*/
|
1600
|
+
TronWebProto.TransactionBalanceTrace.prototype.getOperationList = function () {
|
1601
|
+
return /** @type{!Array<!TronWebProto.TransactionBalanceTrace.Operation>} */ (
|
1602
|
+
jspb.Message.getRepeatedWrapperField(this, TronWebProto.TransactionBalanceTrace.Operation, 2)
|
1603
|
+
);
|
1604
|
+
};
|
1605
|
+
|
1606
|
+
/**
|
1607
|
+
* @param {!Array<!TronWebProto.TransactionBalanceTrace.Operation>} value
|
1608
|
+
* @return {!TronWebProto.TransactionBalanceTrace} returns this
|
1609
|
+
*/
|
1610
|
+
TronWebProto.TransactionBalanceTrace.prototype.setOperationList = function (value) {
|
1611
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
1612
|
+
};
|
1613
|
+
|
1614
|
+
/**
|
1615
|
+
* @param {!TronWebProto.TransactionBalanceTrace.Operation=} opt_value
|
1616
|
+
* @param {number=} opt_index
|
1617
|
+
* @return {!TronWebProto.TransactionBalanceTrace.Operation}
|
1618
|
+
*/
|
1619
|
+
TronWebProto.TransactionBalanceTrace.prototype.addOperation = function (opt_value, opt_index) {
|
1620
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, TronWebProto.TransactionBalanceTrace.Operation, opt_index);
|
1621
|
+
};
|
1622
|
+
|
1623
|
+
/**
|
1624
|
+
* Clears the list making it empty but non-null.
|
1625
|
+
* @return {!TronWebProto.TransactionBalanceTrace} returns this
|
1626
|
+
*/
|
1627
|
+
TronWebProto.TransactionBalanceTrace.prototype.clearOperationList = function () {
|
1628
|
+
return this.setOperationList([]);
|
1629
|
+
};
|
1630
|
+
|
1631
|
+
/**
|
1632
|
+
* optional string type = 3;
|
1633
|
+
* @return {string}
|
1634
|
+
*/
|
1635
|
+
TronWebProto.TransactionBalanceTrace.prototype.getType = function () {
|
1636
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ''));
|
1637
|
+
};
|
1638
|
+
|
1639
|
+
/**
|
1640
|
+
* @param {string} value
|
1641
|
+
* @return {!TronWebProto.TransactionBalanceTrace} returns this
|
1642
|
+
*/
|
1643
|
+
TronWebProto.TransactionBalanceTrace.prototype.setType = function (value) {
|
1644
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
1645
|
+
};
|
1646
|
+
|
1647
|
+
/**
|
1648
|
+
* optional string status = 4;
|
1649
|
+
* @return {string}
|
1650
|
+
*/
|
1651
|
+
TronWebProto.TransactionBalanceTrace.prototype.getStatus = function () {
|
1652
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ''));
|
1653
|
+
};
|
1654
|
+
|
1655
|
+
/**
|
1656
|
+
* @param {string} value
|
1657
|
+
* @return {!TronWebProto.TransactionBalanceTrace} returns this
|
1658
|
+
*/
|
1659
|
+
TronWebProto.TransactionBalanceTrace.prototype.setStatus = function (value) {
|
1660
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
1661
|
+
};
|
1662
|
+
|
1663
|
+
/**
|
1664
|
+
* List of repeated fields within this message type.
|
1665
|
+
* @private {!Array<number>}
|
1666
|
+
* @const
|
1667
|
+
*/
|
1668
|
+
TronWebProto.BlockBalanceTrace.repeatedFields_ = [3];
|
1669
|
+
|
1670
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1671
|
+
/**
|
1672
|
+
* Creates an object representation of this proto.
|
1673
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1674
|
+
* Optional fields that are not set will be set to undefined.
|
1675
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1676
|
+
* For the list of reserved names please see:
|
1677
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1678
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1679
|
+
* JSPB instance for transitional soy proto support:
|
1680
|
+
* http://goto/soy-param-migration
|
1681
|
+
* @return {!Object}
|
1682
|
+
*/
|
1683
|
+
TronWebProto.BlockBalanceTrace.prototype.toObject = function (opt_includeInstance) {
|
1684
|
+
return TronWebProto.BlockBalanceTrace.toObject(opt_includeInstance, this);
|
1685
|
+
};
|
1686
|
+
|
1687
|
+
/**
|
1688
|
+
* Static version of the {@see toObject} method.
|
1689
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1690
|
+
* the JSPB instance for transitional soy proto support:
|
1691
|
+
* http://goto/soy-param-migration
|
1692
|
+
* @param {!TronWebProto.BlockBalanceTrace} msg The msg instance to transform.
|
1693
|
+
* @return {!Object}
|
1694
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1695
|
+
*/
|
1696
|
+
TronWebProto.BlockBalanceTrace.toObject = function (includeInstance, msg) {
|
1697
|
+
var f,
|
1698
|
+
obj = {
|
1699
|
+
blockIdentifier:
|
1700
|
+
(f = msg.getBlockIdentifier()) && TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject(includeInstance, f),
|
1701
|
+
timestamp: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1702
|
+
transactionBalanceTraceList: jspb.Message.toObjectList(
|
1703
|
+
msg.getTransactionBalanceTraceList(),
|
1704
|
+
TronWebProto.TransactionBalanceTrace.toObject,
|
1705
|
+
includeInstance
|
1706
|
+
),
|
1707
|
+
};
|
1708
|
+
|
1709
|
+
if (includeInstance) {
|
1710
|
+
obj.$jspbMessageInstance = msg;
|
1711
|
+
}
|
1712
|
+
return obj;
|
1713
|
+
};
|
1714
|
+
}
|
1715
|
+
|
1716
|
+
/**
|
1717
|
+
* Deserializes binary data (in protobuf wire format).
|
1718
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1719
|
+
* @return {!TronWebProto.BlockBalanceTrace}
|
1720
|
+
*/
|
1721
|
+
TronWebProto.BlockBalanceTrace.deserializeBinary = function (bytes) {
|
1722
|
+
var reader = new jspb.BinaryReader(bytes);
|
1723
|
+
var msg = new TronWebProto.BlockBalanceTrace();
|
1724
|
+
return TronWebProto.BlockBalanceTrace.deserializeBinaryFromReader(msg, reader);
|
1725
|
+
};
|
1726
|
+
|
1727
|
+
/**
|
1728
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1729
|
+
* given reader into the given message object.
|
1730
|
+
* @param {!TronWebProto.BlockBalanceTrace} msg The message object to deserialize into.
|
1731
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1732
|
+
* @return {!TronWebProto.BlockBalanceTrace}
|
1733
|
+
*/
|
1734
|
+
TronWebProto.BlockBalanceTrace.deserializeBinaryFromReader = function (msg, reader) {
|
1735
|
+
while (reader.nextField()) {
|
1736
|
+
if (reader.isEndGroup()) {
|
1737
|
+
break;
|
1738
|
+
}
|
1739
|
+
var field = reader.getFieldNumber();
|
1740
|
+
switch (field) {
|
1741
|
+
case 1:
|
1742
|
+
var value = new TronWebProto.BlockBalanceTrace.BlockIdentifier();
|
1743
|
+
reader.readMessage(value, TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader);
|
1744
|
+
msg.setBlockIdentifier(value);
|
1745
|
+
break;
|
1746
|
+
case 2:
|
1747
|
+
var value = /** @type {number} */ (reader.readInt64());
|
1748
|
+
msg.setTimestamp(value);
|
1749
|
+
break;
|
1750
|
+
case 3:
|
1751
|
+
var value = new TronWebProto.TransactionBalanceTrace();
|
1752
|
+
reader.readMessage(value, TronWebProto.TransactionBalanceTrace.deserializeBinaryFromReader);
|
1753
|
+
msg.addTransactionBalanceTrace(value);
|
1754
|
+
break;
|
1755
|
+
default:
|
1756
|
+
reader.skipField();
|
1757
|
+
break;
|
1758
|
+
}
|
1759
|
+
}
|
1760
|
+
return msg;
|
1761
|
+
};
|
1762
|
+
|
1763
|
+
/**
|
1764
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1765
|
+
* @return {!Uint8Array}
|
1766
|
+
*/
|
1767
|
+
TronWebProto.BlockBalanceTrace.prototype.serializeBinary = function () {
|
1768
|
+
var writer = new jspb.BinaryWriter();
|
1769
|
+
TronWebProto.BlockBalanceTrace.serializeBinaryToWriter(this, writer);
|
1770
|
+
return writer.getResultBuffer();
|
1771
|
+
};
|
1772
|
+
|
1773
|
+
/**
|
1774
|
+
* Serializes the given message to binary data (in protobuf wire
|
1775
|
+
* format), writing to the given BinaryWriter.
|
1776
|
+
* @param {!TronWebProto.BlockBalanceTrace} message
|
1777
|
+
* @param {!jspb.BinaryWriter} writer
|
1778
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1779
|
+
*/
|
1780
|
+
TronWebProto.BlockBalanceTrace.serializeBinaryToWriter = function (message, writer) {
|
1781
|
+
var f = undefined;
|
1782
|
+
f = message.getBlockIdentifier();
|
1783
|
+
if (f != null) {
|
1784
|
+
writer.writeMessage(1, f, TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter);
|
1785
|
+
}
|
1786
|
+
f = message.getTimestamp();
|
1787
|
+
if (f !== 0) {
|
1788
|
+
writer.writeInt64(2, f);
|
1789
|
+
}
|
1790
|
+
f = message.getTransactionBalanceTraceList();
|
1791
|
+
if (f.length > 0) {
|
1792
|
+
writer.writeRepeatedMessage(3, f, TronWebProto.TransactionBalanceTrace.serializeBinaryToWriter);
|
1793
|
+
}
|
1794
|
+
};
|
1795
|
+
|
1796
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1797
|
+
/**
|
1798
|
+
* Creates an object representation of this proto.
|
1799
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1800
|
+
* Optional fields that are not set will be set to undefined.
|
1801
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1802
|
+
* For the list of reserved names please see:
|
1803
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1804
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1805
|
+
* JSPB instance for transitional soy proto support:
|
1806
|
+
* http://goto/soy-param-migration
|
1807
|
+
* @return {!Object}
|
1808
|
+
*/
|
1809
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.toObject = function (opt_includeInstance) {
|
1810
|
+
return TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject(opt_includeInstance, this);
|
1811
|
+
};
|
1812
|
+
|
1813
|
+
/**
|
1814
|
+
* Static version of the {@see toObject} method.
|
1815
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1816
|
+
* the JSPB instance for transitional soy proto support:
|
1817
|
+
* http://goto/soy-param-migration
|
1818
|
+
* @param {!TronWebProto.BlockBalanceTrace.BlockIdentifier} msg The msg instance to transform.
|
1819
|
+
* @return {!Object}
|
1820
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1821
|
+
*/
|
1822
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject = function (includeInstance, msg) {
|
1823
|
+
var f,
|
1824
|
+
obj = {
|
1825
|
+
hash: msg.getHash_asB64(),
|
1826
|
+
number: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1827
|
+
};
|
1828
|
+
|
1829
|
+
if (includeInstance) {
|
1830
|
+
obj.$jspbMessageInstance = msg;
|
1831
|
+
}
|
1832
|
+
return obj;
|
1833
|
+
};
|
1834
|
+
}
|
1835
|
+
|
1836
|
+
/**
|
1837
|
+
* Deserializes binary data (in protobuf wire format).
|
1838
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1839
|
+
* @return {!TronWebProto.BlockBalanceTrace.BlockIdentifier}
|
1840
|
+
*/
|
1841
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinary = function (bytes) {
|
1842
|
+
var reader = new jspb.BinaryReader(bytes);
|
1843
|
+
var msg = new TronWebProto.BlockBalanceTrace.BlockIdentifier();
|
1844
|
+
return TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader(msg, reader);
|
1845
|
+
};
|
1846
|
+
|
1847
|
+
/**
|
1848
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1849
|
+
* given reader into the given message object.
|
1850
|
+
* @param {!TronWebProto.BlockBalanceTrace.BlockIdentifier} msg The message object to deserialize into.
|
1851
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1852
|
+
* @return {!TronWebProto.BlockBalanceTrace.BlockIdentifier}
|
1853
|
+
*/
|
1854
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader = function (msg, reader) {
|
1855
|
+
while (reader.nextField()) {
|
1856
|
+
if (reader.isEndGroup()) {
|
1857
|
+
break;
|
1858
|
+
}
|
1859
|
+
var field = reader.getFieldNumber();
|
1860
|
+
switch (field) {
|
1861
|
+
case 1:
|
1862
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
1863
|
+
msg.setHash(value);
|
1864
|
+
break;
|
1865
|
+
case 2:
|
1866
|
+
var value = /** @type {number} */ (reader.readInt64());
|
1867
|
+
msg.setNumber(value);
|
1868
|
+
break;
|
1869
|
+
default:
|
1870
|
+
reader.skipField();
|
1871
|
+
break;
|
1872
|
+
}
|
1873
|
+
}
|
1874
|
+
return msg;
|
1875
|
+
};
|
1876
|
+
|
1877
|
+
/**
|
1878
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1879
|
+
* @return {!Uint8Array}
|
1880
|
+
*/
|
1881
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.serializeBinary = function () {
|
1882
|
+
var writer = new jspb.BinaryWriter();
|
1883
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter(this, writer);
|
1884
|
+
return writer.getResultBuffer();
|
1885
|
+
};
|
1886
|
+
|
1887
|
+
/**
|
1888
|
+
* Serializes the given message to binary data (in protobuf wire
|
1889
|
+
* format), writing to the given BinaryWriter.
|
1890
|
+
* @param {!TronWebProto.BlockBalanceTrace.BlockIdentifier} message
|
1891
|
+
* @param {!jspb.BinaryWriter} writer
|
1892
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1893
|
+
*/
|
1894
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter = function (message, writer) {
|
1895
|
+
var f = undefined;
|
1896
|
+
f = message.getHash_asU8();
|
1897
|
+
if (f.length > 0) {
|
1898
|
+
writer.writeBytes(1, f);
|
1899
|
+
}
|
1900
|
+
f = message.getNumber();
|
1901
|
+
if (f !== 0) {
|
1902
|
+
writer.writeInt64(2, f);
|
1903
|
+
}
|
1904
|
+
};
|
1905
|
+
|
1906
|
+
/**
|
1907
|
+
* optional bytes hash = 1;
|
1908
|
+
* @return {!(string|Uint8Array)}
|
1909
|
+
*/
|
1910
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.getHash = function () {
|
1911
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
1912
|
+
};
|
1913
|
+
|
1914
|
+
/**
|
1915
|
+
* optional bytes hash = 1;
|
1916
|
+
* This is a type-conversion wrapper around `getHash()`
|
1917
|
+
* @return {string}
|
1918
|
+
*/
|
1919
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.getHash_asB64 = function () {
|
1920
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getHash()));
|
1921
|
+
};
|
1922
|
+
|
1923
|
+
/**
|
1924
|
+
* optional bytes hash = 1;
|
1925
|
+
* Note that Uint8Array is not supported on all browsers.
|
1926
|
+
* @see http://caniuse.com/Uint8Array
|
1927
|
+
* This is a type-conversion wrapper around `getHash()`
|
1928
|
+
* @return {!Uint8Array}
|
1929
|
+
*/
|
1930
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.getHash_asU8 = function () {
|
1931
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getHash()));
|
1932
|
+
};
|
1933
|
+
|
1934
|
+
/**
|
1935
|
+
* @param {!(string|Uint8Array)} value
|
1936
|
+
* @return {!TronWebProto.BlockBalanceTrace.BlockIdentifier} returns this
|
1937
|
+
*/
|
1938
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.setHash = function (value) {
|
1939
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
1940
|
+
};
|
1941
|
+
|
1942
|
+
/**
|
1943
|
+
* optional int64 number = 2;
|
1944
|
+
* @return {number}
|
1945
|
+
*/
|
1946
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.getNumber = function () {
|
1947
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1948
|
+
};
|
1949
|
+
|
1950
|
+
/**
|
1951
|
+
* @param {number} value
|
1952
|
+
* @return {!TronWebProto.BlockBalanceTrace.BlockIdentifier} returns this
|
1953
|
+
*/
|
1954
|
+
TronWebProto.BlockBalanceTrace.BlockIdentifier.prototype.setNumber = function (value) {
|
1955
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
1956
|
+
};
|
1957
|
+
|
1958
|
+
/**
|
1959
|
+
* optional BlockIdentifier block_identifier = 1;
|
1960
|
+
* @return {?TronWebProto.BlockBalanceTrace.BlockIdentifier}
|
1961
|
+
*/
|
1962
|
+
TronWebProto.BlockBalanceTrace.prototype.getBlockIdentifier = function () {
|
1963
|
+
return /** @type{?TronWebProto.BlockBalanceTrace.BlockIdentifier} */ (
|
1964
|
+
jspb.Message.getWrapperField(this, TronWebProto.BlockBalanceTrace.BlockIdentifier, 1)
|
1965
|
+
);
|
1966
|
+
};
|
1967
|
+
|
1968
|
+
/**
|
1969
|
+
* @param {?TronWebProto.BlockBalanceTrace.BlockIdentifier|undefined} value
|
1970
|
+
* @return {!TronWebProto.BlockBalanceTrace} returns this
|
1971
|
+
*/
|
1972
|
+
TronWebProto.BlockBalanceTrace.prototype.setBlockIdentifier = function (value) {
|
1973
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
1974
|
+
};
|
1975
|
+
|
1976
|
+
/**
|
1977
|
+
* Clears the message field making it undefined.
|
1978
|
+
* @return {!TronWebProto.BlockBalanceTrace} returns this
|
1979
|
+
*/
|
1980
|
+
TronWebProto.BlockBalanceTrace.prototype.clearBlockIdentifier = function () {
|
1981
|
+
return this.setBlockIdentifier(undefined);
|
1982
|
+
};
|
1983
|
+
|
1984
|
+
/**
|
1985
|
+
* Returns whether this field is set.
|
1986
|
+
* @return {boolean}
|
1987
|
+
*/
|
1988
|
+
TronWebProto.BlockBalanceTrace.prototype.hasBlockIdentifier = function () {
|
1989
|
+
return jspb.Message.getField(this, 1) != null;
|
1990
|
+
};
|
1991
|
+
|
1992
|
+
/**
|
1993
|
+
* optional int64 timestamp = 2;
|
1994
|
+
* @return {number}
|
1995
|
+
*/
|
1996
|
+
TronWebProto.BlockBalanceTrace.prototype.getTimestamp = function () {
|
1997
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1998
|
+
};
|
1999
|
+
|
2000
|
+
/**
|
2001
|
+
* @param {number} value
|
2002
|
+
* @return {!TronWebProto.BlockBalanceTrace} returns this
|
2003
|
+
*/
|
2004
|
+
TronWebProto.BlockBalanceTrace.prototype.setTimestamp = function (value) {
|
2005
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
2006
|
+
};
|
2007
|
+
|
2008
|
+
/**
|
2009
|
+
* repeated TransactionBalanceTrace transaction_balance_trace = 3;
|
2010
|
+
* @return {!Array<!TronWebProto.TransactionBalanceTrace>}
|
2011
|
+
*/
|
2012
|
+
TronWebProto.BlockBalanceTrace.prototype.getTransactionBalanceTraceList = function () {
|
2013
|
+
return /** @type{!Array<!TronWebProto.TransactionBalanceTrace>} */ (
|
2014
|
+
jspb.Message.getRepeatedWrapperField(this, TronWebProto.TransactionBalanceTrace, 3)
|
2015
|
+
);
|
2016
|
+
};
|
2017
|
+
|
2018
|
+
/**
|
2019
|
+
* @param {!Array<!TronWebProto.TransactionBalanceTrace>} value
|
2020
|
+
* @return {!TronWebProto.BlockBalanceTrace} returns this
|
2021
|
+
*/
|
2022
|
+
TronWebProto.BlockBalanceTrace.prototype.setTransactionBalanceTraceList = function (value) {
|
2023
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
2024
|
+
};
|
2025
|
+
|
2026
|
+
/**
|
2027
|
+
* @param {!TronWebProto.TransactionBalanceTrace=} opt_value
|
2028
|
+
* @param {number=} opt_index
|
2029
|
+
* @return {!TronWebProto.TransactionBalanceTrace}
|
2030
|
+
*/
|
2031
|
+
TronWebProto.BlockBalanceTrace.prototype.addTransactionBalanceTrace = function (opt_value, opt_index) {
|
2032
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, TronWebProto.TransactionBalanceTrace, opt_index);
|
2033
|
+
};
|
2034
|
+
|
2035
|
+
/**
|
2036
|
+
* Clears the list making it empty but non-null.
|
2037
|
+
* @return {!TronWebProto.BlockBalanceTrace} returns this
|
2038
|
+
*/
|
2039
|
+
TronWebProto.BlockBalanceTrace.prototype.clearTransactionBalanceTraceList = function () {
|
2040
|
+
return this.setTransactionBalanceTraceList([]);
|
2041
|
+
};
|
2042
|
+
|
2043
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2044
|
+
/**
|
2045
|
+
* Creates an object representation of this proto.
|
2046
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2047
|
+
* Optional fields that are not set will be set to undefined.
|
2048
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2049
|
+
* For the list of reserved names please see:
|
2050
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2051
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2052
|
+
* JSPB instance for transitional soy proto support:
|
2053
|
+
* http://goto/soy-param-migration
|
2054
|
+
* @return {!Object}
|
2055
|
+
*/
|
2056
|
+
TronWebProto.AccountTrace.prototype.toObject = function (opt_includeInstance) {
|
2057
|
+
return TronWebProto.AccountTrace.toObject(opt_includeInstance, this);
|
2058
|
+
};
|
2059
|
+
|
2060
|
+
/**
|
2061
|
+
* Static version of the {@see toObject} method.
|
2062
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2063
|
+
* the JSPB instance for transitional soy proto support:
|
2064
|
+
* http://goto/soy-param-migration
|
2065
|
+
* @param {!TronWebProto.AccountTrace} msg The msg instance to transform.
|
2066
|
+
* @return {!Object}
|
2067
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2068
|
+
*/
|
2069
|
+
TronWebProto.AccountTrace.toObject = function (includeInstance, msg) {
|
2070
|
+
var f,
|
2071
|
+
obj = {
|
2072
|
+
balance: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2073
|
+
placeholder: jspb.Message.getFieldWithDefault(msg, 99, 0),
|
2074
|
+
};
|
2075
|
+
|
2076
|
+
if (includeInstance) {
|
2077
|
+
obj.$jspbMessageInstance = msg;
|
2078
|
+
}
|
2079
|
+
return obj;
|
2080
|
+
};
|
2081
|
+
}
|
2082
|
+
|
2083
|
+
/**
|
2084
|
+
* Deserializes binary data (in protobuf wire format).
|
2085
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2086
|
+
* @return {!TronWebProto.AccountTrace}
|
2087
|
+
*/
|
2088
|
+
TronWebProto.AccountTrace.deserializeBinary = function (bytes) {
|
2089
|
+
var reader = new jspb.BinaryReader(bytes);
|
2090
|
+
var msg = new TronWebProto.AccountTrace();
|
2091
|
+
return TronWebProto.AccountTrace.deserializeBinaryFromReader(msg, reader);
|
2092
|
+
};
|
2093
|
+
|
2094
|
+
/**
|
2095
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2096
|
+
* given reader into the given message object.
|
2097
|
+
* @param {!TronWebProto.AccountTrace} msg The message object to deserialize into.
|
2098
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2099
|
+
* @return {!TronWebProto.AccountTrace}
|
2100
|
+
*/
|
2101
|
+
TronWebProto.AccountTrace.deserializeBinaryFromReader = function (msg, reader) {
|
2102
|
+
while (reader.nextField()) {
|
2103
|
+
if (reader.isEndGroup()) {
|
2104
|
+
break;
|
2105
|
+
}
|
2106
|
+
var field = reader.getFieldNumber();
|
2107
|
+
switch (field) {
|
2108
|
+
case 1:
|
2109
|
+
var value = /** @type {number} */ (reader.readInt64());
|
2110
|
+
msg.setBalance(value);
|
2111
|
+
break;
|
2112
|
+
case 99:
|
2113
|
+
var value = /** @type {number} */ (reader.readInt64());
|
2114
|
+
msg.setPlaceholder(value);
|
2115
|
+
break;
|
2116
|
+
default:
|
2117
|
+
reader.skipField();
|
2118
|
+
break;
|
2119
|
+
}
|
2120
|
+
}
|
2121
|
+
return msg;
|
2122
|
+
};
|
2123
|
+
|
2124
|
+
/**
|
2125
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2126
|
+
* @return {!Uint8Array}
|
2127
|
+
*/
|
2128
|
+
TronWebProto.AccountTrace.prototype.serializeBinary = function () {
|
2129
|
+
var writer = new jspb.BinaryWriter();
|
2130
|
+
TronWebProto.AccountTrace.serializeBinaryToWriter(this, writer);
|
2131
|
+
return writer.getResultBuffer();
|
2132
|
+
};
|
2133
|
+
|
2134
|
+
/**
|
2135
|
+
* Serializes the given message to binary data (in protobuf wire
|
2136
|
+
* format), writing to the given BinaryWriter.
|
2137
|
+
* @param {!TronWebProto.AccountTrace} message
|
2138
|
+
* @param {!jspb.BinaryWriter} writer
|
2139
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2140
|
+
*/
|
2141
|
+
TronWebProto.AccountTrace.serializeBinaryToWriter = function (message, writer) {
|
2142
|
+
var f = undefined;
|
2143
|
+
f = message.getBalance();
|
2144
|
+
if (f !== 0) {
|
2145
|
+
writer.writeInt64(1, f);
|
2146
|
+
}
|
2147
|
+
f = message.getPlaceholder();
|
2148
|
+
if (f !== 0) {
|
2149
|
+
writer.writeInt64(99, f);
|
2150
|
+
}
|
2151
|
+
};
|
2152
|
+
|
2153
|
+
/**
|
2154
|
+
* optional int64 balance = 1;
|
2155
|
+
* @return {number}
|
2156
|
+
*/
|
2157
|
+
TronWebProto.AccountTrace.prototype.getBalance = function () {
|
2158
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2159
|
+
};
|
2160
|
+
|
2161
|
+
/**
|
2162
|
+
* @param {number} value
|
2163
|
+
* @return {!TronWebProto.AccountTrace} returns this
|
2164
|
+
*/
|
2165
|
+
TronWebProto.AccountTrace.prototype.setBalance = function (value) {
|
2166
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
2167
|
+
};
|
2168
|
+
|
2169
|
+
/**
|
2170
|
+
* optional int64 placeholder = 99;
|
2171
|
+
* @return {number}
|
2172
|
+
*/
|
2173
|
+
TronWebProto.AccountTrace.prototype.getPlaceholder = function () {
|
2174
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 99, 0));
|
2175
|
+
};
|
2176
|
+
|
2177
|
+
/**
|
2178
|
+
* @param {number} value
|
2179
|
+
* @return {!TronWebProto.AccountTrace} returns this
|
2180
|
+
*/
|
2181
|
+
TronWebProto.AccountTrace.prototype.setPlaceholder = function (value) {
|
2182
|
+
return jspb.Message.setProto3IntField(this, 99, value);
|
2183
|
+
};
|
2184
|
+
|
2185
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2186
|
+
/**
|
2187
|
+
* Creates an object representation of this proto.
|
2188
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2189
|
+
* Optional fields that are not set will be set to undefined.
|
2190
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2191
|
+
* For the list of reserved names please see:
|
2192
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2193
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2194
|
+
* JSPB instance for transitional soy proto support:
|
2195
|
+
* http://goto/soy-param-migration
|
2196
|
+
* @return {!Object}
|
2197
|
+
*/
|
2198
|
+
TronWebProto.AccountIdentifier.prototype.toObject = function (opt_includeInstance) {
|
2199
|
+
return TronWebProto.AccountIdentifier.toObject(opt_includeInstance, this);
|
2200
|
+
};
|
2201
|
+
|
2202
|
+
/**
|
2203
|
+
* Static version of the {@see toObject} method.
|
2204
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2205
|
+
* the JSPB instance for transitional soy proto support:
|
2206
|
+
* http://goto/soy-param-migration
|
2207
|
+
* @param {!TronWebProto.AccountIdentifier} msg The msg instance to transform.
|
2208
|
+
* @return {!Object}
|
2209
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2210
|
+
*/
|
2211
|
+
TronWebProto.AccountIdentifier.toObject = function (includeInstance, msg) {
|
2212
|
+
var f,
|
2213
|
+
obj = {
|
2214
|
+
address: msg.getAddress_asB64(),
|
2215
|
+
};
|
2216
|
+
|
2217
|
+
if (includeInstance) {
|
2218
|
+
obj.$jspbMessageInstance = msg;
|
2219
|
+
}
|
2220
|
+
return obj;
|
2221
|
+
};
|
2222
|
+
}
|
2223
|
+
|
2224
|
+
/**
|
2225
|
+
* Deserializes binary data (in protobuf wire format).
|
2226
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2227
|
+
* @return {!TronWebProto.AccountIdentifier}
|
2228
|
+
*/
|
2229
|
+
TronWebProto.AccountIdentifier.deserializeBinary = function (bytes) {
|
2230
|
+
var reader = new jspb.BinaryReader(bytes);
|
2231
|
+
var msg = new TronWebProto.AccountIdentifier();
|
2232
|
+
return TronWebProto.AccountIdentifier.deserializeBinaryFromReader(msg, reader);
|
2233
|
+
};
|
2234
|
+
|
2235
|
+
/**
|
2236
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2237
|
+
* given reader into the given message object.
|
2238
|
+
* @param {!TronWebProto.AccountIdentifier} msg The message object to deserialize into.
|
2239
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2240
|
+
* @return {!TronWebProto.AccountIdentifier}
|
2241
|
+
*/
|
2242
|
+
TronWebProto.AccountIdentifier.deserializeBinaryFromReader = function (msg, reader) {
|
2243
|
+
while (reader.nextField()) {
|
2244
|
+
if (reader.isEndGroup()) {
|
2245
|
+
break;
|
2246
|
+
}
|
2247
|
+
var field = reader.getFieldNumber();
|
2248
|
+
switch (field) {
|
2249
|
+
case 1:
|
2250
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
2251
|
+
msg.setAddress(value);
|
2252
|
+
break;
|
2253
|
+
default:
|
2254
|
+
reader.skipField();
|
2255
|
+
break;
|
2256
|
+
}
|
2257
|
+
}
|
2258
|
+
return msg;
|
2259
|
+
};
|
2260
|
+
|
2261
|
+
/**
|
2262
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2263
|
+
* @return {!Uint8Array}
|
2264
|
+
*/
|
2265
|
+
TronWebProto.AccountIdentifier.prototype.serializeBinary = function () {
|
2266
|
+
var writer = new jspb.BinaryWriter();
|
2267
|
+
TronWebProto.AccountIdentifier.serializeBinaryToWriter(this, writer);
|
2268
|
+
return writer.getResultBuffer();
|
2269
|
+
};
|
2270
|
+
|
2271
|
+
/**
|
2272
|
+
* Serializes the given message to binary data (in protobuf wire
|
2273
|
+
* format), writing to the given BinaryWriter.
|
2274
|
+
* @param {!TronWebProto.AccountIdentifier} message
|
2275
|
+
* @param {!jspb.BinaryWriter} writer
|
2276
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2277
|
+
*/
|
2278
|
+
TronWebProto.AccountIdentifier.serializeBinaryToWriter = function (message, writer) {
|
2279
|
+
var f = undefined;
|
2280
|
+
f = message.getAddress_asU8();
|
2281
|
+
if (f.length > 0) {
|
2282
|
+
writer.writeBytes(1, f);
|
2283
|
+
}
|
2284
|
+
};
|
2285
|
+
|
2286
|
+
/**
|
2287
|
+
* optional bytes address = 1;
|
2288
|
+
* @return {!(string|Uint8Array)}
|
2289
|
+
*/
|
2290
|
+
TronWebProto.AccountIdentifier.prototype.getAddress = function () {
|
2291
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
2292
|
+
};
|
2293
|
+
|
2294
|
+
/**
|
2295
|
+
* optional bytes address = 1;
|
2296
|
+
* This is a type-conversion wrapper around `getAddress()`
|
2297
|
+
* @return {string}
|
2298
|
+
*/
|
2299
|
+
TronWebProto.AccountIdentifier.prototype.getAddress_asB64 = function () {
|
2300
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getAddress()));
|
2301
|
+
};
|
2302
|
+
|
2303
|
+
/**
|
2304
|
+
* optional bytes address = 1;
|
2305
|
+
* Note that Uint8Array is not supported on all browsers.
|
2306
|
+
* @see http://caniuse.com/Uint8Array
|
2307
|
+
* This is a type-conversion wrapper around `getAddress()`
|
2308
|
+
* @return {!Uint8Array}
|
2309
|
+
*/
|
2310
|
+
TronWebProto.AccountIdentifier.prototype.getAddress_asU8 = function () {
|
2311
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getAddress()));
|
2312
|
+
};
|
2313
|
+
|
2314
|
+
/**
|
2315
|
+
* @param {!(string|Uint8Array)} value
|
2316
|
+
* @return {!TronWebProto.AccountIdentifier} returns this
|
2317
|
+
*/
|
2318
|
+
TronWebProto.AccountIdentifier.prototype.setAddress = function (value) {
|
2319
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
2320
|
+
};
|
2321
|
+
|
2322
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2323
|
+
/**
|
2324
|
+
* Creates an object representation of this proto.
|
2325
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2326
|
+
* Optional fields that are not set will be set to undefined.
|
2327
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2328
|
+
* For the list of reserved names please see:
|
2329
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2330
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2331
|
+
* JSPB instance for transitional soy proto support:
|
2332
|
+
* http://goto/soy-param-migration
|
2333
|
+
* @return {!Object}
|
2334
|
+
*/
|
2335
|
+
TronWebProto.AccountBalanceRequest.prototype.toObject = function (opt_includeInstance) {
|
2336
|
+
return TronWebProto.AccountBalanceRequest.toObject(opt_includeInstance, this);
|
2337
|
+
};
|
2338
|
+
|
2339
|
+
/**
|
2340
|
+
* Static version of the {@see toObject} method.
|
2341
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2342
|
+
* the JSPB instance for transitional soy proto support:
|
2343
|
+
* http://goto/soy-param-migration
|
2344
|
+
* @param {!TronWebProto.AccountBalanceRequest} msg The msg instance to transform.
|
2345
|
+
* @return {!Object}
|
2346
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2347
|
+
*/
|
2348
|
+
TronWebProto.AccountBalanceRequest.toObject = function (includeInstance, msg) {
|
2349
|
+
var f,
|
2350
|
+
obj = {
|
2351
|
+
accountIdentifier:
|
2352
|
+
(f = msg.getAccountIdentifier()) && TronWebProto.AccountIdentifier.toObject(includeInstance, f),
|
2353
|
+
blockIdentifier:
|
2354
|
+
(f = msg.getBlockIdentifier()) && TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject(includeInstance, f),
|
2355
|
+
};
|
2356
|
+
|
2357
|
+
if (includeInstance) {
|
2358
|
+
obj.$jspbMessageInstance = msg;
|
2359
|
+
}
|
2360
|
+
return obj;
|
2361
|
+
};
|
2362
|
+
}
|
2363
|
+
|
2364
|
+
/**
|
2365
|
+
* Deserializes binary data (in protobuf wire format).
|
2366
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2367
|
+
* @return {!TronWebProto.AccountBalanceRequest}
|
2368
|
+
*/
|
2369
|
+
TronWebProto.AccountBalanceRequest.deserializeBinary = function (bytes) {
|
2370
|
+
var reader = new jspb.BinaryReader(bytes);
|
2371
|
+
var msg = new TronWebProto.AccountBalanceRequest();
|
2372
|
+
return TronWebProto.AccountBalanceRequest.deserializeBinaryFromReader(msg, reader);
|
2373
|
+
};
|
2374
|
+
|
2375
|
+
/**
|
2376
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2377
|
+
* given reader into the given message object.
|
2378
|
+
* @param {!TronWebProto.AccountBalanceRequest} msg The message object to deserialize into.
|
2379
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2380
|
+
* @return {!TronWebProto.AccountBalanceRequest}
|
2381
|
+
*/
|
2382
|
+
TronWebProto.AccountBalanceRequest.deserializeBinaryFromReader = function (msg, reader) {
|
2383
|
+
while (reader.nextField()) {
|
2384
|
+
if (reader.isEndGroup()) {
|
2385
|
+
break;
|
2386
|
+
}
|
2387
|
+
var field = reader.getFieldNumber();
|
2388
|
+
switch (field) {
|
2389
|
+
case 1:
|
2390
|
+
var value = new TronWebProto.AccountIdentifier();
|
2391
|
+
reader.readMessage(value, TronWebProto.AccountIdentifier.deserializeBinaryFromReader);
|
2392
|
+
msg.setAccountIdentifier(value);
|
2393
|
+
break;
|
2394
|
+
case 2:
|
2395
|
+
var value = new TronWebProto.BlockBalanceTrace.BlockIdentifier();
|
2396
|
+
reader.readMessage(value, TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader);
|
2397
|
+
msg.setBlockIdentifier(value);
|
2398
|
+
break;
|
2399
|
+
default:
|
2400
|
+
reader.skipField();
|
2401
|
+
break;
|
2402
|
+
}
|
2403
|
+
}
|
2404
|
+
return msg;
|
2405
|
+
};
|
2406
|
+
|
2407
|
+
/**
|
2408
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2409
|
+
* @return {!Uint8Array}
|
2410
|
+
*/
|
2411
|
+
TronWebProto.AccountBalanceRequest.prototype.serializeBinary = function () {
|
2412
|
+
var writer = new jspb.BinaryWriter();
|
2413
|
+
TronWebProto.AccountBalanceRequest.serializeBinaryToWriter(this, writer);
|
2414
|
+
return writer.getResultBuffer();
|
2415
|
+
};
|
2416
|
+
|
2417
|
+
/**
|
2418
|
+
* Serializes the given message to binary data (in protobuf wire
|
2419
|
+
* format), writing to the given BinaryWriter.
|
2420
|
+
* @param {!TronWebProto.AccountBalanceRequest} message
|
2421
|
+
* @param {!jspb.BinaryWriter} writer
|
2422
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2423
|
+
*/
|
2424
|
+
TronWebProto.AccountBalanceRequest.serializeBinaryToWriter = function (message, writer) {
|
2425
|
+
var f = undefined;
|
2426
|
+
f = message.getAccountIdentifier();
|
2427
|
+
if (f != null) {
|
2428
|
+
writer.writeMessage(1, f, TronWebProto.AccountIdentifier.serializeBinaryToWriter);
|
2429
|
+
}
|
2430
|
+
f = message.getBlockIdentifier();
|
2431
|
+
if (f != null) {
|
2432
|
+
writer.writeMessage(2, f, TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter);
|
2433
|
+
}
|
2434
|
+
};
|
2435
|
+
|
2436
|
+
/**
|
2437
|
+
* optional AccountIdentifier account_identifier = 1;
|
2438
|
+
* @return {?TronWebProto.AccountIdentifier}
|
2439
|
+
*/
|
2440
|
+
TronWebProto.AccountBalanceRequest.prototype.getAccountIdentifier = function () {
|
2441
|
+
return /** @type{?TronWebProto.AccountIdentifier} */ (jspb.Message.getWrapperField(this, TronWebProto.AccountIdentifier, 1));
|
2442
|
+
};
|
2443
|
+
|
2444
|
+
/**
|
2445
|
+
* @param {?TronWebProto.AccountIdentifier|undefined} value
|
2446
|
+
* @return {!TronWebProto.AccountBalanceRequest} returns this
|
2447
|
+
*/
|
2448
|
+
TronWebProto.AccountBalanceRequest.prototype.setAccountIdentifier = function (value) {
|
2449
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
2450
|
+
};
|
2451
|
+
|
2452
|
+
/**
|
2453
|
+
* Clears the message field making it undefined.
|
2454
|
+
* @return {!TronWebProto.AccountBalanceRequest} returns this
|
2455
|
+
*/
|
2456
|
+
TronWebProto.AccountBalanceRequest.prototype.clearAccountIdentifier = function () {
|
2457
|
+
return this.setAccountIdentifier(undefined);
|
2458
|
+
};
|
2459
|
+
|
2460
|
+
/**
|
2461
|
+
* Returns whether this field is set.
|
2462
|
+
* @return {boolean}
|
2463
|
+
*/
|
2464
|
+
TronWebProto.AccountBalanceRequest.prototype.hasAccountIdentifier = function () {
|
2465
|
+
return jspb.Message.getField(this, 1) != null;
|
2466
|
+
};
|
2467
|
+
|
2468
|
+
/**
|
2469
|
+
* optional BlockBalanceTrace.BlockIdentifier block_identifier = 2;
|
2470
|
+
* @return {?TronWebProto.BlockBalanceTrace.BlockIdentifier}
|
2471
|
+
*/
|
2472
|
+
TronWebProto.AccountBalanceRequest.prototype.getBlockIdentifier = function () {
|
2473
|
+
return /** @type{?TronWebProto.BlockBalanceTrace.BlockIdentifier} */ (
|
2474
|
+
jspb.Message.getWrapperField(this, TronWebProto.BlockBalanceTrace.BlockIdentifier, 2)
|
2475
|
+
);
|
2476
|
+
};
|
2477
|
+
|
2478
|
+
/**
|
2479
|
+
* @param {?TronWebProto.BlockBalanceTrace.BlockIdentifier|undefined} value
|
2480
|
+
* @return {!TronWebProto.AccountBalanceRequest} returns this
|
2481
|
+
*/
|
2482
|
+
TronWebProto.AccountBalanceRequest.prototype.setBlockIdentifier = function (value) {
|
2483
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
2484
|
+
};
|
2485
|
+
|
2486
|
+
/**
|
2487
|
+
* Clears the message field making it undefined.
|
2488
|
+
* @return {!TronWebProto.AccountBalanceRequest} returns this
|
2489
|
+
*/
|
2490
|
+
TronWebProto.AccountBalanceRequest.prototype.clearBlockIdentifier = function () {
|
2491
|
+
return this.setBlockIdentifier(undefined);
|
2492
|
+
};
|
2493
|
+
|
2494
|
+
/**
|
2495
|
+
* Returns whether this field is set.
|
2496
|
+
* @return {boolean}
|
2497
|
+
*/
|
2498
|
+
TronWebProto.AccountBalanceRequest.prototype.hasBlockIdentifier = function () {
|
2499
|
+
return jspb.Message.getField(this, 2) != null;
|
2500
|
+
};
|
2501
|
+
|
2502
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2503
|
+
/**
|
2504
|
+
* Creates an object representation of this proto.
|
2505
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2506
|
+
* Optional fields that are not set will be set to undefined.
|
2507
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2508
|
+
* For the list of reserved names please see:
|
2509
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2510
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2511
|
+
* JSPB instance for transitional soy proto support:
|
2512
|
+
* http://goto/soy-param-migration
|
2513
|
+
* @return {!Object}
|
2514
|
+
*/
|
2515
|
+
TronWebProto.AccountBalanceResponse.prototype.toObject = function (opt_includeInstance) {
|
2516
|
+
return TronWebProto.AccountBalanceResponse.toObject(opt_includeInstance, this);
|
2517
|
+
};
|
2518
|
+
|
2519
|
+
/**
|
2520
|
+
* Static version of the {@see toObject} method.
|
2521
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2522
|
+
* the JSPB instance for transitional soy proto support:
|
2523
|
+
* http://goto/soy-param-migration
|
2524
|
+
* @param {!TronWebProto.AccountBalanceResponse} msg The msg instance to transform.
|
2525
|
+
* @return {!Object}
|
2526
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2527
|
+
*/
|
2528
|
+
TronWebProto.AccountBalanceResponse.toObject = function (includeInstance, msg) {
|
2529
|
+
var f,
|
2530
|
+
obj = {
|
2531
|
+
balance: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
2532
|
+
blockIdentifier:
|
2533
|
+
(f = msg.getBlockIdentifier()) && TronWebProto.BlockBalanceTrace.BlockIdentifier.toObject(includeInstance, f),
|
2534
|
+
};
|
2535
|
+
|
2536
|
+
if (includeInstance) {
|
2537
|
+
obj.$jspbMessageInstance = msg;
|
2538
|
+
}
|
2539
|
+
return obj;
|
2540
|
+
};
|
2541
|
+
}
|
2542
|
+
|
2543
|
+
/**
|
2544
|
+
* Deserializes binary data (in protobuf wire format).
|
2545
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2546
|
+
* @return {!TronWebProto.AccountBalanceResponse}
|
2547
|
+
*/
|
2548
|
+
TronWebProto.AccountBalanceResponse.deserializeBinary = function (bytes) {
|
2549
|
+
var reader = new jspb.BinaryReader(bytes);
|
2550
|
+
var msg = new TronWebProto.AccountBalanceResponse();
|
2551
|
+
return TronWebProto.AccountBalanceResponse.deserializeBinaryFromReader(msg, reader);
|
2552
|
+
};
|
2553
|
+
|
2554
|
+
/**
|
2555
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2556
|
+
* given reader into the given message object.
|
2557
|
+
* @param {!TronWebProto.AccountBalanceResponse} msg The message object to deserialize into.
|
2558
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2559
|
+
* @return {!TronWebProto.AccountBalanceResponse}
|
2560
|
+
*/
|
2561
|
+
TronWebProto.AccountBalanceResponse.deserializeBinaryFromReader = function (msg, reader) {
|
2562
|
+
while (reader.nextField()) {
|
2563
|
+
if (reader.isEndGroup()) {
|
2564
|
+
break;
|
2565
|
+
}
|
2566
|
+
var field = reader.getFieldNumber();
|
2567
|
+
switch (field) {
|
2568
|
+
case 1:
|
2569
|
+
var value = /** @type {number} */ (reader.readInt64());
|
2570
|
+
msg.setBalance(value);
|
2571
|
+
break;
|
2572
|
+
case 2:
|
2573
|
+
var value = new TronWebProto.BlockBalanceTrace.BlockIdentifier();
|
2574
|
+
reader.readMessage(value, TronWebProto.BlockBalanceTrace.BlockIdentifier.deserializeBinaryFromReader);
|
2575
|
+
msg.setBlockIdentifier(value);
|
2576
|
+
break;
|
2577
|
+
default:
|
2578
|
+
reader.skipField();
|
2579
|
+
break;
|
2580
|
+
}
|
2581
|
+
}
|
2582
|
+
return msg;
|
2583
|
+
};
|
2584
|
+
|
2585
|
+
/**
|
2586
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2587
|
+
* @return {!Uint8Array}
|
2588
|
+
*/
|
2589
|
+
TronWebProto.AccountBalanceResponse.prototype.serializeBinary = function () {
|
2590
|
+
var writer = new jspb.BinaryWriter();
|
2591
|
+
TronWebProto.AccountBalanceResponse.serializeBinaryToWriter(this, writer);
|
2592
|
+
return writer.getResultBuffer();
|
2593
|
+
};
|
2594
|
+
|
2595
|
+
/**
|
2596
|
+
* Serializes the given message to binary data (in protobuf wire
|
2597
|
+
* format), writing to the given BinaryWriter.
|
2598
|
+
* @param {!TronWebProto.AccountBalanceResponse} message
|
2599
|
+
* @param {!jspb.BinaryWriter} writer
|
2600
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2601
|
+
*/
|
2602
|
+
TronWebProto.AccountBalanceResponse.serializeBinaryToWriter = function (message, writer) {
|
2603
|
+
var f = undefined;
|
2604
|
+
f = message.getBalance();
|
2605
|
+
if (f !== 0) {
|
2606
|
+
writer.writeInt64(1, f);
|
2607
|
+
}
|
2608
|
+
f = message.getBlockIdentifier();
|
2609
|
+
if (f != null) {
|
2610
|
+
writer.writeMessage(2, f, TronWebProto.BlockBalanceTrace.BlockIdentifier.serializeBinaryToWriter);
|
2611
|
+
}
|
2612
|
+
};
|
2613
|
+
|
2614
|
+
/**
|
2615
|
+
* optional int64 balance = 1;
|
2616
|
+
* @return {number}
|
2617
|
+
*/
|
2618
|
+
TronWebProto.AccountBalanceResponse.prototype.getBalance = function () {
|
2619
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
2620
|
+
};
|
2621
|
+
|
2622
|
+
/**
|
2623
|
+
* @param {number} value
|
2624
|
+
* @return {!TronWebProto.AccountBalanceResponse} returns this
|
2625
|
+
*/
|
2626
|
+
TronWebProto.AccountBalanceResponse.prototype.setBalance = function (value) {
|
2627
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
2628
|
+
};
|
2629
|
+
|
2630
|
+
/**
|
2631
|
+
* optional BlockBalanceTrace.BlockIdentifier block_identifier = 2;
|
2632
|
+
* @return {?TronWebProto.BlockBalanceTrace.BlockIdentifier}
|
2633
|
+
*/
|
2634
|
+
TronWebProto.AccountBalanceResponse.prototype.getBlockIdentifier = function () {
|
2635
|
+
return /** @type{?TronWebProto.BlockBalanceTrace.BlockIdentifier} */ (
|
2636
|
+
jspb.Message.getWrapperField(this, TronWebProto.BlockBalanceTrace.BlockIdentifier, 2)
|
2637
|
+
);
|
2638
|
+
};
|
2639
|
+
|
2640
|
+
/**
|
2641
|
+
* @param {?TronWebProto.BlockBalanceTrace.BlockIdentifier|undefined} value
|
2642
|
+
* @return {!TronWebProto.AccountBalanceResponse} returns this
|
2643
|
+
*/
|
2644
|
+
TronWebProto.AccountBalanceResponse.prototype.setBlockIdentifier = function (value) {
|
2645
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
2646
|
+
};
|
2647
|
+
|
2648
|
+
/**
|
2649
|
+
* Clears the message field making it undefined.
|
2650
|
+
* @return {!TronWebProto.AccountBalanceResponse} returns this
|
2651
|
+
*/
|
2652
|
+
TronWebProto.AccountBalanceResponse.prototype.clearBlockIdentifier = function () {
|
2653
|
+
return this.setBlockIdentifier(undefined);
|
2654
|
+
};
|
2655
|
+
|
2656
|
+
/**
|
2657
|
+
* Returns whether this field is set.
|
2658
|
+
* @return {boolean}
|
2659
|
+
*/
|
2660
|
+
TronWebProto.AccountBalanceResponse.prototype.hasBlockIdentifier = function () {
|
2661
|
+
return jspb.Message.getField(this, 2) != null;
|
2662
|
+
};
|
2663
|
+
|
2664
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2665
|
+
/**
|
2666
|
+
* Creates an object representation of this proto.
|
2667
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2668
|
+
* Optional fields that are not set will be set to undefined.
|
2669
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2670
|
+
* For the list of reserved names please see:
|
2671
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2672
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2673
|
+
* JSPB instance for transitional soy proto support:
|
2674
|
+
* http://goto/soy-param-migration
|
2675
|
+
* @return {!Object}
|
2676
|
+
*/
|
2677
|
+
TronWebProto.FreezeBalanceV2Contract.prototype.toObject = function (opt_includeInstance) {
|
2678
|
+
return TronWebProto.FreezeBalanceV2Contract.toObject(opt_includeInstance, this);
|
2679
|
+
};
|
2680
|
+
|
2681
|
+
/**
|
2682
|
+
* Static version of the {@see toObject} method.
|
2683
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2684
|
+
* the JSPB instance for transitional soy proto support:
|
2685
|
+
* http://goto/soy-param-migration
|
2686
|
+
* @param {!TronWebProto.FreezeBalanceV2Contract} msg The msg instance to transform.
|
2687
|
+
* @return {!Object}
|
2688
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2689
|
+
*/
|
2690
|
+
TronWebProto.FreezeBalanceV2Contract.toObject = function (includeInstance, msg) {
|
2691
|
+
var f,
|
2692
|
+
obj = {
|
2693
|
+
ownerAddress: msg.getOwnerAddress_asB64(),
|
2694
|
+
frozenBalance: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2695
|
+
resource: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
2696
|
+
};
|
2697
|
+
|
2698
|
+
if (includeInstance) {
|
2699
|
+
obj.$jspbMessageInstance = msg;
|
2700
|
+
}
|
2701
|
+
return obj;
|
2702
|
+
};
|
2703
|
+
}
|
2704
|
+
|
2705
|
+
/**
|
2706
|
+
* Deserializes binary data (in protobuf wire format).
|
2707
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2708
|
+
* @return {!TronWebProto.FreezeBalanceV2Contract}
|
2709
|
+
*/
|
2710
|
+
TronWebProto.FreezeBalanceV2Contract.deserializeBinary = function (bytes) {
|
2711
|
+
var reader = new jspb.BinaryReader(bytes);
|
2712
|
+
var msg = new TronWebProto.FreezeBalanceV2Contract();
|
2713
|
+
return TronWebProto.FreezeBalanceV2Contract.deserializeBinaryFromReader(msg, reader);
|
2714
|
+
};
|
2715
|
+
|
2716
|
+
/**
|
2717
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2718
|
+
* given reader into the given message object.
|
2719
|
+
* @param {!TronWebProto.FreezeBalanceV2Contract} msg The message object to deserialize into.
|
2720
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2721
|
+
* @return {!TronWebProto.FreezeBalanceV2Contract}
|
2722
|
+
*/
|
2723
|
+
TronWebProto.FreezeBalanceV2Contract.deserializeBinaryFromReader = function (msg, reader) {
|
2724
|
+
while (reader.nextField()) {
|
2725
|
+
if (reader.isEndGroup()) {
|
2726
|
+
break;
|
2727
|
+
}
|
2728
|
+
var field = reader.getFieldNumber();
|
2729
|
+
switch (field) {
|
2730
|
+
case 1:
|
2731
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
2732
|
+
msg.setOwnerAddress(value);
|
2733
|
+
break;
|
2734
|
+
case 2:
|
2735
|
+
var value = /** @type {number} */ (reader.readInt64());
|
2736
|
+
msg.setFrozenBalance(value);
|
2737
|
+
break;
|
2738
|
+
case 3:
|
2739
|
+
var value = /** @type {!TronWebProto.ResourceCode} */ (reader.readEnum());
|
2740
|
+
msg.setResource(value);
|
2741
|
+
break;
|
2742
|
+
default:
|
2743
|
+
reader.skipField();
|
2744
|
+
break;
|
2745
|
+
}
|
2746
|
+
}
|
2747
|
+
return msg;
|
2748
|
+
};
|
2749
|
+
|
2750
|
+
/**
|
2751
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2752
|
+
* @return {!Uint8Array}
|
2753
|
+
*/
|
2754
|
+
TronWebProto.FreezeBalanceV2Contract.prototype.serializeBinary = function () {
|
2755
|
+
var writer = new jspb.BinaryWriter();
|
2756
|
+
TronWebProto.FreezeBalanceV2Contract.serializeBinaryToWriter(this, writer);
|
2757
|
+
return writer.getResultBuffer();
|
2758
|
+
};
|
2759
|
+
|
2760
|
+
/**
|
2761
|
+
* Serializes the given message to binary data (in protobuf wire
|
2762
|
+
* format), writing to the given BinaryWriter.
|
2763
|
+
* @param {!TronWebProto.FreezeBalanceV2Contract} message
|
2764
|
+
* @param {!jspb.BinaryWriter} writer
|
2765
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2766
|
+
*/
|
2767
|
+
TronWebProto.FreezeBalanceV2Contract.serializeBinaryToWriter = function (message, writer) {
|
2768
|
+
var f = undefined;
|
2769
|
+
f = message.getOwnerAddress_asU8();
|
2770
|
+
if (f.length > 0) {
|
2771
|
+
writer.writeBytes(1, f);
|
2772
|
+
}
|
2773
|
+
f = message.getFrozenBalance();
|
2774
|
+
if (f !== 0) {
|
2775
|
+
writer.writeInt64(2, f);
|
2776
|
+
}
|
2777
|
+
f = message.getResource();
|
2778
|
+
if (f !== 0.0) {
|
2779
|
+
writer.writeEnum(3, f);
|
2780
|
+
}
|
2781
|
+
};
|
2782
|
+
|
2783
|
+
/**
|
2784
|
+
* optional bytes owner_address = 1;
|
2785
|
+
* @return {!(string|Uint8Array)}
|
2786
|
+
*/
|
2787
|
+
TronWebProto.FreezeBalanceV2Contract.prototype.getOwnerAddress = function () {
|
2788
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
2789
|
+
};
|
2790
|
+
|
2791
|
+
/**
|
2792
|
+
* optional bytes owner_address = 1;
|
2793
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
2794
|
+
* @return {string}
|
2795
|
+
*/
|
2796
|
+
TronWebProto.FreezeBalanceV2Contract.prototype.getOwnerAddress_asB64 = function () {
|
2797
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getOwnerAddress()));
|
2798
|
+
};
|
2799
|
+
|
2800
|
+
/**
|
2801
|
+
* optional bytes owner_address = 1;
|
2802
|
+
* Note that Uint8Array is not supported on all browsers.
|
2803
|
+
* @see http://caniuse.com/Uint8Array
|
2804
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
2805
|
+
* @return {!Uint8Array}
|
2806
|
+
*/
|
2807
|
+
TronWebProto.FreezeBalanceV2Contract.prototype.getOwnerAddress_asU8 = function () {
|
2808
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getOwnerAddress()));
|
2809
|
+
};
|
2810
|
+
|
2811
|
+
/**
|
2812
|
+
* @param {!(string|Uint8Array)} value
|
2813
|
+
* @return {!TronWebProto.FreezeBalanceV2Contract} returns this
|
2814
|
+
*/
|
2815
|
+
TronWebProto.FreezeBalanceV2Contract.prototype.setOwnerAddress = function (value) {
|
2816
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
2817
|
+
};
|
2818
|
+
|
2819
|
+
/**
|
2820
|
+
* optional int64 frozen_balance = 2;
|
2821
|
+
* @return {number}
|
2822
|
+
*/
|
2823
|
+
TronWebProto.FreezeBalanceV2Contract.prototype.getFrozenBalance = function () {
|
2824
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
2825
|
+
};
|
2826
|
+
|
2827
|
+
/**
|
2828
|
+
* @param {number} value
|
2829
|
+
* @return {!TronWebProto.FreezeBalanceV2Contract} returns this
|
2830
|
+
*/
|
2831
|
+
TronWebProto.FreezeBalanceV2Contract.prototype.setFrozenBalance = function (value) {
|
2832
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
2833
|
+
};
|
2834
|
+
|
2835
|
+
/**
|
2836
|
+
* optional ResourceCode resource = 3;
|
2837
|
+
* @return {!TronWebProto.ResourceCode}
|
2838
|
+
*/
|
2839
|
+
TronWebProto.FreezeBalanceV2Contract.prototype.getResource = function () {
|
2840
|
+
return /** @type {!TronWebProto.ResourceCode} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
2841
|
+
};
|
2842
|
+
|
2843
|
+
/**
|
2844
|
+
* @param {!TronWebProto.ResourceCode} value
|
2845
|
+
* @return {!TronWebProto.FreezeBalanceV2Contract} returns this
|
2846
|
+
*/
|
2847
|
+
TronWebProto.FreezeBalanceV2Contract.prototype.setResource = function (value) {
|
2848
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
2849
|
+
};
|
2850
|
+
|
2851
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2852
|
+
/**
|
2853
|
+
* Creates an object representation of this proto.
|
2854
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2855
|
+
* Optional fields that are not set will be set to undefined.
|
2856
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2857
|
+
* For the list of reserved names please see:
|
2858
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2859
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2860
|
+
* JSPB instance for transitional soy proto support:
|
2861
|
+
* http://goto/soy-param-migration
|
2862
|
+
* @return {!Object}
|
2863
|
+
*/
|
2864
|
+
TronWebProto.UnfreezeBalanceV2Contract.prototype.toObject = function (opt_includeInstance) {
|
2865
|
+
return TronWebProto.UnfreezeBalanceV2Contract.toObject(opt_includeInstance, this);
|
2866
|
+
};
|
2867
|
+
|
2868
|
+
/**
|
2869
|
+
* Static version of the {@see toObject} method.
|
2870
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2871
|
+
* the JSPB instance for transitional soy proto support:
|
2872
|
+
* http://goto/soy-param-migration
|
2873
|
+
* @param {!TronWebProto.UnfreezeBalanceV2Contract} msg The msg instance to transform.
|
2874
|
+
* @return {!Object}
|
2875
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2876
|
+
*/
|
2877
|
+
TronWebProto.UnfreezeBalanceV2Contract.toObject = function (includeInstance, msg) {
|
2878
|
+
var f,
|
2879
|
+
obj = {
|
2880
|
+
ownerAddress: msg.getOwnerAddress_asB64(),
|
2881
|
+
unfreezeBalance: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
2882
|
+
resource: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
2883
|
+
};
|
2884
|
+
|
2885
|
+
if (includeInstance) {
|
2886
|
+
obj.$jspbMessageInstance = msg;
|
2887
|
+
}
|
2888
|
+
return obj;
|
2889
|
+
};
|
2890
|
+
}
|
2891
|
+
|
2892
|
+
/**
|
2893
|
+
* Deserializes binary data (in protobuf wire format).
|
2894
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2895
|
+
* @return {!TronWebProto.UnfreezeBalanceV2Contract}
|
2896
|
+
*/
|
2897
|
+
TronWebProto.UnfreezeBalanceV2Contract.deserializeBinary = function (bytes) {
|
2898
|
+
var reader = new jspb.BinaryReader(bytes);
|
2899
|
+
var msg = new TronWebProto.UnfreezeBalanceV2Contract();
|
2900
|
+
return TronWebProto.UnfreezeBalanceV2Contract.deserializeBinaryFromReader(msg, reader);
|
2901
|
+
};
|
2902
|
+
|
2903
|
+
/**
|
2904
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2905
|
+
* given reader into the given message object.
|
2906
|
+
* @param {!TronWebProto.UnfreezeBalanceV2Contract} msg The message object to deserialize into.
|
2907
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2908
|
+
* @return {!TronWebProto.UnfreezeBalanceV2Contract}
|
2909
|
+
*/
|
2910
|
+
TronWebProto.UnfreezeBalanceV2Contract.deserializeBinaryFromReader = function (msg, reader) {
|
2911
|
+
while (reader.nextField()) {
|
2912
|
+
if (reader.isEndGroup()) {
|
2913
|
+
break;
|
2914
|
+
}
|
2915
|
+
var field = reader.getFieldNumber();
|
2916
|
+
switch (field) {
|
2917
|
+
case 1:
|
2918
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
2919
|
+
msg.setOwnerAddress(value);
|
2920
|
+
break;
|
2921
|
+
case 2:
|
2922
|
+
var value = /** @type {number} */ (reader.readInt64());
|
2923
|
+
msg.setUnfreezeBalance(value);
|
2924
|
+
break;
|
2925
|
+
case 3:
|
2926
|
+
var value = /** @type {!TronWebProto.ResourceCode} */ (reader.readEnum());
|
2927
|
+
msg.setResource(value);
|
2928
|
+
break;
|
2929
|
+
default:
|
2930
|
+
reader.skipField();
|
2931
|
+
break;
|
2932
|
+
}
|
2933
|
+
}
|
2934
|
+
return msg;
|
2935
|
+
};
|
2936
|
+
|
2937
|
+
/**
|
2938
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2939
|
+
* @return {!Uint8Array}
|
2940
|
+
*/
|
2941
|
+
TronWebProto.UnfreezeBalanceV2Contract.prototype.serializeBinary = function () {
|
2942
|
+
var writer = new jspb.BinaryWriter();
|
2943
|
+
TronWebProto.UnfreezeBalanceV2Contract.serializeBinaryToWriter(this, writer);
|
2944
|
+
return writer.getResultBuffer();
|
2945
|
+
};
|
2946
|
+
|
2947
|
+
/**
|
2948
|
+
* Serializes the given message to binary data (in protobuf wire
|
2949
|
+
* format), writing to the given BinaryWriter.
|
2950
|
+
* @param {!TronWebProto.UnfreezeBalanceV2Contract} message
|
2951
|
+
* @param {!jspb.BinaryWriter} writer
|
2952
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2953
|
+
*/
|
2954
|
+
TronWebProto.UnfreezeBalanceV2Contract.serializeBinaryToWriter = function (message, writer) {
|
2955
|
+
var f = undefined;
|
2956
|
+
f = message.getOwnerAddress_asU8();
|
2957
|
+
if (f.length > 0) {
|
2958
|
+
writer.writeBytes(1, f);
|
2959
|
+
}
|
2960
|
+
f = message.getUnfreezeBalance();
|
2961
|
+
if (f !== 0) {
|
2962
|
+
writer.writeInt64(2, f);
|
2963
|
+
}
|
2964
|
+
f = message.getResource();
|
2965
|
+
if (f !== 0.0) {
|
2966
|
+
writer.writeEnum(3, f);
|
2967
|
+
}
|
2968
|
+
};
|
2969
|
+
|
2970
|
+
/**
|
2971
|
+
* optional bytes owner_address = 1;
|
2972
|
+
* @return {!(string|Uint8Array)}
|
2973
|
+
*/
|
2974
|
+
TronWebProto.UnfreezeBalanceV2Contract.prototype.getOwnerAddress = function () {
|
2975
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
2976
|
+
};
|
2977
|
+
|
2978
|
+
/**
|
2979
|
+
* optional bytes owner_address = 1;
|
2980
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
2981
|
+
* @return {string}
|
2982
|
+
*/
|
2983
|
+
TronWebProto.UnfreezeBalanceV2Contract.prototype.getOwnerAddress_asB64 = function () {
|
2984
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getOwnerAddress()));
|
2985
|
+
};
|
2986
|
+
|
2987
|
+
/**
|
2988
|
+
* optional bytes owner_address = 1;
|
2989
|
+
* Note that Uint8Array is not supported on all browsers.
|
2990
|
+
* @see http://caniuse.com/Uint8Array
|
2991
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
2992
|
+
* @return {!Uint8Array}
|
2993
|
+
*/
|
2994
|
+
TronWebProto.UnfreezeBalanceV2Contract.prototype.getOwnerAddress_asU8 = function () {
|
2995
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getOwnerAddress()));
|
2996
|
+
};
|
2997
|
+
|
2998
|
+
/**
|
2999
|
+
* @param {!(string|Uint8Array)} value
|
3000
|
+
* @return {!TronWebProto.UnfreezeBalanceV2Contract} returns this
|
3001
|
+
*/
|
3002
|
+
TronWebProto.UnfreezeBalanceV2Contract.prototype.setOwnerAddress = function (value) {
|
3003
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
3004
|
+
};
|
3005
|
+
|
3006
|
+
/**
|
3007
|
+
* optional int64 unfreeze_balance = 2;
|
3008
|
+
* @return {number}
|
3009
|
+
*/
|
3010
|
+
TronWebProto.UnfreezeBalanceV2Contract.prototype.getUnfreezeBalance = function () {
|
3011
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
3012
|
+
};
|
3013
|
+
|
3014
|
+
/**
|
3015
|
+
* @param {number} value
|
3016
|
+
* @return {!TronWebProto.UnfreezeBalanceV2Contract} returns this
|
3017
|
+
*/
|
3018
|
+
TronWebProto.UnfreezeBalanceV2Contract.prototype.setUnfreezeBalance = function (value) {
|
3019
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
3020
|
+
};
|
3021
|
+
|
3022
|
+
/**
|
3023
|
+
* optional ResourceCode resource = 3;
|
3024
|
+
* @return {!TronWebProto.ResourceCode}
|
3025
|
+
*/
|
3026
|
+
TronWebProto.UnfreezeBalanceV2Contract.prototype.getResource = function () {
|
3027
|
+
return /** @type {!TronWebProto.ResourceCode} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
3028
|
+
};
|
3029
|
+
|
3030
|
+
/**
|
3031
|
+
* @param {!TronWebProto.ResourceCode} value
|
3032
|
+
* @return {!TronWebProto.UnfreezeBalanceV2Contract} returns this
|
3033
|
+
*/
|
3034
|
+
TronWebProto.UnfreezeBalanceV2Contract.prototype.setResource = function (value) {
|
3035
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
3036
|
+
};
|
3037
|
+
|
3038
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3039
|
+
/**
|
3040
|
+
* Creates an object representation of this proto.
|
3041
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3042
|
+
* Optional fields that are not set will be set to undefined.
|
3043
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3044
|
+
* For the list of reserved names please see:
|
3045
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3046
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3047
|
+
* JSPB instance for transitional soy proto support:
|
3048
|
+
* http://goto/soy-param-migration
|
3049
|
+
* @return {!Object}
|
3050
|
+
*/
|
3051
|
+
TronWebProto.WithdrawExpireUnfreezeContract.prototype.toObject = function (opt_includeInstance) {
|
3052
|
+
return TronWebProto.WithdrawExpireUnfreezeContract.toObject(opt_includeInstance, this);
|
3053
|
+
};
|
3054
|
+
|
3055
|
+
/**
|
3056
|
+
* Static version of the {@see toObject} method.
|
3057
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3058
|
+
* the JSPB instance for transitional soy proto support:
|
3059
|
+
* http://goto/soy-param-migration
|
3060
|
+
* @param {!TronWebProto.WithdrawExpireUnfreezeContract} msg The msg instance to transform.
|
3061
|
+
* @return {!Object}
|
3062
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3063
|
+
*/
|
3064
|
+
TronWebProto.WithdrawExpireUnfreezeContract.toObject = function (includeInstance, msg) {
|
3065
|
+
var f,
|
3066
|
+
obj = {
|
3067
|
+
ownerAddress: msg.getOwnerAddress_asB64(),
|
3068
|
+
};
|
3069
|
+
|
3070
|
+
if (includeInstance) {
|
3071
|
+
obj.$jspbMessageInstance = msg;
|
3072
|
+
}
|
3073
|
+
return obj;
|
3074
|
+
};
|
3075
|
+
}
|
3076
|
+
|
3077
|
+
/**
|
3078
|
+
* Deserializes binary data (in protobuf wire format).
|
3079
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3080
|
+
* @return {!TronWebProto.WithdrawExpireUnfreezeContract}
|
3081
|
+
*/
|
3082
|
+
TronWebProto.WithdrawExpireUnfreezeContract.deserializeBinary = function (bytes) {
|
3083
|
+
var reader = new jspb.BinaryReader(bytes);
|
3084
|
+
var msg = new TronWebProto.WithdrawExpireUnfreezeContract();
|
3085
|
+
return TronWebProto.WithdrawExpireUnfreezeContract.deserializeBinaryFromReader(msg, reader);
|
3086
|
+
};
|
3087
|
+
|
3088
|
+
/**
|
3089
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3090
|
+
* given reader into the given message object.
|
3091
|
+
* @param {!TronWebProto.WithdrawExpireUnfreezeContract} msg The message object to deserialize into.
|
3092
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3093
|
+
* @return {!TronWebProto.WithdrawExpireUnfreezeContract}
|
3094
|
+
*/
|
3095
|
+
TronWebProto.WithdrawExpireUnfreezeContract.deserializeBinaryFromReader = function (msg, reader) {
|
3096
|
+
while (reader.nextField()) {
|
3097
|
+
if (reader.isEndGroup()) {
|
3098
|
+
break;
|
3099
|
+
}
|
3100
|
+
var field = reader.getFieldNumber();
|
3101
|
+
switch (field) {
|
3102
|
+
case 1:
|
3103
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
3104
|
+
msg.setOwnerAddress(value);
|
3105
|
+
break;
|
3106
|
+
default:
|
3107
|
+
reader.skipField();
|
3108
|
+
break;
|
3109
|
+
}
|
3110
|
+
}
|
3111
|
+
return msg;
|
3112
|
+
};
|
3113
|
+
|
3114
|
+
/**
|
3115
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3116
|
+
* @return {!Uint8Array}
|
3117
|
+
*/
|
3118
|
+
TronWebProto.WithdrawExpireUnfreezeContract.prototype.serializeBinary = function () {
|
3119
|
+
var writer = new jspb.BinaryWriter();
|
3120
|
+
TronWebProto.WithdrawExpireUnfreezeContract.serializeBinaryToWriter(this, writer);
|
3121
|
+
return writer.getResultBuffer();
|
3122
|
+
};
|
3123
|
+
|
3124
|
+
/**
|
3125
|
+
* Serializes the given message to binary data (in protobuf wire
|
3126
|
+
* format), writing to the given BinaryWriter.
|
3127
|
+
* @param {!TronWebProto.WithdrawExpireUnfreezeContract} message
|
3128
|
+
* @param {!jspb.BinaryWriter} writer
|
3129
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3130
|
+
*/
|
3131
|
+
TronWebProto.WithdrawExpireUnfreezeContract.serializeBinaryToWriter = function (message, writer) {
|
3132
|
+
var f = undefined;
|
3133
|
+
f = message.getOwnerAddress_asU8();
|
3134
|
+
if (f.length > 0) {
|
3135
|
+
writer.writeBytes(1, f);
|
3136
|
+
}
|
3137
|
+
};
|
3138
|
+
|
3139
|
+
/**
|
3140
|
+
* optional bytes owner_address = 1;
|
3141
|
+
* @return {!(string|Uint8Array)}
|
3142
|
+
*/
|
3143
|
+
TronWebProto.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress = function () {
|
3144
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
3145
|
+
};
|
3146
|
+
|
3147
|
+
/**
|
3148
|
+
* optional bytes owner_address = 1;
|
3149
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
3150
|
+
* @return {string}
|
3151
|
+
*/
|
3152
|
+
TronWebProto.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress_asB64 = function () {
|
3153
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getOwnerAddress()));
|
3154
|
+
};
|
3155
|
+
|
3156
|
+
/**
|
3157
|
+
* optional bytes owner_address = 1;
|
3158
|
+
* Note that Uint8Array is not supported on all browsers.
|
3159
|
+
* @see http://caniuse.com/Uint8Array
|
3160
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
3161
|
+
* @return {!Uint8Array}
|
3162
|
+
*/
|
3163
|
+
TronWebProto.WithdrawExpireUnfreezeContract.prototype.getOwnerAddress_asU8 = function () {
|
3164
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getOwnerAddress()));
|
3165
|
+
};
|
3166
|
+
|
3167
|
+
/**
|
3168
|
+
* @param {!(string|Uint8Array)} value
|
3169
|
+
* @return {!TronWebProto.WithdrawExpireUnfreezeContract} returns this
|
3170
|
+
*/
|
3171
|
+
TronWebProto.WithdrawExpireUnfreezeContract.prototype.setOwnerAddress = function (value) {
|
3172
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
3173
|
+
};
|
3174
|
+
|
3175
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3176
|
+
/**
|
3177
|
+
* Creates an object representation of this proto.
|
3178
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3179
|
+
* Optional fields that are not set will be set to undefined.
|
3180
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3181
|
+
* For the list of reserved names please see:
|
3182
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3183
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3184
|
+
* JSPB instance for transitional soy proto support:
|
3185
|
+
* http://goto/soy-param-migration
|
3186
|
+
* @return {!Object}
|
3187
|
+
*/
|
3188
|
+
TronWebProto.DelegateResourceContract.prototype.toObject = function (opt_includeInstance) {
|
3189
|
+
return TronWebProto.DelegateResourceContract.toObject(opt_includeInstance, this);
|
3190
|
+
};
|
3191
|
+
|
3192
|
+
/**
|
3193
|
+
* Static version of the {@see toObject} method.
|
3194
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3195
|
+
* the JSPB instance for transitional soy proto support:
|
3196
|
+
* http://goto/soy-param-migration
|
3197
|
+
* @param {!TronWebProto.DelegateResourceContract} msg The msg instance to transform.
|
3198
|
+
* @return {!Object}
|
3199
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3200
|
+
*/
|
3201
|
+
TronWebProto.DelegateResourceContract.toObject = function (includeInstance, msg) {
|
3202
|
+
var f,
|
3203
|
+
obj = {
|
3204
|
+
ownerAddress: msg.getOwnerAddress_asB64(),
|
3205
|
+
resource: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
3206
|
+
balance: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
3207
|
+
receiverAddress: msg.getReceiverAddress_asB64(),
|
3208
|
+
lock: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
3209
|
+
lockPeriod: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
3210
|
+
};
|
3211
|
+
|
3212
|
+
if (includeInstance) {
|
3213
|
+
obj.$jspbMessageInstance = msg;
|
3214
|
+
}
|
3215
|
+
return obj;
|
3216
|
+
};
|
3217
|
+
}
|
3218
|
+
|
3219
|
+
/**
|
3220
|
+
* Deserializes binary data (in protobuf wire format).
|
3221
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3222
|
+
* @return {!TronWebProto.DelegateResourceContract}
|
3223
|
+
*/
|
3224
|
+
TronWebProto.DelegateResourceContract.deserializeBinary = function (bytes) {
|
3225
|
+
var reader = new jspb.BinaryReader(bytes);
|
3226
|
+
var msg = new TronWebProto.DelegateResourceContract();
|
3227
|
+
return TronWebProto.DelegateResourceContract.deserializeBinaryFromReader(msg, reader);
|
3228
|
+
};
|
3229
|
+
|
3230
|
+
/**
|
3231
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3232
|
+
* given reader into the given message object.
|
3233
|
+
* @param {!TronWebProto.DelegateResourceContract} msg The message object to deserialize into.
|
3234
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3235
|
+
* @return {!TronWebProto.DelegateResourceContract}
|
3236
|
+
*/
|
3237
|
+
TronWebProto.DelegateResourceContract.deserializeBinaryFromReader = function (msg, reader) {
|
3238
|
+
while (reader.nextField()) {
|
3239
|
+
if (reader.isEndGroup()) {
|
3240
|
+
break;
|
3241
|
+
}
|
3242
|
+
var field = reader.getFieldNumber();
|
3243
|
+
switch (field) {
|
3244
|
+
case 1:
|
3245
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
3246
|
+
msg.setOwnerAddress(value);
|
3247
|
+
break;
|
3248
|
+
case 2:
|
3249
|
+
var value = /** @type {!TronWebProto.ResourceCode} */ (reader.readEnum());
|
3250
|
+
msg.setResource(value);
|
3251
|
+
break;
|
3252
|
+
case 3:
|
3253
|
+
var value = /** @type {number} */ (reader.readInt64());
|
3254
|
+
msg.setBalance(value);
|
3255
|
+
break;
|
3256
|
+
case 4:
|
3257
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
3258
|
+
msg.setReceiverAddress(value);
|
3259
|
+
break;
|
3260
|
+
case 5:
|
3261
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
3262
|
+
msg.setLock(value);
|
3263
|
+
break;
|
3264
|
+
case 6:
|
3265
|
+
var value = /** @type {number} */ (reader.readInt64());
|
3266
|
+
msg.setLockPeriod(value);
|
3267
|
+
break;
|
3268
|
+
default:
|
3269
|
+
reader.skipField();
|
3270
|
+
break;
|
3271
|
+
}
|
3272
|
+
}
|
3273
|
+
return msg;
|
3274
|
+
};
|
3275
|
+
|
3276
|
+
/**
|
3277
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3278
|
+
* @return {!Uint8Array}
|
3279
|
+
*/
|
3280
|
+
TronWebProto.DelegateResourceContract.prototype.serializeBinary = function () {
|
3281
|
+
var writer = new jspb.BinaryWriter();
|
3282
|
+
TronWebProto.DelegateResourceContract.serializeBinaryToWriter(this, writer);
|
3283
|
+
return writer.getResultBuffer();
|
3284
|
+
};
|
3285
|
+
|
3286
|
+
/**
|
3287
|
+
* Serializes the given message to binary data (in protobuf wire
|
3288
|
+
* format), writing to the given BinaryWriter.
|
3289
|
+
* @param {!TronWebProto.DelegateResourceContract} message
|
3290
|
+
* @param {!jspb.BinaryWriter} writer
|
3291
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3292
|
+
*/
|
3293
|
+
TronWebProto.DelegateResourceContract.serializeBinaryToWriter = function (message, writer) {
|
3294
|
+
var f = undefined;
|
3295
|
+
f = message.getOwnerAddress_asU8();
|
3296
|
+
if (f.length > 0) {
|
3297
|
+
writer.writeBytes(1, f);
|
3298
|
+
}
|
3299
|
+
f = message.getResource();
|
3300
|
+
if (f !== 0.0) {
|
3301
|
+
writer.writeEnum(2, f);
|
3302
|
+
}
|
3303
|
+
f = message.getBalance();
|
3304
|
+
if (f !== 0) {
|
3305
|
+
writer.writeInt64(3, f);
|
3306
|
+
}
|
3307
|
+
f = message.getReceiverAddress_asU8();
|
3308
|
+
if (f.length > 0) {
|
3309
|
+
writer.writeBytes(4, f);
|
3310
|
+
}
|
3311
|
+
f = message.getLock();
|
3312
|
+
if (f) {
|
3313
|
+
writer.writeBool(5, f);
|
3314
|
+
}
|
3315
|
+
f = message.getLockPeriod();
|
3316
|
+
if (f !== 0) {
|
3317
|
+
writer.writeInt64(6, f);
|
3318
|
+
}
|
3319
|
+
};
|
3320
|
+
|
3321
|
+
/**
|
3322
|
+
* optional bytes owner_address = 1;
|
3323
|
+
* @return {!(string|Uint8Array)}
|
3324
|
+
*/
|
3325
|
+
TronWebProto.DelegateResourceContract.prototype.getOwnerAddress = function () {
|
3326
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
3327
|
+
};
|
3328
|
+
|
3329
|
+
/**
|
3330
|
+
* optional bytes owner_address = 1;
|
3331
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
3332
|
+
* @return {string}
|
3333
|
+
*/
|
3334
|
+
TronWebProto.DelegateResourceContract.prototype.getOwnerAddress_asB64 = function () {
|
3335
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getOwnerAddress()));
|
3336
|
+
};
|
3337
|
+
|
3338
|
+
/**
|
3339
|
+
* optional bytes owner_address = 1;
|
3340
|
+
* Note that Uint8Array is not supported on all browsers.
|
3341
|
+
* @see http://caniuse.com/Uint8Array
|
3342
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
3343
|
+
* @return {!Uint8Array}
|
3344
|
+
*/
|
3345
|
+
TronWebProto.DelegateResourceContract.prototype.getOwnerAddress_asU8 = function () {
|
3346
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getOwnerAddress()));
|
3347
|
+
};
|
3348
|
+
|
3349
|
+
/**
|
3350
|
+
* @param {!(string|Uint8Array)} value
|
3351
|
+
* @return {!TronWebProto.DelegateResourceContract} returns this
|
3352
|
+
*/
|
3353
|
+
TronWebProto.DelegateResourceContract.prototype.setOwnerAddress = function (value) {
|
3354
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
3355
|
+
};
|
3356
|
+
|
3357
|
+
/**
|
3358
|
+
* optional ResourceCode resource = 2;
|
3359
|
+
* @return {!TronWebProto.ResourceCode}
|
3360
|
+
*/
|
3361
|
+
TronWebProto.DelegateResourceContract.prototype.getResource = function () {
|
3362
|
+
return /** @type {!TronWebProto.ResourceCode} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
3363
|
+
};
|
3364
|
+
|
3365
|
+
/**
|
3366
|
+
* @param {!TronWebProto.ResourceCode} value
|
3367
|
+
* @return {!TronWebProto.DelegateResourceContract} returns this
|
3368
|
+
*/
|
3369
|
+
TronWebProto.DelegateResourceContract.prototype.setResource = function (value) {
|
3370
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
3371
|
+
};
|
3372
|
+
|
3373
|
+
/**
|
3374
|
+
* optional int64 balance = 3;
|
3375
|
+
* @return {number}
|
3376
|
+
*/
|
3377
|
+
TronWebProto.DelegateResourceContract.prototype.getBalance = function () {
|
3378
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
3379
|
+
};
|
3380
|
+
|
3381
|
+
/**
|
3382
|
+
* @param {number} value
|
3383
|
+
* @return {!TronWebProto.DelegateResourceContract} returns this
|
3384
|
+
*/
|
3385
|
+
TronWebProto.DelegateResourceContract.prototype.setBalance = function (value) {
|
3386
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
3387
|
+
};
|
3388
|
+
|
3389
|
+
/**
|
3390
|
+
* optional bytes receiver_address = 4;
|
3391
|
+
* @return {!(string|Uint8Array)}
|
3392
|
+
*/
|
3393
|
+
TronWebProto.DelegateResourceContract.prototype.getReceiverAddress = function () {
|
3394
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ''));
|
3395
|
+
};
|
3396
|
+
|
3397
|
+
/**
|
3398
|
+
* optional bytes receiver_address = 4;
|
3399
|
+
* This is a type-conversion wrapper around `getReceiverAddress()`
|
3400
|
+
* @return {string}
|
3401
|
+
*/
|
3402
|
+
TronWebProto.DelegateResourceContract.prototype.getReceiverAddress_asB64 = function () {
|
3403
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getReceiverAddress()));
|
3404
|
+
};
|
3405
|
+
|
3406
|
+
/**
|
3407
|
+
* optional bytes receiver_address = 4;
|
3408
|
+
* Note that Uint8Array is not supported on all browsers.
|
3409
|
+
* @see http://caniuse.com/Uint8Array
|
3410
|
+
* This is a type-conversion wrapper around `getReceiverAddress()`
|
3411
|
+
* @return {!Uint8Array}
|
3412
|
+
*/
|
3413
|
+
TronWebProto.DelegateResourceContract.prototype.getReceiverAddress_asU8 = function () {
|
3414
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getReceiverAddress()));
|
3415
|
+
};
|
3416
|
+
|
3417
|
+
/**
|
3418
|
+
* @param {!(string|Uint8Array)} value
|
3419
|
+
* @return {!TronWebProto.DelegateResourceContract} returns this
|
3420
|
+
*/
|
3421
|
+
TronWebProto.DelegateResourceContract.prototype.setReceiverAddress = function (value) {
|
3422
|
+
return jspb.Message.setProto3BytesField(this, 4, value);
|
3423
|
+
};
|
3424
|
+
|
3425
|
+
/**
|
3426
|
+
* optional bool lock = 5;
|
3427
|
+
* @return {boolean}
|
3428
|
+
*/
|
3429
|
+
TronWebProto.DelegateResourceContract.prototype.getLock = function () {
|
3430
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
3431
|
+
};
|
3432
|
+
|
3433
|
+
/**
|
3434
|
+
* @param {boolean} value
|
3435
|
+
* @return {!TronWebProto.DelegateResourceContract} returns this
|
3436
|
+
*/
|
3437
|
+
TronWebProto.DelegateResourceContract.prototype.setLock = function (value) {
|
3438
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
3439
|
+
};
|
3440
|
+
|
3441
|
+
/**
|
3442
|
+
* optional int64 lock_period = 6;
|
3443
|
+
* @return {number}
|
3444
|
+
*/
|
3445
|
+
TronWebProto.DelegateResourceContract.prototype.getLockPeriod = function () {
|
3446
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
3447
|
+
};
|
3448
|
+
|
3449
|
+
/**
|
3450
|
+
* @param {number} value
|
3451
|
+
* @return {!TronWebProto.DelegateResourceContract} returns this
|
3452
|
+
*/
|
3453
|
+
TronWebProto.DelegateResourceContract.prototype.setLockPeriod = function (value) {
|
3454
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
3455
|
+
};
|
3456
|
+
|
3457
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3458
|
+
/**
|
3459
|
+
* Creates an object representation of this proto.
|
3460
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3461
|
+
* Optional fields that are not set will be set to undefined.
|
3462
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3463
|
+
* For the list of reserved names please see:
|
3464
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3465
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3466
|
+
* JSPB instance for transitional soy proto support:
|
3467
|
+
* http://goto/soy-param-migration
|
3468
|
+
* @return {!Object}
|
3469
|
+
*/
|
3470
|
+
TronWebProto.UnDelegateResourceContract.prototype.toObject = function (opt_includeInstance) {
|
3471
|
+
return TronWebProto.UnDelegateResourceContract.toObject(opt_includeInstance, this);
|
3472
|
+
};
|
3473
|
+
|
3474
|
+
/**
|
3475
|
+
* Static version of the {@see toObject} method.
|
3476
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3477
|
+
* the JSPB instance for transitional soy proto support:
|
3478
|
+
* http://goto/soy-param-migration
|
3479
|
+
* @param {!TronWebProto.UnDelegateResourceContract} msg The msg instance to transform.
|
3480
|
+
* @return {!Object}
|
3481
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3482
|
+
*/
|
3483
|
+
TronWebProto.UnDelegateResourceContract.toObject = function (includeInstance, msg) {
|
3484
|
+
var f,
|
3485
|
+
obj = {
|
3486
|
+
ownerAddress: msg.getOwnerAddress_asB64(),
|
3487
|
+
resource: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
3488
|
+
balance: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
3489
|
+
receiverAddress: msg.getReceiverAddress_asB64(),
|
3490
|
+
};
|
3491
|
+
|
3492
|
+
if (includeInstance) {
|
3493
|
+
obj.$jspbMessageInstance = msg;
|
3494
|
+
}
|
3495
|
+
return obj;
|
3496
|
+
};
|
3497
|
+
}
|
3498
|
+
|
3499
|
+
/**
|
3500
|
+
* Deserializes binary data (in protobuf wire format).
|
3501
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3502
|
+
* @return {!TronWebProto.UnDelegateResourceContract}
|
3503
|
+
*/
|
3504
|
+
TronWebProto.UnDelegateResourceContract.deserializeBinary = function (bytes) {
|
3505
|
+
var reader = new jspb.BinaryReader(bytes);
|
3506
|
+
var msg = new TronWebProto.UnDelegateResourceContract();
|
3507
|
+
return TronWebProto.UnDelegateResourceContract.deserializeBinaryFromReader(msg, reader);
|
3508
|
+
};
|
3509
|
+
|
3510
|
+
/**
|
3511
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3512
|
+
* given reader into the given message object.
|
3513
|
+
* @param {!TronWebProto.UnDelegateResourceContract} msg The message object to deserialize into.
|
3514
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3515
|
+
* @return {!TronWebProto.UnDelegateResourceContract}
|
3516
|
+
*/
|
3517
|
+
TronWebProto.UnDelegateResourceContract.deserializeBinaryFromReader = function (msg, reader) {
|
3518
|
+
while (reader.nextField()) {
|
3519
|
+
if (reader.isEndGroup()) {
|
3520
|
+
break;
|
3521
|
+
}
|
3522
|
+
var field = reader.getFieldNumber();
|
3523
|
+
switch (field) {
|
3524
|
+
case 1:
|
3525
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
3526
|
+
msg.setOwnerAddress(value);
|
3527
|
+
break;
|
3528
|
+
case 2:
|
3529
|
+
var value = /** @type {!TronWebProto.ResourceCode} */ (reader.readEnum());
|
3530
|
+
msg.setResource(value);
|
3531
|
+
break;
|
3532
|
+
case 3:
|
3533
|
+
var value = /** @type {number} */ (reader.readInt64());
|
3534
|
+
msg.setBalance(value);
|
3535
|
+
break;
|
3536
|
+
case 4:
|
3537
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
3538
|
+
msg.setReceiverAddress(value);
|
3539
|
+
break;
|
3540
|
+
default:
|
3541
|
+
reader.skipField();
|
3542
|
+
break;
|
3543
|
+
}
|
3544
|
+
}
|
3545
|
+
return msg;
|
3546
|
+
};
|
3547
|
+
|
3548
|
+
/**
|
3549
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3550
|
+
* @return {!Uint8Array}
|
3551
|
+
*/
|
3552
|
+
TronWebProto.UnDelegateResourceContract.prototype.serializeBinary = function () {
|
3553
|
+
var writer = new jspb.BinaryWriter();
|
3554
|
+
TronWebProto.UnDelegateResourceContract.serializeBinaryToWriter(this, writer);
|
3555
|
+
return writer.getResultBuffer();
|
3556
|
+
};
|
3557
|
+
|
3558
|
+
/**
|
3559
|
+
* Serializes the given message to binary data (in protobuf wire
|
3560
|
+
* format), writing to the given BinaryWriter.
|
3561
|
+
* @param {!TronWebProto.UnDelegateResourceContract} message
|
3562
|
+
* @param {!jspb.BinaryWriter} writer
|
3563
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3564
|
+
*/
|
3565
|
+
TronWebProto.UnDelegateResourceContract.serializeBinaryToWriter = function (message, writer) {
|
3566
|
+
var f = undefined;
|
3567
|
+
f = message.getOwnerAddress_asU8();
|
3568
|
+
if (f.length > 0) {
|
3569
|
+
writer.writeBytes(1, f);
|
3570
|
+
}
|
3571
|
+
f = message.getResource();
|
3572
|
+
if (f !== 0.0) {
|
3573
|
+
writer.writeEnum(2, f);
|
3574
|
+
}
|
3575
|
+
f = message.getBalance();
|
3576
|
+
if (f !== 0) {
|
3577
|
+
writer.writeInt64(3, f);
|
3578
|
+
}
|
3579
|
+
f = message.getReceiverAddress_asU8();
|
3580
|
+
if (f.length > 0) {
|
3581
|
+
writer.writeBytes(4, f);
|
3582
|
+
}
|
3583
|
+
};
|
3584
|
+
|
3585
|
+
/**
|
3586
|
+
* optional bytes owner_address = 1;
|
3587
|
+
* @return {!(string|Uint8Array)}
|
3588
|
+
*/
|
3589
|
+
TronWebProto.UnDelegateResourceContract.prototype.getOwnerAddress = function () {
|
3590
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
3591
|
+
};
|
3592
|
+
|
3593
|
+
/**
|
3594
|
+
* optional bytes owner_address = 1;
|
3595
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
3596
|
+
* @return {string}
|
3597
|
+
*/
|
3598
|
+
TronWebProto.UnDelegateResourceContract.prototype.getOwnerAddress_asB64 = function () {
|
3599
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getOwnerAddress()));
|
3600
|
+
};
|
3601
|
+
|
3602
|
+
/**
|
3603
|
+
* optional bytes owner_address = 1;
|
3604
|
+
* Note that Uint8Array is not supported on all browsers.
|
3605
|
+
* @see http://caniuse.com/Uint8Array
|
3606
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
3607
|
+
* @return {!Uint8Array}
|
3608
|
+
*/
|
3609
|
+
TronWebProto.UnDelegateResourceContract.prototype.getOwnerAddress_asU8 = function () {
|
3610
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getOwnerAddress()));
|
3611
|
+
};
|
3612
|
+
|
3613
|
+
/**
|
3614
|
+
* @param {!(string|Uint8Array)} value
|
3615
|
+
* @return {!TronWebProto.UnDelegateResourceContract} returns this
|
3616
|
+
*/
|
3617
|
+
TronWebProto.UnDelegateResourceContract.prototype.setOwnerAddress = function (value) {
|
3618
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
3619
|
+
};
|
3620
|
+
|
3621
|
+
/**
|
3622
|
+
* optional ResourceCode resource = 2;
|
3623
|
+
* @return {!TronWebProto.ResourceCode}
|
3624
|
+
*/
|
3625
|
+
TronWebProto.UnDelegateResourceContract.prototype.getResource = function () {
|
3626
|
+
return /** @type {!TronWebProto.ResourceCode} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
3627
|
+
};
|
3628
|
+
|
3629
|
+
/**
|
3630
|
+
* @param {!TronWebProto.ResourceCode} value
|
3631
|
+
* @return {!TronWebProto.UnDelegateResourceContract} returns this
|
3632
|
+
*/
|
3633
|
+
TronWebProto.UnDelegateResourceContract.prototype.setResource = function (value) {
|
3634
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
3635
|
+
};
|
3636
|
+
|
3637
|
+
/**
|
3638
|
+
* optional int64 balance = 3;
|
3639
|
+
* @return {number}
|
3640
|
+
*/
|
3641
|
+
TronWebProto.UnDelegateResourceContract.prototype.getBalance = function () {
|
3642
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
3643
|
+
};
|
3644
|
+
|
3645
|
+
/**
|
3646
|
+
* @param {number} value
|
3647
|
+
* @return {!TronWebProto.UnDelegateResourceContract} returns this
|
3648
|
+
*/
|
3649
|
+
TronWebProto.UnDelegateResourceContract.prototype.setBalance = function (value) {
|
3650
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
3651
|
+
};
|
3652
|
+
|
3653
|
+
/**
|
3654
|
+
* optional bytes receiver_address = 4;
|
3655
|
+
* @return {!(string|Uint8Array)}
|
3656
|
+
*/
|
3657
|
+
TronWebProto.UnDelegateResourceContract.prototype.getReceiverAddress = function () {
|
3658
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, ''));
|
3659
|
+
};
|
3660
|
+
|
3661
|
+
/**
|
3662
|
+
* optional bytes receiver_address = 4;
|
3663
|
+
* This is a type-conversion wrapper around `getReceiverAddress()`
|
3664
|
+
* @return {string}
|
3665
|
+
*/
|
3666
|
+
TronWebProto.UnDelegateResourceContract.prototype.getReceiverAddress_asB64 = function () {
|
3667
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getReceiverAddress()));
|
3668
|
+
};
|
3669
|
+
|
3670
|
+
/**
|
3671
|
+
* optional bytes receiver_address = 4;
|
3672
|
+
* Note that Uint8Array is not supported on all browsers.
|
3673
|
+
* @see http://caniuse.com/Uint8Array
|
3674
|
+
* This is a type-conversion wrapper around `getReceiverAddress()`
|
3675
|
+
* @return {!Uint8Array}
|
3676
|
+
*/
|
3677
|
+
TronWebProto.UnDelegateResourceContract.prototype.getReceiverAddress_asU8 = function () {
|
3678
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getReceiverAddress()));
|
3679
|
+
};
|
3680
|
+
|
3681
|
+
/**
|
3682
|
+
* @param {!(string|Uint8Array)} value
|
3683
|
+
* @return {!TronWebProto.UnDelegateResourceContract} returns this
|
3684
|
+
*/
|
3685
|
+
TronWebProto.UnDelegateResourceContract.prototype.setReceiverAddress = function (value) {
|
3686
|
+
return jspb.Message.setProto3BytesField(this, 4, value);
|
3687
|
+
};
|
3688
|
+
|
3689
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3690
|
+
/**
|
3691
|
+
* Creates an object representation of this proto.
|
3692
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3693
|
+
* Optional fields that are not set will be set to undefined.
|
3694
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3695
|
+
* For the list of reserved names please see:
|
3696
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3697
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3698
|
+
* JSPB instance for transitional soy proto support:
|
3699
|
+
* http://goto/soy-param-migration
|
3700
|
+
* @return {!Object}
|
3701
|
+
*/
|
3702
|
+
TronWebProto.CancelAllUnfreezeV2Contract.prototype.toObject = function (opt_includeInstance) {
|
3703
|
+
return TronWebProto.CancelAllUnfreezeV2Contract.toObject(opt_includeInstance, this);
|
3704
|
+
};
|
3705
|
+
|
3706
|
+
/**
|
3707
|
+
* Static version of the {@see toObject} method.
|
3708
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3709
|
+
* the JSPB instance for transitional soy proto support:
|
3710
|
+
* http://goto/soy-param-migration
|
3711
|
+
* @param {!TronWebProto.CancelAllUnfreezeV2Contract} msg The msg instance to transform.
|
3712
|
+
* @return {!Object}
|
3713
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3714
|
+
*/
|
3715
|
+
TronWebProto.CancelAllUnfreezeV2Contract.toObject = function (includeInstance, msg) {
|
3716
|
+
var f,
|
3717
|
+
obj = {
|
3718
|
+
ownerAddress: msg.getOwnerAddress_asB64(),
|
3719
|
+
};
|
3720
|
+
|
3721
|
+
if (includeInstance) {
|
3722
|
+
obj.$jspbMessageInstance = msg;
|
3723
|
+
}
|
3724
|
+
return obj;
|
3725
|
+
};
|
3726
|
+
}
|
3727
|
+
|
3728
|
+
/**
|
3729
|
+
* Deserializes binary data (in protobuf wire format).
|
3730
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3731
|
+
* @return {!TronWebProto.CancelAllUnfreezeV2Contract}
|
3732
|
+
*/
|
3733
|
+
TronWebProto.CancelAllUnfreezeV2Contract.deserializeBinary = function (bytes) {
|
3734
|
+
var reader = new jspb.BinaryReader(bytes);
|
3735
|
+
var msg = new TronWebProto.CancelAllUnfreezeV2Contract();
|
3736
|
+
return TronWebProto.CancelAllUnfreezeV2Contract.deserializeBinaryFromReader(msg, reader);
|
3737
|
+
};
|
3738
|
+
|
3739
|
+
/**
|
3740
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3741
|
+
* given reader into the given message object.
|
3742
|
+
* @param {!TronWebProto.CancelAllUnfreezeV2Contract} msg The message object to deserialize into.
|
3743
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3744
|
+
* @return {!TronWebProto.CancelAllUnfreezeV2Contract}
|
3745
|
+
*/
|
3746
|
+
TronWebProto.CancelAllUnfreezeV2Contract.deserializeBinaryFromReader = function (msg, reader) {
|
3747
|
+
while (reader.nextField()) {
|
3748
|
+
if (reader.isEndGroup()) {
|
3749
|
+
break;
|
3750
|
+
}
|
3751
|
+
var field = reader.getFieldNumber();
|
3752
|
+
switch (field) {
|
3753
|
+
case 1:
|
3754
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
3755
|
+
msg.setOwnerAddress(value);
|
3756
|
+
break;
|
3757
|
+
default:
|
3758
|
+
reader.skipField();
|
3759
|
+
break;
|
3760
|
+
}
|
3761
|
+
}
|
3762
|
+
return msg;
|
3763
|
+
};
|
3764
|
+
|
3765
|
+
/**
|
3766
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3767
|
+
* @return {!Uint8Array}
|
3768
|
+
*/
|
3769
|
+
TronWebProto.CancelAllUnfreezeV2Contract.prototype.serializeBinary = function () {
|
3770
|
+
var writer = new jspb.BinaryWriter();
|
3771
|
+
TronWebProto.CancelAllUnfreezeV2Contract.serializeBinaryToWriter(this, writer);
|
3772
|
+
return writer.getResultBuffer();
|
3773
|
+
};
|
3774
|
+
|
3775
|
+
/**
|
3776
|
+
* Serializes the given message to binary data (in protobuf wire
|
3777
|
+
* format), writing to the given BinaryWriter.
|
3778
|
+
* @param {!TronWebProto.CancelAllUnfreezeV2Contract} message
|
3779
|
+
* @param {!jspb.BinaryWriter} writer
|
3780
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3781
|
+
*/
|
3782
|
+
TronWebProto.CancelAllUnfreezeV2Contract.serializeBinaryToWriter = function (message, writer) {
|
3783
|
+
var f = undefined;
|
3784
|
+
f = message.getOwnerAddress_asU8();
|
3785
|
+
if (f.length > 0) {
|
3786
|
+
writer.writeBytes(1, f);
|
3787
|
+
}
|
3788
|
+
};
|
3789
|
+
|
3790
|
+
/**
|
3791
|
+
* optional bytes owner_address = 1;
|
3792
|
+
* @return {!(string|Uint8Array)}
|
3793
|
+
*/
|
3794
|
+
TronWebProto.CancelAllUnfreezeV2Contract.prototype.getOwnerAddress = function () {
|
3795
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
|
3796
|
+
};
|
3797
|
+
|
3798
|
+
/**
|
3799
|
+
* optional bytes owner_address = 1;
|
3800
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
3801
|
+
* @return {string}
|
3802
|
+
*/
|
3803
|
+
TronWebProto.CancelAllUnfreezeV2Contract.prototype.getOwnerAddress_asB64 = function () {
|
3804
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getOwnerAddress()));
|
3805
|
+
};
|
3806
|
+
|
3807
|
+
/**
|
3808
|
+
* optional bytes owner_address = 1;
|
3809
|
+
* Note that Uint8Array is not supported on all browsers.
|
3810
|
+
* @see http://caniuse.com/Uint8Array
|
3811
|
+
* This is a type-conversion wrapper around `getOwnerAddress()`
|
3812
|
+
* @return {!Uint8Array}
|
3813
|
+
*/
|
3814
|
+
TronWebProto.CancelAllUnfreezeV2Contract.prototype.getOwnerAddress_asU8 = function () {
|
3815
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getOwnerAddress()));
|
3816
|
+
};
|
3817
|
+
|
3818
|
+
/**
|
3819
|
+
* @param {!(string|Uint8Array)} value
|
3820
|
+
* @return {!TronWebProto.CancelAllUnfreezeV2Contract} returns this
|
3821
|
+
*/
|
3822
|
+
TronWebProto.CancelAllUnfreezeV2Contract.prototype.setOwnerAddress = function (value) {
|
3823
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
3824
|
+
};
|
3825
|
+
|
3826
|
+
goog.object.extend(exports, TronWebProto);
|