UNPKG

spot-sdk-js

Version:

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

1,329 lines (1,207 loc) 160 kB
// source: bosdyn/api/graph_nav/map.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 bosdyn_api_image_pb = require('../../../bosdyn/api/image_pb.js'); goog.object.extend(proto, bosdyn_api_image_pb); var bosdyn_api_local_grid_pb = require('../../../bosdyn/api/local_grid_pb.js'); goog.object.extend(proto, bosdyn_api_local_grid_pb); var bosdyn_api_point_cloud_pb = require('../../../bosdyn/api/point_cloud_pb.js'); goog.object.extend(proto, bosdyn_api_point_cloud_pb); var bosdyn_api_robot_state_pb = require('../../../bosdyn/api/robot_state_pb.js'); goog.object.extend(proto, bosdyn_api_robot_state_pb); var bosdyn_api_spot_robot_command_pb = require('../../../bosdyn/api/spot/robot_command_pb.js'); goog.object.extend(proto, bosdyn_api_spot_robot_command_pb); var bosdyn_api_stairs_pb = require('../../../bosdyn/api/stairs_pb.js'); goog.object.extend(proto, bosdyn_api_stairs_pb); var bosdyn_api_world_object_pb = require('../../../bosdyn/api/world_object_pb.js'); goog.object.extend(proto, bosdyn_api_world_object_pb); var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js'); goog.object.extend(proto, google_protobuf_field_mask_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.graph_nav.Anchor', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.AnchoredWorldObject', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Anchoring', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.AnnotationState', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Edge', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Edge.Annotations', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Edge.Annotations.DirectionConstraint', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Edge.Annotations.StairData', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Edge.EdgeSource', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Edge.Id', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.EdgeSnapshot', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.EdgeSnapshot.Stance', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Graph', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Waypoint', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Waypoint.Annotations', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.RegionCase', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.Waypoint.WaypointSource', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.WaypointSnapshot', 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.graph_nav.Waypoint = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.Waypoint, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Waypoint.displayName = 'proto.bosdyn.api.graph_nav.Waypoint'; } /** * 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.graph_nav.Waypoint.Annotations = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.Waypoint.Annotations, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.displayName = 'proto.bosdyn.api.graph_nav.Waypoint.Annotations'; } /** * 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.graph_nav.Waypoint.Annotations.LocalizeRegion = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.oneofGroups_); }; goog.inherits(proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.displayName = 'proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion'; } /** * 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.graph_nav.Waypoint.Annotations.LocalizeRegion.Default = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.displayName = 'proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default'; } /** * 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.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.displayName = 'proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty'; } /** * 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.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.displayName = 'proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D'; } /** * 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.graph_nav.WaypointSnapshot = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.WaypointSnapshot.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.WaypointSnapshot, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.WaypointSnapshot.displayName = 'proto.bosdyn.api.graph_nav.WaypointSnapshot'; } /** * 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.graph_nav.Edge = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.Edge, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Edge.displayName = 'proto.bosdyn.api.graph_nav.Edge'; } /** * 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.graph_nav.Edge.Id = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.Edge.Id, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Edge.Id.displayName = 'proto.bosdyn.api.graph_nav.Edge.Id'; } /** * 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.graph_nav.Edge.Annotations = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.Edge.Annotations, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Edge.Annotations.displayName = 'proto.bosdyn.api.graph_nav.Edge.Annotations'; } /** * 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.graph_nav.Edge.Annotations.StairData = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.Edge.Annotations.StairData, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Edge.Annotations.StairData.displayName = 'proto.bosdyn.api.graph_nav.Edge.Annotations.StairData'; } /** * 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.graph_nav.EdgeSnapshot = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.EdgeSnapshot.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.EdgeSnapshot, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.EdgeSnapshot.displayName = 'proto.bosdyn.api.graph_nav.EdgeSnapshot'; } /** * 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.graph_nav.EdgeSnapshot.Stance = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.EdgeSnapshot.Stance.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.EdgeSnapshot.Stance, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.EdgeSnapshot.Stance.displayName = 'proto.bosdyn.api.graph_nav.EdgeSnapshot.Stance'; } /** * 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.graph_nav.Anchor = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.Anchor, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Anchor.displayName = 'proto.bosdyn.api.graph_nav.Anchor'; } /** * 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.graph_nav.AnchoredWorldObject = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.AnchoredWorldObject, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.AnchoredWorldObject.displayName = 'proto.bosdyn.api.graph_nav.AnchoredWorldObject'; } /** * 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.graph_nav.Anchoring = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.Anchoring.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.Anchoring, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Anchoring.displayName = 'proto.bosdyn.api.graph_nav.Anchoring'; } /** * 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.graph_nav.Graph = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.Graph.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.Graph, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.Graph.displayName = 'proto.bosdyn.api.graph_nav.Graph'; } 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.graph_nav.Waypoint.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.graph_nav.Waypoint.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.graph_nav.Waypoint} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.Waypoint.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), snapshotId: jspb.Message.getFieldWithDefault(msg, 2, ""), waypointTformKo: (f = msg.getWaypointTformKo()) && bosdyn_api_geometry_pb.SE3Pose.toObject(includeInstance, f), annotations: (f = msg.getAnnotations()) && proto.bosdyn.api.graph_nav.Waypoint.Annotations.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.graph_nav.Waypoint} */ proto.bosdyn.api.graph_nav.Waypoint.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.graph_nav.Waypoint; return proto.bosdyn.api.graph_nav.Waypoint.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.graph_nav.Waypoint} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.graph_nav.Waypoint} */ proto.bosdyn.api.graph_nav.Waypoint.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setSnapshotId(value); break; case 3: var value = new bosdyn_api_geometry_pb.SE3Pose; reader.readMessage(value,bosdyn_api_geometry_pb.SE3Pose.deserializeBinaryFromReader); msg.setWaypointTformKo(value); break; case 4: var value = new proto.bosdyn.api.graph_nav.Waypoint.Annotations; reader.readMessage(value,proto.bosdyn.api.graph_nav.Waypoint.Annotations.deserializeBinaryFromReader); msg.setAnnotations(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.graph_nav.Waypoint.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.graph_nav.Waypoint.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.graph_nav.Waypoint} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.Waypoint.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getSnapshotId(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getWaypointTformKo(); if (f != null) { writer.writeMessage( 3, f, bosdyn_api_geometry_pb.SE3Pose.serializeBinaryToWriter ); } f = message.getAnnotations(); if (f != null) { writer.writeMessage( 4, f, proto.bosdyn.api.graph_nav.Waypoint.Annotations.serializeBinaryToWriter ); } }; /** * @enum {number} */ proto.bosdyn.api.graph_nav.Waypoint.WaypointSource = { WAYPOINT_SOURCE_UNKNOWN: 0, WAYPOINT_SOURCE_ROBOT_PATH: 1, WAYPOINT_SOURCE_USER_REQUEST: 2, WAYPOINT_SOURCE_ALTERNATE_ROUTE_FINDING: 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.bosdyn.api.graph_nav.Waypoint.Annotations.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.graph_nav.Waypoint.Annotations.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.graph_nav.Waypoint.Annotations} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.toObject = function(includeInstance, msg) { var f, obj = { name: jspb.Message.getFieldWithDefault(msg, 1, ""), creationTime: (f = msg.getCreationTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), icpVariance: (f = msg.getIcpVariance()) && bosdyn_api_geometry_pb.SE3Covariance.toObject(includeInstance, f), scanMatchRegion: (f = msg.getScanMatchRegion()) && proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.toObject(includeInstance, f), waypointSource: 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.graph_nav.Waypoint.Annotations} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.graph_nav.Waypoint.Annotations; return proto.bosdyn.api.graph_nav.Waypoint.Annotations.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.graph_nav.Waypoint.Annotations} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.graph_nav.Waypoint.Annotations} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.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 4: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setCreationTime(value); break; case 2: var value = new bosdyn_api_geometry_pb.SE3Covariance; reader.readMessage(value,bosdyn_api_geometry_pb.SE3Covariance.deserializeBinaryFromReader); msg.setIcpVariance(value); break; case 3: var value = new proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion; reader.readMessage(value,proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.deserializeBinaryFromReader); msg.setScanMatchRegion(value); break; case 5: var value = /** @type {!proto.bosdyn.api.graph_nav.Waypoint.WaypointSource} */ (reader.readEnum()); msg.setWaypointSource(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.graph_nav.Waypoint.Annotations.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.graph_nav.Waypoint.Annotations} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getCreationTime(); if (f != null) { writer.writeMessage( 4, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getIcpVariance(); if (f != null) { writer.writeMessage( 2, f, bosdyn_api_geometry_pb.SE3Covariance.serializeBinaryToWriter ); } f = message.getScanMatchRegion(); if (f != null) { writer.writeMessage( 3, f, proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.serializeBinaryToWriter ); } f = message.getWaypointSource(); if (f !== 0.0) { writer.writeEnum( 5, f ); } }; /** * Oneof group definitions for this message. Each group defines the field * numbers belonging to that group. When of these fields' value is set, all * other fields in the group are cleared. During deserialization, if multiple * fields are encountered for a group, only the last value seen will be kept. * @private {!Array<!Array<number>>} * @const */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.oneofGroups_ = [[2,3,4]]; /** * @enum {number} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.RegionCase = { REGION_NOT_SET: 0, DEFAULT_REGION: 2, EMPTY: 3, CIRCLE: 4 }; /** * @return {proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.RegionCase} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.prototype.getRegionCase = function() { return /** @type {proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.RegionCase} */(jspb.Message.computeOneofCase(this, proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.oneofGroups_[0])); }; 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.graph_nav.Waypoint.Annotations.LocalizeRegion.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.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.graph_nav.Waypoint.Annotations.LocalizeRegion} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.toObject = function(includeInstance, msg) { var f, obj = { state: jspb.Message.getFieldWithDefault(msg, 1, 0), defaultRegion: (f = msg.getDefaultRegion()) && proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.toObject(includeInstance, f), empty: (f = msg.getEmpty()) && proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.toObject(includeInstance, f), circle: (f = msg.getCircle()) && proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.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.graph_nav.Waypoint.Annotations.LocalizeRegion} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion; return proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!proto.bosdyn.api.graph_nav.AnnotationState} */ (reader.readEnum()); msg.setState(value); break; case 2: var value = new proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default; reader.readMessage(value,proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.deserializeBinaryFromReader); msg.setDefaultRegion(value); break; case 3: var value = new proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty; reader.readMessage(value,proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.deserializeBinaryFromReader); msg.setEmpty(value); break; case 4: var value = new proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D; reader.readMessage(value,proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.deserializeBinaryFromReader); msg.setCircle(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.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.graph_nav.Waypoint.Annotations.LocalizeRegion} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getState(); if (f !== 0.0) { writer.writeEnum( 1, f ); } f = message.getDefaultRegion(); if (f != null) { writer.writeMessage( 2, f, proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.serializeBinaryToWriter ); } f = message.getEmpty(); if (f != null) { writer.writeMessage( 3, f, proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.serializeBinaryToWriter ); } f = message.getCircle(); if (f != null) { writer.writeMessage( 4, f, proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.serializeBinaryToWriter ); } }; 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.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.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.graph_nav.Waypoint.Annotations.LocalizeRegion.Default} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.toObject = function(includeInstance, msg) { var f, obj = { }; 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.graph_nav.Waypoint.Annotations.LocalizeRegion.Default} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default; return proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.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.graph_nav.Waypoint.Annotations.LocalizeRegion.Default} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; 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.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.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.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.toObject = function(includeInstance, msg) { var f, obj = { }; 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.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty; return proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.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.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty.serializeBinaryToWriter = function(message, writer) { var f = undefined; }; 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.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.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.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.toObject = function(includeInstance, msg) { var f, obj = { dist2d: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.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.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D; return proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.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.setDist2d(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.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.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getDist2d(); if (f !== 0.0) { writer.writeDouble( 1, f ); } }; /** * optional double dist_2d = 1; * @return {number} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.prototype.getDist2d = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D} returns this */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Circle2D.prototype.setDist2d = function(value) { return jspb.Message.setProto3FloatField(this, 1, value); }; /** * optional AnnotationState state = 1; * @return {!proto.bosdyn.api.graph_nav.AnnotationState} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.prototype.getState = function() { return /** @type {!proto.bosdyn.api.graph_nav.AnnotationState} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {!proto.bosdyn.api.graph_nav.AnnotationState} value * @return {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion} returns this */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.prototype.setState = function(value) { return jspb.Message.setProto3EnumField(this, 1, value); }; /** * optional Default default_region = 2; * @return {?proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.prototype.getDefaultRegion = function() { return /** @type{?proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default} */ ( jspb.Message.getWrapperField(this, proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default, 2)); }; /** * @param {?proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Default|undefined} value * @return {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion} returns this */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.prototype.setDefaultRegion = function(value) { return jspb.Message.setOneofWrapperField(this, 2, proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion} returns this */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.prototype.clearDefaultRegion = function() { return this.setDefaultRegion(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.prototype.hasDefaultRegion = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional Empty empty = 3; * @return {?proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty} */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.prototype.getEmpty = function() { return /** @type{?proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty} */ ( jspb.Message.getWrapperField(this, proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty, 3)); }; /** * @param {?proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.Empty|undefined} value * @return {!proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion} returns this */ proto.bosdyn.api.graph_nav.Waypoint.Annotations.LocalizeRegion.prototype.setEmpty =