// source: vector.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);

goog.exportSymbol('proto.Messages.DirentNode', null, global);
goog.exportSymbol('proto.Messages.Elements', null, global);
goog.exportSymbol('proto.Messages.Extrema', null, global);
goog.exportSymbol('proto.Messages.File', null, global);
goog.exportSymbol('proto.Messages.Record64', null, global);
goog.exportSymbol('proto.Messages.Revision', null, global);
goog.exportSymbol('proto.Messages.Rule', null, global);
goog.exportSymbol('proto.Messages.SparseMatrix', null, global);
goog.exportSymbol('proto.Messages.UIndices', null, global);
goog.exportSymbol('proto.Messages.Vector32', null, global);
goog.exportSymbol('proto.Messages.Vector64', 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.Messages.File = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.Messages.File, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.Messages.File.displayName = 'proto.Messages.File';
}
/**
 * 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.Messages.DirentNode = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.Messages.DirentNode.repeatedFields_, null);
};
goog.inherits(proto.Messages.DirentNode, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.Messages.DirentNode.displayName = 'proto.Messages.DirentNode';
}
/**
 * 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.Messages.Revision = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.Messages.Revision, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.Messages.Revision.displayName = 'proto.Messages.Revision';
}
/**
 * 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.Messages.Extrema = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.Messages.Extrema.repeatedFields_, null);
};
goog.inherits(proto.Messages.Extrema, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.Messages.Extrema.displayName = 'proto.Messages.Extrema';
}
/**
 * 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.Messages.Vector32 = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.Messages.Vector32.repeatedFields_, null);
};
goog.inherits(proto.Messages.Vector32, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.Messages.Vector32.displayName = 'proto.Messages.Vector32';
}
/**
 * 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.Messages.Vector64 = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.Messages.Vector64.repeatedFields_, null);
};
goog.inherits(proto.Messages.Vector64, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.Messages.Vector64.displayName = 'proto.Messages.Vector64';
}
/**
 * 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.Messages.SparseMatrix = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.Messages.SparseMatrix.repeatedFields_, null);
};
goog.inherits(proto.Messages.SparseMatrix, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.Messages.SparseMatrix.displayName = 'proto.Messages.SparseMatrix';
}
/**
 * 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.Messages.Rule = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.Messages.Rule.repeatedFields_, null);
};
goog.inherits(proto.Messages.Rule, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.Messages.Rule.displayName = 'proto.Messages.Rule';
}
/**
 * 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.Messages.Record64 = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.Messages.Record64.repeatedFields_, null);
};
goog.inherits(proto.Messages.Record64, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.Messages.Record64.displayName = 'proto.Messages.Record64';
}
/**
 * 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.Messages.UIndices = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.Messages.UIndices.repeatedFields_, null);
};
goog.inherits(proto.Messages.UIndices, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.Messages.UIndices.displayName = 'proto.Messages.UIndices';
}
/**
 * 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.Messages.Elements = function(opt_data) {
  jspb.Message.initialize(this, opt_data, 0, -1, proto.Messages.Elements.repeatedFields_, null);
};
goog.inherits(proto.Messages.Elements, jspb.Message);
if (goog.DEBUG && !COMPILED) {
  /**
   * @public
   * @override
   */
  proto.Messages.Elements.displayName = 'proto.Messages.Elements';
}



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.Messages.File.prototype.toObject = function(opt_includeInstance) {
  return proto.Messages.File.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.Messages.File} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.File.toObject = function(includeInstance, msg) {
  var f, obj = {
    name: jspb.Message.getFieldWithDefault(msg, 1, ""),
    payload: msg.getPayload_asB64(),
    isLocal: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
    isExported: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
    timeCreated: jspb.Message.getFieldWithDefault(msg, 10, 0),
    timeModified: jspb.Message.getFieldWithDefault(msg, 11, 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.Messages.File}
 */
proto.Messages.File.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.Messages.File;
  return proto.Messages.File.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.Messages.File} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.Messages.File}
 */
proto.Messages.File.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.setName(value);
      break;
    case 2:
      var value = /** @type {!Uint8Array} */ (reader.readBytes());
      msg.setPayload(value);
      break;
    case 3:
      var value = /** @type {boolean} */ (reader.readBool());
      msg.setIsLocal(value);
      break;
    case 4:
      var value = /** @type {boolean} */ (reader.readBool());
      msg.setIsExported(value);
      break;
    case 10:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setTimeCreated(value);
      break;
    case 11:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setTimeModified(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.Messages.File} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.File.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getName();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getPayload_asU8();
  if (f.length > 0) {
    writer.writeBytes(
      2,
      f
    );
  }
  f = message.getIsLocal();
  if (f) {
    writer.writeBool(
      3,
      f
    );
  }
  f = message.getIsExported();
  if (f) {
    writer.writeBool(
      4,
      f
    );
  }
  f = message.getTimeCreated();
  if (f !== 0) {
    writer.writeUint64(
      10,
      f
    );
  }
  f = message.getTimeModified();
  if (f !== 0) {
    writer.writeUint64(
      11,
      f
    );
  }
};


/**
 * optional string name = 1;
 * @return {string}
 */
proto.Messages.File.prototype.getName = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.File} returns this
 */
proto.Messages.File.prototype.setName = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * optional bytes payload = 2;
 * @return {!(string|Uint8Array)}
 */
proto.Messages.File.prototype.getPayload = function() {
  return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};


/**
 * optional bytes payload = 2;
 * This is a type-conversion wrapper around `getPayload()`
 * @return {string}
 */
proto.Messages.File.prototype.getPayload_asB64 = function() {
  return /** @type {string} */ (jspb.Message.bytesAsB64(
      this.getPayload()));
};


/**
 * optional bytes payload = 2;
 * Note that Uint8Array is not supported on all browsers.
 * @see http://caniuse.com/Uint8Array
 * This is a type-conversion wrapper around `getPayload()`
 * @return {!Uint8Array}
 */
proto.Messages.File.prototype.getPayload_asU8 = function() {
  return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
      this.getPayload()));
};


/**
 * @param {!(string|Uint8Array)} value
 * @return {!proto.Messages.File} returns this
 */
proto.Messages.File.prototype.setPayload = function(value) {
  return jspb.Message.setProto3BytesField(this, 2, value);
};


/**
 * optional bool is_local = 3;
 * @return {boolean}
 */
proto.Messages.File.prototype.getIsLocal = function() {
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};


/**
 * @param {boolean} value
 * @return {!proto.Messages.File} returns this
 */
proto.Messages.File.prototype.setIsLocal = function(value) {
  return jspb.Message.setProto3BooleanField(this, 3, value);
};


/**
 * optional bool is_exported = 4;
 * @return {boolean}
 */
proto.Messages.File.prototype.getIsExported = function() {
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
};


/**
 * @param {boolean} value
 * @return {!proto.Messages.File} returns this
 */
proto.Messages.File.prototype.setIsExported = function(value) {
  return jspb.Message.setProto3BooleanField(this, 4, value);
};


/**
 * optional uint64 time_created = 10;
 * @return {number}
 */
proto.Messages.File.prototype.getTimeCreated = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.File} returns this
 */
proto.Messages.File.prototype.setTimeCreated = function(value) {
  return jspb.Message.setProto3IntField(this, 10, value);
};


/**
 * optional uint64 time_modified = 11;
 * @return {number}
 */
proto.Messages.File.prototype.getTimeModified = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.File} returns this
 */
proto.Messages.File.prototype.setTimeModified = function(value) {
  return jspb.Message.setProto3IntField(this, 11, value);
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.Messages.DirentNode.repeatedFields_ = [2,3];



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.Messages.DirentNode.prototype.toObject = function(opt_includeInstance) {
  return proto.Messages.DirentNode.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.Messages.DirentNode} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.DirentNode.toObject = function(includeInstance, msg) {
  var f, obj = {
    dirname: jspb.Message.getFieldWithDefault(msg, 1, ""),
    filesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
    subdirsList: jspb.Message.toObjectList(msg.getSubdirsList(),
    proto.Messages.DirentNode.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.Messages.DirentNode}
 */
proto.Messages.DirentNode.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.Messages.DirentNode;
  return proto.Messages.DirentNode.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.Messages.DirentNode} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.Messages.DirentNode}
 */
proto.Messages.DirentNode.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.setDirname(value);
      break;
    case 2:
      var value = /** @type {string} */ (reader.readString());
      msg.addFiles(value);
      break;
    case 3:
      var value = new proto.Messages.DirentNode;
      reader.readMessage(value,proto.Messages.DirentNode.deserializeBinaryFromReader);
      msg.addSubdirs(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.Messages.DirentNode} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.DirentNode.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getDirname();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getFilesList();
  if (f.length > 0) {
    writer.writeRepeatedString(
      2,
      f
    );
  }
  f = message.getSubdirsList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      3,
      f,
      proto.Messages.DirentNode.serializeBinaryToWriter
    );
  }
};


/**
 * optional string dirname = 1;
 * @return {string}
 */
proto.Messages.DirentNode.prototype.getDirname = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.DirentNode} returns this
 */
proto.Messages.DirentNode.prototype.setDirname = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * repeated string files = 2;
 * @return {!Array<string>}
 */
proto.Messages.DirentNode.prototype.getFilesList = function() {
  return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
};


/**
 * @param {!Array<string>} value
 * @return {!proto.Messages.DirentNode} returns this
 */
proto.Messages.DirentNode.prototype.setFilesList = function(value) {
  return jspb.Message.setField(this, 2, value || []);
};


/**
 * @param {string} value
 * @param {number=} opt_index
 * @return {!proto.Messages.DirentNode} returns this
 */
proto.Messages.DirentNode.prototype.addFiles = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.DirentNode} returns this
 */
proto.Messages.DirentNode.prototype.clearFilesList = function() {
  return this.setFilesList([]);
};


/**
 * repeated DirentNode subdirs = 3;
 * @return {!Array<!proto.Messages.DirentNode>}
 */
proto.Messages.DirentNode.prototype.getSubdirsList = function() {
  return /** @type{!Array<!proto.Messages.DirentNode>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.Messages.DirentNode, 3));
};


/**
 * @param {!Array<!proto.Messages.DirentNode>} value
 * @return {!proto.Messages.DirentNode} returns this
*/
proto.Messages.DirentNode.prototype.setSubdirsList = function(value) {
  return jspb.Message.setRepeatedWrapperField(this, 3, value);
};


/**
 * @param {!proto.Messages.DirentNode=} opt_value
 * @param {number=} opt_index
 * @return {!proto.Messages.DirentNode}
 */
proto.Messages.DirentNode.prototype.addSubdirs = function(opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Messages.DirentNode, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.DirentNode} returns this
 */
proto.Messages.DirentNode.prototype.clearSubdirsList = function() {
  return this.setSubdirsList([]);
};





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.Messages.Revision.prototype.toObject = function(opt_includeInstance) {
  return proto.Messages.Revision.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.Messages.Revision} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Revision.toObject = function(includeInstance, msg) {
  var f, obj = {
    majorRev: jspb.Message.getFieldWithDefault(msg, 1, 0),
    minorRev: 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.Messages.Revision}
 */
proto.Messages.Revision.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.Messages.Revision;
  return proto.Messages.Revision.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.Messages.Revision} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.Messages.Revision}
 */
proto.Messages.Revision.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.setMajorRev(value);
      break;
    case 2:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setMinorRev(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.Messages.Revision} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Revision.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getMajorRev();
  if (f !== 0) {
    writer.writeUint64(
      1,
      f
    );
  }
  f = message.getMinorRev();
  if (f !== 0) {
    writer.writeUint64(
      2,
      f
    );
  }
};


/**
 * optional uint64 major_rev = 1;
 * @return {number}
 */
proto.Messages.Revision.prototype.getMajorRev = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.Revision} returns this
 */
proto.Messages.Revision.prototype.setMajorRev = function(value) {
  return jspb.Message.setProto3IntField(this, 1, value);
};


/**
 * optional uint64 minor_rev = 2;
 * @return {number}
 */
proto.Messages.Revision.prototype.getMinorRev = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.Revision} returns this
 */
proto.Messages.Revision.prototype.setMinorRev = function(value) {
  return jspb.Message.setProto3IntField(this, 2, value);
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.Messages.Extrema.repeatedFields_ = [2,3];



if (jspb.Message.GENERATE_TO_OBJECT) {
/**
 * Creates an object representation of this proto.
 * Field names that are reserved in JavaScript and will be renamed to pb_name.
 * Optional fields that are not set will be set to undefined.
 * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
 * For the list of reserved names please see:
 *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
 * @param {boolean=} opt_includeInstance Deprecated. whether to include the
 *     JSPB instance for transitional soy proto support:
 *     http://goto/soy-param-migration
 * @return {!Object}
 */
proto.Messages.Extrema.prototype.toObject = function(opt_includeInstance) {
  return proto.Messages.Extrema.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.Messages.Extrema} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Extrema.toObject = function(includeInstance, msg) {
  var f, obj = {
    dims: jspb.Message.getFieldWithDefault(msg, 1, 0),
    minList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 2)) == null ? undefined : f,
    maxList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 3)) == null ? undefined : f,
    isSet: 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.Messages.Extrema}
 */
proto.Messages.Extrema.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.Messages.Extrema;
  return proto.Messages.Extrema.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.Messages.Extrema} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.Messages.Extrema}
 */
proto.Messages.Extrema.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = /** @type {number} */ (reader.readUint32());
      msg.setDims(value);
      break;
    case 2:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
      for (var i = 0; i < values.length; i++) {
        msg.addMin(values[i]);
      }
      break;
    case 3:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
      for (var i = 0; i < values.length; i++) {
        msg.addMax(values[i]);
      }
      break;
    case 4:
      var value = /** @type {boolean} */ (reader.readBool());
      msg.setIsSet(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.Messages.Extrema} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Extrema.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getDims();
  if (f !== 0) {
    writer.writeUint32(
      1,
      f
    );
  }
  f = message.getMinList();
  if (f.length > 0) {
    writer.writePackedDouble(
      2,
      f
    );
  }
  f = message.getMaxList();
  if (f.length > 0) {
    writer.writePackedDouble(
      3,
      f
    );
  }
  f = message.getIsSet();
  if (f) {
    writer.writeBool(
      4,
      f
    );
  }
};


/**
 * optional uint32 dims = 1;
 * @return {number}
 */
proto.Messages.Extrema.prototype.getDims = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.Extrema} returns this
 */
proto.Messages.Extrema.prototype.setDims = function(value) {
  return jspb.Message.setProto3IntField(this, 1, value);
};


/**
 * repeated double min = 2;
 * @return {!Array<number>}
 */
proto.Messages.Extrema.prototype.getMinList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 2));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Extrema} returns this
 */
proto.Messages.Extrema.prototype.setMinList = function(value) {
  return jspb.Message.setField(this, 2, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Extrema} returns this
 */
proto.Messages.Extrema.prototype.addMin = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Extrema} returns this
 */
proto.Messages.Extrema.prototype.clearMinList = function() {
  return this.setMinList([]);
};


/**
 * repeated double max = 3;
 * @return {!Array<number>}
 */
proto.Messages.Extrema.prototype.getMaxList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 3));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Extrema} returns this
 */
proto.Messages.Extrema.prototype.setMaxList = function(value) {
  return jspb.Message.setField(this, 3, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Extrema} returns this
 */
proto.Messages.Extrema.prototype.addMax = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Extrema} returns this
 */
proto.Messages.Extrema.prototype.clearMaxList = function() {
  return this.setMaxList([]);
};


/**
 * optional bool is_set = 4;
 * @return {boolean}
 */
proto.Messages.Extrema.prototype.getIsSet = function() {
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
};


/**
 * @param {boolean} value
 * @return {!proto.Messages.Extrema} returns this
 */
proto.Messages.Extrema.prototype.setIsSet = function(value) {
  return jspb.Message.setProto3BooleanField(this, 4, value);
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.Messages.Vector32.repeatedFields_ = [10,11];



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.Messages.Vector32.prototype.toObject = function(opt_includeInstance) {
  return proto.Messages.Vector32.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.Messages.Vector32} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Vector32.toObject = function(includeInstance, msg) {
  var f, obj = {
    name: jspb.Message.getFieldWithDefault(msg, 1, ""),
    components: jspb.Message.getFieldWithDefault(msg, 2, 0),
    interleaved: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
    revision: (f = msg.getRevision()) && proto.Messages.Revision.toObject(includeInstance, f),
    units: jspb.Message.getFieldWithDefault(msg, 5, ""),
    comment: jspb.Message.getFieldWithDefault(msg, 6, ""),
    offset: jspb.Message.getFieldWithDefault(msg, 9, 0),
    valuesList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 10)) == null ? undefined : f,
    sizeHintList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : 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.Messages.Vector32}
 */
proto.Messages.Vector32.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.Messages.Vector32;
  return proto.Messages.Vector32.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.Messages.Vector32} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.Messages.Vector32}
 */
proto.Messages.Vector32.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.setName(value);
      break;
    case 2:
      var value = /** @type {number} */ (reader.readUint32());
      msg.setComponents(value);
      break;
    case 3:
      var value = /** @type {boolean} */ (reader.readBool());
      msg.setInterleaved(value);
      break;
    case 4:
      var value = new proto.Messages.Revision;
      reader.readMessage(value,proto.Messages.Revision.deserializeBinaryFromReader);
      msg.setRevision(value);
      break;
    case 5:
      var value = /** @type {string} */ (reader.readString());
      msg.setUnits(value);
      break;
    case 6:
      var value = /** @type {string} */ (reader.readString());
      msg.setComment(value);
      break;
    case 9:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setOffset(value);
      break;
    case 10:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
      for (var i = 0; i < values.length; i++) {
        msg.addValues(values[i]);
      }
      break;
    case 11:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
      for (var i = 0; i < values.length; i++) {
        msg.addSizeHint(values[i]);
      }
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.Messages.Vector32} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Vector32.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getName();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getComponents();
  if (f !== 0) {
    writer.writeUint32(
      2,
      f
    );
  }
  f = message.getInterleaved();
  if (f) {
    writer.writeBool(
      3,
      f
    );
  }
  f = message.getRevision();
  if (f != null) {
    writer.writeMessage(
      4,
      f,
      proto.Messages.Revision.serializeBinaryToWriter
    );
  }
  f = message.getUnits();
  if (f.length > 0) {
    writer.writeString(
      5,
      f
    );
  }
  f = message.getComment();
  if (f.length > 0) {
    writer.writeString(
      6,
      f
    );
  }
  f = message.getOffset();
  if (f !== 0) {
    writer.writeUint64(
      9,
      f
    );
  }
  f = message.getValuesList();
  if (f.length > 0) {
    writer.writePackedFloat(
      10,
      f
    );
  }
  f = message.getSizeHintList();
  if (f.length > 0) {
    writer.writePackedUint32(
      11,
      f
    );
  }
};


/**
 * optional string name = 1;
 * @return {string}
 */
proto.Messages.Vector32.prototype.getName = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.setName = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * optional uint32 components = 2;
 * @return {number}
 */
proto.Messages.Vector32.prototype.getComponents = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.setComponents = function(value) {
  return jspb.Message.setProto3IntField(this, 2, value);
};


/**
 * optional bool interleaved = 3;
 * @return {boolean}
 */
proto.Messages.Vector32.prototype.getInterleaved = function() {
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};


/**
 * @param {boolean} value
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.setInterleaved = function(value) {
  return jspb.Message.setProto3BooleanField(this, 3, value);
};


/**
 * optional Revision revision = 4;
 * @return {?proto.Messages.Revision}
 */
proto.Messages.Vector32.prototype.getRevision = function() {
  return /** @type{?proto.Messages.Revision} */ (
    jspb.Message.getWrapperField(this, proto.Messages.Revision, 4));
};


/**
 * @param {?proto.Messages.Revision|undefined} value
 * @return {!proto.Messages.Vector32} returns this
*/
proto.Messages.Vector32.prototype.setRevision = function(value) {
  return jspb.Message.setWrapperField(this, 4, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.clearRevision = function() {
  return this.setRevision(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.Messages.Vector32.prototype.hasRevision = function() {
  return jspb.Message.getField(this, 4) != null;
};


/**
 * optional string units = 5;
 * @return {string}
 */
proto.Messages.Vector32.prototype.getUnits = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.setUnits = function(value) {
  return jspb.Message.setProto3StringField(this, 5, value);
};


/**
 * optional string comment = 6;
 * @return {string}
 */
proto.Messages.Vector32.prototype.getComment = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.setComment = function(value) {
  return jspb.Message.setProto3StringField(this, 6, value);
};


/**
 * optional uint64 offset = 9;
 * @return {number}
 */
proto.Messages.Vector32.prototype.getOffset = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.setOffset = function(value) {
  return jspb.Message.setProto3IntField(this, 9, value);
};


/**
 * repeated float values = 10;
 * @return {!Array<number>}
 */
proto.Messages.Vector32.prototype.getValuesList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 10));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.setValuesList = function(value) {
  return jspb.Message.setField(this, 10, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.addValues = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.clearValuesList = function() {
  return this.setValuesList([]);
};


/**
 * repeated uint32 size_hint = 11;
 * @return {!Array<number>}
 */
proto.Messages.Vector32.prototype.getSizeHintList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 11));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.setSizeHintList = function(value) {
  return jspb.Message.setField(this, 11, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.addSizeHint = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Vector32} returns this
 */
proto.Messages.Vector32.prototype.clearSizeHintList = function() {
  return this.setSizeHintList([]);
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.Messages.Vector64.repeatedFields_ = [10,11];



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.Messages.Vector64.prototype.toObject = function(opt_includeInstance) {
  return proto.Messages.Vector64.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.Messages.Vector64} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Vector64.toObject = function(includeInstance, msg) {
  var f, obj = {
    name: jspb.Message.getFieldWithDefault(msg, 1, ""),
    components: jspb.Message.getFieldWithDefault(msg, 2, 0),
    interleaved: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
    revision: (f = msg.getRevision()) && proto.Messages.Revision.toObject(includeInstance, f),
    units: jspb.Message.getFieldWithDefault(msg, 5, ""),
    comment: jspb.Message.getFieldWithDefault(msg, 6, ""),
    offset: jspb.Message.getFieldWithDefault(msg, 9, 0),
    valuesList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 10)) == null ? undefined : f,
    sizeHintList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : 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.Messages.Vector64}
 */
proto.Messages.Vector64.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.Messages.Vector64;
  return proto.Messages.Vector64.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.Messages.Vector64} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.Messages.Vector64}
 */
proto.Messages.Vector64.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.setName(value);
      break;
    case 2:
      var value = /** @type {number} */ (reader.readUint32());
      msg.setComponents(value);
      break;
    case 3:
      var value = /** @type {boolean} */ (reader.readBool());
      msg.setInterleaved(value);
      break;
    case 4:
      var value = new proto.Messages.Revision;
      reader.readMessage(value,proto.Messages.Revision.deserializeBinaryFromReader);
      msg.setRevision(value);
      break;
    case 5:
      var value = /** @type {string} */ (reader.readString());
      msg.setUnits(value);
      break;
    case 6:
      var value = /** @type {string} */ (reader.readString());
      msg.setComment(value);
      break;
    case 9:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setOffset(value);
      break;
    case 10:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
      for (var i = 0; i < values.length; i++) {
        msg.addValues(values[i]);
      }
      break;
    case 11:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
      for (var i = 0; i < values.length; i++) {
        msg.addSizeHint(values[i]);
      }
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.Messages.Vector64} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Vector64.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getName();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getComponents();
  if (f !== 0) {
    writer.writeUint32(
      2,
      f
    );
  }
  f = message.getInterleaved();
  if (f) {
    writer.writeBool(
      3,
      f
    );
  }
  f = message.getRevision();
  if (f != null) {
    writer.writeMessage(
      4,
      f,
      proto.Messages.Revision.serializeBinaryToWriter
    );
  }
  f = message.getUnits();
  if (f.length > 0) {
    writer.writeString(
      5,
      f
    );
  }
  f = message.getComment();
  if (f.length > 0) {
    writer.writeString(
      6,
      f
    );
  }
  f = message.getOffset();
  if (f !== 0) {
    writer.writeUint64(
      9,
      f
    );
  }
  f = message.getValuesList();
  if (f.length > 0) {
    writer.writePackedDouble(
      10,
      f
    );
  }
  f = message.getSizeHintList();
  if (f.length > 0) {
    writer.writePackedUint32(
      11,
      f
    );
  }
};


/**
 * optional string name = 1;
 * @return {string}
 */
proto.Messages.Vector64.prototype.getName = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.setName = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * optional uint32 components = 2;
 * @return {number}
 */
proto.Messages.Vector64.prototype.getComponents = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.setComponents = function(value) {
  return jspb.Message.setProto3IntField(this, 2, value);
};


/**
 * optional bool interleaved = 3;
 * @return {boolean}
 */
proto.Messages.Vector64.prototype.getInterleaved = function() {
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};


/**
 * @param {boolean} value
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.setInterleaved = function(value) {
  return jspb.Message.setProto3BooleanField(this, 3, value);
};


/**
 * optional Revision revision = 4;
 * @return {?proto.Messages.Revision}
 */
proto.Messages.Vector64.prototype.getRevision = function() {
  return /** @type{?proto.Messages.Revision} */ (
    jspb.Message.getWrapperField(this, proto.Messages.Revision, 4));
};


/**
 * @param {?proto.Messages.Revision|undefined} value
 * @return {!proto.Messages.Vector64} returns this
*/
proto.Messages.Vector64.prototype.setRevision = function(value) {
  return jspb.Message.setWrapperField(this, 4, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.clearRevision = function() {
  return this.setRevision(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.Messages.Vector64.prototype.hasRevision = function() {
  return jspb.Message.getField(this, 4) != null;
};


/**
 * optional string units = 5;
 * @return {string}
 */
proto.Messages.Vector64.prototype.getUnits = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.setUnits = function(value) {
  return jspb.Message.setProto3StringField(this, 5, value);
};


/**
 * optional string comment = 6;
 * @return {string}
 */
proto.Messages.Vector64.prototype.getComment = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.setComment = function(value) {
  return jspb.Message.setProto3StringField(this, 6, value);
};


/**
 * optional uint64 offset = 9;
 * @return {number}
 */
proto.Messages.Vector64.prototype.getOffset = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.setOffset = function(value) {
  return jspb.Message.setProto3IntField(this, 9, value);
};


/**
 * repeated double values = 10;
 * @return {!Array<number>}
 */
proto.Messages.Vector64.prototype.getValuesList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 10));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.setValuesList = function(value) {
  return jspb.Message.setField(this, 10, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.addValues = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.clearValuesList = function() {
  return this.setValuesList([]);
};


/**
 * repeated uint32 size_hint = 11;
 * @return {!Array<number>}
 */
proto.Messages.Vector64.prototype.getSizeHintList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 11));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.setSizeHintList = function(value) {
  return jspb.Message.setField(this, 11, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.addSizeHint = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Vector64} returns this
 */
proto.Messages.Vector64.prototype.clearSizeHintList = function() {
  return this.setSizeHintList([]);
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.Messages.SparseMatrix.repeatedFields_ = [2,3,4];



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.Messages.SparseMatrix.prototype.toObject = function(opt_includeInstance) {
  return proto.Messages.SparseMatrix.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.Messages.SparseMatrix} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.SparseMatrix.toObject = function(includeInstance, msg) {
  var f, obj = {
    name: jspb.Message.getFieldWithDefault(msg, 1, ""),
    sizeHintList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
    indicesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
    valuesList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 4)) == null ? undefined : f,
    bounds: (f = msg.getBounds()) && proto.Messages.Extrema.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.Messages.SparseMatrix}
 */
proto.Messages.SparseMatrix.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.Messages.SparseMatrix;
  return proto.Messages.SparseMatrix.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.Messages.SparseMatrix} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.Messages.SparseMatrix}
 */
proto.Messages.SparseMatrix.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.setName(value);
      break;
    case 2:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
      for (var i = 0; i < values.length; i++) {
        msg.addSizeHint(values[i]);
      }
      break;
    case 3:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
      for (var i = 0; i < values.length; i++) {
        msg.addIndices(values[i]);
      }
      break;
    case 4:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
      for (var i = 0; i < values.length; i++) {
        msg.addValues(values[i]);
      }
      break;
    case 5:
      var value = new proto.Messages.Extrema;
      reader.readMessage(value,proto.Messages.Extrema.deserializeBinaryFromReader);
      msg.setBounds(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.Messages.SparseMatrix} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.SparseMatrix.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getName();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getSizeHintList();
  if (f.length > 0) {
    writer.writePackedUint32(
      2,
      f
    );
  }
  f = message.getIndicesList();
  if (f.length > 0) {
    writer.writePackedUint32(
      3,
      f
    );
  }
  f = message.getValuesList();
  if (f.length > 0) {
    writer.writePackedDouble(
      4,
      f
    );
  }
  f = message.getBounds();
  if (f != null) {
    writer.writeMessage(
      5,
      f,
      proto.Messages.Extrema.serializeBinaryToWriter
    );
  }
};


/**
 * optional string name = 1;
 * @return {string}
 */
proto.Messages.SparseMatrix.prototype.getName = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.SparseMatrix} returns this
 */
proto.Messages.SparseMatrix.prototype.setName = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * repeated uint32 size_hint = 2;
 * @return {!Array<number>}
 */
proto.Messages.SparseMatrix.prototype.getSizeHintList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.SparseMatrix} returns this
 */
proto.Messages.SparseMatrix.prototype.setSizeHintList = function(value) {
  return jspb.Message.setField(this, 2, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.SparseMatrix} returns this
 */
proto.Messages.SparseMatrix.prototype.addSizeHint = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.SparseMatrix} returns this
 */
proto.Messages.SparseMatrix.prototype.clearSizeHintList = function() {
  return this.setSizeHintList([]);
};


/**
 * repeated uint32 indices = 3;
 * @return {!Array<number>}
 */
proto.Messages.SparseMatrix.prototype.getIndicesList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.SparseMatrix} returns this
 */
proto.Messages.SparseMatrix.prototype.setIndicesList = function(value) {
  return jspb.Message.setField(this, 3, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.SparseMatrix} returns this
 */
proto.Messages.SparseMatrix.prototype.addIndices = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.SparseMatrix} returns this
 */
proto.Messages.SparseMatrix.prototype.clearIndicesList = function() {
  return this.setIndicesList([]);
};


/**
 * repeated double values = 4;
 * @return {!Array<number>}
 */
proto.Messages.SparseMatrix.prototype.getValuesList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 4));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.SparseMatrix} returns this
 */
proto.Messages.SparseMatrix.prototype.setValuesList = function(value) {
  return jspb.Message.setField(this, 4, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.SparseMatrix} returns this
 */
proto.Messages.SparseMatrix.prototype.addValues = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.SparseMatrix} returns this
 */
proto.Messages.SparseMatrix.prototype.clearValuesList = function() {
  return this.setValuesList([]);
};


/**
 * optional Extrema bounds = 5;
 * @return {?proto.Messages.Extrema}
 */
proto.Messages.SparseMatrix.prototype.getBounds = function() {
  return /** @type{?proto.Messages.Extrema} */ (
    jspb.Message.getWrapperField(this, proto.Messages.Extrema, 5));
};


/**
 * @param {?proto.Messages.Extrema|undefined} value
 * @return {!proto.Messages.SparseMatrix} returns this
*/
proto.Messages.SparseMatrix.prototype.setBounds = function(value) {
  return jspb.Message.setWrapperField(this, 5, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.Messages.SparseMatrix} returns this
 */
proto.Messages.SparseMatrix.prototype.clearBounds = function() {
  return this.setBounds(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.Messages.SparseMatrix.prototype.hasBounds = function() {
  return jspb.Message.getField(this, 5) != null;
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.Messages.Rule.repeatedFields_ = [4,5,6];



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.Messages.Rule.prototype.toObject = function(opt_includeInstance) {
  return proto.Messages.Rule.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.Messages.Rule} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Rule.toObject = function(includeInstance, msg) {
  var f, obj = {
    pk: jspb.Message.getFieldWithDefault(msg, 1, ""),
    op: jspb.Message.getFieldWithDefault(msg, 2, 0),
    value: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
    algorithmsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
    failedNodesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
    failedValuesList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 6)) == null ? undefined : 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.Messages.Rule}
 */
proto.Messages.Rule.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.Messages.Rule;
  return proto.Messages.Rule.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.Messages.Rule} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.Messages.Rule}
 */
proto.Messages.Rule.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.setPk(value);
      break;
    case 2:
      var value = /** @type {number} */ (reader.readUint32());
      msg.setOp(value);
      break;
    case 3:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setValue(value);
      break;
    case 4:
      var value = /** @type {string} */ (reader.readString());
      msg.addAlgorithms(value);
      break;
    case 5:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
      for (var i = 0; i < values.length; i++) {
        msg.addFailedNodes(values[i]);
      }
      break;
    case 6:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
      for (var i = 0; i < values.length; i++) {
        msg.addFailedValues(values[i]);
      }
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.Messages.Rule} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Rule.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getPk();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getOp();
  if (f !== 0) {
    writer.writeUint32(
      2,
      f
    );
  }
  f = message.getValue();
  if (f !== 0.0) {
    writer.writeDouble(
      3,
      f
    );
  }
  f = message.getAlgorithmsList();
  if (f.length > 0) {
    writer.writeRepeatedString(
      4,
      f
    );
  }
  f = message.getFailedNodesList();
  if (f.length > 0) {
    writer.writePackedUint32(
      5,
      f
    );
  }
  f = message.getFailedValuesList();
  if (f.length > 0) {
    writer.writePackedDouble(
      6,
      f
    );
  }
};


/**
 * optional string pk = 1;
 * @return {string}
 */
proto.Messages.Rule.prototype.getPk = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.Rule} returns this
 */
proto.Messages.Rule.prototype.setPk = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * optional uint32 op = 2;
 * @return {number}
 */
proto.Messages.Rule.prototype.getOp = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.Rule} returns this
 */
proto.Messages.Rule.prototype.setOp = function(value) {
  return jspb.Message.setProto3IntField(this, 2, value);
};


/**
 * optional double value = 3;
 * @return {number}
 */
proto.Messages.Rule.prototype.getValue = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.Rule} returns this
 */
proto.Messages.Rule.prototype.setValue = function(value) {
  return jspb.Message.setProto3FloatField(this, 3, value);
};


/**
 * repeated string algorithms = 4;
 * @return {!Array<string>}
 */
proto.Messages.Rule.prototype.getAlgorithmsList = function() {
  return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
};


/**
 * @param {!Array<string>} value
 * @return {!proto.Messages.Rule} returns this
 */
proto.Messages.Rule.prototype.setAlgorithmsList = function(value) {
  return jspb.Message.setField(this, 4, value || []);
};


/**
 * @param {string} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Rule} returns this
 */
proto.Messages.Rule.prototype.addAlgorithms = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Rule} returns this
 */
proto.Messages.Rule.prototype.clearAlgorithmsList = function() {
  return this.setAlgorithmsList([]);
};


/**
 * repeated uint32 failed_nodes = 5;
 * @return {!Array<number>}
 */
proto.Messages.Rule.prototype.getFailedNodesList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 5));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Rule} returns this
 */
proto.Messages.Rule.prototype.setFailedNodesList = function(value) {
  return jspb.Message.setField(this, 5, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Rule} returns this
 */
proto.Messages.Rule.prototype.addFailedNodes = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Rule} returns this
 */
proto.Messages.Rule.prototype.clearFailedNodesList = function() {
  return this.setFailedNodesList([]);
};


/**
 * repeated double failed_values = 6;
 * @return {!Array<number>}
 */
proto.Messages.Rule.prototype.getFailedValuesList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 6));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Rule} returns this
 */
proto.Messages.Rule.prototype.setFailedValuesList = function(value) {
  return jspb.Message.setField(this, 6, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Rule} returns this
 */
proto.Messages.Rule.prototype.addFailedValues = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Rule} returns this
 */
proto.Messages.Rule.prototype.clearFailedValuesList = function() {
  return this.setFailedValuesList([]);
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.Messages.Record64.repeatedFields_ = [9,10,11];



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.Messages.Record64.prototype.toObject = function(opt_includeInstance) {
  return proto.Messages.Record64.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.Messages.Record64} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Record64.toObject = function(includeInstance, msg) {
  var f, obj = {
    name: jspb.Message.getFieldWithDefault(msg, 1, ""),
    owner: jspb.Message.getFieldWithDefault(msg, 2, ""),
    revision: (f = msg.getRevision()) && proto.Messages.Revision.toObject(includeInstance, f),
    lengthUnits: jspb.Message.getFieldWithDefault(msg, 8, 0),
    requirementsList: jspb.Message.toObjectList(msg.getRequirementsList(),
    proto.Messages.Rule.toObject, includeInstance),
    dataList: jspb.Message.toObjectList(msg.getDataList(),
    proto.Messages.Vector64.toObject, includeInstance),
    matrixList: jspb.Message.toObjectList(msg.getMatrixList(),
    proto.Messages.SparseMatrix.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.Messages.Record64}
 */
proto.Messages.Record64.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.Messages.Record64;
  return proto.Messages.Record64.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.Messages.Record64} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.Messages.Record64}
 */
proto.Messages.Record64.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.setName(value);
      break;
    case 2:
      var value = /** @type {string} */ (reader.readString());
      msg.setOwner(value);
      break;
    case 3:
      var value = new proto.Messages.Revision;
      reader.readMessage(value,proto.Messages.Revision.deserializeBinaryFromReader);
      msg.setRevision(value);
      break;
    case 8:
      var value = /** @type {number} */ (reader.readUint32());
      msg.setLengthUnits(value);
      break;
    case 9:
      var value = new proto.Messages.Rule;
      reader.readMessage(value,proto.Messages.Rule.deserializeBinaryFromReader);
      msg.addRequirements(value);
      break;
    case 10:
      var value = new proto.Messages.Vector64;
      reader.readMessage(value,proto.Messages.Vector64.deserializeBinaryFromReader);
      msg.addData(value);
      break;
    case 11:
      var value = new proto.Messages.SparseMatrix;
      reader.readMessage(value,proto.Messages.SparseMatrix.deserializeBinaryFromReader);
      msg.addMatrix(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.Messages.Record64} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Record64.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getName();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getOwner();
  if (f.length > 0) {
    writer.writeString(
      2,
      f
    );
  }
  f = message.getRevision();
  if (f != null) {
    writer.writeMessage(
      3,
      f,
      proto.Messages.Revision.serializeBinaryToWriter
    );
  }
  f = message.getLengthUnits();
  if (f !== 0) {
    writer.writeUint32(
      8,
      f
    );
  }
  f = message.getRequirementsList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      9,
      f,
      proto.Messages.Rule.serializeBinaryToWriter
    );
  }
  f = message.getDataList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      10,
      f,
      proto.Messages.Vector64.serializeBinaryToWriter
    );
  }
  f = message.getMatrixList();
  if (f.length > 0) {
    writer.writeRepeatedMessage(
      11,
      f,
      proto.Messages.SparseMatrix.serializeBinaryToWriter
    );
  }
};


/**
 * optional string name = 1;
 * @return {string}
 */
proto.Messages.Record64.prototype.getName = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.Record64} returns this
 */
proto.Messages.Record64.prototype.setName = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * optional string owner = 2;
 * @return {string}
 */
proto.Messages.Record64.prototype.getOwner = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.Record64} returns this
 */
proto.Messages.Record64.prototype.setOwner = function(value) {
  return jspb.Message.setProto3StringField(this, 2, value);
};


/**
 * optional Revision revision = 3;
 * @return {?proto.Messages.Revision}
 */
proto.Messages.Record64.prototype.getRevision = function() {
  return /** @type{?proto.Messages.Revision} */ (
    jspb.Message.getWrapperField(this, proto.Messages.Revision, 3));
};


/**
 * @param {?proto.Messages.Revision|undefined} value
 * @return {!proto.Messages.Record64} returns this
*/
proto.Messages.Record64.prototype.setRevision = function(value) {
  return jspb.Message.setWrapperField(this, 3, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.Messages.Record64} returns this
 */
proto.Messages.Record64.prototype.clearRevision = function() {
  return this.setRevision(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.Messages.Record64.prototype.hasRevision = function() {
  return jspb.Message.getField(this, 3) != null;
};


/**
 * optional uint32 length_units = 8;
 * @return {number}
 */
proto.Messages.Record64.prototype.getLengthUnits = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.Record64} returns this
 */
proto.Messages.Record64.prototype.setLengthUnits = function(value) {
  return jspb.Message.setProto3IntField(this, 8, value);
};


/**
 * repeated Rule requirements = 9;
 * @return {!Array<!proto.Messages.Rule>}
 */
proto.Messages.Record64.prototype.getRequirementsList = function() {
  return /** @type{!Array<!proto.Messages.Rule>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.Messages.Rule, 9));
};


/**
 * @param {!Array<!proto.Messages.Rule>} value
 * @return {!proto.Messages.Record64} returns this
*/
proto.Messages.Record64.prototype.setRequirementsList = function(value) {
  return jspb.Message.setRepeatedWrapperField(this, 9, value);
};


/**
 * @param {!proto.Messages.Rule=} opt_value
 * @param {number=} opt_index
 * @return {!proto.Messages.Rule}
 */
proto.Messages.Record64.prototype.addRequirements = function(opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.Messages.Rule, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Record64} returns this
 */
proto.Messages.Record64.prototype.clearRequirementsList = function() {
  return this.setRequirementsList([]);
};


/**
 * repeated Vector64 data = 10;
 * @return {!Array<!proto.Messages.Vector64>}
 */
proto.Messages.Record64.prototype.getDataList = function() {
  return /** @type{!Array<!proto.Messages.Vector64>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.Messages.Vector64, 10));
};


/**
 * @param {!Array<!proto.Messages.Vector64>} value
 * @return {!proto.Messages.Record64} returns this
*/
proto.Messages.Record64.prototype.setDataList = function(value) {
  return jspb.Message.setRepeatedWrapperField(this, 10, value);
};


/**
 * @param {!proto.Messages.Vector64=} opt_value
 * @param {number=} opt_index
 * @return {!proto.Messages.Vector64}
 */
proto.Messages.Record64.prototype.addData = function(opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.Messages.Vector64, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Record64} returns this
 */
proto.Messages.Record64.prototype.clearDataList = function() {
  return this.setDataList([]);
};


/**
 * repeated SparseMatrix matrix = 11;
 * @return {!Array<!proto.Messages.SparseMatrix>}
 */
proto.Messages.Record64.prototype.getMatrixList = function() {
  return /** @type{!Array<!proto.Messages.SparseMatrix>} */ (
    jspb.Message.getRepeatedWrapperField(this, proto.Messages.SparseMatrix, 11));
};


/**
 * @param {!Array<!proto.Messages.SparseMatrix>} value
 * @return {!proto.Messages.Record64} returns this
*/
proto.Messages.Record64.prototype.setMatrixList = function(value) {
  return jspb.Message.setRepeatedWrapperField(this, 11, value);
};


/**
 * @param {!proto.Messages.SparseMatrix=} opt_value
 * @param {number=} opt_index
 * @return {!proto.Messages.SparseMatrix}
 */
proto.Messages.Record64.prototype.addMatrix = function(opt_value, opt_index) {
  return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.Messages.SparseMatrix, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Record64} returns this
 */
proto.Messages.Record64.prototype.clearMatrixList = function() {
  return this.setMatrixList([]);
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.Messages.UIndices.repeatedFields_ = [10];



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.Messages.UIndices.prototype.toObject = function(opt_includeInstance) {
  return proto.Messages.UIndices.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.Messages.UIndices} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.UIndices.toObject = function(includeInstance, msg) {
  var f, obj = {
    name: jspb.Message.getFieldWithDefault(msg, 1, ""),
    components: jspb.Message.getFieldWithDefault(msg, 2, 0),
    interleaved: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
    revision: (f = msg.getRevision()) && proto.Messages.Revision.toObject(includeInstance, f),
    offset: jspb.Message.getFieldWithDefault(msg, 9, 0),
    valuesList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : 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.Messages.UIndices}
 */
proto.Messages.UIndices.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.Messages.UIndices;
  return proto.Messages.UIndices.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.Messages.UIndices} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.Messages.UIndices}
 */
proto.Messages.UIndices.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.setName(value);
      break;
    case 2:
      var value = /** @type {number} */ (reader.readUint32());
      msg.setComponents(value);
      break;
    case 3:
      var value = /** @type {boolean} */ (reader.readBool());
      msg.setInterleaved(value);
      break;
    case 4:
      var value = new proto.Messages.Revision;
      reader.readMessage(value,proto.Messages.Revision.deserializeBinaryFromReader);
      msg.setRevision(value);
      break;
    case 9:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setOffset(value);
      break;
    case 10:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
      for (var i = 0; i < values.length; i++) {
        msg.addValues(values[i]);
      }
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.Messages.UIndices} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.UIndices.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getName();
  if (f.length > 0) {
    writer.writeString(
      1,
      f
    );
  }
  f = message.getComponents();
  if (f !== 0) {
    writer.writeUint32(
      2,
      f
    );
  }
  f = message.getInterleaved();
  if (f) {
    writer.writeBool(
      3,
      f
    );
  }
  f = message.getRevision();
  if (f != null) {
    writer.writeMessage(
      4,
      f,
      proto.Messages.Revision.serializeBinaryToWriter
    );
  }
  f = message.getOffset();
  if (f !== 0) {
    writer.writeUint64(
      9,
      f
    );
  }
  f = message.getValuesList();
  if (f.length > 0) {
    writer.writePackedUint32(
      10,
      f
    );
  }
};


/**
 * optional string name = 1;
 * @return {string}
 */
proto.Messages.UIndices.prototype.getName = function() {
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};


/**
 * @param {string} value
 * @return {!proto.Messages.UIndices} returns this
 */
proto.Messages.UIndices.prototype.setName = function(value) {
  return jspb.Message.setProto3StringField(this, 1, value);
};


/**
 * optional uint32 components = 2;
 * @return {number}
 */
proto.Messages.UIndices.prototype.getComponents = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.UIndices} returns this
 */
proto.Messages.UIndices.prototype.setComponents = function(value) {
  return jspb.Message.setProto3IntField(this, 2, value);
};


/**
 * optional bool interleaved = 3;
 * @return {boolean}
 */
proto.Messages.UIndices.prototype.getInterleaved = function() {
  return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};


/**
 * @param {boolean} value
 * @return {!proto.Messages.UIndices} returns this
 */
proto.Messages.UIndices.prototype.setInterleaved = function(value) {
  return jspb.Message.setProto3BooleanField(this, 3, value);
};


/**
 * optional Revision revision = 4;
 * @return {?proto.Messages.Revision}
 */
proto.Messages.UIndices.prototype.getRevision = function() {
  return /** @type{?proto.Messages.Revision} */ (
    jspb.Message.getWrapperField(this, proto.Messages.Revision, 4));
};


/**
 * @param {?proto.Messages.Revision|undefined} value
 * @return {!proto.Messages.UIndices} returns this
*/
proto.Messages.UIndices.prototype.setRevision = function(value) {
  return jspb.Message.setWrapperField(this, 4, value);
};


/**
 * Clears the message field making it undefined.
 * @return {!proto.Messages.UIndices} returns this
 */
proto.Messages.UIndices.prototype.clearRevision = function() {
  return this.setRevision(undefined);
};


/**
 * Returns whether this field is set.
 * @return {boolean}
 */
proto.Messages.UIndices.prototype.hasRevision = function() {
  return jspb.Message.getField(this, 4) != null;
};


/**
 * optional uint64 offset = 9;
 * @return {number}
 */
proto.Messages.UIndices.prototype.getOffset = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};


/**
 * @param {number} value
 * @return {!proto.Messages.UIndices} returns this
 */
proto.Messages.UIndices.prototype.setOffset = function(value) {
  return jspb.Message.setProto3IntField(this, 9, value);
};


/**
 * repeated uint32 values = 10;
 * @return {!Array<number>}
 */
proto.Messages.UIndices.prototype.getValuesList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 10));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.UIndices} returns this
 */
proto.Messages.UIndices.prototype.setValuesList = function(value) {
  return jspb.Message.setField(this, 10, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.UIndices} returns this
 */
proto.Messages.UIndices.prototype.addValues = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.UIndices} returns this
 */
proto.Messages.UIndices.prototype.clearValuesList = function() {
  return this.setValuesList([]);
};



/**
 * List of repeated fields within this message type.
 * @private {!Array<number>}
 * @const
 */
proto.Messages.Elements.repeatedFields_ = [1,2,3,4,10,11];



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.Messages.Elements.prototype.toObject = function(opt_includeInstance) {
  return proto.Messages.Elements.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.Messages.Elements} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Elements.toObject = function(includeInstance, msg) {
  var f, obj = {
    elementIndicesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
    elementTypesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
    elementIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
    nodeIndicesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
    elementCentersList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 10)) == null ? undefined : f,
    elementMeasuresList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 11)) == null ? undefined : 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.Messages.Elements}
 */
proto.Messages.Elements.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.Messages.Elements;
  return proto.Messages.Elements.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.Messages.Elements} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.Messages.Elements}
 */
proto.Messages.Elements.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
      for (var i = 0; i < values.length; i++) {
        msg.addElementIndices(values[i]);
      }
      break;
    case 2:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
      for (var i = 0; i < values.length; i++) {
        msg.addElementTypes(values[i]);
      }
      break;
    case 3:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
      for (var i = 0; i < values.length; i++) {
        msg.addElementIds(values[i]);
      }
      break;
    case 4:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
      for (var i = 0; i < values.length; i++) {
        msg.addNodeIndices(values[i]);
      }
      break;
    case 10:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
      for (var i = 0; i < values.length; i++) {
        msg.addElementCenters(values[i]);
      }
      break;
    case 11:
      var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedDouble() : [reader.readDouble()]);
      for (var i = 0; i < values.length; i++) {
        msg.addElementMeasures(values[i]);
      }
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.Messages.Elements} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Messages.Elements.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getElementIndicesList();
  if (f.length > 0) {
    writer.writePackedUint32(
      1,
      f
    );
  }
  f = message.getElementTypesList();
  if (f.length > 0) {
    writer.writePackedUint32(
      2,
      f
    );
  }
  f = message.getElementIdsList();
  if (f.length > 0) {
    writer.writePackedInt32(
      3,
      f
    );
  }
  f = message.getNodeIndicesList();
  if (f.length > 0) {
    writer.writePackedUint32(
      4,
      f
    );
  }
  f = message.getElementCentersList();
  if (f.length > 0) {
    writer.writePackedDouble(
      10,
      f
    );
  }
  f = message.getElementMeasuresList();
  if (f.length > 0) {
    writer.writePackedDouble(
      11,
      f
    );
  }
};


/**
 * repeated uint32 element_indices = 1;
 * @return {!Array<number>}
 */
proto.Messages.Elements.prototype.getElementIndicesList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.setElementIndicesList = function(value) {
  return jspb.Message.setField(this, 1, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.addElementIndices = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.clearElementIndicesList = function() {
  return this.setElementIndicesList([]);
};


/**
 * repeated uint32 element_types = 2;
 * @return {!Array<number>}
 */
proto.Messages.Elements.prototype.getElementTypesList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.setElementTypesList = function(value) {
  return jspb.Message.setField(this, 2, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.addElementTypes = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.clearElementTypesList = function() {
  return this.setElementTypesList([]);
};


/**
 * repeated int32 element_ids = 3;
 * @return {!Array<number>}
 */
proto.Messages.Elements.prototype.getElementIdsList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.setElementIdsList = function(value) {
  return jspb.Message.setField(this, 3, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.addElementIds = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.clearElementIdsList = function() {
  return this.setElementIdsList([]);
};


/**
 * repeated uint32 node_indices = 4;
 * @return {!Array<number>}
 */
proto.Messages.Elements.prototype.getNodeIndicesList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.setNodeIndicesList = function(value) {
  return jspb.Message.setField(this, 4, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.addNodeIndices = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.clearNodeIndicesList = function() {
  return this.setNodeIndicesList([]);
};


/**
 * repeated double element_centers = 10;
 * @return {!Array<number>}
 */
proto.Messages.Elements.prototype.getElementCentersList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 10));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.setElementCentersList = function(value) {
  return jspb.Message.setField(this, 10, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.addElementCenters = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.clearElementCentersList = function() {
  return this.setElementCentersList([]);
};


/**
 * repeated double element_measures = 11;
 * @return {!Array<number>}
 */
proto.Messages.Elements.prototype.getElementMeasuresList = function() {
  return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 11));
};


/**
 * @param {!Array<number>} value
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.setElementMeasuresList = function(value) {
  return jspb.Message.setField(this, 11, value || []);
};


/**
 * @param {number} value
 * @param {number=} opt_index
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.addElementMeasures = function(value, opt_index) {
  return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
};


/**
 * Clears the list making it empty but non-null.
 * @return {!proto.Messages.Elements} returns this
 */
proto.Messages.Elements.prototype.clearElementMeasuresList = function() {
  return this.setElementMeasuresList([]);
};


goog.object.extend(exports, proto.Messages);
