UNPKG

spot-sdk-js

Version:

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

1,295 lines (1,214 loc) 341 kB
// source: bosdyn/api/graph_nav/graph_nav.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_basic_command_pb = require('../../../bosdyn/api/basic_command_pb.js'); goog.object.extend(proto, bosdyn_api_basic_command_pb); var bosdyn_api_data_chunk_pb = require('../../../bosdyn/api/data_chunk_pb.js'); goog.object.extend(proto, bosdyn_api_data_chunk_pb); var bosdyn_api_geometry_pb = require('../../../bosdyn/api/geometry_pb.js'); goog.object.extend(proto, bosdyn_api_geometry_pb); var bosdyn_api_graph_nav_nav_pb = require('../../../bosdyn/api/graph_nav/nav_pb.js'); goog.object.extend(proto, bosdyn_api_graph_nav_nav_pb); var bosdyn_api_graph_nav_map_pb = require('../../../bosdyn/api/graph_nav/map_pb.js'); goog.object.extend(proto, bosdyn_api_graph_nav_map_pb); var bosdyn_api_header_pb = require('../../../bosdyn/api/header_pb.js'); goog.object.extend(proto, bosdyn_api_header_pb); var bosdyn_api_lease_pb = require('../../../bosdyn/api/lease_pb.js'); goog.object.extend(proto, bosdyn_api_lease_pb); var bosdyn_api_license_pb = require('../../../bosdyn/api/license_pb.js'); goog.object.extend(proto, bosdyn_api_license_pb); var bosdyn_api_robot_state_pb = require('../../../bosdyn/api/robot_state_pb.js'); goog.object.extend(proto, bosdyn_api_robot_state_pb); var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); goog.exportSymbol('proto.bosdyn.api.graph_nav.ClearGraphRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.ClearGraphResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.DownloadEdgeSnapshotRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.DownloadEdgeSnapshotResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.DownloadEdgeSnapshotResponse.Status', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.DownloadGraphRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.DownloadGraphResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.DownloadWaypointSnapshotRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.DownloadWaypointSnapshotResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.DownloadWaypointSnapshotResponse.Status', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.GetLocalizationStateRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.GetLocalizationStateResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.LostDetectorState', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.NavigateRouteRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.NavigateRouteResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.NavigateRouteResponse.Status', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.NavigateToAnchorRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.NavigateToAnchorResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.NavigateToAnchorResponse.Status', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.NavigateToRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.NavigateToResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.NavigateToResponse.Status', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.NavigationFeedbackRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.NavigationFeedbackResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.NavigationFeedbackResponse.Status', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.RemotePointCloudStatus', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.RouteFollowingParams', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.RouteFollowingParams.ResumeBehavior', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.RouteFollowingParams.RouteBlockedBehavior', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.RouteFollowingParams.StartRouteBehavior', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.RouteGenParams', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.SetLocalizationRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.SetLocalizationRequest.FiducialInit', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.SetLocalizationResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.SetLocalizationResponse.Status', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.SetLocalizationResponse.SuspectedAmbiguity', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.TravelParams', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.TravelParams.FeatureQualityTolerance', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.UploadEdgeSnapshotRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.UploadEdgeSnapshotResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.UploadGraphRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.UploadGraphResponse', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.UploadGraphResponse.Status', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.UploadWaypointSnapshotRequest', null, global); goog.exportSymbol('proto.bosdyn.api.graph_nav.UploadWaypointSnapshotResponse', 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.SetLocalizationRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.SetLocalizationRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.displayName = 'proto.bosdyn.api.graph_nav.SetLocalizationRequest'; } /** * 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.SetLocalizationResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.SetLocalizationResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.SetLocalizationResponse.displayName = 'proto.bosdyn.api.graph_nav.SetLocalizationResponse'; } /** * 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.SetLocalizationResponse.SuspectedAmbiguity = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.SetLocalizationResponse.SuspectedAmbiguity, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.SetLocalizationResponse.SuspectedAmbiguity.displayName = 'proto.bosdyn.api.graph_nav.SetLocalizationResponse.SuspectedAmbiguity'; } /** * 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.RouteGenParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.RouteGenParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.RouteGenParams.displayName = 'proto.bosdyn.api.graph_nav.RouteGenParams'; } /** * 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.TravelParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.TravelParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.TravelParams.displayName = 'proto.bosdyn.api.graph_nav.TravelParams'; } /** * 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.NavigateToRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.NavigateToRequest.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.NavigateToRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.NavigateToRequest.displayName = 'proto.bosdyn.api.graph_nav.NavigateToRequest'; } /** * 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.NavigateToResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.NavigateToResponse.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.NavigateToResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.NavigateToResponse.displayName = 'proto.bosdyn.api.graph_nav.NavigateToResponse'; } /** * 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.RouteFollowingParams = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.RouteFollowingParams, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.RouteFollowingParams.displayName = 'proto.bosdyn.api.graph_nav.RouteFollowingParams'; } /** * 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.NavigateRouteRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.NavigateRouteRequest.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.NavigateRouteRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.NavigateRouteRequest.displayName = 'proto.bosdyn.api.graph_nav.NavigateRouteRequest'; } /** * 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.NavigateRouteResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.NavigateRouteResponse.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.NavigateRouteResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.NavigateRouteResponse.displayName = 'proto.bosdyn.api.graph_nav.NavigateRouteResponse'; } /** * 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.NavigateToAnchorRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.NavigateToAnchorRequest.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.NavigateToAnchorRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.NavigateToAnchorRequest.displayName = 'proto.bosdyn.api.graph_nav.NavigateToAnchorRequest'; } /** * 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.NavigateToAnchorResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.NavigateToAnchorResponse.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.NavigateToAnchorResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.NavigateToAnchorResponse.displayName = 'proto.bosdyn.api.graph_nav.NavigateToAnchorResponse'; } /** * 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.NavigationFeedbackRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.NavigationFeedbackRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.NavigationFeedbackRequest.displayName = 'proto.bosdyn.api.graph_nav.NavigationFeedbackRequest'; } /** * 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.NavigationFeedbackResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.NavigationFeedbackResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.NavigationFeedbackResponse.displayName = 'proto.bosdyn.api.graph_nav.NavigationFeedbackResponse'; } /** * 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.GetLocalizationStateRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.GetLocalizationStateRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.GetLocalizationStateRequest.displayName = 'proto.bosdyn.api.graph_nav.GetLocalizationStateRequest'; } /** * 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.RemotePointCloudStatus = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.RemotePointCloudStatus, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.RemotePointCloudStatus.displayName = 'proto.bosdyn.api.graph_nav.RemotePointCloudStatus'; } /** * 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.LostDetectorState = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.LostDetectorState, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.LostDetectorState.displayName = 'proto.bosdyn.api.graph_nav.LostDetectorState'; } /** * 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.GetLocalizationStateResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.GetLocalizationStateResponse.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.GetLocalizationStateResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.GetLocalizationStateResponse.displayName = 'proto.bosdyn.api.graph_nav.GetLocalizationStateResponse'; } /** * 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.ClearGraphRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ClearGraphRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ClearGraphRequest.displayName = 'proto.bosdyn.api.graph_nav.ClearGraphRequest'; } /** * 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.ClearGraphResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.ClearGraphResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.ClearGraphResponse.displayName = 'proto.bosdyn.api.graph_nav.ClearGraphResponse'; } /** * 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.UploadGraphRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.UploadGraphRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.UploadGraphRequest.displayName = 'proto.bosdyn.api.graph_nav.UploadGraphRequest'; } /** * 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.UploadGraphResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.graph_nav.UploadGraphResponse.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.graph_nav.UploadGraphResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.UploadGraphResponse.displayName = 'proto.bosdyn.api.graph_nav.UploadGraphResponse'; } /** * 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.DownloadGraphRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.DownloadGraphRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.DownloadGraphRequest.displayName = 'proto.bosdyn.api.graph_nav.DownloadGraphRequest'; } /** * 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.DownloadGraphResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.DownloadGraphResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.DownloadGraphResponse.displayName = 'proto.bosdyn.api.graph_nav.DownloadGraphResponse'; } /** * 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.UploadWaypointSnapshotRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.UploadWaypointSnapshotRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.UploadWaypointSnapshotRequest.displayName = 'proto.bosdyn.api.graph_nav.UploadWaypointSnapshotRequest'; } /** * 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.UploadWaypointSnapshotResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.UploadWaypointSnapshotResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.UploadWaypointSnapshotResponse.displayName = 'proto.bosdyn.api.graph_nav.UploadWaypointSnapshotResponse'; } /** * 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.UploadEdgeSnapshotRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.UploadEdgeSnapshotRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.UploadEdgeSnapshotRequest.displayName = 'proto.bosdyn.api.graph_nav.UploadEdgeSnapshotRequest'; } /** * 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.UploadEdgeSnapshotResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.UploadEdgeSnapshotResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.UploadEdgeSnapshotResponse.displayName = 'proto.bosdyn.api.graph_nav.UploadEdgeSnapshotResponse'; } /** * 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.DownloadWaypointSnapshotRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.DownloadWaypointSnapshotRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.DownloadWaypointSnapshotRequest.displayName = 'proto.bosdyn.api.graph_nav.DownloadWaypointSnapshotRequest'; } /** * 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.DownloadWaypointSnapshotResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.DownloadWaypointSnapshotResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.DownloadWaypointSnapshotResponse.displayName = 'proto.bosdyn.api.graph_nav.DownloadWaypointSnapshotResponse'; } /** * 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.DownloadEdgeSnapshotRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.DownloadEdgeSnapshotRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.DownloadEdgeSnapshotRequest.displayName = 'proto.bosdyn.api.graph_nav.DownloadEdgeSnapshotRequest'; } /** * 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.DownloadEdgeSnapshotResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.graph_nav.DownloadEdgeSnapshotResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.graph_nav.DownloadEdgeSnapshotResponse.displayName = 'proto.bosdyn.api.graph_nav.DownloadEdgeSnapshotResponse'; } 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.SetLocalizationRequest.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.graph_nav.SetLocalizationRequest.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.SetLocalizationRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.toObject = function(includeInstance, msg) { var f, obj = { header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f), initialGuess: (f = msg.getInitialGuess()) && bosdyn_api_graph_nav_nav_pb.Localization.toObject(includeInstance, f), koTformBody: (f = msg.getKoTformBody()) && bosdyn_api_geometry_pb.SE3Pose.toObject(includeInstance, f), maxDistance: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), maxYaw: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0), fiducialInit: jspb.Message.getFieldWithDefault(msg, 7, 0), useFiducialId: jspb.Message.getFieldWithDefault(msg, 8, 0), refineFiducialResultWithIcp: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), doAmbiguityCheck: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), restrictFiducialDetectionsToTargetWaypoint: jspb.Message.getBooleanFieldWithDefault(msg, 11, false) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.graph_nav.SetLocalizationRequest; return proto.bosdyn.api.graph_nav.SetLocalizationRequest.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.SetLocalizationRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new bosdyn_api_header_pb.RequestHeader; reader.readMessage(value,bosdyn_api_header_pb.RequestHeader.deserializeBinaryFromReader); msg.setHeader(value); break; case 3: var value = new bosdyn_api_graph_nav_nav_pb.Localization; reader.readMessage(value,bosdyn_api_graph_nav_nav_pb.Localization.deserializeBinaryFromReader); msg.setInitialGuess(value); break; case 4: var value = new bosdyn_api_geometry_pb.SE3Pose; reader.readMessage(value,bosdyn_api_geometry_pb.SE3Pose.deserializeBinaryFromReader); msg.setKoTformBody(value); break; case 5: var value = /** @type {number} */ (reader.readDouble()); msg.setMaxDistance(value); break; case 6: var value = /** @type {number} */ (reader.readDouble()); msg.setMaxYaw(value); break; case 7: var value = /** @type {!proto.bosdyn.api.graph_nav.SetLocalizationRequest.FiducialInit} */ (reader.readEnum()); msg.setFiducialInit(value); break; case 8: var value = /** @type {number} */ (reader.readInt32()); msg.setUseFiducialId(value); break; case 9: var value = /** @type {boolean} */ (reader.readBool()); msg.setRefineFiducialResultWithIcp(value); break; case 10: var value = /** @type {boolean} */ (reader.readBool()); msg.setDoAmbiguityCheck(value); break; case 11: var value = /** @type {boolean} */ (reader.readBool()); msg.setRestrictFiducialDetectionsToTargetWaypoint(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.SetLocalizationRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.graph_nav.SetLocalizationRequest.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.SetLocalizationRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHeader(); if (f != null) { writer.writeMessage( 1, f, bosdyn_api_header_pb.RequestHeader.serializeBinaryToWriter ); } f = message.getInitialGuess(); if (f != null) { writer.writeMessage( 3, f, bosdyn_api_graph_nav_nav_pb.Localization.serializeBinaryToWriter ); } f = message.getKoTformBody(); if (f != null) { writer.writeMessage( 4, f, bosdyn_api_geometry_pb.SE3Pose.serializeBinaryToWriter ); } f = message.getMaxDistance(); if (f !== 0.0) { writer.writeDouble( 5, f ); } f = message.getMaxYaw(); if (f !== 0.0) { writer.writeDouble( 6, f ); } f = message.getFiducialInit(); if (f !== 0.0) { writer.writeEnum( 7, f ); } f = message.getUseFiducialId(); if (f !== 0) { writer.writeInt32( 8, f ); } f = message.getRefineFiducialResultWithIcp(); if (f) { writer.writeBool( 9, f ); } f = message.getDoAmbiguityCheck(); if (f) { writer.writeBool( 10, f ); } f = message.getRestrictFiducialDetectionsToTargetWaypoint(); if (f) { writer.writeBool( 11, f ); } }; /** * @enum {number} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.FiducialInit = { FIDUCIAL_INIT_UNKNOWN: 0, FIDUCIAL_INIT_NO_FIDUCIAL: 1, FIDUCIAL_INIT_NEAREST: 2, FIDUCIAL_INIT_NEAREST_AT_TARGET: 3, FIDUCIAL_INIT_SPECIFIC: 4 }; /** * optional bosdyn.api.RequestHeader header = 1; * @return {?proto.bosdyn.api.RequestHeader} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.getHeader = function() { return /** @type{?proto.bosdyn.api.RequestHeader} */ ( jspb.Message.getWrapperField(this, bosdyn_api_header_pb.RequestHeader, 1)); }; /** * @param {?proto.bosdyn.api.RequestHeader|undefined} value * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.setHeader = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.clearHeader = function() { return this.setHeader(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.hasHeader = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional Localization initial_guess = 3; * @return {?proto.bosdyn.api.graph_nav.Localization} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.getInitialGuess = function() { return /** @type{?proto.bosdyn.api.graph_nav.Localization} */ ( jspb.Message.getWrapperField(this, bosdyn_api_graph_nav_nav_pb.Localization, 3)); }; /** * @param {?proto.bosdyn.api.graph_nav.Localization|undefined} value * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.setInitialGuess = function(value) { return jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.clearInitialGuess = function() { return this.setInitialGuess(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.hasInitialGuess = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional bosdyn.api.SE3Pose ko_tform_body = 4; * @return {?proto.bosdyn.api.SE3Pose} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.getKoTformBody = function() { return /** @type{?proto.bosdyn.api.SE3Pose} */ ( jspb.Message.getWrapperField(this, bosdyn_api_geometry_pb.SE3Pose, 4)); }; /** * @param {?proto.bosdyn.api.SE3Pose|undefined} value * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.setKoTformBody = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.clearKoTformBody = function() { return this.setKoTformBody(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.hasKoTformBody = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional double max_distance = 5; * @return {number} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.getMaxDistance = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.setMaxDistance = function(value) { return jspb.Message.setProto3FloatField(this, 5, value); }; /** * optional double max_yaw = 6; * @return {number} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.getMaxYaw = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.setMaxYaw = function(value) { return jspb.Message.setProto3FloatField(this, 6, value); }; /** * optional FiducialInit fiducial_init = 7; * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest.FiducialInit} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.getFiducialInit = function() { return /** @type {!proto.bosdyn.api.graph_nav.SetLocalizationRequest.FiducialInit} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); }; /** * @param {!proto.bosdyn.api.graph_nav.SetLocalizationRequest.FiducialInit} value * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.setFiducialInit = function(value) { return jspb.Message.setProto3EnumField(this, 7, value); }; /** * optional int32 use_fiducial_id = 8; * @return {number} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.getUseFiducialId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.setUseFiducialId = function(value) { return jspb.Message.setProto3IntField(this, 8, value); }; /** * optional bool refine_fiducial_result_with_icp = 9; * @return {boolean} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.getRefineFiducialResultWithIcp = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); }; /** * @param {boolean} value * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.setRefineFiducialResultWithIcp = function(value) { return jspb.Message.setProto3BooleanField(this, 9, value); }; /** * optional bool do_ambiguity_check = 10; * @return {boolean} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.getDoAmbiguityCheck = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); }; /** * @param {boolean} value * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.setDoAmbiguityCheck = function(value) { return jspb.Message.setProto3BooleanField(this, 10, value); }; /** * optional bool restrict_fiducial_detections_to_target_waypoint = 11; * @return {boolean} */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.getRestrictFiducialDetectionsToTargetWaypoint = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false)); }; /** * @param {boolean} value * @return {!proto.bosdyn.api.graph_nav.SetLocalizationRequest} returns this */ proto.bosdyn.api.graph_nav.SetLocalizationRequest.prototype.setRestrictFiducialDetectionsToTargetWaypoint = function(value) { return jspb.Message.setProto3BooleanField(this, 11, 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.graph_nav.SetLocalizationResponse.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.graph_nav.SetLocalizationResponse.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.SetLocalizationResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.graph_nav.SetLocalizationResponse.toObject = function(includeInstance, msg) { var f, obj = { header: (f = msg.getHeader()) && bosdyn_api_header_pb.ResponseHeader.toObject(includeInstance, f), leaseUseResult: (f = msg.getLeaseUseResult()) && bosdyn_api_lease_pb.LeaseUseResult.toObject(includeInstance, f), status: jspb.Message.getFieldWithDefault(msg, 3, 0), errorReport: jspb.Message.getFieldWithDefault(msg, 4, ""), localization: (f = msg.getLocalization()) && bosdyn_api_graph_nav_nav_pb.Localization.toObject(includeInstance, f), suspectedAmbiguity: (f = msg.getSuspectedAmbiguity()) && proto.bosdyn.api.graph_nav.SetLocalizationResponse.SuspectedAmbiguity.toObject(includeInstance, f), impairedState: (f = msg.getImpairedState()) && bosdyn_api_robot_state_pb.RobotImpairedState.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.SetLocalizationResponse} */ proto.bosdyn.api.graph_nav.SetLocalizationResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.graph_nav.SetLocalizationResponse; return proto.bosdyn.api.graph_nav.SetLocalizationResponse.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.SetLocalizationResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.graph_nav.SetLocaliz