@tronscan/client
Version:
Tronscan API Client
1,611 lines (1,385 loc) • 514 kB
JavaScript
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
var core_Discover_pb = require('../core/Discover_pb.js');
goog.exportSymbol('proto.protocol.Account', null, global);
goog.exportSymbol('proto.protocol.Account.AccountResource', null, global);
goog.exportSymbol('proto.protocol.Account.Frozen', null, global);
goog.exportSymbol('proto.protocol.AccountId', null, global);
goog.exportSymbol('proto.protocol.AccountType', null, global);
goog.exportSymbol('proto.protocol.Block', null, global);
goog.exportSymbol('proto.protocol.BlockHeader', null, global);
goog.exportSymbol('proto.protocol.BlockHeader.raw', null, global);
goog.exportSymbol('proto.protocol.BlockInventory', null, global);
goog.exportSymbol('proto.protocol.BlockInventory.BlockId', null, global);
goog.exportSymbol('proto.protocol.BlockInventory.Type', null, global);
goog.exportSymbol('proto.protocol.ChainInventory', null, global);
goog.exportSymbol('proto.protocol.ChainInventory.BlockId', null, global);
goog.exportSymbol('proto.protocol.ChainParameters', null, global);
goog.exportSymbol('proto.protocol.ChainParameters.ChainParameter', null, global);
goog.exportSymbol('proto.protocol.DelegatedResource', null, global);
goog.exportSymbol('proto.protocol.DelegatedResourceAccountIndex', null, global);
goog.exportSymbol('proto.protocol.DisconnectMessage', null, global);
goog.exportSymbol('proto.protocol.DynamicProperties', null, global);
goog.exportSymbol('proto.protocol.Exchange', null, global);
goog.exportSymbol('proto.protocol.HelloMessage', null, global);
goog.exportSymbol('proto.protocol.HelloMessage.BlockId', null, global);
goog.exportSymbol('proto.protocol.InternalTransaction', null, global);
goog.exportSymbol('proto.protocol.InternalTransaction.CallValueInfo', null, global);
goog.exportSymbol('proto.protocol.Inventory', null, global);
goog.exportSymbol('proto.protocol.Inventory.InventoryType', null, global);
goog.exportSymbol('proto.protocol.Items', null, global);
goog.exportSymbol('proto.protocol.Items.ItemType', null, global);
goog.exportSymbol('proto.protocol.Key', null, global);
goog.exportSymbol('proto.protocol.NodeInfo', null, global);
goog.exportSymbol('proto.protocol.NodeInfo.ConfigNodeInfo', null, global);
goog.exportSymbol('proto.protocol.NodeInfo.MachineInfo', null, global);
goog.exportSymbol('proto.protocol.NodeInfo.MachineInfo.DeadLockThreadInfo', null, global);
goog.exportSymbol('proto.protocol.NodeInfo.MachineInfo.MemoryDescInfo', null, global);
goog.exportSymbol('proto.protocol.NodeInfo.PeerInfo', null, global);
goog.exportSymbol('proto.protocol.Permission', null, global);
goog.exportSymbol('proto.protocol.Permission.PermissionType', null, global);
goog.exportSymbol('proto.protocol.Proposal', null, global);
goog.exportSymbol('proto.protocol.Proposal.State', null, global);
goog.exportSymbol('proto.protocol.ReasonCode', null, global);
goog.exportSymbol('proto.protocol.ResourceReceipt', null, global);
goog.exportSymbol('proto.protocol.SmartContract', null, global);
goog.exportSymbol('proto.protocol.SmartContract.ABI', null, global);
goog.exportSymbol('proto.protocol.SmartContract.ABI.Entry', null, global);
goog.exportSymbol('proto.protocol.SmartContract.ABI.Entry.EntryType', null, global);
goog.exportSymbol('proto.protocol.SmartContract.ABI.Entry.Param', null, global);
goog.exportSymbol('proto.protocol.SmartContract.ABI.Entry.StateMutabilityType', null, global);
goog.exportSymbol('proto.protocol.TXInput', null, global);
goog.exportSymbol('proto.protocol.TXInput.raw', null, global);
goog.exportSymbol('proto.protocol.TXOutput', null, global);
goog.exportSymbol('proto.protocol.TXOutputs', null, global);
goog.exportSymbol('proto.protocol.Transaction', null, global);
goog.exportSymbol('proto.protocol.Transaction.Contract', null, global);
goog.exportSymbol('proto.protocol.Transaction.Contract.ContractType', null, global);
goog.exportSymbol('proto.protocol.Transaction.Result', null, global);
goog.exportSymbol('proto.protocol.Transaction.Result.code', null, global);
goog.exportSymbol('proto.protocol.Transaction.Result.contractResult', null, global);
goog.exportSymbol('proto.protocol.Transaction.raw', null, global);
goog.exportSymbol('proto.protocol.TransactionInfo', null, global);
goog.exportSymbol('proto.protocol.TransactionInfo.Log', null, global);
goog.exportSymbol('proto.protocol.TransactionInfo.code', null, global);
goog.exportSymbol('proto.protocol.TransactionSign', null, global);
goog.exportSymbol('proto.protocol.Transactions', null, global);
goog.exportSymbol('proto.protocol.Vote', null, global);
goog.exportSymbol('proto.protocol.Votes', null, global);
goog.exportSymbol('proto.protocol.Witness', null, global);
goog.exportSymbol('proto.protocol.authority', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.protocol.AccountId = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.protocol.AccountId, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.protocol.AccountId.displayName = 'proto.protocol.AccountId';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.protocol.AccountId.prototype.toObject = function(opt_includeInstance) {
return proto.protocol.AccountId.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.protocol.AccountId} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.protocol.AccountId.toObject = function(includeInstance, msg) {
var f, obj = {
name: msg.getName_asB64(),
address: msg.getAddress_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.protocol.AccountId}
*/
proto.protocol.AccountId.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.protocol.AccountId;
return proto.protocol.AccountId.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.protocol.AccountId} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.protocol.AccountId}
*/
proto.protocol.AccountId.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setName(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setAddress(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.protocol.AccountId.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.protocol.AccountId.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.protocol.AccountId} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.protocol.AccountId.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
f = message.getAddress_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
};
/**
* optional bytes name = 1;
* @return {!(string|Uint8Array)}
*/
proto.protocol.AccountId.prototype.getName = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes name = 1;
* This is a type-conversion wrapper around `getName()`
* @return {string}
*/
proto.protocol.AccountId.prototype.getName_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getName()));
};
/**
* optional bytes name = 1;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getName()`
* @return {!Uint8Array}
*/
proto.protocol.AccountId.prototype.getName_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getName()));
};
/** @param {!(string|Uint8Array)} value */
proto.protocol.AccountId.prototype.setName = function(value) {
jspb.Message.setProto3BytesField(this, 1, value);
};
/**
* optional bytes address = 2;
* @return {!(string|Uint8Array)}
*/
proto.protocol.AccountId.prototype.getAddress = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes address = 2;
* This is a type-conversion wrapper around `getAddress()`
* @return {string}
*/
proto.protocol.AccountId.prototype.getAddress_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getAddress()));
};
/**
* optional bytes address = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getAddress()`
* @return {!Uint8Array}
*/
proto.protocol.AccountId.prototype.getAddress_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getAddress()));
};
/** @param {!(string|Uint8Array)} value */
proto.protocol.AccountId.prototype.setAddress = function(value) {
jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.protocol.Vote = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.protocol.Vote, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.protocol.Vote.displayName = 'proto.protocol.Vote';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.protocol.Vote.prototype.toObject = function(opt_includeInstance) {
return proto.protocol.Vote.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.protocol.Vote} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.protocol.Vote.toObject = function(includeInstance, msg) {
var f, obj = {
voteAddress: msg.getVoteAddress_asB64(),
voteCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.protocol.Vote}
*/
proto.protocol.Vote.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.protocol.Vote;
return proto.protocol.Vote.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.protocol.Vote} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.protocol.Vote}
*/
proto.protocol.Vote.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setVoteAddress(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt64());
msg.setVoteCount(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.protocol.Vote.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.protocol.Vote.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.protocol.Vote} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.protocol.Vote.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getVoteAddress_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
f = message.getVoteCount();
if (f !== 0) {
writer.writeInt64(
2,
f
);
}
};
/**
* optional bytes vote_address = 1;
* @return {!(string|Uint8Array)}
*/
proto.protocol.Vote.prototype.getVoteAddress = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes vote_address = 1;
* This is a type-conversion wrapper around `getVoteAddress()`
* @return {string}
*/
proto.protocol.Vote.prototype.getVoteAddress_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getVoteAddress()));
};
/**
* optional bytes vote_address = 1;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getVoteAddress()`
* @return {!Uint8Array}
*/
proto.protocol.Vote.prototype.getVoteAddress_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getVoteAddress()));
};
/** @param {!(string|Uint8Array)} value */
proto.protocol.Vote.prototype.setVoteAddress = function(value) {
jspb.Message.setProto3BytesField(this, 1, value);
};
/**
* optional int64 vote_count = 2;
* @return {number}
*/
proto.protocol.Vote.prototype.getVoteCount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.protocol.Vote.prototype.setVoteCount = function(value) {
jspb.Message.setProto3IntField(this, 2, value);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.protocol.Proposal = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.protocol.Proposal.repeatedFields_, null);
};
goog.inherits(proto.protocol.Proposal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.protocol.Proposal.displayName = 'proto.protocol.Proposal';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.protocol.Proposal.repeatedFields_ = [6];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.protocol.Proposal.prototype.toObject = function(opt_includeInstance) {
return proto.protocol.Proposal.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.protocol.Proposal} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.protocol.Proposal.toObject = function(includeInstance, msg) {
var f, obj = {
proposalId: jspb.Message.getFieldWithDefault(msg, 1, 0),
proposerAddress: msg.getProposerAddress_asB64(),
parametersMap: (f = msg.getParametersMap()) ? f.toObject(includeInstance, undefined) : [],
expirationTime: jspb.Message.getFieldWithDefault(msg, 4, 0),
createTime: jspb.Message.getFieldWithDefault(msg, 5, 0),
approvalsList: msg.getApprovalsList_asB64(),
state: jspb.Message.getFieldWithDefault(msg, 7, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.protocol.Proposal}
*/
proto.protocol.Proposal.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.protocol.Proposal;
return proto.protocol.Proposal.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.protocol.Proposal} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.protocol.Proposal}
*/
proto.protocol.Proposal.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64());
msg.setProposalId(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setProposerAddress(value);
break;
case 3:
var value = msg.getParametersMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt64, jspb.BinaryReader.prototype.readInt64);
});
break;
case 4:
var value = /** @type {number} */ (reader.readInt64());
msg.setExpirationTime(value);
break;
case 5:
var value = /** @type {number} */ (reader.readInt64());
msg.setCreateTime(value);
break;
case 6:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.addApprovals(value);
break;
case 7:
var value = /** @type {!proto.protocol.Proposal.State} */ (reader.readEnum());
msg.setState(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.protocol.Proposal.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.protocol.Proposal.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.protocol.Proposal} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.protocol.Proposal.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getProposalId();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
f = message.getProposerAddress_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = message.getParametersMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeInt64, jspb.BinaryWriter.prototype.writeInt64);
}
f = message.getExpirationTime();
if (f !== 0) {
writer.writeInt64(
4,
f
);
}
f = message.getCreateTime();
if (f !== 0) {
writer.writeInt64(
5,
f
);
}
f = message.getApprovalsList_asU8();
if (f.length > 0) {
writer.writeRepeatedBytes(
6,
f
);
}
f = message.getState();
if (f !== 0.0) {
writer.writeEnum(
7,
f
);
}
};
/**
* @enum {number}
*/
proto.protocol.Proposal.State = {
PENDING: 0,
DISAPPROVED: 1,
APPROVED: 2,
CANCELED: 3
};
/**
* optional int64 proposal_id = 1;
* @return {number}
*/
proto.protocol.Proposal.prototype.getProposalId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
proto.protocol.Proposal.prototype.setProposalId = function(value) {
jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional bytes proposer_address = 2;
* @return {!(string|Uint8Array)}
*/
proto.protocol.Proposal.prototype.getProposerAddress = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes proposer_address = 2;
* This is a type-conversion wrapper around `getProposerAddress()`
* @return {string}
*/
proto.protocol.Proposal.prototype.getProposerAddress_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getProposerAddress()));
};
/**
* optional bytes proposer_address = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getProposerAddress()`
* @return {!Uint8Array}
*/
proto.protocol.Proposal.prototype.getProposerAddress_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getProposerAddress()));
};
/** @param {!(string|Uint8Array)} value */
proto.protocol.Proposal.prototype.setProposerAddress = function(value) {
jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* map<int64, int64> parameters = 3;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<number,number>}
*/
proto.protocol.Proposal.prototype.getParametersMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<number,number>} */ (
jspb.Message.getMapField(this, 3, opt_noLazyCreate,
null));
};
proto.protocol.Proposal.prototype.clearParametersMap = function() {
this.getParametersMap().clear();
};
/**
* optional int64 expiration_time = 4;
* @return {number}
*/
proto.protocol.Proposal.prototype.getExpirationTime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/** @param {number} value */
proto.protocol.Proposal.prototype.setExpirationTime = function(value) {
jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional int64 create_time = 5;
* @return {number}
*/
proto.protocol.Proposal.prototype.getCreateTime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/** @param {number} value */
proto.protocol.Proposal.prototype.setCreateTime = function(value) {
jspb.Message.setProto3IntField(this, 5, value);
};
/**
* repeated bytes approvals = 6;
* @return {!(Array<!Uint8Array>|Array<string>)}
*/
proto.protocol.Proposal.prototype.getApprovalsList = function() {
return /** @type {!(Array<!Uint8Array>|Array<string>)} */ (jspb.Message.getRepeatedField(this, 6));
};
/**
* repeated bytes approvals = 6;
* This is a type-conversion wrapper around `getApprovalsList()`
* @return {!Array.<string>}
*/
proto.protocol.Proposal.prototype.getApprovalsList_asB64 = function() {
return /** @type {!Array.<string>} */ (jspb.Message.bytesListAsB64(
this.getApprovalsList()));
};
/**
* repeated bytes approvals = 6;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getApprovalsList()`
* @return {!Array.<!Uint8Array>}
*/
proto.protocol.Proposal.prototype.getApprovalsList_asU8 = function() {
return /** @type {!Array.<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
this.getApprovalsList()));
};
/** @param {!(Array<!Uint8Array>|Array<string>)} value */
proto.protocol.Proposal.prototype.setApprovalsList = function(value) {
jspb.Message.setField(this, 6, value || []);
};
/**
* @param {!(string|Uint8Array)} value
* @param {number=} opt_index
*/
proto.protocol.Proposal.prototype.addApprovals = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 6, value, opt_index);
};
proto.protocol.Proposal.prototype.clearApprovalsList = function() {
this.setApprovalsList([]);
};
/**
* optional State state = 7;
* @return {!proto.protocol.Proposal.State}
*/
proto.protocol.Proposal.prototype.getState = function() {
return /** @type {!proto.protocol.Proposal.State} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/** @param {!proto.protocol.Proposal.State} value */
proto.protocol.Proposal.prototype.setState = function(value) {
jspb.Message.setProto3EnumField(this, 7, value);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.protocol.Exchange = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.protocol.Exchange, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.protocol.Exchange.displayName = 'proto.protocol.Exchange';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.protocol.Exchange.prototype.toObject = function(opt_includeInstance) {
return proto.protocol.Exchange.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.protocol.Exchange} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.protocol.Exchange.toObject = function(includeInstance, msg) {
var f, obj = {
exchangeId: jspb.Message.getFieldWithDefault(msg, 1, 0),
creatorAddress: msg.getCreatorAddress_asB64(),
createTime: jspb.Message.getFieldWithDefault(msg, 3, 0),
firstTokenId: msg.getFirstTokenId_asB64(),
firstTokenBalance: jspb.Message.getFieldWithDefault(msg, 7, 0),
secondTokenId: msg.getSecondTokenId_asB64(),
secondTokenBalance: jspb.Message.getFieldWithDefault(msg, 9, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.protocol.Exchange}
*/
proto.protocol.Exchange.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.protocol.Exchange;
return proto.protocol.Exchange.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.protocol.Exchange} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.protocol.Exchange}
*/
proto.protocol.Exchange.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64());
msg.setExchangeId(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setCreatorAddress(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt64());
msg.setCreateTime(value);
break;
case 6:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setFirstTokenId(value);
break;
case 7:
var value = /** @type {number} */ (reader.readInt64());
msg.setFirstTokenBalance(value);
break;
case 8:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setSecondTokenId(value);
break;
case 9:
var value = /** @type {number} */ (reader.readInt64());
msg.setSecondTokenBalance(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.protocol.Exchange.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.protocol.Exchange.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.protocol.Exchange} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.protocol.Exchange.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getExchangeId();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
f = message.getCreatorAddress_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = message.getCreateTime();
if (f !== 0) {
writer.writeInt64(
3,
f
);
}
f = message.getFirstTokenId_asU8();
if (f.length > 0) {
writer.writeBytes(
6,
f
);
}
f = message.getFirstTokenBalance();
if (f !== 0) {
writer.writeInt64(
7,
f
);
}
f = message.getSecondTokenId_asU8();
if (f.length > 0) {
writer.writeBytes(
8,
f
);
}
f = message.getSecondTokenBalance();
if (f !== 0) {
writer.writeInt64(
9,
f
);
}
};
/**
* optional int64 exchange_id = 1;
* @return {number}
*/
proto.protocol.Exchange.prototype.getExchangeId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/** @param {number} value */
proto.protocol.Exchange.prototype.setExchangeId = function(value) {
jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional bytes creator_address = 2;
* @return {!(string|Uint8Array)}
*/
proto.protocol.Exchange.prototype.getCreatorAddress = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* optional bytes creator_address = 2;
* This is a type-conversion wrapper around `getCreatorAddress()`
* @return {string}
*/
proto.protocol.Exchange.prototype.getCreatorAddress_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getCreatorAddress()));
};
/**
* optional bytes creator_address = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getCreatorAddress()`
* @return {!Uint8Array}
*/
proto.protocol.Exchange.prototype.getCreatorAddress_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getCreatorAddress()));
};
/** @param {!(string|Uint8Array)} value */
proto.protocol.Exchange.prototype.setCreatorAddress = function(value) {
jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* optional int64 create_time = 3;
* @return {number}
*/
proto.protocol.Exchange.prototype.getCreateTime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/** @param {number} value */
proto.protocol.Exchange.prototype.setCreateTime = function(value) {
jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional bytes first_token_id = 6;
* @return {!(string|Uint8Array)}
*/
proto.protocol.Exchange.prototype.getFirstTokenId = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* optional bytes first_token_id = 6;
* This is a type-conversion wrapper around `getFirstTokenId()`
* @return {string}
*/
proto.protocol.Exchange.prototype.getFirstTokenId_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getFirstTokenId()));
};
/**
* optional bytes first_token_id = 6;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getFirstTokenId()`
* @return {!Uint8Array}
*/
proto.protocol.Exchange.prototype.getFirstTokenId_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getFirstTokenId()));
};
/** @param {!(string|Uint8Array)} value */
proto.protocol.Exchange.prototype.setFirstTokenId = function(value) {
jspb.Message.setProto3BytesField(this, 6, value);
};
/**
* optional int64 first_token_balance = 7;
* @return {number}
*/
proto.protocol.Exchange.prototype.getFirstTokenBalance = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/** @param {number} value */
proto.protocol.Exchange.prototype.setFirstTokenBalance = function(value) {
jspb.Message.setProto3IntField(this, 7, value);
};
/**
* optional bytes second_token_id = 8;
* @return {!(string|Uint8Array)}
*/
proto.protocol.Exchange.prototype.getSecondTokenId = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* optional bytes second_token_id = 8;
* This is a type-conversion wrapper around `getSecondTokenId()`
* @return {string}
*/
proto.protocol.Exchange.prototype.getSecondTokenId_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getSecondTokenId()));
};
/**
* optional bytes second_token_id = 8;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getSecondTokenId()`
* @return {!Uint8Array}
*/
proto.protocol.Exchange.prototype.getSecondTokenId_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getSecondTokenId()));
};
/** @param {!(string|Uint8Array)} value */
proto.protocol.Exchange.prototype.setSecondTokenId = function(value) {
jspb.Message.setProto3BytesField(this, 8, value);
};
/**
* optional int64 second_token_balance = 9;
* @return {number}
*/
proto.protocol.Exchange.prototype.getSecondTokenBalance = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};
/** @param {number} value */
proto.protocol.Exchange.prototype.setSecondTokenBalance = function(value) {
jspb.Message.setProto3IntField(this, 9, value);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.protocol.ChainParameters = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.protocol.ChainParameters.repeatedFields_, null);
};
goog.inherits(proto.protocol.ChainParameters, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.protocol.ChainParameters.displayName = 'proto.protocol.ChainParameters';
}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.protocol.ChainParameters.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.protocol.ChainParameters.prototype.toObject = function(opt_includeInstance) {
return proto.protocol.ChainParameters.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.protocol.ChainParameters} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.protocol.ChainParameters.toObject = function(includeInstance, msg) {
var f, obj = {
chainparameterList: jspb.Message.toObjectList(msg.getChainparameterList(),
proto.protocol.ChainParameters.ChainParameter.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.protocol.ChainParameters}
*/
proto.protocol.ChainParameters.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.protocol.ChainParameters;
return proto.protocol.ChainParameters.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.protocol.ChainParameters} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.protocol.ChainParameters}
*/
proto.protocol.ChainParameters.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.protocol.ChainParameters.ChainParameter;
reader.readMessage(value,proto.protocol.ChainParameters.ChainParameter.deserializeBinaryFromReader);
msg.addChainparameter(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.protocol.ChainParameters.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.protocol.ChainParameters.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.protocol.ChainParameters} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.protocol.ChainParameters.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getChainparameterList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.protocol.ChainParameters.ChainParameter.serializeBinaryToWriter
);
}
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.protocol.ChainParameters.ChainParameter = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.protocol.ChainParameters.ChainParameter, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.protocol.ChainParameters.ChainParameter.displayName = 'proto.protocol.ChainParameters.ChainParameter';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.protocol.ChainParameters.ChainParameter.prototype.toObject = function(opt_includeInstance) {
return proto.protocol.ChainParameters.ChainParameter.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.protocol.ChainParameters.ChainParameter} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.protocol.ChainParameters.ChainParameter.toObject = function(includeInstance, msg) {
var f, obj = {
key: jspb.Message.getFieldWithDefault(msg, 1, ""),
value: jspb.Message.getFieldWithDefault(msg, 2, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.protocol.ChainParameters.ChainParameter}
*/
proto.protocol.ChainParameters.ChainParameter.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.protocol.ChainParameters.ChainParameter;
return proto.protocol.ChainParameters.ChainParameter.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.protocol.ChainParameters.ChainParameter} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.protocol.ChainParameters.ChainParameter}
*/
proto.protocol.ChainParameters.ChainParameter.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setKey(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt64());
msg.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.protocol.ChainParameters.ChainParameter.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.protocol.ChainParameters.ChainParameter.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.protocol.ChainParameters.ChainParameter} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.protocol.ChainParameters.ChainParameter.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getKey();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getValue();
if (f !== 0) {
writer.writeInt64(
2,
f
);
}
};
/**
* optional string key = 1;
* @return {string}
*/
proto.protocol.ChainParameters.ChainParameter.prototype.getKey = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/** @param {string} value */
proto.protocol.ChainParameters.ChainParameter.prototype.setKey = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional int64 value = 2;
* @return {number}
*/
proto.protocol.ChainParameters.ChainParameter.prototype.getValue = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.protocol.ChainParameters.ChainParameter.prototype.setValue = function(value) {
jspb.Message.setProto3IntField(this, 2, value);
};
/**
* repeated ChainParameter chainParameter = 1;
* @return {!Array.<!proto.protocol.ChainParameters.ChainParameter>}
*/
proto.protocol.ChainParameters.prototype.getChainparameterList = function() {
return /** @type{!Array.<!proto.protocol.ChainParameters.ChainParameter>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.protocol.ChainParameters.ChainParameter, 1));
};
/** @param {!Array.<!proto.protocol.ChainParameters.ChainParameter>} value */
proto.protocol.ChainParameters.prototype.setChainparameterList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.protocol.ChainParameters.ChainParameter=} opt_value
* @param {number=} opt_index
* @return {!proto.protocol.ChainParameters.ChainParameter}
*/
proto.protocol.ChainParameters.prototype.addChainparameter = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.protocol.ChainParameters.ChainParameter, opt_index);
};
proto.protocol.ChainParameters.prototype.clearChainparameterList = function() {
this.setChainparameterList([]);
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.protocol.Account = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.protocol.Account.repeatedFields_, null);
};
goog.inherits(proto.protocol.Account, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.protocol.Account.displayName = 'proto.protocol.Account';
}
/**
* List of repeated fields within this message type.
* @private {!Arr