UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

1,434 lines 53.1 kB
// source: ibc/applications/interchain_accounts/genesis/v1/genesis.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 || window || global || self || Function('return this')();
}.call(null);

var gogoproto_gogo_pb = require('../../../../../gogoproto/gogo_pb.js');

goog.object.extend(proto, gogoproto_gogo_pb);

var ibc_applications_interchain_accounts_controller_v1_controller_pb = require('../../../../../ibc/applications/interchain_accounts/controller/v1/controller_pb.js');

goog.object.extend(proto, ibc_applications_interchain_accounts_controller_v1_controller_pb);

var ibc_applications_interchain_accounts_host_v1_host_pb = require('../../../../../ibc/applications/interchain_accounts/host/v1/host_pb.js');

goog.object.extend(proto, ibc_applications_interchain_accounts_host_v1_host_pb);
goog.exportSymbol('proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel', null, global);
goog.exportSymbol('proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState', null, global);
goog.exportSymbol('proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState', null, global);
goog.exportSymbol('proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState', null, global);
goog.exportSymbol('proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount', 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.ibc.applications.interchain_accounts.genesis.v1.GenesisState = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.displayName = 'proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState';
}
/**
 * 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.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.repeatedFields_, null);
};

goog.inherits(proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.displayName = 'proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState';
}
/**
 * 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.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.repeatedFields_, null);
};

goog.inherits(proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.displayName = 'proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState';
}
/**
 * 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.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.displayName = 'proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel';
}
/**
 * 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.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.displayName = 'proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount';
}

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.ibc.applications.interchain_accounts.genesis.v1.GenesisState.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.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.ibc.applications.interchain_accounts.genesis.v1.GenesisState} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      controllerGenesisState: (f = msg.getControllerGenesisState()) && proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.toObject(includeInstance, f),
      hostGenesisState: (f = msg.getHostGenesisState()) && proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.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.ibc.applications.interchain_accounts.genesis.v1.GenesisState}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.deserializeBinary = function (bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState();
  return proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.deserializeBinaryFromReader(msg, reader);
};
/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value = new proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState();
        reader.readMessage(value, proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.deserializeBinaryFromReader);
        msg.setControllerGenesisState(value);
        break;

      case 2:
        var value = new proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState();
        reader.readMessage(value, proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.deserializeBinaryFromReader);
        msg.setHostGenesisState(value);
        break;

      default:
        reader.skipField();
        break;
    }
  }

  return msg;
};
/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};
/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getControllerGenesisState();

  if (f != null) {
    writer.writeMessage(1, f, proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.serializeBinaryToWriter);
  }

  f = message.getHostGenesisState();

  if (f != null) {
    writer.writeMessage(2, f, proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.serializeBinaryToWriter);
  }
};
/**
 * optional ControllerGenesisState controller_genesis_state = 1;
 * @return {?proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.prototype.getControllerGenesisState = function () {
  return (
    /** @type{?proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} */
    jspb.Message.getWrapperField(this, proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState, 1)
  );
};
/**
 * @param {?proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState|undefined} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState} returns this
*/


proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.prototype.setControllerGenesisState = function (value) {
  return jspb.Message.setWrapperField(this, 1, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.prototype.clearControllerGenesisState = function () {
  return this.setControllerGenesisState(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.prototype.hasControllerGenesisState = function () {
  return jspb.Message.getField(this, 1) != null;
};
/**
 * optional HostGenesisState host_genesis_state = 2;
 * @return {?proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.prototype.getHostGenesisState = function () {
  return (
    /** @type{?proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} */
    jspb.Message.getWrapperField(this, proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState, 2)
  );
};
/**
 * @param {?proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState|undefined} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState} returns this
*/


proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.prototype.setHostGenesisState = function (value) {
  return jspb.Message.setWrapperField(this, 2, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.prototype.clearHostGenesisState = function () {
  return this.setHostGenesisState(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.GenesisState.prototype.hasHostGenesisState = function () {
  return jspb.Message.getField(this, 2) != null;
};
/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.repeatedFields_ = [1, 2, 3];

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.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.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.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      activeChannelsList: jspb.Message.toObjectList(msg.getActiveChannelsList(), proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.toObject, includeInstance),
      interchainAccountsList: jspb.Message.toObjectList(msg.getInterchainAccountsList(), proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.toObject, includeInstance),
      portsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
      params: (f = msg.getParams()) && ibc_applications_interchain_accounts_controller_v1_controller_pb.Params.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.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.deserializeBinary = function (bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState();
  return proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.deserializeBinaryFromReader(msg, reader);
};
/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value = new proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel();
        reader.readMessage(value, proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.deserializeBinaryFromReader);
        msg.addActiveChannels(value);
        break;

      case 2:
        var value = new proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount();
        reader.readMessage(value, proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.deserializeBinaryFromReader);
        msg.addInterchainAccounts(value);
        break;

      case 3:
        var value =
        /** @type {string} */
        reader.readString();
        msg.addPorts(value);
        break;

      case 4:
        var value = new ibc_applications_interchain_accounts_controller_v1_controller_pb.Params();
        reader.readMessage(value, ibc_applications_interchain_accounts_controller_v1_controller_pb.Params.deserializeBinaryFromReader);
        msg.setParams(value);
        break;

      default:
        reader.skipField();
        break;
    }
  }

  return msg;
};
/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};
/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getActiveChannelsList();

  if (f.length > 0) {
    writer.writeRepeatedMessage(1, f, proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.serializeBinaryToWriter);
  }

  f = message.getInterchainAccountsList();

  if (f.length > 0) {
    writer.writeRepeatedMessage(2, f, proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.serializeBinaryToWriter);
  }

  f = message.getPortsList();

  if (f.length > 0) {
    writer.writeRepeatedString(3, f);
  }

  f = message.getParams();

  if (f != null) {
    writer.writeMessage(4, f, ibc_applications_interchain_accounts_controller_v1_controller_pb.Params.serializeBinaryToWriter);
  }
};
/**
 * repeated ActiveChannel active_channels = 1;
 * @return {!Array<!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel>}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.getActiveChannelsList = function () {
  return (
    /** @type{!Array<!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel>} */
    jspb.Message.getRepeatedWrapperField(this, proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel, 1)
  );
};
/**
 * @param {!Array<!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel>} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} returns this
*/


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.setActiveChannelsList = function (value) {
  return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel=} opt_value
 * @param {number=} opt_index
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.addActiveChannels = function (opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel, opt_index);
};
/**
 * Clears the list making it empty but non-null.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.clearActiveChannelsList = function () {
  return this.setActiveChannelsList([]);
};
/**
 * repeated RegisteredInterchainAccount interchain_accounts = 2;
 * @return {!Array<!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount>}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.getInterchainAccountsList = function () {
  return (
    /** @type{!Array<!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount>} */
    jspb.Message.getRepeatedWrapperField(this, proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount, 2)
  );
};
/**
 * @param {!Array<!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount>} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} returns this
*/


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.setInterchainAccountsList = function (value) {
  return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount=} opt_value
 * @param {number=} opt_index
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.addInterchainAccounts = function (opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount, opt_index);
};
/**
 * Clears the list making it empty but non-null.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.clearInterchainAccountsList = function () {
  return this.setInterchainAccountsList([]);
};
/**
 * repeated string ports = 3;
 * @return {!Array<string>}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.getPortsList = function () {
  return (
    /** @type {!Array<string>} */
    jspb.Message.getRepeatedField(this, 3)
  );
};
/**
 * @param {!Array<string>} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.setPortsList = function (value) {
  return jspb.Message.setField(this, 3, value || []);
};
/**
 * @param {string} value
 * @param {number=} opt_index
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.addPorts = function (value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};
/**
 * Clears the list making it empty but non-null.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.clearPortsList = function () {
  return this.setPortsList([]);
};
/**
 * optional ibc.applications.interchain_accounts.controller.v1.Params params = 4;
 * @return {?proto.ibc.applications.interchain_accounts.controller.v1.Params}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.getParams = function () {
  return (
    /** @type{?proto.ibc.applications.interchain_accounts.controller.v1.Params} */
    jspb.Message.getWrapperField(this, ibc_applications_interchain_accounts_controller_v1_controller_pb.Params, 4)
  );
};
/**
 * @param {?proto.ibc.applications.interchain_accounts.controller.v1.Params|undefined} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} returns this
*/


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.setParams = function (value) {
  return jspb.Message.setWrapperField(this, 4, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.clearParams = function () {
  return this.setParams(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ControllerGenesisState.prototype.hasParams = function () {
  return jspb.Message.getField(this, 4) != null;
};
/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.repeatedFields_ = [1, 2];

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.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.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.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      activeChannelsList: jspb.Message.toObjectList(msg.getActiveChannelsList(), proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.toObject, includeInstance),
      interchainAccountsList: jspb.Message.toObjectList(msg.getInterchainAccountsList(), proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.toObject, includeInstance),
      port: jspb.Message.getFieldWithDefault(msg, 3, ""),
      params: (f = msg.getParams()) && ibc_applications_interchain_accounts_host_v1_host_pb.Params.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.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.deserializeBinary = function (bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState();
  return proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.deserializeBinaryFromReader(msg, reader);
};
/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value = new proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel();
        reader.readMessage(value, proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.deserializeBinaryFromReader);
        msg.addActiveChannels(value);
        break;

      case 2:
        var value = new proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount();
        reader.readMessage(value, proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.deserializeBinaryFromReader);
        msg.addInterchainAccounts(value);
        break;

      case 3:
        var value =
        /** @type {string} */
        reader.readString();
        msg.setPort(value);
        break;

      case 4:
        var value = new ibc_applications_interchain_accounts_host_v1_host_pb.Params();
        reader.readMessage(value, ibc_applications_interchain_accounts_host_v1_host_pb.Params.deserializeBinaryFromReader);
        msg.setParams(value);
        break;

      default:
        reader.skipField();
        break;
    }
  }

  return msg;
};
/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};
/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getActiveChannelsList();

  if (f.length > 0) {
    writer.writeRepeatedMessage(1, f, proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.serializeBinaryToWriter);
  }

  f = message.getInterchainAccountsList();

  if (f.length > 0) {
    writer.writeRepeatedMessage(2, f, proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.serializeBinaryToWriter);
  }

  f = message.getPort();

  if (f.length > 0) {
    writer.writeString(3, f);
  }

  f = message.getParams();

  if (f != null) {
    writer.writeMessage(4, f, ibc_applications_interchain_accounts_host_v1_host_pb.Params.serializeBinaryToWriter);
  }
};
/**
 * repeated ActiveChannel active_channels = 1;
 * @return {!Array<!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel>}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.getActiveChannelsList = function () {
  return (
    /** @type{!Array<!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel>} */
    jspb.Message.getRepeatedWrapperField(this, proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel, 1)
  );
};
/**
 * @param {!Array<!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel>} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} returns this
*/


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.setActiveChannelsList = function (value) {
  return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel=} opt_value
 * @param {number=} opt_index
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.addActiveChannels = function (opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel, opt_index);
};
/**
 * Clears the list making it empty but non-null.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.clearActiveChannelsList = function () {
  return this.setActiveChannelsList([]);
};
/**
 * repeated RegisteredInterchainAccount interchain_accounts = 2;
 * @return {!Array<!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount>}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.getInterchainAccountsList = function () {
  return (
    /** @type{!Array<!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount>} */
    jspb.Message.getRepeatedWrapperField(this, proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount, 2)
  );
};
/**
 * @param {!Array<!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount>} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} returns this
*/


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.setInterchainAccountsList = function (value) {
  return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount=} opt_value
 * @param {number=} opt_index
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.addInterchainAccounts = function (opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount, opt_index);
};
/**
 * Clears the list making it empty but non-null.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.clearInterchainAccountsList = function () {
  return this.setInterchainAccountsList([]);
};
/**
 * optional string port = 3;
 * @return {string}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.getPort = function () {
  return (
    /** @type {string} */
    jspb.Message.getFieldWithDefault(this, 3, "")
  );
};
/**
 * @param {string} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.setPort = function (value) {
  return jspb.Message.setProto3StringField(this, 3, value);
};
/**
 * optional ibc.applications.interchain_accounts.host.v1.Params params = 4;
 * @return {?proto.ibc.applications.interchain_accounts.host.v1.Params}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.getParams = function () {
  return (
    /** @type{?proto.ibc.applications.interchain_accounts.host.v1.Params} */
    jspb.Message.getWrapperField(this, ibc_applications_interchain_accounts_host_v1_host_pb.Params, 4)
  );
};
/**
 * @param {?proto.ibc.applications.interchain_accounts.host.v1.Params|undefined} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} returns this
*/


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.setParams = function (value) {
  return jspb.Message.setWrapperField(this, 4, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.clearParams = function () {
  return this.setParams(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.HostGenesisState.prototype.hasParams = function () {
  return jspb.Message.getField(this, 4) != 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.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.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.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      connectionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
      portId: jspb.Message.getFieldWithDefault(msg, 2, ""),
      channelId: jspb.Message.getFieldWithDefault(msg, 3, ""),
      isMiddlewareEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 4, 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.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.deserializeBinary = function (bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel();
  return proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.deserializeBinaryFromReader(msg, reader);
};
/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.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.setConnectionId(value);
        break;

      case 2:
        var value =
        /** @type {string} */
        reader.readString();
        msg.setPortId(value);
        break;

      case 3:
        var value =
        /** @type {string} */
        reader.readString();
        msg.setChannelId(value);
        break;

      case 4:
        var value =
        /** @type {boolean} */
        reader.readBool();
        msg.setIsMiddlewareEnabled(value);
        break;

      default:
        reader.skipField();
        break;
    }
  }

  return msg;
};
/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};
/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getConnectionId();

  if (f.length > 0) {
    writer.writeString(1, f);
  }

  f = message.getPortId();

  if (f.length > 0) {
    writer.writeString(2, f);
  }

  f = message.getChannelId();

  if (f.length > 0) {
    writer.writeString(3, f);
  }

  f = message.getIsMiddlewareEnabled();

  if (f) {
    writer.writeBool(4, f);
  }
};
/**
 * optional string connection_id = 1;
 * @return {string}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.prototype.getConnectionId = function () {
  return (
    /** @type {string} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * @param {string} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.prototype.setConnectionId = function (value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};
/**
 * optional string port_id = 2;
 * @return {string}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.prototype.getPortId = function () {
  return (
    /** @type {string} */
    jspb.Message.getFieldWithDefault(this, 2, "")
  );
};
/**
 * @param {string} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.prototype.setPortId = function (value) {
  return jspb.Message.setProto3StringField(this, 2, value);
};
/**
 * optional string channel_id = 3;
 * @return {string}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.prototype.getChannelId = function () {
  return (
    /** @type {string} */
    jspb.Message.getFieldWithDefault(this, 3, "")
  );
};
/**
 * @param {string} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.prototype.setChannelId = function (value) {
  return jspb.Message.setProto3StringField(this, 3, value);
};
/**
 * optional bool is_middleware_enabled = 4;
 * @return {boolean}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.prototype.getIsMiddlewareEnabled = function () {
  return (
    /** @type {boolean} */
    jspb.Message.getBooleanFieldWithDefault(this, 4, false)
  );
};
/**
 * @param {boolean} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.ActiveChannel.prototype.setIsMiddlewareEnabled = function (value) {
  return jspb.Message.setProto3BooleanField(this, 4, 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.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.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.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      connectionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
      portId: jspb.Message.getFieldWithDefault(msg, 2, ""),
      accountAddress: jspb.Message.getFieldWithDefault(msg, 3, "")
    };

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

    return obj;
  };
}
/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.deserializeBinary = function (bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount();
  return proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.deserializeBinaryFromReader(msg, reader);
};
/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.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.setConnectionId(value);
        break;

      case 2:
        var value =
        /** @type {string} */
        reader.readString();
        msg.setPortId(value);
        break;

      case 3:
        var value =
        /** @type {string} */
        reader.readString();
        msg.setAccountAddress(value);
        break;

      default:
        reader.skipField();
        break;
    }
  }

  return msg;
};
/**
 * Serializes the message to binary data (in protobuf wire format).
 * @return {!Uint8Array}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.serializeBinaryToWriter(this, writer);
  return writer.getResultBuffer();
};
/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getConnectionId();

  if (f.length > 0) {
    writer.writeString(1, f);
  }

  f = message.getPortId();

  if (f.length > 0) {
    writer.writeString(2, f);
  }

  f = message.getAccountAddress();

  if (f.length > 0) {
    writer.writeString(3, f);
  }
};
/**
 * optional string connection_id = 1;
 * @return {string}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.prototype.getConnectionId = function () {
  return (
    /** @type {string} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * @param {string} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.prototype.setConnectionId = function (value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};
/**
 * optional string port_id = 2;
 * @return {string}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.prototype.getPortId = function () {
  return (
    /** @type {string} */
    jspb.Message.getFieldWithDefault(this, 2, "")
  );
};
/**
 * @param {string} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.prototype.setPortId = function (value) {
  return jspb.Message.setProto3StringField(this, 2, value);
};
/**
 * optional string account_address = 3;
 * @return {string}
 */


proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.prototype.getAccountAddress = function () {
  return (
    /** @type {string} */
    jspb.Message.getFieldWithDefault(this, 3, "")
  );
};
/**
 * @param {string} value
 * @return {!proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount} returns this
 */


proto.ibc.applications.interchain_accounts.genesis.v1.RegisteredInterchainAccount.prototype.setAccountAddress = function (value) {
  return jspb.Message.setProto3StringField(this, 3, value);
};

goog.object.extend(exports, proto.ibc.applications.interchain_accounts.genesis.v1);