UNPKG

@provenanceio/wallet-utils

Version:

Typescript Utilities for Provenance Blockchain Wallet

4,201 lines 130 kB
// source: ibc/lightclients/solomachine/v2/solomachine.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 ibc_core_connection_v1_connection_pb = require('../../../../ibc/core/connection/v1/connection_pb.js');

goog.object.extend(proto, ibc_core_connection_v1_connection_pb);

var ibc_core_channel_v1_channel_pb = require('../../../../ibc/core/channel/v1/channel_pb.js');

goog.object.extend(proto, ibc_core_channel_v1_channel_pb);

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

goog.object.extend(proto, gogoproto_gogo_pb);

var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');

goog.object.extend(proto, google_protobuf_any_pb);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.ChannelStateData', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.ClientState', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.ClientStateData', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.ConnectionStateData', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.ConsensusState', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.ConsensusStateData', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.DataType', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.Header', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.HeaderData', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.Misbehaviour', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.PacketCommitmentData', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.SignBytes', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.SignatureAndData', null, global);
goog.exportSymbol('proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData', 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.lightclients.solomachine.v2.ClientState = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.ClientState, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.ClientState.displayName = 'proto.ibc.lightclients.solomachine.v2.ClientState';
}
/**
 * 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.lightclients.solomachine.v2.ConsensusState = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.ConsensusState, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.ConsensusState.displayName = 'proto.ibc.lightclients.solomachine.v2.ConsensusState';
}
/**
 * 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.lightclients.solomachine.v2.Header = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.Header, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.Header.displayName = 'proto.ibc.lightclients.solomachine.v2.Header';
}
/**
 * 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.lightclients.solomachine.v2.Misbehaviour = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.Misbehaviour, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.Misbehaviour.displayName = 'proto.ibc.lightclients.solomachine.v2.Misbehaviour';
}
/**
 * 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.lightclients.solomachine.v2.SignatureAndData = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.SignatureAndData, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.SignatureAndData.displayName = 'proto.ibc.lightclients.solomachine.v2.SignatureAndData';
}
/**
 * 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.lightclients.solomachine.v2.TimestampedSignatureData = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.displayName = 'proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData';
}
/**
 * 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.lightclients.solomachine.v2.SignBytes = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.SignBytes, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.SignBytes.displayName = 'proto.ibc.lightclients.solomachine.v2.SignBytes';
}
/**
 * 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.lightclients.solomachine.v2.HeaderData = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.HeaderData, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.HeaderData.displayName = 'proto.ibc.lightclients.solomachine.v2.HeaderData';
}
/**
 * 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.lightclients.solomachine.v2.ClientStateData = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.ClientStateData, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.ClientStateData.displayName = 'proto.ibc.lightclients.solomachine.v2.ClientStateData';
}
/**
 * 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.lightclients.solomachine.v2.ConsensusStateData = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.ConsensusStateData, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.ConsensusStateData.displayName = 'proto.ibc.lightclients.solomachine.v2.ConsensusStateData';
}
/**
 * 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.lightclients.solomachine.v2.ConnectionStateData = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.ConnectionStateData, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.ConnectionStateData.displayName = 'proto.ibc.lightclients.solomachine.v2.ConnectionStateData';
}
/**
 * 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.lightclients.solomachine.v2.ChannelStateData = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.ChannelStateData, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.ChannelStateData.displayName = 'proto.ibc.lightclients.solomachine.v2.ChannelStateData';
}
/**
 * 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.lightclients.solomachine.v2.PacketCommitmentData = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.PacketCommitmentData, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.displayName = 'proto.ibc.lightclients.solomachine.v2.PacketCommitmentData';
}
/**
 * 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.lightclients.solomachine.v2.PacketAcknowledgementData = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.displayName = 'proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData';
}
/**
 * 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.lightclients.solomachine.v2.PacketReceiptAbsenceData = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.displayName = 'proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData';
}
/**
 * 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.lightclients.solomachine.v2.NextSequenceRecvData = function (opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

goog.inherits(proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData, jspb.Message);

if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.displayName = 'proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData';
}

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


  proto.ibc.lightclients.solomachine.v2.ClientState.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      sequence: jspb.Message.getFieldWithDefault(msg, 1, 0),
      isFrozen: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
      consensusState: (f = msg.getConsensusState()) && proto.ibc.lightclients.solomachine.v2.ConsensusState.toObject(includeInstance, f),
      allowUpdateAfterProposal: 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.lightclients.solomachine.v2.ClientState}
 */


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


proto.ibc.lightclients.solomachine.v2.ClientState.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.setSequence(value);
        break;

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

      case 3:
        var value = new proto.ibc.lightclients.solomachine.v2.ConsensusState();
        reader.readMessage(value, proto.ibc.lightclients.solomachine.v2.ConsensusState.deserializeBinaryFromReader);
        msg.setConsensusState(value);
        break;

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

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

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


proto.ibc.lightclients.solomachine.v2.ClientState.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.ClientState.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.lightclients.solomachine.v2.ClientState} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.ClientState.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getSequence();

  if (f !== 0) {
    writer.writeUint64(1, f);
  }

  f = message.getIsFrozen();

  if (f) {
    writer.writeBool(2, f);
  }

  f = message.getConsensusState();

  if (f != null) {
    writer.writeMessage(3, f, proto.ibc.lightclients.solomachine.v2.ConsensusState.serializeBinaryToWriter);
  }

  f = message.getAllowUpdateAfterProposal();

  if (f) {
    writer.writeBool(4, f);
  }
};
/**
 * optional uint64 sequence = 1;
 * @return {number}
 */


proto.ibc.lightclients.solomachine.v2.ClientState.prototype.getSequence = function () {
  return (
    /** @type {number} */
    jspb.Message.getFieldWithDefault(this, 1, 0)
  );
};
/**
 * @param {number} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ClientState} returns this
 */


proto.ibc.lightclients.solomachine.v2.ClientState.prototype.setSequence = function (value) {
  return jspb.Message.setProto3IntField(this, 1, value);
};
/**
 * optional bool is_frozen = 2;
 * @return {boolean}
 */


proto.ibc.lightclients.solomachine.v2.ClientState.prototype.getIsFrozen = function () {
  return (
    /** @type {boolean} */
    jspb.Message.getBooleanFieldWithDefault(this, 2, false)
  );
};
/**
 * @param {boolean} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ClientState} returns this
 */


proto.ibc.lightclients.solomachine.v2.ClientState.prototype.setIsFrozen = function (value) {
  return jspb.Message.setProto3BooleanField(this, 2, value);
};
/**
 * optional ConsensusState consensus_state = 3;
 * @return {?proto.ibc.lightclients.solomachine.v2.ConsensusState}
 */


proto.ibc.lightclients.solomachine.v2.ClientState.prototype.getConsensusState = function () {
  return (
    /** @type{?proto.ibc.lightclients.solomachine.v2.ConsensusState} */
    jspb.Message.getWrapperField(this, proto.ibc.lightclients.solomachine.v2.ConsensusState, 3)
  );
};
/**
 * @param {?proto.ibc.lightclients.solomachine.v2.ConsensusState|undefined} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ClientState} returns this
*/


proto.ibc.lightclients.solomachine.v2.ClientState.prototype.setConsensusState = function (value) {
  return jspb.Message.setWrapperField(this, 3, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.lightclients.solomachine.v2.ClientState} returns this
 */


proto.ibc.lightclients.solomachine.v2.ClientState.prototype.clearConsensusState = function () {
  return this.setConsensusState(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.lightclients.solomachine.v2.ClientState.prototype.hasConsensusState = function () {
  return jspb.Message.getField(this, 3) != null;
};
/**
 * optional bool allow_update_after_proposal = 4;
 * @return {boolean}
 */


proto.ibc.lightclients.solomachine.v2.ClientState.prototype.getAllowUpdateAfterProposal = function () {
  return (
    /** @type {boolean} */
    jspb.Message.getBooleanFieldWithDefault(this, 4, false)
  );
};
/**
 * @param {boolean} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ClientState} returns this
 */


proto.ibc.lightclients.solomachine.v2.ClientState.prototype.setAllowUpdateAfterProposal = 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.lightclients.solomachine.v2.ConsensusState.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.ConsensusState.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.lightclients.solomachine.v2.ConsensusState} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.ConsensusState.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      publicKey: (f = msg.getPublicKey()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
      diversifier: jspb.Message.getFieldWithDefault(msg, 2, ""),
      timestamp: jspb.Message.getFieldWithDefault(msg, 3, 0)
    };

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

    return obj;
  };
}
/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.ibc.lightclients.solomachine.v2.ConsensusState}
 */


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


proto.ibc.lightclients.solomachine.v2.ConsensusState.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value = new google_protobuf_any_pb.Any();
        reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
        msg.setPublicKey(value);
        break;

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

      case 3:
        var value =
        /** @type {number} */
        reader.readUint64();
        msg.setTimestamp(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.ConsensusState.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.ConsensusState.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.lightclients.solomachine.v2.ConsensusState} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.ConsensusState.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getPublicKey();

  if (f != null) {
    writer.writeMessage(1, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
  }

  f = message.getDiversifier();

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

  f = message.getTimestamp();

  if (f !== 0) {
    writer.writeUint64(3, f);
  }
};
/**
 * optional google.protobuf.Any public_key = 1;
 * @return {?proto.google.protobuf.Any}
 */


proto.ibc.lightclients.solomachine.v2.ConsensusState.prototype.getPublicKey = function () {
  return (
    /** @type{?proto.google.protobuf.Any} */
    jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1)
  );
};
/**
 * @param {?proto.google.protobuf.Any|undefined} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ConsensusState} returns this
*/


proto.ibc.lightclients.solomachine.v2.ConsensusState.prototype.setPublicKey = function (value) {
  return jspb.Message.setWrapperField(this, 1, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.lightclients.solomachine.v2.ConsensusState} returns this
 */


proto.ibc.lightclients.solomachine.v2.ConsensusState.prototype.clearPublicKey = function () {
  return this.setPublicKey(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.lightclients.solomachine.v2.ConsensusState.prototype.hasPublicKey = function () {
  return jspb.Message.getField(this, 1) != null;
};
/**
 * optional string diversifier = 2;
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.ConsensusState.prototype.getDiversifier = function () {
  return (
    /** @type {string} */
    jspb.Message.getFieldWithDefault(this, 2, "")
  );
};
/**
 * @param {string} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ConsensusState} returns this
 */


proto.ibc.lightclients.solomachine.v2.ConsensusState.prototype.setDiversifier = function (value) {
  return jspb.Message.setProto3StringField(this, 2, value);
};
/**
 * optional uint64 timestamp = 3;
 * @return {number}
 */


proto.ibc.lightclients.solomachine.v2.ConsensusState.prototype.getTimestamp = function () {
  return (
    /** @type {number} */
    jspb.Message.getFieldWithDefault(this, 3, 0)
  );
};
/**
 * @param {number} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ConsensusState} returns this
 */


proto.ibc.lightclients.solomachine.v2.ConsensusState.prototype.setTimestamp = function (value) {
  return jspb.Message.setProto3IntField(this, 3, value);
};

if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * Optional fields that are not set will be set to undefined.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   *     JSPB instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.ibc.lightclients.solomachine.v2.Header.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.Header.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.lightclients.solomachine.v2.Header} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.Header.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      sequence: jspb.Message.getFieldWithDefault(msg, 1, 0),
      timestamp: jspb.Message.getFieldWithDefault(msg, 2, 0),
      signature: msg.getSignature_asB64(),
      newPublicKey: (f = msg.getNewPublicKey()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
      newDiversifier: jspb.Message.getFieldWithDefault(msg, 5, "")
    };

    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.lightclients.solomachine.v2.Header}
 */


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


proto.ibc.lightclients.solomachine.v2.Header.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.setSequence(value);
        break;

      case 2:
        var value =
        /** @type {number} */
        reader.readUint64();
        msg.setTimestamp(value);
        break;

      case 3:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setSignature(value);
        break;

      case 4:
        var value = new google_protobuf_any_pb.Any();
        reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
        msg.setNewPublicKey(value);
        break;

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

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

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


proto.ibc.lightclients.solomachine.v2.Header.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.Header.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.lightclients.solomachine.v2.Header} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.Header.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getSequence();

  if (f !== 0) {
    writer.writeUint64(1, f);
  }

  f = message.getTimestamp();

  if (f !== 0) {
    writer.writeUint64(2, f);
  }

  f = message.getSignature_asU8();

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

  f = message.getNewPublicKey();

  if (f != null) {
    writer.writeMessage(4, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
  }

  f = message.getNewDiversifier();

  if (f.length > 0) {
    writer.writeString(5, f);
  }
};
/**
 * optional uint64 sequence = 1;
 * @return {number}
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.getSequence = function () {
  return (
    /** @type {number} */
    jspb.Message.getFieldWithDefault(this, 1, 0)
  );
};
/**
 * @param {number} value
 * @return {!proto.ibc.lightclients.solomachine.v2.Header} returns this
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.setSequence = function (value) {
  return jspb.Message.setProto3IntField(this, 1, value);
};
/**
 * optional uint64 timestamp = 2;
 * @return {number}
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.getTimestamp = function () {
  return (
    /** @type {number} */
    jspb.Message.getFieldWithDefault(this, 2, 0)
  );
};
/**
 * @param {number} value
 * @return {!proto.ibc.lightclients.solomachine.v2.Header} returns this
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.setTimestamp = function (value) {
  return jspb.Message.setProto3IntField(this, 2, value);
};
/**
 * optional bytes signature = 3;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.getSignature = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 3, "")
  );
};
/**
 * optional bytes signature = 3;
 * This is a type-conversion wrapper around `getSignature()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.getSignature_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getSignature())
  );
};
/**
 * optional bytes signature = 3;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getSignature()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.getSignature_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getSignature())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.Header} returns this
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.setSignature = function (value) {
  return jspb.Message.setProto3BytesField(this, 3, value);
};
/**
 * optional google.protobuf.Any new_public_key = 4;
 * @return {?proto.google.protobuf.Any}
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.getNewPublicKey = function () {
  return (
    /** @type{?proto.google.protobuf.Any} */
    jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 4)
  );
};
/**
 * @param {?proto.google.protobuf.Any|undefined} value
 * @return {!proto.ibc.lightclients.solomachine.v2.Header} returns this
*/


proto.ibc.lightclients.solomachine.v2.Header.prototype.setNewPublicKey = function (value) {
  return jspb.Message.setWrapperField(this, 4, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.lightclients.solomachine.v2.Header} returns this
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.clearNewPublicKey = function () {
  return this.setNewPublicKey(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.hasNewPublicKey = function () {
  return jspb.Message.getField(this, 4) != null;
};
/**
 * optional string new_diversifier = 5;
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.getNewDiversifier = function () {
  return (
    /** @type {string} */
    jspb.Message.getFieldWithDefault(this, 5, "")
  );
};
/**
 * @param {string} value
 * @return {!proto.ibc.lightclients.solomachine.v2.Header} returns this
 */


proto.ibc.lightclients.solomachine.v2.Header.prototype.setNewDiversifier = function (value) {
  return jspb.Message.setProto3StringField(this, 5, 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.lightclients.solomachine.v2.Misbehaviour.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.Misbehaviour.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.lightclients.solomachine.v2.Misbehaviour} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.Misbehaviour.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      clientId: jspb.Message.getFieldWithDefault(msg, 1, ""),
      sequence: jspb.Message.getFieldWithDefault(msg, 2, 0),
      signatureOne: (f = msg.getSignatureOne()) && proto.ibc.lightclients.solomachine.v2.SignatureAndData.toObject(includeInstance, f),
      signatureTwo: (f = msg.getSignatureTwo()) && proto.ibc.lightclients.solomachine.v2.SignatureAndData.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.lightclients.solomachine.v2.Misbehaviour}
 */


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


proto.ibc.lightclients.solomachine.v2.Misbehaviour.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.setClientId(value);
        break;

      case 2:
        var value =
        /** @type {number} */
        reader.readUint64();
        msg.setSequence(value);
        break;

      case 3:
        var value = new proto.ibc.lightclients.solomachine.v2.SignatureAndData();
        reader.readMessage(value, proto.ibc.lightclients.solomachine.v2.SignatureAndData.deserializeBinaryFromReader);
        msg.setSignatureOne(value);
        break;

      case 4:
        var value = new proto.ibc.lightclients.solomachine.v2.SignatureAndData();
        reader.readMessage(value, proto.ibc.lightclients.solomachine.v2.SignatureAndData.deserializeBinaryFromReader);
        msg.setSignatureTwo(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.Misbehaviour.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.lightclients.solomachine.v2.Misbehaviour} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.Misbehaviour.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getClientId();

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

  f = message.getSequence();

  if (f !== 0) {
    writer.writeUint64(2, f);
  }

  f = message.getSignatureOne();

  if (f != null) {
    writer.writeMessage(3, f, proto.ibc.lightclients.solomachine.v2.SignatureAndData.serializeBinaryToWriter);
  }

  f = message.getSignatureTwo();

  if (f != null) {
    writer.writeMessage(4, f, proto.ibc.lightclients.solomachine.v2.SignatureAndData.serializeBinaryToWriter);
  }
};
/**
 * optional string client_id = 1;
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.getClientId = function () {
  return (
    /** @type {string} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * @param {string} value
 * @return {!proto.ibc.lightclients.solomachine.v2.Misbehaviour} returns this
 */


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.setClientId = function (value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};
/**
 * optional uint64 sequence = 2;
 * @return {number}
 */


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.getSequence = function () {
  return (
    /** @type {number} */
    jspb.Message.getFieldWithDefault(this, 2, 0)
  );
};
/**
 * @param {number} value
 * @return {!proto.ibc.lightclients.solomachine.v2.Misbehaviour} returns this
 */


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.setSequence = function (value) {
  return jspb.Message.setProto3IntField(this, 2, value);
};
/**
 * optional SignatureAndData signature_one = 3;
 * @return {?proto.ibc.lightclients.solomachine.v2.SignatureAndData}
 */


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.getSignatureOne = function () {
  return (
    /** @type{?proto.ibc.lightclients.solomachine.v2.SignatureAndData} */
    jspb.Message.getWrapperField(this, proto.ibc.lightclients.solomachine.v2.SignatureAndData, 3)
  );
};
/**
 * @param {?proto.ibc.lightclients.solomachine.v2.SignatureAndData|undefined} value
 * @return {!proto.ibc.lightclients.solomachine.v2.Misbehaviour} returns this
*/


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.setSignatureOne = function (value) {
  return jspb.Message.setWrapperField(this, 3, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.lightclients.solomachine.v2.Misbehaviour} returns this
 */


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.clearSignatureOne = function () {
  return this.setSignatureOne(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.hasSignatureOne = function () {
  return jspb.Message.getField(this, 3) != null;
};
/**
 * optional SignatureAndData signature_two = 4;
 * @return {?proto.ibc.lightclients.solomachine.v2.SignatureAndData}
 */


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.getSignatureTwo = function () {
  return (
    /** @type{?proto.ibc.lightclients.solomachine.v2.SignatureAndData} */
    jspb.Message.getWrapperField(this, proto.ibc.lightclients.solomachine.v2.SignatureAndData, 4)
  );
};
/**
 * @param {?proto.ibc.lightclients.solomachine.v2.SignatureAndData|undefined} value
 * @return {!proto.ibc.lightclients.solomachine.v2.Misbehaviour} returns this
*/


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.setSignatureTwo = function (value) {
  return jspb.Message.setWrapperField(this, 4, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.lightclients.solomachine.v2.Misbehaviour} returns this
 */


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.clearSignatureTwo = function () {
  return this.setSignatureTwo(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.lightclients.solomachine.v2.Misbehaviour.prototype.hasSignatureTwo = 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.lightclients.solomachine.v2.SignatureAndData.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.SignatureAndData.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.lightclients.solomachine.v2.SignatureAndData} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.SignatureAndData.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      signature: msg.getSignature_asB64(),
      dataType: jspb.Message.getFieldWithDefault(msg, 2, 0),
      data: msg.getData_asB64(),
      timestamp: jspb.Message.getFieldWithDefault(msg, 4, 0)
    };

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

    return obj;
  };
}
/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.ibc.lightclients.solomachine.v2.SignatureAndData}
 */


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


proto.ibc.lightclients.solomachine.v2.SignatureAndData.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setSignature(value);
        break;

      case 2:
        var value =
        /** @type {!proto.ibc.lightclients.solomachine.v2.DataType} */
        reader.readEnum();
        msg.setDataType(value);
        break;

      case 3:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setData(value);
        break;

      case 4:
        var value =
        /** @type {number} */
        reader.readUint64();
        msg.setTimestamp(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.SignatureAndData.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.lightclients.solomachine.v2.SignatureAndData} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getSignature_asU8();

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

  f = message.getDataType();

  if (f !== 0.0) {
    writer.writeEnum(2, f);
  }

  f = message.getData_asU8();

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

  f = message.getTimestamp();

  if (f !== 0) {
    writer.writeUint64(4, f);
  }
};
/**
 * optional bytes signature = 1;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.getSignature = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * optional bytes signature = 1;
 * This is a type-conversion wrapper around `getSignature()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.getSignature_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getSignature())
  );
};
/**
 * optional bytes signature = 1;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getSignature()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.getSignature_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getSignature())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.SignatureAndData} returns this
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.setSignature = function (value) {
  return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
 * optional DataType data_type = 2;
 * @return {!proto.ibc.lightclients.solomachine.v2.DataType}
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.getDataType = function () {
  return (
    /** @type {!proto.ibc.lightclients.solomachine.v2.DataType} */
    jspb.Message.getFieldWithDefault(this, 2, 0)
  );
};
/**
 * @param {!proto.ibc.lightclients.solomachine.v2.DataType} value
 * @return {!proto.ibc.lightclients.solomachine.v2.SignatureAndData} returns this
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.setDataType = function (value) {
  return jspb.Message.setProto3EnumField(this, 2, value);
};
/**
 * optional bytes data = 3;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.getData = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 3, "")
  );
};
/**
 * optional bytes data = 3;
 * This is a type-conversion wrapper around `getData()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.getData_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getData())
  );
};
/**
 * optional bytes data = 3;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getData()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.getData_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getData())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.SignatureAndData} returns this
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.setData = function (value) {
  return jspb.Message.setProto3BytesField(this, 3, value);
};
/**
 * optional uint64 timestamp = 4;
 * @return {number}
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.getTimestamp = function () {
  return (
    /** @type {number} */
    jspb.Message.getFieldWithDefault(this, 4, 0)
  );
};
/**
 * @param {number} value
 * @return {!proto.ibc.lightclients.solomachine.v2.SignatureAndData} returns this
 */


proto.ibc.lightclients.solomachine.v2.SignatureAndData.prototype.setTimestamp = function (value) {
  return jspb.Message.setProto3IntField(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.lightclients.solomachine.v2.TimestampedSignatureData.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.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.lightclients.solomachine.v2.TimestampedSignatureData} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      signatureData: msg.getSignatureData_asB64(),
      timestamp: jspb.Message.getFieldWithDefault(msg, 2, 0)
    };

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

    return obj;
  };
}
/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData}
 */


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


proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setSignatureData(value);
        break;

      case 2:
        var value =
        /** @type {number} */
        reader.readUint64();
        msg.setTimestamp(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.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.lightclients.solomachine.v2.TimestampedSignatureData} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getSignatureData_asU8();

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

  f = message.getTimestamp();

  if (f !== 0) {
    writer.writeUint64(2, f);
  }
};
/**
 * optional bytes signature_data = 1;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.prototype.getSignatureData = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * optional bytes signature_data = 1;
 * This is a type-conversion wrapper around `getSignatureData()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.prototype.getSignatureData_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getSignatureData())
  );
};
/**
 * optional bytes signature_data = 1;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getSignatureData()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.prototype.getSignatureData_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getSignatureData())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData} returns this
 */


proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.prototype.setSignatureData = function (value) {
  return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
 * optional uint64 timestamp = 2;
 * @return {number}
 */


proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.prototype.getTimestamp = function () {
  return (
    /** @type {number} */
    jspb.Message.getFieldWithDefault(this, 2, 0)
  );
};
/**
 * @param {number} value
 * @return {!proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData} returns this
 */


proto.ibc.lightclients.solomachine.v2.TimestampedSignatureData.prototype.setTimestamp = function (value) {
  return jspb.Message.setProto3IntField(this, 2, 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.lightclients.solomachine.v2.SignBytes.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.SignBytes.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.lightclients.solomachine.v2.SignBytes} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.SignBytes.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      sequence: jspb.Message.getFieldWithDefault(msg, 1, 0),
      timestamp: jspb.Message.getFieldWithDefault(msg, 2, 0),
      diversifier: jspb.Message.getFieldWithDefault(msg, 3, ""),
      dataType: jspb.Message.getFieldWithDefault(msg, 4, 0),
      data: msg.getData_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.ibc.lightclients.solomachine.v2.SignBytes}
 */


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


proto.ibc.lightclients.solomachine.v2.SignBytes.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.setSequence(value);
        break;

      case 2:
        var value =
        /** @type {number} */
        reader.readUint64();
        msg.setTimestamp(value);
        break;

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

      case 4:
        var value =
        /** @type {!proto.ibc.lightclients.solomachine.v2.DataType} */
        reader.readEnum();
        msg.setDataType(value);
        break;

      case 5:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setData(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.SignBytes.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.lightclients.solomachine.v2.SignBytes} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getSequence();

  if (f !== 0) {
    writer.writeUint64(1, f);
  }

  f = message.getTimestamp();

  if (f !== 0) {
    writer.writeUint64(2, f);
  }

  f = message.getDiversifier();

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

  f = message.getDataType();

  if (f !== 0.0) {
    writer.writeEnum(4, f);
  }

  f = message.getData_asU8();

  if (f.length > 0) {
    writer.writeBytes(5, f);
  }
};
/**
 * optional uint64 sequence = 1;
 * @return {number}
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.getSequence = function () {
  return (
    /** @type {number} */
    jspb.Message.getFieldWithDefault(this, 1, 0)
  );
};
/**
 * @param {number} value
 * @return {!proto.ibc.lightclients.solomachine.v2.SignBytes} returns this
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.setSequence = function (value) {
  return jspb.Message.setProto3IntField(this, 1, value);
};
/**
 * optional uint64 timestamp = 2;
 * @return {number}
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.getTimestamp = function () {
  return (
    /** @type {number} */
    jspb.Message.getFieldWithDefault(this, 2, 0)
  );
};
/**
 * @param {number} value
 * @return {!proto.ibc.lightclients.solomachine.v2.SignBytes} returns this
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.setTimestamp = function (value) {
  return jspb.Message.setProto3IntField(this, 2, value);
};
/**
 * optional string diversifier = 3;
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.getDiversifier = function () {
  return (
    /** @type {string} */
    jspb.Message.getFieldWithDefault(this, 3, "")
  );
};
/**
 * @param {string} value
 * @return {!proto.ibc.lightclients.solomachine.v2.SignBytes} returns this
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.setDiversifier = function (value) {
  return jspb.Message.setProto3StringField(this, 3, value);
};
/**
 * optional DataType data_type = 4;
 * @return {!proto.ibc.lightclients.solomachine.v2.DataType}
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.getDataType = function () {
  return (
    /** @type {!proto.ibc.lightclients.solomachine.v2.DataType} */
    jspb.Message.getFieldWithDefault(this, 4, 0)
  );
};
/**
 * @param {!proto.ibc.lightclients.solomachine.v2.DataType} value
 * @return {!proto.ibc.lightclients.solomachine.v2.SignBytes} returns this
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.setDataType = function (value) {
  return jspb.Message.setProto3EnumField(this, 4, value);
};
/**
 * optional bytes data = 5;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.getData = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 5, "")
  );
};
/**
 * optional bytes data = 5;
 * This is a type-conversion wrapper around `getData()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.getData_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getData())
  );
};
/**
 * optional bytes data = 5;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getData()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.getData_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getData())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.SignBytes} returns this
 */


proto.ibc.lightclients.solomachine.v2.SignBytes.prototype.setData = function (value) {
  return jspb.Message.setProto3BytesField(this, 5, 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.lightclients.solomachine.v2.HeaderData.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.HeaderData.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.lightclients.solomachine.v2.HeaderData} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.HeaderData.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      newPubKey: (f = msg.getNewPubKey()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
      newDiversifier: jspb.Message.getFieldWithDefault(msg, 2, "")
    };

    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.lightclients.solomachine.v2.HeaderData}
 */


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


proto.ibc.lightclients.solomachine.v2.HeaderData.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value = new google_protobuf_any_pb.Any();
        reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
        msg.setNewPubKey(value);
        break;

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

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

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


proto.ibc.lightclients.solomachine.v2.HeaderData.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.HeaderData.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.lightclients.solomachine.v2.HeaderData} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.HeaderData.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getNewPubKey();

  if (f != null) {
    writer.writeMessage(1, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
  }

  f = message.getNewDiversifier();

  if (f.length > 0) {
    writer.writeString(2, f);
  }
};
/**
 * optional google.protobuf.Any new_pub_key = 1;
 * @return {?proto.google.protobuf.Any}
 */


proto.ibc.lightclients.solomachine.v2.HeaderData.prototype.getNewPubKey = function () {
  return (
    /** @type{?proto.google.protobuf.Any} */
    jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1)
  );
};
/**
 * @param {?proto.google.protobuf.Any|undefined} value
 * @return {!proto.ibc.lightclients.solomachine.v2.HeaderData} returns this
*/


proto.ibc.lightclients.solomachine.v2.HeaderData.prototype.setNewPubKey = function (value) {
  return jspb.Message.setWrapperField(this, 1, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.lightclients.solomachine.v2.HeaderData} returns this
 */


proto.ibc.lightclients.solomachine.v2.HeaderData.prototype.clearNewPubKey = function () {
  return this.setNewPubKey(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.lightclients.solomachine.v2.HeaderData.prototype.hasNewPubKey = function () {
  return jspb.Message.getField(this, 1) != null;
};
/**
 * optional string new_diversifier = 2;
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.HeaderData.prototype.getNewDiversifier = function () {
  return (
    /** @type {string} */
    jspb.Message.getFieldWithDefault(this, 2, "")
  );
};
/**
 * @param {string} value
 * @return {!proto.ibc.lightclients.solomachine.v2.HeaderData} returns this
 */


proto.ibc.lightclients.solomachine.v2.HeaderData.prototype.setNewDiversifier = function (value) {
  return jspb.Message.setProto3StringField(this, 2, 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.lightclients.solomachine.v2.ClientStateData.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.ClientStateData.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.lightclients.solomachine.v2.ClientStateData} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.ClientStateData.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      path: msg.getPath_asB64(),
      clientState: (f = msg.getClientState()) && google_protobuf_any_pb.Any.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.lightclients.solomachine.v2.ClientStateData}
 */


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


proto.ibc.lightclients.solomachine.v2.ClientStateData.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setPath(value);
        break;

      case 2:
        var value = new google_protobuf_any_pb.Any();
        reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
        msg.setClientState(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.ClientStateData.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.ClientStateData.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.lightclients.solomachine.v2.ClientStateData} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.ClientStateData.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getPath_asU8();

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

  f = message.getClientState();

  if (f != null) {
    writer.writeMessage(2, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
  }
};
/**
 * optional bytes path = 1;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.ClientStateData.prototype.getPath = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * optional bytes path = 1;
 * This is a type-conversion wrapper around `getPath()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.ClientStateData.prototype.getPath_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getPath())
  );
};
/**
 * optional bytes path = 1;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getPath()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.ClientStateData.prototype.getPath_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getPath())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ClientStateData} returns this
 */


proto.ibc.lightclients.solomachine.v2.ClientStateData.prototype.setPath = function (value) {
  return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
 * optional google.protobuf.Any client_state = 2;
 * @return {?proto.google.protobuf.Any}
 */


proto.ibc.lightclients.solomachine.v2.ClientStateData.prototype.getClientState = function () {
  return (
    /** @type{?proto.google.protobuf.Any} */
    jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2)
  );
};
/**
 * @param {?proto.google.protobuf.Any|undefined} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ClientStateData} returns this
*/


proto.ibc.lightclients.solomachine.v2.ClientStateData.prototype.setClientState = function (value) {
  return jspb.Message.setWrapperField(this, 2, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.lightclients.solomachine.v2.ClientStateData} returns this
 */


proto.ibc.lightclients.solomachine.v2.ClientStateData.prototype.clearClientState = function () {
  return this.setClientState(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.lightclients.solomachine.v2.ClientStateData.prototype.hasClientState = function () {
  return jspb.Message.getField(this, 2) != 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.lightclients.solomachine.v2.ConsensusStateData.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.ConsensusStateData.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.lightclients.solomachine.v2.ConsensusStateData} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.ConsensusStateData.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      path: msg.getPath_asB64(),
      consensusState: (f = msg.getConsensusState()) && google_protobuf_any_pb.Any.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.lightclients.solomachine.v2.ConsensusStateData}
 */


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


proto.ibc.lightclients.solomachine.v2.ConsensusStateData.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setPath(value);
        break;

      case 2:
        var value = new google_protobuf_any_pb.Any();
        reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
        msg.setConsensusState(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.ConsensusStateData.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.ConsensusStateData.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.lightclients.solomachine.v2.ConsensusStateData} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.ConsensusStateData.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getPath_asU8();

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

  f = message.getConsensusState();

  if (f != null) {
    writer.writeMessage(2, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
  }
};
/**
 * optional bytes path = 1;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.ConsensusStateData.prototype.getPath = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * optional bytes path = 1;
 * This is a type-conversion wrapper around `getPath()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.ConsensusStateData.prototype.getPath_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getPath())
  );
};
/**
 * optional bytes path = 1;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getPath()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.ConsensusStateData.prototype.getPath_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getPath())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ConsensusStateData} returns this
 */


proto.ibc.lightclients.solomachine.v2.ConsensusStateData.prototype.setPath = function (value) {
  return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
 * optional google.protobuf.Any consensus_state = 2;
 * @return {?proto.google.protobuf.Any}
 */


proto.ibc.lightclients.solomachine.v2.ConsensusStateData.prototype.getConsensusState = function () {
  return (
    /** @type{?proto.google.protobuf.Any} */
    jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2)
  );
};
/**
 * @param {?proto.google.protobuf.Any|undefined} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ConsensusStateData} returns this
*/


proto.ibc.lightclients.solomachine.v2.ConsensusStateData.prototype.setConsensusState = function (value) {
  return jspb.Message.setWrapperField(this, 2, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.lightclients.solomachine.v2.ConsensusStateData} returns this
 */


proto.ibc.lightclients.solomachine.v2.ConsensusStateData.prototype.clearConsensusState = function () {
  return this.setConsensusState(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.lightclients.solomachine.v2.ConsensusStateData.prototype.hasConsensusState = function () {
  return jspb.Message.getField(this, 2) != 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.lightclients.solomachine.v2.ConnectionStateData.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.ConnectionStateData.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.lightclients.solomachine.v2.ConnectionStateData} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.ConnectionStateData.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      path: msg.getPath_asB64(),
      connection: (f = msg.getConnection()) && ibc_core_connection_v1_connection_pb.ConnectionEnd.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.lightclients.solomachine.v2.ConnectionStateData}
 */


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


proto.ibc.lightclients.solomachine.v2.ConnectionStateData.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setPath(value);
        break;

      case 2:
        var value = new ibc_core_connection_v1_connection_pb.ConnectionEnd();
        reader.readMessage(value, ibc_core_connection_v1_connection_pb.ConnectionEnd.deserializeBinaryFromReader);
        msg.setConnection(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.ConnectionStateData.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.ConnectionStateData.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.lightclients.solomachine.v2.ConnectionStateData} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.ConnectionStateData.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getPath_asU8();

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

  f = message.getConnection();

  if (f != null) {
    writer.writeMessage(2, f, ibc_core_connection_v1_connection_pb.ConnectionEnd.serializeBinaryToWriter);
  }
};
/**
 * optional bytes path = 1;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.ConnectionStateData.prototype.getPath = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * optional bytes path = 1;
 * This is a type-conversion wrapper around `getPath()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.ConnectionStateData.prototype.getPath_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getPath())
  );
};
/**
 * optional bytes path = 1;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getPath()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.ConnectionStateData.prototype.getPath_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getPath())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ConnectionStateData} returns this
 */


proto.ibc.lightclients.solomachine.v2.ConnectionStateData.prototype.setPath = function (value) {
  return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
 * optional ibc.core.connection.v1.ConnectionEnd connection = 2;
 * @return {?proto.ibc.core.connection.v1.ConnectionEnd}
 */


proto.ibc.lightclients.solomachine.v2.ConnectionStateData.prototype.getConnection = function () {
  return (
    /** @type{?proto.ibc.core.connection.v1.ConnectionEnd} */
    jspb.Message.getWrapperField(this, ibc_core_connection_v1_connection_pb.ConnectionEnd, 2)
  );
};
/**
 * @param {?proto.ibc.core.connection.v1.ConnectionEnd|undefined} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ConnectionStateData} returns this
*/


proto.ibc.lightclients.solomachine.v2.ConnectionStateData.prototype.setConnection = function (value) {
  return jspb.Message.setWrapperField(this, 2, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.lightclients.solomachine.v2.ConnectionStateData} returns this
 */


proto.ibc.lightclients.solomachine.v2.ConnectionStateData.prototype.clearConnection = function () {
  return this.setConnection(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.lightclients.solomachine.v2.ConnectionStateData.prototype.hasConnection = function () {
  return jspb.Message.getField(this, 2) != 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.lightclients.solomachine.v2.ChannelStateData.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.ChannelStateData.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.lightclients.solomachine.v2.ChannelStateData} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.ChannelStateData.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      path: msg.getPath_asB64(),
      channel: (f = msg.getChannel()) && ibc_core_channel_v1_channel_pb.Channel.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.lightclients.solomachine.v2.ChannelStateData}
 */


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


proto.ibc.lightclients.solomachine.v2.ChannelStateData.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setPath(value);
        break;

      case 2:
        var value = new ibc_core_channel_v1_channel_pb.Channel();
        reader.readMessage(value, ibc_core_channel_v1_channel_pb.Channel.deserializeBinaryFromReader);
        msg.setChannel(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.ChannelStateData.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.ChannelStateData.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.lightclients.solomachine.v2.ChannelStateData} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.ChannelStateData.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getPath_asU8();

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

  f = message.getChannel();

  if (f != null) {
    writer.writeMessage(2, f, ibc_core_channel_v1_channel_pb.Channel.serializeBinaryToWriter);
  }
};
/**
 * optional bytes path = 1;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.ChannelStateData.prototype.getPath = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * optional bytes path = 1;
 * This is a type-conversion wrapper around `getPath()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.ChannelStateData.prototype.getPath_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getPath())
  );
};
/**
 * optional bytes path = 1;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getPath()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.ChannelStateData.prototype.getPath_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getPath())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ChannelStateData} returns this
 */


proto.ibc.lightclients.solomachine.v2.ChannelStateData.prototype.setPath = function (value) {
  return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
 * optional ibc.core.channel.v1.Channel channel = 2;
 * @return {?proto.ibc.core.channel.v1.Channel}
 */


proto.ibc.lightclients.solomachine.v2.ChannelStateData.prototype.getChannel = function () {
  return (
    /** @type{?proto.ibc.core.channel.v1.Channel} */
    jspb.Message.getWrapperField(this, ibc_core_channel_v1_channel_pb.Channel, 2)
  );
};
/**
 * @param {?proto.ibc.core.channel.v1.Channel|undefined} value
 * @return {!proto.ibc.lightclients.solomachine.v2.ChannelStateData} returns this
*/


proto.ibc.lightclients.solomachine.v2.ChannelStateData.prototype.setChannel = function (value) {
  return jspb.Message.setWrapperField(this, 2, value);
};
/**
 * Clears the message field making it undefined.
 * @return {!proto.ibc.lightclients.solomachine.v2.ChannelStateData} returns this
 */


proto.ibc.lightclients.solomachine.v2.ChannelStateData.prototype.clearChannel = function () {
  return this.setChannel(undefined);
};
/**
 * Returns whether this field is set.
 * @return {boolean}
 */


proto.ibc.lightclients.solomachine.v2.ChannelStateData.prototype.hasChannel = function () {
  return jspb.Message.getField(this, 2) != 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.lightclients.solomachine.v2.PacketCommitmentData.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.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.lightclients.solomachine.v2.PacketCommitmentData} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      path: msg.getPath_asB64(),
      commitment: msg.getCommitment_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.ibc.lightclients.solomachine.v2.PacketCommitmentData}
 */


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


proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setPath(value);
        break;

      case 2:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setCommitment(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.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.lightclients.solomachine.v2.PacketCommitmentData} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getPath_asU8();

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

  f = message.getCommitment_asU8();

  if (f.length > 0) {
    writer.writeBytes(2, f);
  }
};
/**
 * optional bytes path = 1;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.prototype.getPath = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * optional bytes path = 1;
 * This is a type-conversion wrapper around `getPath()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.prototype.getPath_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getPath())
  );
};
/**
 * optional bytes path = 1;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getPath()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.prototype.getPath_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getPath())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.PacketCommitmentData} returns this
 */


proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.prototype.setPath = function (value) {
  return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
 * optional bytes commitment = 2;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.prototype.getCommitment = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 2, "")
  );
};
/**
 * optional bytes commitment = 2;
 * This is a type-conversion wrapper around `getCommitment()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.prototype.getCommitment_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getCommitment())
  );
};
/**
 * optional bytes commitment = 2;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getCommitment()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.prototype.getCommitment_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getCommitment())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.PacketCommitmentData} returns this
 */


proto.ibc.lightclients.solomachine.v2.PacketCommitmentData.prototype.setCommitment = function (value) {
  return jspb.Message.setProto3BytesField(this, 2, 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.lightclients.solomachine.v2.PacketAcknowledgementData.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.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.lightclients.solomachine.v2.PacketAcknowledgementData} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      path: msg.getPath_asB64(),
      acknowledgement: msg.getAcknowledgement_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.ibc.lightclients.solomachine.v2.PacketAcknowledgementData}
 */


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


proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setPath(value);
        break;

      case 2:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setAcknowledgement(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.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.lightclients.solomachine.v2.PacketAcknowledgementData} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getPath_asU8();

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

  f = message.getAcknowledgement_asU8();

  if (f.length > 0) {
    writer.writeBytes(2, f);
  }
};
/**
 * optional bytes path = 1;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.prototype.getPath = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * optional bytes path = 1;
 * This is a type-conversion wrapper around `getPath()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.prototype.getPath_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getPath())
  );
};
/**
 * optional bytes path = 1;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getPath()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.prototype.getPath_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getPath())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData} returns this
 */


proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.prototype.setPath = function (value) {
  return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
 * optional bytes acknowledgement = 2;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.prototype.getAcknowledgement = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 2, "")
  );
};
/**
 * optional bytes acknowledgement = 2;
 * This is a type-conversion wrapper around `getAcknowledgement()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.prototype.getAcknowledgement_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getAcknowledgement())
  );
};
/**
 * optional bytes acknowledgement = 2;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getAcknowledgement()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.prototype.getAcknowledgement_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getAcknowledgement())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData} returns this
 */


proto.ibc.lightclients.solomachine.v2.PacketAcknowledgementData.prototype.setAcknowledgement = function (value) {
  return jspb.Message.setProto3BytesField(this, 2, 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.lightclients.solomachine.v2.PacketReceiptAbsenceData.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.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.lightclients.solomachine.v2.PacketReceiptAbsenceData} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      path: msg.getPath_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.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData}
 */


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


proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setPath(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.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.lightclients.solomachine.v2.PacketReceiptAbsenceData} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getPath_asU8();

  if (f.length > 0) {
    writer.writeBytes(1, f);
  }
};
/**
 * optional bytes path = 1;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.prototype.getPath = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * optional bytes path = 1;
 * This is a type-conversion wrapper around `getPath()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.prototype.getPath_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getPath())
  );
};
/**
 * optional bytes path = 1;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getPath()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.prototype.getPath_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getPath())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData} returns this
 */


proto.ibc.lightclients.solomachine.v2.PacketReceiptAbsenceData.prototype.setPath = function (value) {
  return jspb.Message.setProto3BytesField(this, 1, 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.lightclients.solomachine.v2.NextSequenceRecvData.prototype.toObject = function (opt_includeInstance) {
    return proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.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.lightclients.solomachine.v2.NextSequenceRecvData} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */


  proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.toObject = function (includeInstance, msg) {
    var f,
        obj = {
      path: msg.getPath_asB64(),
      nextSeqRecv: jspb.Message.getFieldWithDefault(msg, 2, 0)
    };

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

    return obj;
  };
}
/**
 * Deserializes binary data (in protobuf wire format).
 * @param {jspb.ByteSource} bytes The bytes to deserialize.
 * @return {!proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData}
 */


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


proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.deserializeBinaryFromReader = function (msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }

    var field = reader.getFieldNumber();

    switch (field) {
      case 1:
        var value =
        /** @type {!Uint8Array} */
        reader.readBytes();
        msg.setPath(value);
        break;

      case 2:
        var value =
        /** @type {number} */
        reader.readUint64();
        msg.setNextSeqRecv(value);
        break;

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

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


proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.prototype.serializeBinary = function () {
  var writer = new jspb.BinaryWriter();
  proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.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.lightclients.solomachine.v2.NextSequenceRecvData} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */


proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.serializeBinaryToWriter = function (message, writer) {
  var f = undefined;
  f = message.getPath_asU8();

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

  f = message.getNextSeqRecv();

  if (f !== 0) {
    writer.writeUint64(2, f);
  }
};
/**
 * optional bytes path = 1;
 * @return {!(string|Uint8Array)}
 */


proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.prototype.getPath = function () {
  return (
    /** @type {!(string|Uint8Array)} */
    jspb.Message.getFieldWithDefault(this, 1, "")
  );
};
/**
 * optional bytes path = 1;
 * This is a type-conversion wrapper around `getPath()`
 * @return {string}
 */


proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.prototype.getPath_asB64 = function () {
  return (
    /** @type {string} */
    jspb.Message.bytesAsB64(this.getPath())
  );
};
/**
 * optional bytes path = 1;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getPath()`
 * @return {!Uint8Array}
 */


proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.prototype.getPath_asU8 = function () {
  return (
    /** @type {!Uint8Array} */
    jspb.Message.bytesAsU8(this.getPath())
  );
};
/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData} returns this
 */


proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.prototype.setPath = function (value) {
  return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
 * optional uint64 next_seq_recv = 2;
 * @return {number}
 */


proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.prototype.getNextSeqRecv = function () {
  return (
    /** @type {number} */
    jspb.Message.getFieldWithDefault(this, 2, 0)
  );
};
/**
 * @param {number} value
 * @return {!proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData} returns this
 */


proto.ibc.lightclients.solomachine.v2.NextSequenceRecvData.prototype.setNextSeqRecv = function (value) {
  return jspb.Message.setProto3IntField(this, 2, value);
};
/**
 * @enum {number}
 */


proto.ibc.lightclients.solomachine.v2.DataType = {
  DATA_TYPE_UNINITIALIZED_UNSPECIFIED: 0,
  DATA_TYPE_CLIENT_STATE: 1,
  DATA_TYPE_CONSENSUS_STATE: 2,
  DATA_TYPE_CONNECTION_STATE: 3,
  DATA_TYPE_CHANNEL_STATE: 4,
  DATA_TYPE_PACKET_COMMITMENT: 5,
  DATA_TYPE_PACKET_ACKNOWLEDGEMENT: 6,
  DATA_TYPE_PACKET_RECEIPT_ABSENCE: 7,
  DATA_TYPE_NEXT_SEQUENCE_RECV: 8,
  DATA_TYPE_HEADER: 9
};
goog.object.extend(exports, proto.ibc.lightclients.solomachine.v2);