text: /**
   * @fileoverview
   * @enhanceable
   * @suppress {messageConventions} JS Compiler reports an error if a variable or
   *     field starts with 'MSG_' and isn't a translatable message.
   * @public
   */
  // GENERATED CODE -- DO NOT EDIT!
  
  var jspb = require('google-protobuf');
  var goog = jspb;
  var global = Function('return this')();
  
  goog.exportSymbol('proto.anchor.Anchor', null, global);
  goog.exportSymbol('proto.anchor.Block', null, global);
  goog.exportSymbol('proto.anchor.CallSign', null, global);
  goog.exportSymbol('proto.anchor.Header', null, global);
  goog.exportSymbol('proto.anchor.IslandType', null, global);
  goog.exportSymbol('proto.anchor.Lock', 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.anchor.Anchor = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, proto.anchor.Anchor.repeatedFields_, null);
  };
  goog.inherits(proto.anchor.Anchor, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    proto.anchor.Anchor.displayName = 'proto.anchor.Anchor';
  }
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.anchor.Anchor.repeatedFields_ = [4];
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto suitable for use in Soy templates.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
   * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
   *     for transitional soy proto support: http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.anchor.Anchor.prototype.toObject = function(opt_includeInstance) {
    return proto.anchor.Anchor.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Whether to include the JSPB
   *     instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.anchor.Anchor} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.anchor.Anchor.toObject = function(includeInstance, msg) {
    var f, obj = {
      description: jspb.Message.getFieldWithDefault(msg, 1, ""),
      version: jspb.Message.getFieldWithDefault(msg, 2, ""),
      target: jspb.Message.getFieldWithDefault(msg, 3, 0),
      locksList: jspb.Message.toObjectList(msg.getLocksList(),
      proto.anchor.Lock.toObject, includeInstance)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.anchor.Anchor}
   */
  proto.anchor.Anchor.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.anchor.Anchor;
    return proto.anchor.Anchor.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.anchor.Anchor} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.anchor.Anchor}
   */
  proto.anchor.Anchor.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.setDescription(value);
        break;
      case 2:
        var value = /** @type {string} */ (reader.readString());
        msg.setVersion(value);
        break;
      case 3:
        var value = /** @type {!proto.anchor.IslandType} */ (reader.readEnum());
        msg.setTarget(value);
        break;
      case 4:
        var value = new proto.anchor.Lock;
        reader.readMessage(value,proto.anchor.Lock.deserializeBinaryFromReader);
        msg.addLocks(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.anchor.Anchor.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.anchor.Anchor.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.anchor.Anchor} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.anchor.Anchor.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getDescription();
    if (f.length > 0) {
      writer.writeString(
        1,
        f
      );
    }
    f = message.getVersion();
    if (f.length > 0) {
      writer.writeString(
        2,
        f
      );
    }
    f = message.getTarget();
    if (f !== 0.0) {
      writer.writeEnum(
        3,
        f
      );
    }
    f = message.getLocksList();
    if (f.length > 0) {
      writer.writeRepeatedMessage(
        4,
        f,
        proto.anchor.Lock.serializeBinaryToWriter
      );
    }
  };
  
  
  /**
   * optional string description = 1;
   * @return {string}
   */
  proto.anchor.Anchor.prototype.getDescription = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  };
  
  
  /** @param {string} value */
  proto.anchor.Anchor.prototype.setDescription = function(value) {
    jspb.Message.setProto3StringField(this, 1, value);
  };
  
  
  /**
   * optional string version = 2;
   * @return {string}
   */
  proto.anchor.Anchor.prototype.getVersion = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  };
  
  
  /** @param {string} value */
  proto.anchor.Anchor.prototype.setVersion = function(value) {
    jspb.Message.setProto3StringField(this, 2, value);
  };
  
  
  /**
   * optional IslandType target = 3;
   * @return {!proto.anchor.IslandType}
   */
  proto.anchor.Anchor.prototype.getTarget = function() {
    return /** @type {!proto.anchor.IslandType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  };
  
  
  /** @param {!proto.anchor.IslandType} value */
  proto.anchor.Anchor.prototype.setTarget = function(value) {
    jspb.Message.setProto3EnumField(this, 3, value);
  };
  
  
  /**
   * repeated Lock locks = 4;
   * @return {!Array<!proto.anchor.Lock>}
   */
  proto.anchor.Anchor.prototype.getLocksList = function() {
    return /** @type{!Array<!proto.anchor.Lock>} */ (
      jspb.Message.getRepeatedWrapperField(this, proto.anchor.Lock, 4));
  };
  
  
  /** @param {!Array<!proto.anchor.Lock>} value */
  proto.anchor.Anchor.prototype.setLocksList = function(value) {
    jspb.Message.setRepeatedWrapperField(this, 4, value);
  };
  
  
  /**
   * @param {!proto.anchor.Lock=} opt_value
   * @param {number=} opt_index
   * @return {!proto.anchor.Lock}
   */
  proto.anchor.Anchor.prototype.addLocks = function(opt_value, opt_index) {
    return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.anchor.Lock, opt_index);
  };
  
  
  proto.anchor.Anchor.prototype.clearLocksList = function() {
    this.setLocksList([]);
  };
  
  
  
  /**
   * 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.anchor.Lock = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.anchor.Lock, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    proto.anchor.Lock.displayName = 'proto.anchor.Lock';
  }
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto suitable for use in Soy templates.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
   * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
   *     for transitional soy proto support: http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.anchor.Lock.prototype.toObject = function(opt_includeInstance) {
    return proto.anchor.Lock.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Whether to include the JSPB
   *     instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.anchor.Lock} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.anchor.Lock.toObject = function(includeInstance, msg) {
    var f, obj = {
      type: jspb.Message.getFieldWithDefault(msg, 1, 0),
      version: jspb.Message.getFieldWithDefault(msg, 2, ""),
      name: jspb.Message.getFieldWithDefault(msg, 3, ""),
      block: (f = msg.getBlock()) && proto.anchor.Block.toObject(includeInstance, f),
      lastknownposition: 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.anchor.Lock}
   */
  proto.anchor.Lock.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.anchor.Lock;
    return proto.anchor.Lock.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.anchor.Lock} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.anchor.Lock}
   */
  proto.anchor.Lock.deserializeBinaryFromReader = function(msg, reader) {
    while (reader.nextField()) {
      if (reader.isEndGroup()) {
        break;
      }
      var field = reader.getFieldNumber();
      switch (field) {
      case 1:
        var value = /** @type {!proto.anchor.IslandType} */ (reader.readEnum());
        msg.setType(value);
        break;
      case 2:
        var value = /** @type {string} */ (reader.readString());
        msg.setVersion(value);
        break;
      case 3:
        var value = /** @type {string} */ (reader.readString());
        msg.setName(value);
        break;
      case 4:
        var value = new proto.anchor.Block;
        reader.readMessage(value,proto.anchor.Block.deserializeBinaryFromReader);
        msg.setBlock(value);
        break;
      case 5:
        var value = /** @type {string} */ (reader.readString());
        msg.setLastknownposition(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.anchor.Lock.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.anchor.Lock.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.anchor.Lock} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.anchor.Lock.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getType();
    if (f !== 0.0) {
      writer.writeEnum(
        1,
        f
      );
    }
    f = message.getVersion();
    if (f.length > 0) {
      writer.writeString(
        2,
        f
      );
    }
    f = message.getName();
    if (f.length > 0) {
      writer.writeString(
        3,
        f
      );
    }
    f = message.getBlock();
    if (f != null) {
      writer.writeMessage(
        4,
        f,
        proto.anchor.Block.serializeBinaryToWriter
      );
    }
    f = message.getLastknownposition();
    if (f.length > 0) {
      writer.writeString(
        5,
        f
      );
    }
  };
  
  
  /**
   * optional IslandType type = 1;
   * @return {!proto.anchor.IslandType}
   */
  proto.anchor.Lock.prototype.getType = function() {
    return /** @type {!proto.anchor.IslandType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };
  
  
  /** @param {!proto.anchor.IslandType} value */
  proto.anchor.Lock.prototype.setType = function(value) {
    jspb.Message.setProto3EnumField(this, 1, value);
  };
  
  
  /**
   * optional string version = 2;
   * @return {string}
   */
  proto.anchor.Lock.prototype.getVersion = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  };
  
  
  /** @param {string} value */
  proto.anchor.Lock.prototype.setVersion = function(value) {
    jspb.Message.setProto3StringField(this, 2, value);
  };
  
  
  /**
   * optional string name = 3;
   * @return {string}
   */
  proto.anchor.Lock.prototype.getName = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  };
  
  
  /** @param {string} value */
  proto.anchor.Lock.prototype.setName = function(value) {
    jspb.Message.setProto3StringField(this, 3, value);
  };
  
  
  /**
   * optional Block block = 4;
   * @return {?proto.anchor.Block}
   */
  proto.anchor.Lock.prototype.getBlock = function() {
    return /** @type{?proto.anchor.Block} */ (
      jspb.Message.getWrapperField(this, proto.anchor.Block, 4));
  };
  
  
  /** @param {?proto.anchor.Block|undefined} value */
  proto.anchor.Lock.prototype.setBlock = function(value) {
    jspb.Message.setWrapperField(this, 4, value);
  };
  
  
  proto.anchor.Lock.prototype.clearBlock = function() {
    this.setBlock(undefined);
  };
  
  
  /**
   * Returns whether this field is set.
   * @return {boolean}
   */
  proto.anchor.Lock.prototype.hasBlock = function() {
    return jspb.Message.getField(this, 4) != null;
  };
  
  
  /**
   * optional string lastKnownPosition = 5;
   * @return {string}
   */
  proto.anchor.Lock.prototype.getLastknownposition = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
  };
  
  
  /** @param {string} value */
  proto.anchor.Lock.prototype.setLastknownposition = function(value) {
    jspb.Message.setProto3StringField(this, 5, value);
  };
  
  
  
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.anchor.Block = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, proto.anchor.Block.repeatedFields_, null);
  };
  goog.inherits(proto.anchor.Block, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    proto.anchor.Block.displayName = 'proto.anchor.Block';
  }
  /**
   * List of repeated fields within this message type.
   * @private {!Array<number>}
   * @const
   */
  proto.anchor.Block.repeatedFields_ = [4];
  
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto suitable for use in Soy templates.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
   * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
   *     for transitional soy proto support: http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.anchor.Block.prototype.toObject = function(opt_includeInstance) {
    return proto.anchor.Block.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Whether to include the JSPB
   *     instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.anchor.Block} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.anchor.Block.toObject = function(includeInstance, msg) {
    var f, obj = {
      height: jspb.Message.getFieldWithDefault(msg, 1, ""),
      hash: jspb.Message.getFieldWithDefault(msg, 2, ""),
      timestamp: jspb.Message.getFieldWithDefault(msg, 3, ""),
      uriList: jspb.Message.getRepeatedField(msg, 4)
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.anchor.Block}
   */
  proto.anchor.Block.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.anchor.Block;
    return proto.anchor.Block.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.anchor.Block} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.anchor.Block}
   */
  proto.anchor.Block.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.setHeight(value);
        break;
      case 2:
        var value = /** @type {string} */ (reader.readString());
        msg.setHash(value);
        break;
      case 3:
        var value = /** @type {string} */ (reader.readString());
        msg.setTimestamp(value);
        break;
      case 4:
        var value = /** @type {string} */ (reader.readString());
        msg.addUri(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.anchor.Block.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.anchor.Block.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.anchor.Block} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.anchor.Block.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getHeight();
    if (f.length > 0) {
      writer.writeString(
        1,
        f
      );
    }
    f = message.getHash();
    if (f.length > 0) {
      writer.writeString(
        2,
        f
      );
    }
    f = message.getTimestamp();
    if (f.length > 0) {
      writer.writeString(
        3,
        f
      );
    }
    f = message.getUriList();
    if (f.length > 0) {
      writer.writeRepeatedString(
        4,
        f
      );
    }
  };
  
  
  /**
   * optional string height = 1;
   * @return {string}
   */
  proto.anchor.Block.prototype.getHeight = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  };
  
  
  /** @param {string} value */
  proto.anchor.Block.prototype.setHeight = function(value) {
    jspb.Message.setProto3StringField(this, 1, value);
  };
  
  
  /**
   * optional string hash = 2;
   * @return {string}
   */
  proto.anchor.Block.prototype.getHash = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  };
  
  
  /** @param {string} value */
  proto.anchor.Block.prototype.setHash = function(value) {
    jspb.Message.setProto3StringField(this, 2, value);
  };
  
  
  /**
   * optional string timestamp = 3;
   * @return {string}
   */
  proto.anchor.Block.prototype.getTimestamp = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  };
  
  
  /** @param {string} value */
  proto.anchor.Block.prototype.setTimestamp = function(value) {
    jspb.Message.setProto3StringField(this, 3, value);
  };
  
  
  /**
   * repeated string uri = 4;
   * @return {!Array<string>}
   */
  proto.anchor.Block.prototype.getUriList = function() {
    return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
  };
  
  
  /** @param {!Array<string>} value */
  proto.anchor.Block.prototype.setUriList = function(value) {
    jspb.Message.setField(this, 4, value || []);
  };
  
  
  /**
   * @param {string} value
   * @param {number=} opt_index
   */
  proto.anchor.Block.prototype.addUri = function(value, opt_index) {
    jspb.Message.addToRepeatedField(this, 4, value, opt_index);
  };
  
  
  proto.anchor.Block.prototype.clearUriList = function() {
    this.setUriList([]);
  };
  
  
  
  /**
   * 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.anchor.CallSign = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.anchor.CallSign, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    proto.anchor.CallSign.displayName = 'proto.anchor.CallSign';
  }
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto suitable for use in Soy templates.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
   * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
   *     for transitional soy proto support: http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.anchor.CallSign.prototype.toObject = function(opt_includeInstance) {
    return proto.anchor.CallSign.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Whether to include the JSPB
   *     instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.anchor.CallSign} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.anchor.CallSign.toObject = function(includeInstance, msg) {
    var f, obj = {
      id: jspb.Message.getFieldWithDefault(msg, 1, "")
    };
  
    if (includeInstance) {
      obj.$jspbMessageInstance = msg;
    }
    return obj;
  };
  }
  
  
  /**
   * Deserializes binary data (in protobuf wire format).
   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   * @return {!proto.anchor.CallSign}
   */
  proto.anchor.CallSign.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.anchor.CallSign;
    return proto.anchor.CallSign.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.anchor.CallSign} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.anchor.CallSign}
   */
  proto.anchor.CallSign.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.setId(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.anchor.CallSign.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.anchor.CallSign.serializeBinaryToWriter(this, writer);
    return writer.getResultBuffer();
  };
  
  
  /**
   * Serializes the given message to binary data (in protobuf wire
   * format), writing to the given BinaryWriter.
   * @param {!proto.anchor.CallSign} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.anchor.CallSign.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getId();
    if (f.length > 0) {
      writer.writeString(
        1,
        f
      );
    }
  };
  
  
  /**
   * optional string id = 1;
   * @return {string}
   */
  proto.anchor.CallSign.prototype.getId = function() {
    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  };
  
  
  /** @param {string} value */
  proto.anchor.CallSign.prototype.setId = function(value) {
    jspb.Message.setProto3StringField(this, 1, value);
  };
  
  
  
  /**
   * Generated by JsPbCodeGenerator.
   * @param {Array=} opt_data Optional initial data array, typically from a
   * server response, or constructed directly in Javascript. The array is used
   * in place and becomes part of the constructed object. It is not cloned.
   * If no data is provided, the constructed object will be empty, but still
   * valid.
   * @extends {jspb.Message}
   * @constructor
   */
  proto.anchor.Header = function(opt_data) {
    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  };
  goog.inherits(proto.anchor.Header, jspb.Message);
  if (goog.DEBUG && !COMPILED) {
    proto.anchor.Header.displayName = 'proto.anchor.Header';
  }
  
  
  if (jspb.Message.GENERATE_TO_OBJECT) {
  /**
   * Creates an object representation of this proto suitable for use in Soy templates.
   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   * For the list of reserved names please see:
   *     com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
   * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
   *     for transitional soy proto support: http://goto/soy-param-migration
   * @return {!Object}
   */
  proto.anchor.Header.prototype.toObject = function(opt_includeInstance) {
    return proto.anchor.Header.toObject(opt_includeInstance, this);
  };
  
  
  /**
   * Static version of the {@see toObject} method.
   * @param {boolean|undefined} includeInstance Whether to include the JSPB
   *     instance for transitional soy proto support:
   *     http://goto/soy-param-migration
   * @param {!proto.anchor.Header} msg The msg instance to transform.
   * @return {!Object}
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.anchor.Header.toObject = function(includeInstance, msg) {
    var f, obj = {
      height: jspb.Message.getFieldWithDefault(msg, 1, 0),
      type: 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.anchor.Header}
   */
  proto.anchor.Header.deserializeBinary = function(bytes) {
    var reader = new jspb.BinaryReader(bytes);
    var msg = new proto.anchor.Header;
    return proto.anchor.Header.deserializeBinaryFromReader(msg, reader);
  };
  
  
  /**
   * Deserializes binary data (in protobuf wire format) from the
   * given reader into the given message object.
   * @param {!proto.anchor.Header} msg The message object to deserialize into.
   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   * @return {!proto.anchor.Header}
   */
  proto.anchor.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.setHeight(value);
        break;
      case 2:
        var value = /** @type {!proto.anchor.IslandType} */ (reader.readEnum());
        msg.setType(value);
        break;
      default:
        reader.skipField();
        break;
      }
    }
    return msg;
  };
  
  
  /**
   * Serializes the message to binary data (in protobuf wire format).
   * @return {!Uint8Array}
   */
  proto.anchor.Header.prototype.serializeBinary = function() {
    var writer = new jspb.BinaryWriter();
    proto.anchor.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.anchor.Header} message
   * @param {!jspb.BinaryWriter} writer
   * @suppress {unusedLocalVariables} f is only used for nested messages
   */
  proto.anchor.Header.serializeBinaryToWriter = function(message, writer) {
    var f = undefined;
    f = message.getHeight();
    if (f !== 0) {
      writer.writeUint64(
        1,
        f
      );
    }
    f = message.getType();
    if (f !== 0.0) {
      writer.writeEnum(
        2,
        f
      );
    }
  };
  
  
  /**
   * optional uint64 height = 1;
   * @return {number}
   */
  proto.anchor.Header.prototype.getHeight = function() {
    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  };
  
  
  /** @param {number} value */
  proto.anchor.Header.prototype.setHeight = function(value) {
    jspb.Message.setProto3IntField(this, 1, value);
  };
  
  
  /**
   * optional IslandType type = 2;
   * @return {!proto.anchor.IslandType}
   */
  proto.anchor.Header.prototype.getType = function() {
    return /** @type {!proto.anchor.IslandType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  };
  
  
  /** @param {!proto.anchor.IslandType} value */
  proto.anchor.Header.prototype.setType = function(value) {
    jspb.Message.setProto3EnumField(this, 2, value);
  };
  
  
  /**
   * @enum {number}
   */
  proto.anchor.IslandType = {
    BTC: 0,
    ETH: 1,
    NEM: 2,
    NEM2: 3
  };
  
  goog.object.extend(exports, proto.anchor);
  