| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558 |
- /* 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);
|