UNPKG

spot-sdk-js

Version:

Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.

1,566 lines (1,358 loc) 84.8 kB
// source: bosdyn/api/trajectory.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')(); var bosdyn_api_geometry_pb = require('../../bosdyn/api/geometry_pb.js'); goog.object.extend(proto, bosdyn_api_geometry_pb); var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); goog.object.extend(proto, google_protobuf_duration_pb); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); goog.object.extend(proto, google_protobuf_wrappers_pb); goog.exportSymbol('proto.bosdyn.api.AngularInterpolation', null, global); goog.exportSymbol('proto.bosdyn.api.PositionalInterpolation', null, global); goog.exportSymbol('proto.bosdyn.api.SE2Trajectory', null, global); goog.exportSymbol('proto.bosdyn.api.SE2TrajectoryPoint', null, global); goog.exportSymbol('proto.bosdyn.api.SE3Trajectory', null, global); goog.exportSymbol('proto.bosdyn.api.SE3TrajectoryPoint', null, global); goog.exportSymbol('proto.bosdyn.api.ScalarTrajectory', null, global); goog.exportSymbol('proto.bosdyn.api.ScalarTrajectoryPoint', null, global); goog.exportSymbol('proto.bosdyn.api.Vec3Trajectory', null, global); goog.exportSymbol('proto.bosdyn.api.Vec3TrajectoryPoint', null, global); goog.exportSymbol('proto.bosdyn.api.WrenchTrajectory', null, global); goog.exportSymbol('proto.bosdyn.api.WrenchTrajectoryPoint', 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.bosdyn.api.SE2Trajectory = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.SE2Trajectory.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.SE2Trajectory, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.SE2Trajectory.displayName = 'proto.bosdyn.api.SE2Trajectory'; } /** * 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.bosdyn.api.SE2TrajectoryPoint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.SE2TrajectoryPoint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.SE2TrajectoryPoint.displayName = 'proto.bosdyn.api.SE2TrajectoryPoint'; } /** * 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.bosdyn.api.SE3Trajectory = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.SE3Trajectory.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.SE3Trajectory, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.SE3Trajectory.displayName = 'proto.bosdyn.api.SE3Trajectory'; } /** * 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.bosdyn.api.SE3TrajectoryPoint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.SE3TrajectoryPoint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.SE3TrajectoryPoint.displayName = 'proto.bosdyn.api.SE3TrajectoryPoint'; } /** * 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.bosdyn.api.Vec3Trajectory = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.Vec3Trajectory.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.Vec3Trajectory, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.Vec3Trajectory.displayName = 'proto.bosdyn.api.Vec3Trajectory'; } /** * 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.bosdyn.api.Vec3TrajectoryPoint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.Vec3TrajectoryPoint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.Vec3TrajectoryPoint.displayName = 'proto.bosdyn.api.Vec3TrajectoryPoint'; } /** * 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.bosdyn.api.WrenchTrajectory = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.WrenchTrajectory.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.WrenchTrajectory, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.WrenchTrajectory.displayName = 'proto.bosdyn.api.WrenchTrajectory'; } /** * 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.bosdyn.api.WrenchTrajectoryPoint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.WrenchTrajectoryPoint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.WrenchTrajectoryPoint.displayName = 'proto.bosdyn.api.WrenchTrajectoryPoint'; } /** * 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.bosdyn.api.ScalarTrajectory = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.ScalarTrajectory.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.ScalarTrajectory, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ScalarTrajectory.displayName = 'proto.bosdyn.api.ScalarTrajectory'; } /** * 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.bosdyn.api.ScalarTrajectoryPoint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.ScalarTrajectoryPoint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.ScalarTrajectoryPoint.displayName = 'proto.bosdyn.api.ScalarTrajectoryPoint'; } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.bosdyn.api.SE2Trajectory.repeatedFields_ = [1]; 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.bosdyn.api.SE2Trajectory.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.SE2Trajectory.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.bosdyn.api.SE2Trajectory} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.SE2Trajectory.toObject = function(includeInstance, msg) { var f, obj = { pointsList: jspb.Message.toObjectList(msg.getPointsList(), proto.bosdyn.api.SE2TrajectoryPoint.toObject, includeInstance), referenceTime: (f = msg.getReferenceTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), interpolation: jspb.Message.getFieldWithDefault(msg, 4, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bosdyn.api.SE2Trajectory} */ proto.bosdyn.api.SE2Trajectory.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.SE2Trajectory; return proto.bosdyn.api.SE2Trajectory.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.SE2Trajectory} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.SE2Trajectory} */ proto.bosdyn.api.SE2Trajectory.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.bosdyn.api.SE2TrajectoryPoint; reader.readMessage(value,proto.bosdyn.api.SE2TrajectoryPoint.deserializeBinaryFromReader); msg.addPoints(value); break; case 3: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setReferenceTime(value); break; case 4: var value = /** @type {!proto.bosdyn.api.PositionalInterpolation} */ (reader.readEnum()); msg.setInterpolation(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.SE2Trajectory.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.SE2Trajectory.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.bosdyn.api.SE2Trajectory} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.SE2Trajectory.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPointsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.bosdyn.api.SE2TrajectoryPoint.serializeBinaryToWriter ); } f = message.getReferenceTime(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getInterpolation(); if (f !== 0.0) { writer.writeEnum( 4, f ); } }; /** * repeated SE2TrajectoryPoint points = 1; * @return {!Array<!proto.bosdyn.api.SE2TrajectoryPoint>} */ proto.bosdyn.api.SE2Trajectory.prototype.getPointsList = function() { return /** @type{!Array<!proto.bosdyn.api.SE2TrajectoryPoint>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.SE2TrajectoryPoint, 1)); }; /** * @param {!Array<!proto.bosdyn.api.SE2TrajectoryPoint>} value * @return {!proto.bosdyn.api.SE2Trajectory} returns this */ proto.bosdyn.api.SE2Trajectory.prototype.setPointsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.bosdyn.api.SE2TrajectoryPoint=} opt_value * @param {number=} opt_index * @return {!proto.bosdyn.api.SE2TrajectoryPoint} */ proto.bosdyn.api.SE2Trajectory.prototype.addPoints = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bosdyn.api.SE2TrajectoryPoint, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.bosdyn.api.SE2Trajectory} returns this */ proto.bosdyn.api.SE2Trajectory.prototype.clearPointsList = function() { return this.setPointsList([]); }; /** * optional google.protobuf.Timestamp reference_time = 3; * @return {?proto.google.protobuf.Timestamp} */ proto.bosdyn.api.SE2Trajectory.prototype.getReferenceTime = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.bosdyn.api.SE2Trajectory} returns this */ proto.bosdyn.api.SE2Trajectory.prototype.setReferenceTime = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.SE2Trajectory} returns this */ proto.bosdyn.api.SE2Trajectory.prototype.clearReferenceTime = function() { return this.setReferenceTime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.SE2Trajectory.prototype.hasReferenceTime = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional PositionalInterpolation interpolation = 4; * @return {!proto.bosdyn.api.PositionalInterpolation} */ proto.bosdyn.api.SE2Trajectory.prototype.getInterpolation = function() { return /** @type {!proto.bosdyn.api.PositionalInterpolation} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {!proto.bosdyn.api.PositionalInterpolation} value * @return {!proto.bosdyn.api.SE2Trajectory} returns this */ proto.bosdyn.api.SE2Trajectory.prototype.setInterpolation = function(value) { return jspb.Message.setProto3EnumField(this, 4, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.bosdyn.api.SE2TrajectoryPoint.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.SE2TrajectoryPoint.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.bosdyn.api.SE2TrajectoryPoint} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.SE2TrajectoryPoint.toObject = function(includeInstance, msg) { var f, obj = { pose: (f = msg.getPose()) && bosdyn_api_geometry_pb.SE2Pose.toObject(includeInstance, f), timeSinceReference: (f = msg.getTimeSinceReference()) && google_protobuf_duration_pb.Duration.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.bosdyn.api.SE2TrajectoryPoint} */ proto.bosdyn.api.SE2TrajectoryPoint.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.SE2TrajectoryPoint; return proto.bosdyn.api.SE2TrajectoryPoint.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.SE2TrajectoryPoint} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.SE2TrajectoryPoint} */ proto.bosdyn.api.SE2TrajectoryPoint.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new bosdyn_api_geometry_pb.SE2Pose; reader.readMessage(value,bosdyn_api_geometry_pb.SE2Pose.deserializeBinaryFromReader); msg.setPose(value); break; case 3: var value = new google_protobuf_duration_pb.Duration; reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); msg.setTimeSinceReference(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.SE2TrajectoryPoint.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.SE2TrajectoryPoint.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.bosdyn.api.SE2TrajectoryPoint} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.SE2TrajectoryPoint.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPose(); if (f != null) { writer.writeMessage( 1, f, bosdyn_api_geometry_pb.SE2Pose.serializeBinaryToWriter ); } f = message.getTimeSinceReference(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_duration_pb.Duration.serializeBinaryToWriter ); } }; /** * optional SE2Pose pose = 1; * @return {?proto.bosdyn.api.SE2Pose} */ proto.bosdyn.api.SE2TrajectoryPoint.prototype.getPose = function() { return /** @type{?proto.bosdyn.api.SE2Pose} */ ( jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.SE2Pose, 1)); }; /** * @param {?proto.bosdyn.api.SE2Pose|undefined} value * @return {!proto.bosdyn.api.SE2TrajectoryPoint} returns this */ proto.bosdyn.api.SE2TrajectoryPoint.prototype.setPose = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.SE2TrajectoryPoint} returns this */ proto.bosdyn.api.SE2TrajectoryPoint.prototype.clearPose = function() { return this.setPose(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.SE2TrajectoryPoint.prototype.hasPose = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional google.protobuf.Duration time_since_reference = 3; * @return {?proto.google.protobuf.Duration} */ proto.bosdyn.api.SE2TrajectoryPoint.prototype.getTimeSinceReference = function() { return /** @type{?proto.google.protobuf.Duration} */ ( jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3)); }; /** * @param {?proto.google.protobuf.Duration|undefined} value * @return {!proto.bosdyn.api.SE2TrajectoryPoint} returns this */ proto.bosdyn.api.SE2TrajectoryPoint.prototype.setTimeSinceReference = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.SE2TrajectoryPoint} returns this */ proto.bosdyn.api.SE2TrajectoryPoint.prototype.clearTimeSinceReference = function() { return this.setTimeSinceReference(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.SE2TrajectoryPoint.prototype.hasTimeSinceReference = function() { return jspb.Message.getField(this, 3) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.bosdyn.api.SE3Trajectory.repeatedFields_ = [1]; 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.bosdyn.api.SE3Trajectory.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.SE3Trajectory.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.bosdyn.api.SE3Trajectory} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.SE3Trajectory.toObject = function(includeInstance, msg) { var f, obj = { pointsList: jspb.Message.toObjectList(msg.getPointsList(), proto.bosdyn.api.SE3TrajectoryPoint.toObject, includeInstance), referenceTime: (f = msg.getReferenceTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), posInterpolation: jspb.Message.getFieldWithDefault(msg, 4, 0), angInterpolation: jspb.Message.getFieldWithDefault(msg, 5, 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.bosdyn.api.SE3Trajectory} */ proto.bosdyn.api.SE3Trajectory.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.SE3Trajectory; return proto.bosdyn.api.SE3Trajectory.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.SE3Trajectory} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.SE3Trajectory} */ proto.bosdyn.api.SE3Trajectory.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.bosdyn.api.SE3TrajectoryPoint; reader.readMessage(value,proto.bosdyn.api.SE3TrajectoryPoint.deserializeBinaryFromReader); msg.addPoints(value); break; case 3: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setReferenceTime(value); break; case 4: var value = /** @type {!proto.bosdyn.api.PositionalInterpolation} */ (reader.readEnum()); msg.setPosInterpolation(value); break; case 5: var value = /** @type {!proto.bosdyn.api.AngularInterpolation} */ (reader.readEnum()); msg.setAngInterpolation(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.SE3Trajectory.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.SE3Trajectory.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.bosdyn.api.SE3Trajectory} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.SE3Trajectory.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPointsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.bosdyn.api.SE3TrajectoryPoint.serializeBinaryToWriter ); } f = message.getReferenceTime(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getPosInterpolation(); if (f !== 0.0) { writer.writeEnum( 4, f ); } f = message.getAngInterpolation(); if (f !== 0.0) { writer.writeEnum( 5, f ); } }; /** * repeated SE3TrajectoryPoint points = 1; * @return {!Array<!proto.bosdyn.api.SE3TrajectoryPoint>} */ proto.bosdyn.api.SE3Trajectory.prototype.getPointsList = function() { return /** @type{!Array<!proto.bosdyn.api.SE3TrajectoryPoint>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.SE3TrajectoryPoint, 1)); }; /** * @param {!Array<!proto.bosdyn.api.SE3TrajectoryPoint>} value * @return {!proto.bosdyn.api.SE3Trajectory} returns this */ proto.bosdyn.api.SE3Trajectory.prototype.setPointsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.bosdyn.api.SE3TrajectoryPoint=} opt_value * @param {number=} opt_index * @return {!proto.bosdyn.api.SE3TrajectoryPoint} */ proto.bosdyn.api.SE3Trajectory.prototype.addPoints = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bosdyn.api.SE3TrajectoryPoint, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.bosdyn.api.SE3Trajectory} returns this */ proto.bosdyn.api.SE3Trajectory.prototype.clearPointsList = function() { return this.setPointsList([]); }; /** * optional google.protobuf.Timestamp reference_time = 3; * @return {?proto.google.protobuf.Timestamp} */ proto.bosdyn.api.SE3Trajectory.prototype.getReferenceTime = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.bosdyn.api.SE3Trajectory} returns this */ proto.bosdyn.api.SE3Trajectory.prototype.setReferenceTime = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.SE3Trajectory} returns this */ proto.bosdyn.api.SE3Trajectory.prototype.clearReferenceTime = function() { return this.setReferenceTime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.SE3Trajectory.prototype.hasReferenceTime = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional PositionalInterpolation pos_interpolation = 4; * @return {!proto.bosdyn.api.PositionalInterpolation} */ proto.bosdyn.api.SE3Trajectory.prototype.getPosInterpolation = function() { return /** @type {!proto.bosdyn.api.PositionalInterpolation} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {!proto.bosdyn.api.PositionalInterpolation} value * @return {!proto.bosdyn.api.SE3Trajectory} returns this */ proto.bosdyn.api.SE3Trajectory.prototype.setPosInterpolation = function(value) { return jspb.Message.setProto3EnumField(this, 4, value); }; /** * optional AngularInterpolation ang_interpolation = 5; * @return {!proto.bosdyn.api.AngularInterpolation} */ proto.bosdyn.api.SE3Trajectory.prototype.getAngInterpolation = function() { return /** @type {!proto.bosdyn.api.AngularInterpolation} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {!proto.bosdyn.api.AngularInterpolation} value * @return {!proto.bosdyn.api.SE3Trajectory} returns this */ proto.bosdyn.api.SE3Trajectory.prototype.setAngInterpolation = function(value) { return jspb.Message.setProto3EnumField(this, 5, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.SE3TrajectoryPoint.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.bosdyn.api.SE3TrajectoryPoint} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.SE3TrajectoryPoint.toObject = function(includeInstance, msg) { var f, obj = { pose: (f = msg.getPose()) && bosdyn_api_geometry_pb.SE3Pose.toObject(includeInstance, f), velocity: (f = msg.getVelocity()) && bosdyn_api_geometry_pb.SE3Velocity.toObject(includeInstance, f), timeSinceReference: (f = msg.getTimeSinceReference()) && google_protobuf_duration_pb.Duration.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.bosdyn.api.SE3TrajectoryPoint} */ proto.bosdyn.api.SE3TrajectoryPoint.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.SE3TrajectoryPoint; return proto.bosdyn.api.SE3TrajectoryPoint.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.SE3TrajectoryPoint} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.SE3TrajectoryPoint} */ proto.bosdyn.api.SE3TrajectoryPoint.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new bosdyn_api_geometry_pb.SE3Pose; reader.readMessage(value,bosdyn_api_geometry_pb.SE3Pose.deserializeBinaryFromReader); msg.setPose(value); break; case 2: var value = new bosdyn_api_geometry_pb.SE3Velocity; reader.readMessage(value,bosdyn_api_geometry_pb.SE3Velocity.deserializeBinaryFromReader); msg.setVelocity(value); break; case 3: var value = new google_protobuf_duration_pb.Duration; reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); msg.setTimeSinceReference(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.SE3TrajectoryPoint.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.bosdyn.api.SE3TrajectoryPoint} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.SE3TrajectoryPoint.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPose(); if (f != null) { writer.writeMessage( 1, f, bosdyn_api_geometry_pb.SE3Pose.serializeBinaryToWriter ); } f = message.getVelocity(); if (f != null) { writer.writeMessage( 2, f, bosdyn_api_geometry_pb.SE3Velocity.serializeBinaryToWriter ); } f = message.getTimeSinceReference(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_duration_pb.Duration.serializeBinaryToWriter ); } }; /** * optional SE3Pose pose = 1; * @return {?proto.bosdyn.api.SE3Pose} */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.getPose = function() { return /** @type{?proto.bosdyn.api.SE3Pose} */ ( jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.SE3Pose, 1)); }; /** * @param {?proto.bosdyn.api.SE3Pose|undefined} value * @return {!proto.bosdyn.api.SE3TrajectoryPoint} returns this */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.setPose = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.SE3TrajectoryPoint} returns this */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.clearPose = function() { return this.setPose(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.hasPose = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional SE3Velocity velocity = 2; * @return {?proto.bosdyn.api.SE3Velocity} */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.getVelocity = function() { return /** @type{?proto.bosdyn.api.SE3Velocity} */ ( jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.SE3Velocity, 2)); }; /** * @param {?proto.bosdyn.api.SE3Velocity|undefined} value * @return {!proto.bosdyn.api.SE3TrajectoryPoint} returns this */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.setVelocity = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.SE3TrajectoryPoint} returns this */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.clearVelocity = function() { return this.setVelocity(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.hasVelocity = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional google.protobuf.Duration time_since_reference = 3; * @return {?proto.google.protobuf.Duration} */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.getTimeSinceReference = function() { return /** @type{?proto.google.protobuf.Duration} */ ( jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 3)); }; /** * @param {?proto.google.protobuf.Duration|undefined} value * @return {!proto.bosdyn.api.SE3TrajectoryPoint} returns this */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.setTimeSinceReference = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.SE3TrajectoryPoint} returns this */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.clearTimeSinceReference = function() { return this.setTimeSinceReference(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.SE3TrajectoryPoint.prototype.hasTimeSinceReference = function() { return jspb.Message.getField(this, 3) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.bosdyn.api.Vec3Trajectory.repeatedFields_ = [1]; 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.bosdyn.api.Vec3Trajectory.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.Vec3Trajectory.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.bosdyn.api.Vec3Trajectory} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.Vec3Trajectory.toObject = function(includeInstance, msg) { var f, obj = { pointsList: jspb.Message.toObjectList(msg.getPointsList(), proto.bosdyn.api.Vec3TrajectoryPoint.toObject, includeInstance), referenceTime: (f = msg.getReferenceTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), posInterpolation: jspb.Message.getFieldWithDefault(msg, 4, 0), startingVelocity: (f = msg.getStartingVelocity()) && bosdyn_api_geometry_pb.Vec3.toObject(includeInstance, f), endingVelocity: (f = msg.getEndingVelocity()) && bosdyn_api_geometry_pb.Vec3.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.bosdyn.api.Vec3Trajectory} */ proto.bosdyn.api.Vec3Trajectory.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.Vec3Trajectory; return proto.bosdyn.api.Vec3Trajectory.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.Vec3Trajectory} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.Vec3Trajectory} */ proto.bosdyn.api.Vec3Trajectory.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.bosdyn.api.Vec3TrajectoryPoint; reader.readMessage(value,proto.bosdyn.api.Vec3TrajectoryPoint.deserializeBinaryFromReader); msg.addPoints(value); break; case 3: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setReferenceTime(value); break; case 4: var value = /** @type {!proto.bosdyn.api.PositionalInterpolation} */ (reader.readEnum()); msg.setPosInterpolation(value); break; case 5: var value = new bosdyn_api_geometry_pb.Vec3; reader.readMessage(value,bosdyn_api_geometry_pb.Vec3.deserializeBinaryFromReader); msg.setStartingVelocity(value); break; case 6: var value = new bosdyn_api_geometry_pb.Vec3; reader.readMessage(value,bosdyn_api_geometry_pb.Vec3.deserializeBinaryFromReader); msg.setEndingVelocity(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.Vec3Trajectory.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.Vec3Trajectory.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.bosdyn.api.Vec3Trajectory} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.Vec3Trajectory.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getPointsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.bosdyn.api.Vec3TrajectoryPoint.serializeBinaryToWriter ); } f = message.getReferenceTime(); if (f != null) { writer.writeMessage( 3, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getPosInterpolation(); if (f !== 0.0) { writer.writeEnum( 4, f ); } f = message.getStartingVelocity(); if (f != null) { writer.writeMessage( 5, f, bosdyn_api_geometry_pb.Vec3.serializeBinaryToWriter ); } f = message.getEndingVelocity(); if (f != null) { writer.writeMessage( 6, f, bosdyn_api_geometry_pb.Vec3.serializeBinaryToWriter ); } }; /** * repeated Vec3TrajectoryPoint points = 1; * @return {!Array<!proto.bosdyn.api.Vec3TrajectoryPoint>} */ proto.bosdyn.api.Vec3Trajectory.prototype.getPointsList = function() { return /** @type{!Array<!proto.bosdyn.api.Vec3TrajectoryPoint>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.bosdyn.api.Vec3TrajectoryPoint, 1)); }; /** * @param {!Array<!proto.bosdyn.api.Vec3TrajectoryPoint>} value * @return {!proto.bosdyn.api.Vec3Trajectory} returns this */ proto.bosdyn.api.Vec3Trajectory.prototype.setPointsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.bosdyn.api.Vec3TrajectoryPoint=} opt_value * @param {number=} opt_index * @return {!proto.bosdyn.api.Vec3TrajectoryPoint} */ proto.bosdyn.api.Vec3Trajectory.prototype.addPoints = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bosdyn.api.Vec3TrajectoryPoint, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.bosdyn.api.Vec3Trajectory} returns this */ proto.bosdyn.api.Vec3Trajectory.prototype.clearPointsList = function() { return this.setPointsList([]); }; /** * optional google.protobuf.Timestamp reference_time = 3; * @return {?proto.google.protobuf.Timestamp} */ proto.bosdyn.api.Vec3Trajectory.prototype.getReferenceTime = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.bosdyn.api.Vec3Trajectory} returns this */ proto.bosdyn.api.Vec3Trajectory.prototype.setReferenceTime = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.Vec3Trajectory} returns this */ proto.bosdyn.api.Vec3Trajectory.prototype.clearReferenceTime = function() { return this.setReferenceTime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.Vec3Trajectory.prototype.hasReferenceTime = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional PositionalInterpolation pos_interpolation = 4; * @return {!proto.bosdyn.api.PositionalInterpolation} */ proto.bosdyn.api.Vec3Trajectory.prototype.getPosInterpolation = function() { return /** @type {!proto.bosdyn.api.PositionalInterpolation} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {!proto.bosdyn.api.PositionalInterpolation} value * @return {!proto.bosdyn.api.Vec3Trajectory} returns this */ proto.bosdyn.api.Vec3Trajectory.prototype.setPosInterpolation = function(value) { return jspb.Message.setProto3EnumField(this, 4, value); }; /** * optional Vec3 starting_velocity = 5; * @return {?proto.bosdyn.api.Vec3} */ proto.bosdyn.api.Vec3Trajectory.prototype.getStartingVelocity = function() { return /** @type{?proto.bosdyn.api.Vec3} */ ( jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.Vec3, 5)); }; /** * @param {?proto.bosdyn.api.Vec3|undefined} value * @return {!proto.bosdyn.api.Vec3Trajectory} returns this */ proto.bosdyn.api.Vec3Trajectory.prototype.setStartingVelocity = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.Vec3Trajectory} returns this */ proto.bosdyn.api.Vec3Trajectory.prototype.clearStartingVelocity = function() { return this.setStartingVelocity(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.Vec3Trajectory.prototype.hasStartingVelocity = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional Vec3 ending_velocity = 6; * @return {?proto.bosdyn.api.Vec3} */ proto.bosdyn.api.Vec3Trajectory.prototype.getEndingVelocity = function() { return /** @type{?proto.bosdyn.api.Vec3} */ ( jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.Vec3, 6)); }; /** * @param {?proto.bosdyn.api.Vec3|undefined} value * @return {!proto.bosdyn.api.Vec3Trajectory} returns this */ proto.bosdyn.api.Vec3Trajectory.prototype.setEndingVelocity = function(value) { return jspb.Message.setWrapperField(this, 6, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.Vec3Trajectory} returns this */ proto.bosdyn.api.Vec3Trajectory.prototype.clearEndingVelocity = function() { return this.setEndingVelocity(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.Vec3Trajectory.prototype.hasEndingVelocity = function() { return jspb.Message.getField(this, 6) != null; }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved