/* eslint-disable */

/**
 * @fileoverview
 * @enhanceable
 * @suppress {messageConventions} JS Compiler reports an error if a variable or
 *     field starts with 'MSG_' and isn't a translatable message.
 * @public
 */
// GENERATED CODE -- DO NOT EDIT!

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

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



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.Transform.prototype.toObject = function(opt_includeInstance) {
  return proto.Transform.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.Transform} msg The msg instance to transform.
 * @return {!Object}
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Transform.toObject = function(includeInstance, msg) {
  var f, obj = {
    r11: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
    r12: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
    r13: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
    r21: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
    r22: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
    r23: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
    r31: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
    r32: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
    r33: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
    tx: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
    ty: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
    tz: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
    closure: jspb.Message.getFieldWithDefault(msg, 13, 0),
    index: jspb.Message.getFieldWithDefault(msg, 14, 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.Transform}
 */
proto.Transform.deserializeBinary = function(bytes) {
  var reader = new jspb.BinaryReader(bytes);
  var msg = new proto.Transform;
  return proto.Transform.deserializeBinaryFromReader(msg, reader);
};


/**
 * Deserializes binary data (in protobuf wire format) from the
 * given reader into the given message object.
 * @param {!proto.Transform} msg The message object to deserialize into.
 * @param {!jspb.BinaryReader} reader The BinaryReader to use.
 * @return {!proto.Transform}
 */
proto.Transform.deserializeBinaryFromReader = function(msg, reader) {
  while (reader.nextField()) {
    if (reader.isEndGroup()) {
      break;
    }
    var field = reader.getFieldNumber();
    switch (field) {
    case 1:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setR11(value);
      break;
    case 2:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setR12(value);
      break;
    case 3:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setR13(value);
      break;
    case 4:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setR21(value);
      break;
    case 5:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setR22(value);
      break;
    case 6:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setR23(value);
      break;
    case 7:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setR31(value);
      break;
    case 8:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setR32(value);
      break;
    case 9:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setR33(value);
      break;
    case 10:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setTx(value);
      break;
    case 11:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setTy(value);
      break;
    case 12:
      var value = /** @type {number} */ (reader.readDouble());
      msg.setTz(value);
      break;
    case 13:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setClosure(value);
      break;
    case 14:
      var value = /** @type {number} */ (reader.readUint64());
      msg.setIndex(value);
      break;
    default:
      reader.skipField();
      break;
    }
  }
  return msg;
};


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


/**
 * Serializes the given message to binary data (in protobuf wire
 * format), writing to the given BinaryWriter.
 * @param {!proto.Transform} message
 * @param {!jspb.BinaryWriter} writer
 * @suppress {unusedLocalVariables} f is only used for nested messages
 */
proto.Transform.serializeBinaryToWriter = function(message, writer) {
  var f = undefined;
  f = message.getR11();
  if (f !== 0.0) {
    writer.writeDouble(
      1,
      f
    );
  }
  f = message.getR12();
  if (f !== 0.0) {
    writer.writeDouble(
      2,
      f
    );
  }
  f = message.getR13();
  if (f !== 0.0) {
    writer.writeDouble(
      3,
      f
    );
  }
  f = message.getR21();
  if (f !== 0.0) {
    writer.writeDouble(
      4,
      f
    );
  }
  f = message.getR22();
  if (f !== 0.0) {
    writer.writeDouble(
      5,
      f
    );
  }
  f = message.getR23();
  if (f !== 0.0) {
    writer.writeDouble(
      6,
      f
    );
  }
  f = message.getR31();
  if (f !== 0.0) {
    writer.writeDouble(
      7,
      f
    );
  }
  f = message.getR32();
  if (f !== 0.0) {
    writer.writeDouble(
      8,
      f
    );
  }
  f = message.getR33();
  if (f !== 0.0) {
    writer.writeDouble(
      9,
      f
    );
  }
  f = message.getTx();
  if (f !== 0.0) {
    writer.writeDouble(
      10,
      f
    );
  }
  f = message.getTy();
  if (f !== 0.0) {
    writer.writeDouble(
      11,
      f
    );
  }
  f = message.getTz();
  if (f !== 0.0) {
    writer.writeDouble(
      12,
      f
    );
  }
  f = message.getClosure();
  if (f !== 0) {
    writer.writeUint64(
      13,
      f
    );
  }
  f = message.getIndex();
  if (f !== 0) {
    writer.writeUint64(
      14,
      f
    );
  }
};


/**
 * optional double r11 = 1;
 * @return {number}
 */
proto.Transform.prototype.getR11 = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setR11 = function(value) {
  return jspb.Message.setProto3FloatField(this, 1, value);
};


/**
 * optional double r12 = 2;
 * @return {number}
 */
proto.Transform.prototype.getR12 = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setR12 = function(value) {
  return jspb.Message.setProto3FloatField(this, 2, value);
};


/**
 * optional double r13 = 3;
 * @return {number}
 */
proto.Transform.prototype.getR13 = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
};


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


/**
 * optional double r21 = 4;
 * @return {number}
 */
proto.Transform.prototype.getR21 = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setR21 = function(value) {
  return jspb.Message.setProto3FloatField(this, 4, value);
};


/**
 * optional double r22 = 5;
 * @return {number}
 */
proto.Transform.prototype.getR22 = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setR22 = function(value) {
  return jspb.Message.setProto3FloatField(this, 5, value);
};


/**
 * optional double r23 = 6;
 * @return {number}
 */
proto.Transform.prototype.getR23 = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setR23 = function(value) {
  return jspb.Message.setProto3FloatField(this, 6, value);
};


/**
 * optional double r31 = 7;
 * @return {number}
 */
proto.Transform.prototype.getR31 = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setR31 = function(value) {
  return jspb.Message.setProto3FloatField(this, 7, value);
};


/**
 * optional double r32 = 8;
 * @return {number}
 */
proto.Transform.prototype.getR32 = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setR32 = function(value) {
  return jspb.Message.setProto3FloatField(this, 8, value);
};


/**
 * optional double r33 = 9;
 * @return {number}
 */
proto.Transform.prototype.getR33 = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setR33 = function(value) {
  return jspb.Message.setProto3FloatField(this, 9, value);
};


/**
 * optional double tx = 10;
 * @return {number}
 */
proto.Transform.prototype.getTx = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setTx = function(value) {
  return jspb.Message.setProto3FloatField(this, 10, value);
};


/**
 * optional double ty = 11;
 * @return {number}
 */
proto.Transform.prototype.getTy = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setTy = function(value) {
  return jspb.Message.setProto3FloatField(this, 11, value);
};


/**
 * optional double tz = 12;
 * @return {number}
 */
proto.Transform.prototype.getTz = function() {
  return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setTz = function(value) {
  return jspb.Message.setProto3FloatField(this, 12, value);
};


/**
 * optional uint64 closure = 13;
 * @return {number}
 */
proto.Transform.prototype.getClosure = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setClosure = function(value) {
  return jspb.Message.setProto3IntField(this, 13, value);
};


/**
 * optional uint64 index = 14;
 * @return {number}
 */
proto.Transform.prototype.getIndex = function() {
  return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
};


/**
 * @param {number} value
 * @return {!proto.Transform} returns this
 */
proto.Transform.prototype.setIndex = function(value) {
  return jspb.Message.setProto3IntField(this, 14, value);
};


goog.object.extend(exports, proto);
