UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,860 lines 59.8 kB
// source: routerprotocol/routerchain/voyager/ibc_receive_payload.proto
/**
 * @fileoverview
 * @enhanceable
 * @suppress {missingRequire} reports error on implicit type usages.
 * @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!
/* eslint-disable */
// @ts-nocheck

var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();

var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
goog.object.extend(proto, gogoproto_gogo_pb);
goog.exportSymbol('proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.voyager.FundDepositEventPacket', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.voyager.FundPaidEventPacket', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.voyager.IBCReceivePayload', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.voyager.IBCReceivePayload.RequestCase', 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.routerprotocol.routerchain.voyager.FundDepositEventPacket = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.voyager.FundDepositEventPacket, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.displayName = 'proto.routerprotocol.routerchain.voyager.FundDepositEventPacket';
}
/**
 * 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.routerprotocol.routerchain.voyager.FundPaidEventPacket = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.voyager.FundPaidEventPacket, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.displayName = 'proto.routerprotocol.routerchain.voyager.FundPaidEventPacket';
}
/**
 * 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.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.displayName = 'proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket';
}
/**
 * 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.routerprotocol.routerchain.voyager.IBCReceivePayload = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, proto.routerprotocol.routerchain.voyager.IBCReceivePayload.oneofGroups_);
};
goog.inherits(proto.routerprotocol.routerchain.voyager.IBCReceivePayload, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.routerprotocol.routerchain.voyager.IBCReceivePayload.displayName = 'proto.routerprotocol.routerchain.voyager.IBCReceivePayload';
}



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.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.toObject = function(opt_includeInstance) {
  return proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.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.routerprotocol.routerchain.voyager.FundDepositEventPacket} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.toObject = function(includeInstance, msg) {
  var f, obj = {
    srcChainId: jspb.Message.getFieldWithDefault(msg, 1, ""),
    srcTimestamp: jspb.Message.getFieldWithDefault(msg, 2, 0),
    contract: jspb.Message.getFieldWithDefault(msg, 3, ""),
    depositId: jspb.Message.getFieldWithDefault(msg, 4, 0),
    blockHeight: jspb.Message.getFieldWithDefault(msg, 5, 0),
    destChainId: jspb.Message.getFieldWithDefault(msg, 6, ""),
    amount: jspb.Message.getFieldWithDefault(msg, 7, ""),
    destAmount: jspb.Message.getFieldWithDefault(msg, 8, ""),
    srcToken: jspb.Message.getFieldWithDefault(msg, 9, ""),
    recipient: msg.getRecipient_asB64(),
    depositor: jspb.Message.getFieldWithDefault(msg, 11, ""),
    partnerId: jspb.Message.getFieldWithDefault(msg, 12, 0),
    message: msg.getMessage_asB64(),
    depositWithMessage: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
    destToken: msg.getDestToken_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.routerprotocol.routerchain.voyager.FundDepositEventPacket}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.routerprotocol.routerchain.voyager.FundDepositEventPacket;
  return proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.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.setSrcChainId(value);
      break;
    case 2:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setSrcTimestamp(value);
      break;
    case 3:
      var value = /** @type {string} */ (reader.readString());
      msg.setContract(value);
      break;
    case 4:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setDepositId(value);
      break;
    case 5:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setBlockHeight(value);
      break;
    case 6:
      var value = /** @type {string} */ (reader.readString());
      msg.setDestChainId(value);
      break;
    case 7:
      var value = /** @type {string} */ (reader.readString());
      msg.setAmount(value);
      break;
    case 8:
      var value = /** @type {string} */ (reader.readString());
      msg.setDestAmount(value);
      break;
    case 9:
      var value = /** @type {string} */ (reader.readString());
      msg.setSrcToken(value);
      break;
    case 10:
      var value = /** @type {!Uint8Array} */ (reader.readBytes());
      msg.setRecipient(value);
      break;
    case 11:
      var value = /** @type {string} */ (reader.readString());
      msg.setDepositor(value);
      break;
    case 12:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setPartnerId(value);
      break;
    case 13:
      var value = /** @type {!Uint8Array} */ (reader.readBytes());
      msg.setMessage(value);
      break;
    case 14:
      var value = /** @type {boolean} */ (reader.readBool());
      msg.setDepositWithMessage(value);
      break;
    case 15:
      var value = /** @type {!Uint8Array} */ (reader.readBytes());
      msg.setDestToken(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getSrcChainId();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getSrcTimestamp();
  if (f !== 0) {
    writer.writeUint64(
      2,
      f
    );
  }
  f = message.getContract();
  if (f.length > 0) {
    writer.writeString(
      3,
      f
    );
  }
  f = message.getDepositId();
  if (f !== 0) {
    writer.writeUint64(
      4,
      f
    );
  }
  f = message.getBlockHeight();
  if (f !== 0) {
    writer.writeUint64(
      5,
      f
    );
  }
  f = message.getDestChainId();
  if (f.length > 0) {
    writer.writeString(
      6,
      f
    );
  }
  f = message.getAmount();
  if (f.length > 0) {
    writer.writeString(
      7,
      f
    );
  }
  f = message.getDestAmount();
  if (f.length > 0) {
    writer.writeString(
      8,
      f
    );
  }
  f = message.getSrcToken();
  if (f.length > 0) {
    writer.writeString(
      9,
      f
    );
  }
  f = message.getRecipient_asU8();
  if (f.length > 0) {
    writer.writeBytes(
      10,
      f
    );
  }
  f = message.getDepositor();
  if (f.length > 0) {
    writer.writeString(
      11,
      f
    );
  }
  f = message.getPartnerId();
  if (f !== 0) {
    writer.writeUint64(
      12,
      f
    );
  }
  f = message.getMessage_asU8();
  if (f.length > 0) {
    writer.writeBytes(
      13,
      f
    );
  }
  f = message.getDepositWithMessage();
  if (f) {
    writer.writeBool(
      14,
      f
    );
  }
  f = message.getDestToken_asU8();
  if (f.length > 0) {
    writer.writeBytes(
      15,
      f
    );
  }
};


/**
 * optional string src_chain_id = 1;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getSrcChainId = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setSrcChainId = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * optional uint64 src_timestamp = 2;
 * @return {number}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getSrcTimestamp = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};


/**
 * @param {number} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setSrcTimestamp = function(value) {
  return jspb.Message.setProto3IntField(this, 2, value);
};


/**
 * optional string contract = 3;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getContract = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setContract = function(value) {
  return jspb.Message.setProto3StringField(this, 3, value);
};


/**
 * optional uint64 deposit_id = 4;
 * @return {number}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getDepositId = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};


/**
 * @param {number} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setDepositId = function(value) {
  return jspb.Message.setProto3IntField(this, 4, value);
};


/**
 * optional uint64 block_height = 5;
 * @return {number}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getBlockHeight = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};


/**
 * @param {number} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setBlockHeight = function(value) {
  return jspb.Message.setProto3IntField(this, 5, value);
};


/**
 * optional string dest_chain_id = 6;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getDestChainId = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setDestChainId = function(value) {
  return jspb.Message.setProto3StringField(this, 6, value);
};


/**
 * optional string amount = 7;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getAmount = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setAmount = function(value) {
  return jspb.Message.setProto3StringField(this, 7, value);
};


/**
 * optional string dest_amount = 8;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getDestAmount = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setDestAmount = function(value) {
  return jspb.Message.setProto3StringField(this, 8, value);
};


/**
 * optional string src_token = 9;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getSrcToken = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setSrcToken = function(value) {
  return jspb.Message.setProto3StringField(this, 9, value);
};


/**
 * optional bytes recipient = 10;
 * @return {!(string|Uint8Array)}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getRecipient = function() {
  return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
};


/**
 * optional bytes recipient = 10;
 * This is a type-conversion wrapper around `getRecipient()`
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getRecipient_asB64 = function() {
  return /** @type {string} */ (jspb.Message.bytesAsB64(
      this.getRecipient()));
};


/**
 * optional bytes recipient = 10;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getRecipient()`
 * @return {!Uint8Array}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getRecipient_asU8 = function() {
  return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
      this.getRecipient()));
};


/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setRecipient = function(value) {
  return jspb.Message.setProto3BytesField(this, 10, value);
};


/**
 * optional string depositor = 11;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getDepositor = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setDepositor = function(value) {
  return jspb.Message.setProto3StringField(this, 11, value);
};


/**
 * optional uint64 partner_id = 12;
 * @return {number}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getPartnerId = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
};


/**
 * @param {number} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setPartnerId = function(value) {
  return jspb.Message.setProto3IntField(this, 12, value);
};


/**
 * optional bytes message = 13;
 * @return {!(string|Uint8Array)}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getMessage = function() {
  return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
};


/**
 * optional bytes message = 13;
 * This is a type-conversion wrapper around `getMessage()`
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getMessage_asB64 = function() {
  return /** @type {string} */ (jspb.Message.bytesAsB64(
      this.getMessage()));
};


/**
 * optional bytes message = 13;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getMessage()`
 * @return {!Uint8Array}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getMessage_asU8 = function() {
  return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
      this.getMessage()));
};


/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setMessage = function(value) {
  return jspb.Message.setProto3BytesField(this, 13, value);
};


/**
 * optional bool deposit_with_message = 14;
 * @return {boolean}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getDepositWithMessage = function() {
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false));
};


/**
 * @param {boolean} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setDepositWithMessage = function(value) {
  return jspb.Message.setProto3BooleanField(this, 14, value);
};


/**
 * optional bytes dest_token = 15;
 * @return {!(string|Uint8Array)}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getDestToken = function() {
  return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
};


/**
 * optional bytes dest_token = 15;
 * This is a type-conversion wrapper around `getDestToken()`
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getDestToken_asB64 = function() {
  return /** @type {string} */ (jspb.Message.bytesAsB64(
      this.getDestToken()));
};


/**
 * optional bytes dest_token = 15;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getDestToken()`
 * @return {!Uint8Array}
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.getDestToken_asU8 = function() {
  return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
      this.getDestToken()));
};


/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.prototype.setDestToken = function(value) {
  return jspb.Message.setProto3BytesField(this, 15, 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.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.toObject = function(opt_includeInstance) {
  return proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.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.routerprotocol.routerchain.voyager.FundPaidEventPacket} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.toObject = function(includeInstance, msg) {
  var f, obj = {
    srcChainId: jspb.Message.getFieldWithDefault(msg, 1, ""),
    srcTimestamp: jspb.Message.getFieldWithDefault(msg, 2, 0),
    contract: jspb.Message.getFieldWithDefault(msg, 3, ""),
    eventNonce: jspb.Message.getFieldWithDefault(msg, 4, 0),
    blockHeight: jspb.Message.getFieldWithDefault(msg, 5, 0),
    messageHash: msg.getMessageHash_asB64(),
    forwarder: jspb.Message.getFieldWithDefault(msg, 7, ""),
    forwarderRouterAddress: jspb.Message.getFieldWithDefault(msg, 8, ""),
    execData: msg.getExecData_asB64(),
    execStatus: jspb.Message.getBooleanFieldWithDefault(msg, 10, false)
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.routerprotocol.routerchain.voyager.FundPaidEventPacket;
  return proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.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.setSrcChainId(value);
      break;
    case 2:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setSrcTimestamp(value);
      break;
    case 3:
      var value = /** @type {string} */ (reader.readString());
      msg.setContract(value);
      break;
    case 4:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setEventNonce(value);
      break;
    case 5:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setBlockHeight(value);
      break;
    case 6:
      var value = /** @type {!Uint8Array} */ (reader.readBytes());
      msg.setMessageHash(value);
      break;
    case 7:
      var value = /** @type {string} */ (reader.readString());
      msg.setForwarder(value);
      break;
    case 8:
      var value = /** @type {string} */ (reader.readString());
      msg.setForwarderRouterAddress(value);
      break;
    case 9:
      var value = /** @type {!Uint8Array} */ (reader.readBytes());
      msg.setExecData(value);
      break;
    case 10:
      var value = /** @type {boolean} */ (reader.readBool());
      msg.setExecStatus(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getSrcChainId();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getSrcTimestamp();
  if (f !== 0) {
    writer.writeUint64(
      2,
      f
    );
  }
  f = message.getContract();
  if (f.length > 0) {
    writer.writeString(
      3,
      f
    );
  }
  f = message.getEventNonce();
  if (f !== 0) {
    writer.writeUint64(
      4,
      f
    );
  }
  f = message.getBlockHeight();
  if (f !== 0) {
    writer.writeUint64(
      5,
      f
    );
  }
  f = message.getMessageHash_asU8();
  if (f.length > 0) {
    writer.writeBytes(
      6,
      f
    );
  }
  f = message.getForwarder();
  if (f.length > 0) {
    writer.writeString(
      7,
      f
    );
  }
  f = message.getForwarderRouterAddress();
  if (f.length > 0) {
    writer.writeString(
      8,
      f
    );
  }
  f = message.getExecData_asU8();
  if (f.length > 0) {
    writer.writeBytes(
      9,
      f
    );
  }
  f = message.getExecStatus();
  if (f) {
    writer.writeBool(
      10,
      f
    );
  }
};


/**
 * optional string src_chain_id = 1;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getSrcChainId = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.setSrcChainId = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * optional uint64 src_timestamp = 2;
 * @return {number}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getSrcTimestamp = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};


/**
 * @param {number} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.setSrcTimestamp = function(value) {
  return jspb.Message.setProto3IntField(this, 2, value);
};


/**
 * optional string contract = 3;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getContract = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.setContract = function(value) {
  return jspb.Message.setProto3StringField(this, 3, value);
};


/**
 * optional uint64 event_nonce = 4;
 * @return {number}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getEventNonce = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};


/**
 * @param {number} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.setEventNonce = function(value) {
  return jspb.Message.setProto3IntField(this, 4, value);
};


/**
 * optional uint64 block_height = 5;
 * @return {number}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getBlockHeight = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};


/**
 * @param {number} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.setBlockHeight = function(value) {
  return jspb.Message.setProto3IntField(this, 5, value);
};


/**
 * optional bytes message_hash = 6;
 * @return {!(string|Uint8Array)}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getMessageHash = function() {
  return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};


/**
 * optional bytes message_hash = 6;
 * This is a type-conversion wrapper around `getMessageHash()`
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getMessageHash_asB64 = function() {
  return /** @type {string} */ (jspb.Message.bytesAsB64(
      this.getMessageHash()));
};


/**
 * optional bytes message_hash = 6;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getMessageHash()`
 * @return {!Uint8Array}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getMessageHash_asU8 = function() {
  return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
      this.getMessageHash()));
};


/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.setMessageHash = function(value) {
  return jspb.Message.setProto3BytesField(this, 6, value);
};


/**
 * optional string forwarder = 7;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getForwarder = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.setForwarder = function(value) {
  return jspb.Message.setProto3StringField(this, 7, value);
};


/**
 * optional string forwarder_router_address = 8;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getForwarderRouterAddress = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.setForwarderRouterAddress = function(value) {
  return jspb.Message.setProto3StringField(this, 8, value);
};


/**
 * optional bytes exec_data = 9;
 * @return {!(string|Uint8Array)}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getExecData = function() {
  return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};


/**
 * optional bytes exec_data = 9;
 * This is a type-conversion wrapper around `getExecData()`
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getExecData_asB64 = function() {
  return /** @type {string} */ (jspb.Message.bytesAsB64(
      this.getExecData()));
};


/**
 * optional bytes exec_data = 9;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getExecData()`
 * @return {!Uint8Array}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getExecData_asU8 = function() {
  return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
      this.getExecData()));
};


/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.setExecData = function(value) {
  return jspb.Message.setProto3BytesField(this, 9, value);
};


/**
 * optional bool exec_status = 10;
 * @return {boolean}
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.getExecStatus = function() {
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
};


/**
 * @param {boolean} value
 * @return {!proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.prototype.setExecStatus = function(value) {
  return jspb.Message.setProto3BooleanField(this, 10, 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.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.toObject = function(opt_includeInstance) {
  return proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.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.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.toObject = function(includeInstance, msg) {
  var f, obj = {
    depositId: jspb.Message.getFieldWithDefault(msg, 1, 0),
    srcChainId: jspb.Message.getFieldWithDefault(msg, 2, ""),
    srcTimestamp: jspb.Message.getFieldWithDefault(msg, 3, 0),
    contract: jspb.Message.getFieldWithDefault(msg, 4, ""),
    eventNonce: jspb.Message.getFieldWithDefault(msg, 5, 0),
    blockHeight: jspb.Message.getFieldWithDefault(msg, 6, 0),
    feeAmount: jspb.Message.getFieldWithDefault(msg, 7, ""),
    initiateWithdrawal: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
    srcToken: jspb.Message.getFieldWithDefault(msg, 9, ""),
    depositor: jspb.Message.getFieldWithDefault(msg, 10, "")
  };

  if (includeInstance) {
    obj.$jspbMessageInstance = msg;
  }
  return obj;
};
}


/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket;
  return proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setDepositId(value);
      break;
    case 2:
      var value = /** @type {string} */ (reader.readString());
      msg.setSrcChainId(value);
      break;
    case 3:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setSrcTimestamp(value);
      break;
    case 4:
      var value = /** @type {string} */ (reader.readString());
      msg.setContract(value);
      break;
    case 5:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setEventNonce(value);
      break;
    case 6:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setBlockHeight(value);
      break;
    case 7:
      var value = /** @type {string} */ (reader.readString());
      msg.setFeeAmount(value);
      break;
    case 8:
      var value = /** @type {boolean} */ (reader.readBool());
      msg.setInitiateWithdrawal(value);
      break;
    case 9:
      var value = /** @type {string} */ (reader.readString());
      msg.setSrcToken(value);
      break;
    case 10:
      var value = /** @type {string} */ (reader.readString());
      msg.setDepositor(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getDepositId();
  if (f !== 0) {
    writer.writeUint64(
      1,
      f
    );
  }
  f = message.getSrcChainId();
  if (f.length > 0) {
    writer.writeString(
      2,
      f
    );
  }
  f = message.getSrcTimestamp();
  if (f !== 0) {
    writer.writeUint64(
      3,
      f
    );
  }
  f = message.getContract();
  if (f.length > 0) {
    writer.writeString(
      4,
      f
    );
  }
  f = message.getEventNonce();
  if (f !== 0) {
    writer.writeUint64(
      5,
      f
    );
  }
  f = message.getBlockHeight();
  if (f !== 0) {
    writer.writeUint64(
      6,
      f
    );
  }
  f = message.getFeeAmount();
  if (f.length > 0) {
    writer.writeString(
      7,
      f
    );
  }
  f = message.getInitiateWithdrawal();
  if (f) {
    writer.writeBool(
      8,
      f
    );
  }
  f = message.getSrcToken();
  if (f.length > 0) {
    writer.writeString(
      9,
      f
    );
  }
  f = message.getDepositor();
  if (f.length > 0) {
    writer.writeString(
      10,
      f
    );
  }
};


/**
 * optional uint64 deposit_id = 1;
 * @return {number}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.getDepositId = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};


/**
 * @param {number} value
 * @return {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.setDepositId = function(value) {
  return jspb.Message.setProto3IntField(this, 1, value);
};


/**
 * optional string src_chain_id = 2;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.getSrcChainId = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.setSrcChainId = function(value) {
  return jspb.Message.setProto3StringField(this, 2, value);
};


/**
 * optional uint64 src_timestamp = 3;
 * @return {number}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.getSrcTimestamp = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};


/**
 * @param {number} value
 * @return {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.setSrcTimestamp = function(value) {
  return jspb.Message.setProto3IntField(this, 3, value);
};


/**
 * optional string contract = 4;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.getContract = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.setContract = function(value) {
  return jspb.Message.setProto3StringField(this, 4, value);
};


/**
 * optional uint64 event_nonce = 5;
 * @return {number}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.getEventNonce = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};


/**
 * @param {number} value
 * @return {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.setEventNonce = function(value) {
  return jspb.Message.setProto3IntField(this, 5, value);
};


/**
 * optional uint64 block_height = 6;
 * @return {number}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.getBlockHeight = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};


/**
 * @param {number} value
 * @return {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.setBlockHeight = function(value) {
  return jspb.Message.setProto3IntField(this, 6, value);
};


/**
 * optional string fee_amount = 7;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.getFeeAmount = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.setFeeAmount = function(value) {
  return jspb.Message.setProto3StringField(this, 7, value);
};


/**
 * optional bool initiate_withdrawal = 8;
 * @return {boolean}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.getInitiateWithdrawal = function() {
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
};


/**
 * @param {boolean} value
 * @return {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.setInitiateWithdrawal = function(value) {
  return jspb.Message.setProto3BooleanField(this, 8, value);
};


/**
 * optional string src_token = 9;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.getSrcToken = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.setSrcToken = function(value) {
  return jspb.Message.setProto3StringField(this, 9, value);
};


/**
 * optional string depositor = 10;
 * @return {string}
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.getDepositor = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
};


/**
 * @param {string} value
 * @return {!proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} returns this
 */
proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.prototype.setDepositor = function(value) {
  return jspb.Message.setProto3StringField(this, 10, value);
};



/**
 * Oneof group definitions for this message. Each group defines the field
 * numbers belonging to that group. When of these fields' value is set, all
 * other fields in the group are cleared. During deserialization, if multiple
 * fields are encountered for a group, only the last value seen will be kept.
 * @private {!Array<!Array<number>>}
 * @const
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.oneofGroups_ = [[1,2,3]];

/**
 * @enum {number}
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.RequestCase = {
  REQUEST_NOT_SET: 0,
  FUND_DEPOSIT_EVENT_PACKET: 1,
  FUND_PAID_EVENT_PACKET: 2,
  DEPOSIT_INFO_UPDATE_EVENT_PACKET: 3
};

/**
 * @return {proto.routerprotocol.routerchain.voyager.IBCReceivePayload.RequestCase}
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.getRequestCase = function() {
  return /** @type {proto.routerprotocol.routerchain.voyager.IBCReceivePayload.RequestCase} */(jspb.Message.computeOneofCase(this, proto.routerprotocol.routerchain.voyager.IBCReceivePayload.oneofGroups_[0]));
};



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.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.toObject = function(opt_includeInstance) {
  return proto.routerprotocol.routerchain.voyager.IBCReceivePayload.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.routerprotocol.routerchain.voyager.IBCReceivePayload} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.toObject = function(includeInstance, msg) {
  var f, obj = {
    fundDepositEventPacket: (f = msg.getFundDepositEventPacket()) && proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.toObject(includeInstance, f),
    fundPaidEventPacket: (f = msg.getFundPaidEventPacket()) && proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.toObject(includeInstance, f),
    depositInfoUpdateEventPacket: (f = msg.getDepositInfoUpdateEventPacket()) && proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.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.routerprotocol.routerchain.voyager.IBCReceivePayload}
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.routerprotocol.routerchain.voyager.IBCReceivePayload;
  return proto.routerprotocol.routerchain.voyager.IBCReceivePayload.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.routerprotocol.routerchain.voyager.IBCReceivePayload} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.routerprotocol.routerchain.voyager.IBCReceivePayload}
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = new proto.routerprotocol.routerchain.voyager.FundDepositEventPacket;
      reader.readMessage(value,proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.deserializeBinaryFromReader);
      msg.setFundDepositEventPacket(value);
      break;
    case 2:
      var value = new proto.routerprotocol.routerchain.voyager.FundPaidEventPacket;
      reader.readMessage(value,proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.deserializeBinaryFromReader);
      msg.setFundPaidEventPacket(value);
      break;
    case 3:
      var value = new proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket;
      reader.readMessage(value,proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.deserializeBinaryFromReader);
      msg.setDepositInfoUpdateEventPacket(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.serializeBinary = function() {
  var writer = new jspb.BinaryWriter();
  proto.routerprotocol.routerchain.voyager.IBCReceivePayload.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.routerprotocol.routerchain.voyager.IBCReceivePayload} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getFundDepositEventPacket();
  if (f != null) {
    writer.writeMessage(
      1,
      f,
      proto.routerprotocol.routerchain.voyager.FundDepositEventPacket.serializeBinaryToWriter
    );
  }
  f = message.getFundPaidEventPacket();
  if (f != null) {
    writer.writeMessage(
      2,
      f,
      proto.routerprotocol.routerchain.voyager.FundPaidEventPacket.serializeBinaryToWriter
    );
  }
  f = message.getDepositInfoUpdateEventPacket();
  if (f != null) {
    writer.writeMessage(
      3,
      f,
      proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket.serializeBinaryToWriter
    );
  }
};


/**
 * optional FundDepositEventPacket fund_deposit_event_packet = 1;
 * @return {?proto.routerprotocol.routerchain.voyager.FundDepositEventPacket}
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.getFundDepositEventPacket = function() {
  return /** @type{?proto.routerprotocol.routerchain.voyager.FundDepositEventPacket} */ (
    jspb.Message.getWrapperField(this, proto.routerprotocol.routerchain.voyager.FundDepositEventPacket, 1));
};


/**
 * @param {?proto.routerprotocol.routerchain.voyager.FundDepositEventPacket|undefined} value
 * @return {!proto.routerprotocol.routerchain.voyager.IBCReceivePayload} returns this
*/
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.setFundDepositEventPacket = function(value) {
  return jspb.Message.setOneofWrapperField(this, 1, proto.routerprotocol.routerchain.voyager.IBCReceivePayload.oneofGroups_[0], value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.routerprotocol.routerchain.voyager.IBCReceivePayload} returns this
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.clearFundDepositEventPacket = function() {
  return this.setFundDepositEventPacket(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.hasFundDepositEventPacket = function() {
  return jspb.Message.getField(this, 1) != null;
};


/**
 * optional FundPaidEventPacket fund_paid_event_packet = 2;
 * @return {?proto.routerprotocol.routerchain.voyager.FundPaidEventPacket}
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.getFundPaidEventPacket = function() {
  return /** @type{?proto.routerprotocol.routerchain.voyager.FundPaidEventPacket} */ (
    jspb.Message.getWrapperField(this, proto.routerprotocol.routerchain.voyager.FundPaidEventPacket, 2));
};


/**
 * @param {?proto.routerprotocol.routerchain.voyager.FundPaidEventPacket|undefined} value
 * @return {!proto.routerprotocol.routerchain.voyager.IBCReceivePayload} returns this
*/
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.setFundPaidEventPacket = function(value) {
  return jspb.Message.setOneofWrapperField(this, 2, proto.routerprotocol.routerchain.voyager.IBCReceivePayload.oneofGroups_[0], value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.routerprotocol.routerchain.voyager.IBCReceivePayload} returns this
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.clearFundPaidEventPacket = function() {
  return this.setFundPaidEventPacket(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.hasFundPaidEventPacket = function() {
  return jspb.Message.getField(this, 2) != null;
};


/**
 * optional DepositInfoUpdateEventPacket deposit_info_update_event_packet = 3;
 * @return {?proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket}
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.getDepositInfoUpdateEventPacket = function() {
  return /** @type{?proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket} */ (
    jspb.Message.getWrapperField(this, proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket, 3));
};


/**
 * @param {?proto.routerprotocol.routerchain.voyager.DepositInfoUpdateEventPacket|undefined} value
 * @return {!proto.routerprotocol.routerchain.voyager.IBCReceivePayload} returns this
*/
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.setDepositInfoUpdateEventPacket = function(value) {
  return jspb.Message.setOneofWrapperField(this, 3, proto.routerprotocol.routerchain.voyager.IBCReceivePayload.oneofGroups_[0], value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.routerprotocol.routerchain.voyager.IBCReceivePayload} returns this
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.clearDepositInfoUpdateEventPacket = function() {
  return this.setDepositInfoUpdateEventPacket(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.routerprotocol.routerchain.voyager.IBCReceivePayload.prototype.hasDepositInfoUpdateEventPacket = function() {
  return jspb.Message.getField(this, 3) != null;
};


goog.object.extend(exports, proto.routerprotocol.routerchain.voyager);