@paradeum/burrow
Version:
TypeScript library that calls a Hyperledger Burrow server over GRPC.
1,782 lines (1,573 loc) • 130 kB
JavaScript
// source: payload.proto
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var github_com_gogo_protobuf_gogoproto_gogo_pb = require('./github.com/gogo/protobuf/gogoproto/gogo_pb.js');
goog.object.extend(proto, github_com_gogo_protobuf_gogoproto_gogo_pb);
var permission_pb = require('./permission_pb.js');
goog.object.extend(proto, permission_pb);
var registry_pb = require('./registry_pb.js');
goog.object.extend(proto, registry_pb);
var spec_pb = require('./spec_pb.js');
goog.object.extend(proto, spec_pb);
goog.exportSymbol('proto.payload.Any', null, global);
goog.exportSymbol('proto.payload.Ballot', null, global);
goog.exportSymbol('proto.payload.Ballot.ProposalState', null, global);
goog.exportSymbol('proto.payload.BatchTx', null, global);
goog.exportSymbol('proto.payload.BondTx', null, global);
goog.exportSymbol('proto.payload.CallTx', null, global);
goog.exportSymbol('proto.payload.ContractMeta', null, global);
goog.exportSymbol('proto.payload.GovTx', null, global);
goog.exportSymbol('proto.payload.IdentifyTx', null, global);
goog.exportSymbol('proto.payload.NameTx', null, global);
goog.exportSymbol('proto.payload.PermsTx', null, global);
goog.exportSymbol('proto.payload.Proposal', null, global);
goog.exportSymbol('proto.payload.ProposalTx', null, global);
goog.exportSymbol('proto.payload.SendTx', null, global);
goog.exportSymbol('proto.payload.TxInput', null, global);
goog.exportSymbol('proto.payload.TxOutput', null, global);
goog.exportSymbol('proto.payload.UnbondTx', null, global);
goog.exportSymbol('proto.payload.Vote', 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.payload.Any = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.payload.Any, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.Any.displayName = 'proto.payload.Any';
}
/**
* 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.payload.TxInput = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.payload.TxInput, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.TxInput.displayName = 'proto.payload.TxInput';
}
/**
* 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.payload.TxOutput = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.payload.TxOutput, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.TxOutput.displayName = 'proto.payload.TxOutput';
}
/**
* 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.payload.CallTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.payload.CallTx.repeatedFields_, null);
};
goog.inherits(proto.payload.CallTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.CallTx.displayName = 'proto.payload.CallTx';
}
/**
* 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.payload.ContractMeta = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.payload.ContractMeta, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.ContractMeta.displayName = 'proto.payload.ContractMeta';
}
/**
* 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.payload.SendTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.payload.SendTx.repeatedFields_, null);
};
goog.inherits(proto.payload.SendTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.SendTx.displayName = 'proto.payload.SendTx';
}
/**
* 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.payload.PermsTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.payload.PermsTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.PermsTx.displayName = 'proto.payload.PermsTx';
}
/**
* 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.payload.NameTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.payload.NameTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.NameTx.displayName = 'proto.payload.NameTx';
}
/**
* 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.payload.BondTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.payload.BondTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.BondTx.displayName = 'proto.payload.BondTx';
}
/**
* 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.payload.UnbondTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.payload.UnbondTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.UnbondTx.displayName = 'proto.payload.UnbondTx';
}
/**
* 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.payload.GovTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.payload.GovTx.repeatedFields_, null);
};
goog.inherits(proto.payload.GovTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.GovTx.displayName = 'proto.payload.GovTx';
}
/**
* 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.payload.ProposalTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.payload.ProposalTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.ProposalTx.displayName = 'proto.payload.ProposalTx';
}
/**
* 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.payload.IdentifyTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.payload.IdentifyTx.repeatedFields_, null);
};
goog.inherits(proto.payload.IdentifyTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.IdentifyTx.displayName = 'proto.payload.IdentifyTx';
}
/**
* 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.payload.BatchTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.payload.BatchTx.repeatedFields_, null);
};
goog.inherits(proto.payload.BatchTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.BatchTx.displayName = 'proto.payload.BatchTx';
}
/**
* 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.payload.Vote = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.payload.Vote, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.Vote.displayName = 'proto.payload.Vote';
}
/**
* 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.payload.Proposal = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.payload.Proposal, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.Proposal.displayName = 'proto.payload.Proposal';
}
/**
* 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.payload.Ballot = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.payload.Ballot.repeatedFields_, null);
};
goog.inherits(proto.payload.Ballot, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.payload.Ballot.displayName = 'proto.payload.Ballot';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.payload.Any.prototype.toObject = function(opt_includeInstance) {
return proto.payload.Any.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.payload.Any} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.payload.Any.toObject = function(includeInstance, msg) {
var f, obj = {
calltx: (f = msg.getCalltx()) && proto.payload.CallTx.toObject(includeInstance, f),
sendtx: (f = msg.getSendtx()) && proto.payload.SendTx.toObject(includeInstance, f),
nametx: (f = msg.getNametx()) && proto.payload.NameTx.toObject(includeInstance, f),
permstx: (f = msg.getPermstx()) && proto.payload.PermsTx.toObject(includeInstance, f),
govtx: (f = msg.getGovtx()) && proto.payload.GovTx.toObject(includeInstance, f),
bondtx: (f = msg.getBondtx()) && proto.payload.BondTx.toObject(includeInstance, f),
unbondtx: (f = msg.getUnbondtx()) && proto.payload.UnbondTx.toObject(includeInstance, f),
batchtx: (f = msg.getBatchtx()) && proto.payload.BatchTx.toObject(includeInstance, f),
proposaltx: (f = msg.getProposaltx()) && proto.payload.ProposalTx.toObject(includeInstance, f),
identifytx: (f = msg.getIdentifytx()) && proto.payload.IdentifyTx.toObject(includeInstance, f)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.payload.Any}
*/
proto.payload.Any.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.payload.Any;
return proto.payload.Any.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.payload.Any} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.payload.Any}
*/
proto.payload.Any.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.payload.CallTx;
reader.readMessage(value,proto.payload.CallTx.deserializeBinaryFromReader);
msg.setCalltx(value);
break;
case 2:
var value = new proto.payload.SendTx;
reader.readMessage(value,proto.payload.SendTx.deserializeBinaryFromReader);
msg.setSendtx(value);
break;
case 3:
var value = new proto.payload.NameTx;
reader.readMessage(value,proto.payload.NameTx.deserializeBinaryFromReader);
msg.setNametx(value);
break;
case 4:
var value = new proto.payload.PermsTx;
reader.readMessage(value,proto.payload.PermsTx.deserializeBinaryFromReader);
msg.setPermstx(value);
break;
case 5:
var value = new proto.payload.GovTx;
reader.readMessage(value,proto.payload.GovTx.deserializeBinaryFromReader);
msg.setGovtx(value);
break;
case 6:
var value = new proto.payload.BondTx;
reader.readMessage(value,proto.payload.BondTx.deserializeBinaryFromReader);
msg.setBondtx(value);
break;
case 7:
var value = new proto.payload.UnbondTx;
reader.readMessage(value,proto.payload.UnbondTx.deserializeBinaryFromReader);
msg.setUnbondtx(value);
break;
case 8:
var value = new proto.payload.BatchTx;
reader.readMessage(value,proto.payload.BatchTx.deserializeBinaryFromReader);
msg.setBatchtx(value);
break;
case 9:
var value = new proto.payload.ProposalTx;
reader.readMessage(value,proto.payload.ProposalTx.deserializeBinaryFromReader);
msg.setProposaltx(value);
break;
case 10:
var value = new proto.payload.IdentifyTx;
reader.readMessage(value,proto.payload.IdentifyTx.deserializeBinaryFromReader);
msg.setIdentifytx(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.payload.Any.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.payload.Any.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.payload.Any} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.payload.Any.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCalltx();
if (f != null) {
writer.writeMessage(
1,
f,
proto.payload.CallTx.serializeBinaryToWriter
);
}
f = message.getSendtx();
if (f != null) {
writer.writeMessage(
2,
f,
proto.payload.SendTx.serializeBinaryToWriter
);
}
f = message.getNametx();
if (f != null) {
writer.writeMessage(
3,
f,
proto.payload.NameTx.serializeBinaryToWriter
);
}
f = message.getPermstx();
if (f != null) {
writer.writeMessage(
4,
f,
proto.payload.PermsTx.serializeBinaryToWriter
);
}
f = message.getGovtx();
if (f != null) {
writer.writeMessage(
5,
f,
proto.payload.GovTx.serializeBinaryToWriter
);
}
f = message.getBondtx();
if (f != null) {
writer.writeMessage(
6,
f,
proto.payload.BondTx.serializeBinaryToWriter
);
}
f = message.getUnbondtx();
if (f != null) {
writer.writeMessage(
7,
f,
proto.payload.UnbondTx.serializeBinaryToWriter
);
}
f = message.getBatchtx();
if (f != null) {
writer.writeMessage(
8,
f,
proto.payload.BatchTx.serializeBinaryToWriter
);
}
f = message.getProposaltx();
if (f != null) {
writer.writeMessage(
9,
f,
proto.payload.ProposalTx.serializeBinaryToWriter
);
}
f = message.getIdentifytx();
if (f != null) {
writer.writeMessage(
10,
f,
proto.payload.IdentifyTx.serializeBinaryToWriter
);
}
};
/**
* optional CallTx CallTx = 1;
* @return {?proto.payload.CallTx}
*/
proto.payload.Any.prototype.getCalltx = function() {
return /** @type{?proto.payload.CallTx} */ (
jspb.Message.getWrapperField(this, proto.payload.CallTx, 1));
};
/**
* @param {?proto.payload.CallTx|undefined} value
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.setCalltx = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.clearCalltx = function() {
return this.setCalltx(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.payload.Any.prototype.hasCalltx = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional SendTx SendTx = 2;
* @return {?proto.payload.SendTx}
*/
proto.payload.Any.prototype.getSendtx = function() {
return /** @type{?proto.payload.SendTx} */ (
jspb.Message.getWrapperField(this, proto.payload.SendTx, 2));
};
/**
* @param {?proto.payload.SendTx|undefined} value
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.setSendtx = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.clearSendtx = function() {
return this.setSendtx(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.payload.Any.prototype.hasSendtx = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional NameTx NameTx = 3;
* @return {?proto.payload.NameTx}
*/
proto.payload.Any.prototype.getNametx = function() {
return /** @type{?proto.payload.NameTx} */ (
jspb.Message.getWrapperField(this, proto.payload.NameTx, 3));
};
/**
* @param {?proto.payload.NameTx|undefined} value
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.setNametx = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.clearNametx = function() {
return this.setNametx(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.payload.Any.prototype.hasNametx = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional PermsTx PermsTx = 4;
* @return {?proto.payload.PermsTx}
*/
proto.payload.Any.prototype.getPermstx = function() {
return /** @type{?proto.payload.PermsTx} */ (
jspb.Message.getWrapperField(this, proto.payload.PermsTx, 4));
};
/**
* @param {?proto.payload.PermsTx|undefined} value
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.setPermstx = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.clearPermstx = function() {
return this.setPermstx(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.payload.Any.prototype.hasPermstx = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional GovTx GovTx = 5;
* @return {?proto.payload.GovTx}
*/
proto.payload.Any.prototype.getGovtx = function() {
return /** @type{?proto.payload.GovTx} */ (
jspb.Message.getWrapperField(this, proto.payload.GovTx, 5));
};
/**
* @param {?proto.payload.GovTx|undefined} value
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.setGovtx = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.clearGovtx = function() {
return this.setGovtx(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.payload.Any.prototype.hasGovtx = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional BondTx BondTx = 6;
* @return {?proto.payload.BondTx}
*/
proto.payload.Any.prototype.getBondtx = function() {
return /** @type{?proto.payload.BondTx} */ (
jspb.Message.getWrapperField(this, proto.payload.BondTx, 6));
};
/**
* @param {?proto.payload.BondTx|undefined} value
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.setBondtx = function(value) {
return jspb.Message.setWrapperField(this, 6, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.clearBondtx = function() {
return this.setBondtx(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.payload.Any.prototype.hasBondtx = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional UnbondTx UnbondTx = 7;
* @return {?proto.payload.UnbondTx}
*/
proto.payload.Any.prototype.getUnbondtx = function() {
return /** @type{?proto.payload.UnbondTx} */ (
jspb.Message.getWrapperField(this, proto.payload.UnbondTx, 7));
};
/**
* @param {?proto.payload.UnbondTx|undefined} value
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.setUnbondtx = function(value) {
return jspb.Message.setWrapperField(this, 7, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.clearUnbondtx = function() {
return this.setUnbondtx(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.payload.Any.prototype.hasUnbondtx = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* optional BatchTx BatchTx = 8;
* @return {?proto.payload.BatchTx}
*/
proto.payload.Any.prototype.getBatchtx = function() {
return /** @type{?proto.payload.BatchTx} */ (
jspb.Message.getWrapperField(this, proto.payload.BatchTx, 8));
};
/**
* @param {?proto.payload.BatchTx|undefined} value
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.setBatchtx = function(value) {
return jspb.Message.setWrapperField(this, 8, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.clearBatchtx = function() {
return this.setBatchtx(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.payload.Any.prototype.hasBatchtx = function() {
return jspb.Message.getField(this, 8) != null;
};
/**
* optional ProposalTx ProposalTx = 9;
* @return {?proto.payload.ProposalTx}
*/
proto.payload.Any.prototype.getProposaltx = function() {
return /** @type{?proto.payload.ProposalTx} */ (
jspb.Message.getWrapperField(this, proto.payload.ProposalTx, 9));
};
/**
* @param {?proto.payload.ProposalTx|undefined} value
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.setProposaltx = function(value) {
return jspb.Message.setWrapperField(this, 9, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.clearProposaltx = function() {
return this.setProposaltx(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.payload.Any.prototype.hasProposaltx = function() {
return jspb.Message.getField(this, 9) != null;
};
/**
* optional IdentifyTx IdentifyTx = 10;
* @return {?proto.payload.IdentifyTx}
*/
proto.payload.Any.prototype.getIdentifytx = function() {
return /** @type{?proto.payload.IdentifyTx} */ (
jspb.Message.getWrapperField(this, proto.payload.IdentifyTx, 10));
};
/**
* @param {?proto.payload.IdentifyTx|undefined} value
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.setIdentifytx = function(value) {
return jspb.Message.setWrapperField(this, 10, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.payload.Any} returns this
*/
proto.payload.Any.prototype.clearIdentifytx = function() {
return this.setIdentifytx(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.payload.Any.prototype.hasIdentifytx = function() {
return jspb.Message.getField(this, 10) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.payload.TxInput.prototype.toObject = function(opt_includeInstance) {
return proto.payload.TxInput.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.payload.TxInput} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.payload.TxInput.toObject = function(includeInstance, msg) {
var f, obj = {
address: msg.getAddress_asB64(),
amount: jspb.Message.getFieldWithDefault(msg, 2, 0),
sequence: jspb.Message.getFieldWithDefault(msg, 3, 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.payload.TxInput}
*/
proto.payload.TxInput.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.payload.TxInput;
return proto.payload.TxInput.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.payload.TxInput} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.payload.TxInput}
*/
proto.payload.TxInput.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.setAddress(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setAmount(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setSequence(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.payload.TxInput.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.payload.TxInput.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.payload.TxInput} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.payload.TxInput.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAddress_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
f = message.getAmount();
if (f !== 0) {
writer.writeUint64(
2,
f
);
}
f = message.getSequence();
if (f !== 0) {
writer.writeUint64(
3,
f
);
}
};
/**
* optional bytes Address = 1;
* @return {!(string|Uint8Array)}
*/
proto.payload.TxInput.prototype.getAddress = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes Address = 1;
* This is a type-conversion wrapper around `getAddress()`
* @return {string}
*/
proto.payload.TxInput.prototype.getAddress_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getAddress()));
};
/**
* optional bytes Address = 1;
* 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.payload.TxInput.prototype.getAddress_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getAddress()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.payload.TxInput} returns this
*/
proto.payload.TxInput.prototype.setAddress = function(value) {
return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
* optional uint64 Amount = 2;
* @return {number}
*/
proto.payload.TxInput.prototype.getAmount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.payload.TxInput} returns this
*/
proto.payload.TxInput.prototype.setAmount = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional uint64 Sequence = 3;
* @return {number}
*/
proto.payload.TxInput.prototype.getSequence = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.payload.TxInput} returns this
*/
proto.payload.TxInput.prototype.setSequence = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.payload.TxOutput.prototype.toObject = function(opt_includeInstance) {
return proto.payload.TxOutput.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.payload.TxOutput} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.payload.TxOutput.toObject = function(includeInstance, msg) {
var f, obj = {
address: msg.getAddress_asB64(),
amount: 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.payload.TxOutput}
*/
proto.payload.TxOutput.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.payload.TxOutput;
return proto.payload.TxOutput.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.payload.TxOutput} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.payload.TxOutput}
*/
proto.payload.TxOutput.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.setAddress(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setAmount(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.payload.TxOutput.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.payload.TxOutput.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.payload.TxOutput} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.payload.TxOutput.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAddress_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
f = message.getAmount();
if (f !== 0) {
writer.writeUint64(
2,
f
);
}
};
/**
* optional bytes Address = 1;
* @return {!(string|Uint8Array)}
*/
proto.payload.TxOutput.prototype.getAddress = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes Address = 1;
* This is a type-conversion wrapper around `getAddress()`
* @return {string}
*/
proto.payload.TxOutput.prototype.getAddress_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getAddress()));
};
/**
* optional bytes Address = 1;
* 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.payload.TxOutput.prototype.getAddress_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getAddress()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.payload.TxOutput} returns this
*/
proto.payload.TxOutput.prototype.setAddress = function(value) {
return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
* optional uint64 Amount = 2;
* @return {number}
*/
proto.payload.TxOutput.prototype.getAmount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.payload.TxOutput} returns this
*/
proto.payload.TxOutput.prototype.setAmount = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.payload.CallTx.repeatedFields_ = [7];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.payload.CallTx.prototype.toObject = function(opt_includeInstance) {
return proto.payload.CallTx.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.payload.CallTx} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.payload.CallTx.toObject = function(includeInstance, msg) {
var f, obj = {
input: (f = msg.getInput()) && proto.payload.TxInput.toObject(includeInstance, f),
address: msg.getAddress_asB64(),
gaslimit: jspb.Message.getFieldWithDefault(msg, 3, 0),
fee: jspb.Message.getFieldWithDefault(msg, 4, 0),
data: msg.getData_asB64(),
wasm: msg.getWasm_asB64(),
contractmetaList: jspb.Message.toObjectList(msg.getContractmetaList(),
proto.payload.ContractMeta.toObject, includeInstance),
gasprice: jspb.Message.getFieldWithDefault(msg, 8, 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.payload.CallTx}
*/
proto.payload.CallTx.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.payload.CallTx;
return proto.payload.CallTx.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.payload.CallTx} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.payload.CallTx}
*/
proto.payload.CallTx.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.payload.TxInput;
reader.readMessage(value,proto.payload.TxInput.deserializeBinaryFromReader);
msg.setInput(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setAddress(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setGaslimit(value);
break;
case 4:
var value = /** @type {number} */ (reader.readUint64());
msg.setFee(value);
break;
case 5:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setData(value);
break;
case 6:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setWasm(value);
break;
case 7:
var value = new proto.payload.ContractMeta;
reader.readMessage(value,proto.payload.ContractMeta.deserializeBinaryFromReader);
msg.addContractmeta(value);
break;
case 8:
var value = /** @type {number} */ (reader.readUint64());
msg.setGasprice(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.payload.CallTx.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.payload.CallTx.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.payload.CallTx} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.payload.CallTx.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getInput();
if (f != null) {
writer.writeMessage(
1,
f,
proto.payload.TxInput.serializeBinaryToWriter
);
}
f = message.getAddress_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = message.getGaslimit();
if (f !== 0) {
writer.writeUint64(
3,
f
);
}
f = message.getFee();
if (f !== 0) {
writer.writeUint64(
4,
f
);
}
f = message.getData_asU8();
if (f.length > 0) {
writer.writeBytes(
5,
f
);
}
f = message.getWasm_asU8();
if (f.length > 0) {
writer.writeBytes(
6,
f
);
}
f = message.getContractmetaList();
if (f.length > 0) {
writer.writeRepeatedMessage(
7,
f,
proto.payload.ContractMeta.serializeBinaryToWriter
);
}
f = message.getGasprice();
if (f !== 0) {
writer.writeUint64(
8,
f
);
}
};
/**
* optional TxInput Input = 1;
* @return {?proto.payload.TxInput}
*/
proto.payload.CallTx.prototype.getInput = function() {
return /** @type{?proto.payload.TxInput} */ (
jspb.Message.getWrapperField(this, proto.payload.TxInput, 1));
};
/**
* @param {?proto.payload.TxInput|undefined} value
* @return {!proto.payload.CallTx} returns this
*/
proto.payload.CallTx.prototype.setInput = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.payload.CallTx} returns this
*/
proto.payload.CallTx.prototype.clearInput = function() {
return this.setInput(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.payload.CallTx.prototype.hasInput = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional bytes Address = 2;
* @return {!(string|Uint8Array)}
*/
proto.payload.CallTx.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.payload.CallTx.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.payload.CallTx.prototype.getAddress_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getAddress()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.payload.CallTx} returns this
*/
proto.payload.CallTx.prototype.setAddress = function(value) {
return jspb.Message.setProto3BytesField(this, 2, value);
};
/**
* optional uint64 GasLimit = 3;
* @return {number}
*/
proto.payload.CallTx.prototype.getGaslimit = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.payload.CallTx} returns this
*/
proto.payload.CallTx.prototype.setGaslimit = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional uint64 Fee = 4;
* @return {number}
*/
proto.payload.CallTx.prototype.getFee = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.payload.CallTx} returns this
*/
proto.payload.CallTx.prototype.setFee = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional bytes Data = 5;
* @return {!(string|Uint8Array)}
*/
proto.payload.CallTx.prototype.getData = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* optional bytes Data = 5;
* This is a type-conversion wrapper around `getData()`
* @return {string}
*/
proto.payload.CallTx.prototype.getData_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getData()));
};
/**
* optional bytes Data = 5;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getData()`
* @return {!Uint8Array}
*/
proto.payload.CallTx.prototype.getData_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getData()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.payload.CallTx} returns this
*/
proto.payload.CallTx.prototype.setData = function(value) {
return jspb.Message.setProto3BytesField(this, 5, value);
};
/**
* optional bytes WASM = 6;
* @return {!(string|Uint8Array)}
*/
proto.payload.CallTx.prototype.getWasm = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* optional bytes WASM = 6;
* This is