UNPKG

spot-sdk-js

Version:

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

1,514 lines (1,321 loc) 79.9 kB
// source: bosdyn/api/docking/docking.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_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 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.docking.ConfigRange', null, global); goog.exportSymbol('proto.bosdyn.api.docking.DockState', null, global); goog.exportSymbol('proto.bosdyn.api.docking.DockState.DockedStatus', null, global); goog.exportSymbol('proto.bosdyn.api.docking.DockState.LinkStatus', null, global); goog.exportSymbol('proto.bosdyn.api.docking.DockType', null, global); goog.exportSymbol('proto.bosdyn.api.docking.DockingCommandFeedbackRequest', null, global); goog.exportSymbol('proto.bosdyn.api.docking.DockingCommandFeedbackResponse', null, global); goog.exportSymbol('proto.bosdyn.api.docking.DockingCommandFeedbackResponse.Status', null, global); goog.exportSymbol('proto.bosdyn.api.docking.DockingCommandRequest', null, global); goog.exportSymbol('proto.bosdyn.api.docking.DockingCommandResponse', null, global); goog.exportSymbol('proto.bosdyn.api.docking.DockingCommandResponse.Status', null, global); goog.exportSymbol('proto.bosdyn.api.docking.GetDockingConfigRequest', null, global); goog.exportSymbol('proto.bosdyn.api.docking.GetDockingConfigResponse', null, global); goog.exportSymbol('proto.bosdyn.api.docking.GetDockingStateRequest', null, global); goog.exportSymbol('proto.bosdyn.api.docking.GetDockingStateResponse', null, global); goog.exportSymbol('proto.bosdyn.api.docking.PrepPoseBehavior', 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.docking.DockingCommandRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.docking.DockingCommandRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.docking.DockingCommandRequest.displayName = 'proto.bosdyn.api.docking.DockingCommandRequest'; } /** * 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.docking.DockingCommandResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.docking.DockingCommandResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.docking.DockingCommandResponse.displayName = 'proto.bosdyn.api.docking.DockingCommandResponse'; } /** * 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.docking.DockingCommandFeedbackRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.docking.DockingCommandFeedbackRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.displayName = 'proto.bosdyn.api.docking.DockingCommandFeedbackRequest'; } /** * 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.docking.DockingCommandFeedbackResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.docking.DockingCommandFeedbackResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.displayName = 'proto.bosdyn.api.docking.DockingCommandFeedbackResponse'; } /** * 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.docking.ConfigRange = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.docking.ConfigRange, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.docking.ConfigRange.displayName = 'proto.bosdyn.api.docking.ConfigRange'; } /** * 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.docking.GetDockingConfigRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.docking.GetDockingConfigRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.docking.GetDockingConfigRequest.displayName = 'proto.bosdyn.api.docking.GetDockingConfigRequest'; } /** * 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.docking.GetDockingConfigResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.bosdyn.api.docking.GetDockingConfigResponse.repeatedFields_, null); }; goog.inherits(proto.bosdyn.api.docking.GetDockingConfigResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.docking.GetDockingConfigResponse.displayName = 'proto.bosdyn.api.docking.GetDockingConfigResponse'; } /** * 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.docking.DockState = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.docking.DockState, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.docking.DockState.displayName = 'proto.bosdyn.api.docking.DockState'; } /** * 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.docking.GetDockingStateRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.docking.GetDockingStateRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.docking.GetDockingStateRequest.displayName = 'proto.bosdyn.api.docking.GetDockingStateRequest'; } /** * 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.docking.GetDockingStateResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.bosdyn.api.docking.GetDockingStateResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.bosdyn.api.docking.GetDockingStateResponse.displayName = 'proto.bosdyn.api.docking.GetDockingStateResponse'; } 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.docking.DockingCommandRequest.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.docking.DockingCommandRequest.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.docking.DockingCommandRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.docking.DockingCommandRequest.toObject = function(includeInstance, msg) { var f, obj = { header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f), lease: (f = msg.getLease()) && bosdyn_api_lease_pb.Lease.toObject(includeInstance, f), dockingStationId: jspb.Message.getFieldWithDefault(msg, 3, 0), clockIdentifier: jspb.Message.getFieldWithDefault(msg, 4, ""), endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), prepPoseBehavior: jspb.Message.getFieldWithDefault(msg, 9, 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.docking.DockingCommandRequest} */ proto.bosdyn.api.docking.DockingCommandRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.docking.DockingCommandRequest; return proto.bosdyn.api.docking.DockingCommandRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.docking.DockingCommandRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.docking.DockingCommandRequest} */ proto.bosdyn.api.docking.DockingCommandRequest.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 2: var value = new bosdyn_api_lease_pb.Lease; reader.readMessage(value,bosdyn_api_lease_pb.Lease.deserializeBinaryFromReader); msg.setLease(value); break; case 3: var value = /** @type {number} */ (reader.readUint32()); msg.setDockingStationId(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setClockIdentifier(value); break; case 5: var value = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setEndTime(value); break; case 9: var value = /** @type {!proto.bosdyn.api.docking.PrepPoseBehavior} */ (reader.readEnum()); msg.setPrepPoseBehavior(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.docking.DockingCommandRequest.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.docking.DockingCommandRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.docking.DockingCommandRequest.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.getLease(); if (f != null) { writer.writeMessage( 2, f, bosdyn_api_lease_pb.Lease.serializeBinaryToWriter ); } f = message.getDockingStationId(); if (f !== 0) { writer.writeUint32( 3, f ); } f = message.getClockIdentifier(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getEndTime(); if (f != null) { writer.writeMessage( 5, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter ); } f = message.getPrepPoseBehavior(); if (f !== 0.0) { writer.writeEnum( 9, f ); } }; /** * optional bosdyn.api.RequestHeader header = 1; * @return {?proto.bosdyn.api.RequestHeader} */ proto.bosdyn.api.docking.DockingCommandRequest.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.docking.DockingCommandRequest} returns this */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.setHeader = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.docking.DockingCommandRequest} returns this */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.clearHeader = function() { return this.setHeader(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.hasHeader = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional bosdyn.api.Lease lease = 2; * @return {?proto.bosdyn.api.Lease} */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.getLease = function() { return /** @type{?proto.bosdyn.api.Lease} */ ( jspb.Message.getWrapperField(this, bosdyn_api_lease_pb.Lease, 2)); }; /** * @param {?proto.bosdyn.api.Lease|undefined} value * @return {!proto.bosdyn.api.docking.DockingCommandRequest} returns this */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.setLease = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.docking.DockingCommandRequest} returns this */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.clearLease = function() { return this.setLease(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.hasLease = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional uint32 docking_station_id = 3; * @return {number} */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.getDockingStationId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.docking.DockingCommandRequest} returns this */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.setDockingStationId = function(value) { return jspb.Message.setProto3IntField(this, 3, value); }; /** * optional string clock_identifier = 4; * @return {string} */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.getClockIdentifier = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** * @param {string} value * @return {!proto.bosdyn.api.docking.DockingCommandRequest} returns this */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.setClockIdentifier = function(value) { return jspb.Message.setProto3StringField(this, 4, value); }; /** * optional google.protobuf.Timestamp end_time = 5; * @return {?proto.google.protobuf.Timestamp} */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.getEndTime = function() { return /** @type{?proto.google.protobuf.Timestamp} */ ( jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); }; /** * @param {?proto.google.protobuf.Timestamp|undefined} value * @return {!proto.bosdyn.api.docking.DockingCommandRequest} returns this */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.setEndTime = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.docking.DockingCommandRequest} returns this */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.clearEndTime = function() { return this.setEndTime(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.hasEndTime = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional PrepPoseBehavior prep_pose_behavior = 9; * @return {!proto.bosdyn.api.docking.PrepPoseBehavior} */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.getPrepPoseBehavior = function() { return /** @type {!proto.bosdyn.api.docking.PrepPoseBehavior} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); }; /** * @param {!proto.bosdyn.api.docking.PrepPoseBehavior} value * @return {!proto.bosdyn.api.docking.DockingCommandRequest} returns this */ proto.bosdyn.api.docking.DockingCommandRequest.prototype.setPrepPoseBehavior = function(value) { return jspb.Message.setProto3EnumField(this, 9, 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.docking.DockingCommandResponse.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.docking.DockingCommandResponse.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.docking.DockingCommandResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.docking.DockingCommandResponse.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), dockingCommandId: 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.docking.DockingCommandResponse} */ proto.bosdyn.api.docking.DockingCommandResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.docking.DockingCommandResponse; return proto.bosdyn.api.docking.DockingCommandResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.docking.DockingCommandResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.docking.DockingCommandResponse} */ proto.bosdyn.api.docking.DockingCommandResponse.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.ResponseHeader; reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader); msg.setHeader(value); break; case 2: var value = new bosdyn_api_lease_pb.LeaseUseResult; reader.readMessage(value,bosdyn_api_lease_pb.LeaseUseResult.deserializeBinaryFromReader); msg.setLeaseUseResult(value); break; case 3: var value = /** @type {!proto.bosdyn.api.docking.DockingCommandResponse.Status} */ (reader.readEnum()); msg.setStatus(value); break; case 5: var value = /** @type {number} */ (reader.readUint32()); msg.setDockingCommandId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.docking.DockingCommandResponse.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.docking.DockingCommandResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.docking.DockingCommandResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHeader(); if (f != null) { writer.writeMessage( 1, f, bosdyn_api_header_pb.ResponseHeader.serializeBinaryToWriter ); } f = message.getLeaseUseResult(); if (f != null) { writer.writeMessage( 2, f, bosdyn_api_lease_pb.LeaseUseResult.serializeBinaryToWriter ); } f = message.getStatus(); if (f !== 0.0) { writer.writeEnum( 3, f ); } f = message.getDockingCommandId(); if (f !== 0) { writer.writeUint32( 5, f ); } }; /** * @enum {number} */ proto.bosdyn.api.docking.DockingCommandResponse.Status = { STATUS_UNKNOWN: 0, STATUS_OK: 1, STATUS_ERROR_LEASE: 4, STATUS_ERROR_DOCK_NOT_FOUND: 5, STATUS_ERROR_NOT_DOCKED: 6, STATUS_ERROR_GRIPPER_HOLDING_ITEM: 8, STATUS_ERROR_NOT_AVAILABLE: 9, STATUS_ERROR_SYSTEM: 7 }; /** * optional bosdyn.api.ResponseHeader header = 1; * @return {?proto.bosdyn.api.ResponseHeader} */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.getHeader = function() { return /** @type{?proto.bosdyn.api.ResponseHeader} */ ( jspb.Message.getWrapperField(this, bosdyn_api_header_pb.ResponseHeader, 1)); }; /** * @param {?proto.bosdyn.api.ResponseHeader|undefined} value * @return {!proto.bosdyn.api.docking.DockingCommandResponse} returns this */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.setHeader = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.docking.DockingCommandResponse} returns this */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.clearHeader = function() { return this.setHeader(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.hasHeader = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional bosdyn.api.LeaseUseResult lease_use_result = 2; * @return {?proto.bosdyn.api.LeaseUseResult} */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.getLeaseUseResult = function() { return /** @type{?proto.bosdyn.api.LeaseUseResult} */ ( jspb.Message.getWrapperField(this, bosdyn_api_lease_pb.LeaseUseResult, 2)); }; /** * @param {?proto.bosdyn.api.LeaseUseResult|undefined} value * @return {!proto.bosdyn.api.docking.DockingCommandResponse} returns this */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.setLeaseUseResult = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.docking.DockingCommandResponse} returns this */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.clearLeaseUseResult = function() { return this.setLeaseUseResult(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.hasLeaseUseResult = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional Status status = 3; * @return {!proto.bosdyn.api.docking.DockingCommandResponse.Status} */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.getStatus = function() { return /** @type {!proto.bosdyn.api.docking.DockingCommandResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {!proto.bosdyn.api.docking.DockingCommandResponse.Status} value * @return {!proto.bosdyn.api.docking.DockingCommandResponse} returns this */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.setStatus = function(value) { return jspb.Message.setProto3EnumField(this, 3, value); }; /** * optional uint32 docking_command_id = 5; * @return {number} */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.getDockingCommandId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.docking.DockingCommandResponse} returns this */ proto.bosdyn.api.docking.DockingCommandResponse.prototype.setDockingCommandId = function(value) { return jspb.Message.setProto3IntField(this, 5, value); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.docking.DockingCommandFeedbackRequest.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.docking.DockingCommandFeedbackRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.toObject = function(includeInstance, msg) { var f, obj = { header: (f = msg.getHeader()) && bosdyn_api_header_pb.RequestHeader.toObject(includeInstance, f), dockingCommandId: jspb.Message.getFieldWithDefault(msg, 2, 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.docking.DockingCommandFeedbackRequest} */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.docking.DockingCommandFeedbackRequest; return proto.bosdyn.api.docking.DockingCommandFeedbackRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.docking.DockingCommandFeedbackRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.docking.DockingCommandFeedbackRequest} */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.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 2: var value = /** @type {number} */ (reader.readUint32()); msg.setDockingCommandId(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.docking.DockingCommandFeedbackRequest.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.docking.DockingCommandFeedbackRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.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.getDockingCommandId(); if (f !== 0) { writer.writeUint32( 2, f ); } }; /** * optional bosdyn.api.RequestHeader header = 1; * @return {?proto.bosdyn.api.RequestHeader} */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.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.docking.DockingCommandFeedbackRequest} returns this */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.prototype.setHeader = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.docking.DockingCommandFeedbackRequest} returns this */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.prototype.clearHeader = function() { return this.setHeader(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.prototype.hasHeader = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional uint32 docking_command_id = 2; * @return {number} */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.prototype.getDockingCommandId = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.docking.DockingCommandFeedbackRequest} returns this */ proto.bosdyn.api.docking.DockingCommandFeedbackRequest.prototype.setDockingCommandId = function(value) { return jspb.Message.setProto3IntField(this, 2, 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.docking.DockingCommandFeedbackResponse.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.docking.DockingCommandFeedbackResponse.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.docking.DockingCommandFeedbackResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.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) }; 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.docking.DockingCommandFeedbackResponse} */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.docking.DockingCommandFeedbackResponse; return proto.bosdyn.api.docking.DockingCommandFeedbackResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.docking.DockingCommandFeedbackResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.docking.DockingCommandFeedbackResponse} */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.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.ResponseHeader; reader.readMessage(value,bosdyn_api_header_pb.ResponseHeader.deserializeBinaryFromReader); msg.setHeader(value); break; case 2: var value = new bosdyn_api_lease_pb.LeaseUseResult; reader.readMessage(value,bosdyn_api_lease_pb.LeaseUseResult.deserializeBinaryFromReader); msg.setLeaseUseResult(value); break; case 3: var value = /** @type {!proto.bosdyn.api.docking.DockingCommandFeedbackResponse.Status} */ (reader.readEnum()); msg.setStatus(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.docking.DockingCommandFeedbackResponse.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.docking.DockingCommandFeedbackResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHeader(); if (f != null) { writer.writeMessage( 1, f, bosdyn_api_header_pb.ResponseHeader.serializeBinaryToWriter ); } f = message.getLeaseUseResult(); if (f != null) { writer.writeMessage( 2, f, bosdyn_api_lease_pb.LeaseUseResult.serializeBinaryToWriter ); } f = message.getStatus(); if (f !== 0.0) { writer.writeEnum( 3, f ); } }; /** * @enum {number} */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.Status = { STATUS_UNKNOWN: 0, STATUS_IN_PROGRESS: 1, STATUS_DOCKED: 2, STATUS_AT_PREP_POSE: 11, STATUS_MISALIGNED: 10, STATUS_OLD_DOCKING_COMMAND: 3, STATUS_ERROR_DOCK_LOST: 4, STATUS_ERROR_LEASE: 5, STATUS_ERROR_COMMAND_TIMED_OUT: 6, STATUS_ERROR_NO_TIMESYNC: 7, STATUS_ERROR_TOO_DISTANT: 8, STATUS_ERROR_NOT_AVAILABLE: 12, STATUS_ERROR_SYSTEM: 9 }; /** * optional bosdyn.api.ResponseHeader header = 1; * @return {?proto.bosdyn.api.ResponseHeader} */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.prototype.getHeader = function() { return /** @type{?proto.bosdyn.api.ResponseHeader} */ ( jspb.Message.getWrapperField(this, bosdyn_api_header_pb.ResponseHeader, 1)); }; /** * @param {?proto.bosdyn.api.ResponseHeader|undefined} value * @return {!proto.bosdyn.api.docking.DockingCommandFeedbackResponse} returns this */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.prototype.setHeader = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.docking.DockingCommandFeedbackResponse} returns this */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.prototype.clearHeader = function() { return this.setHeader(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.prototype.hasHeader = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional bosdyn.api.LeaseUseResult lease_use_result = 2; * @return {?proto.bosdyn.api.LeaseUseResult} */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.prototype.getLeaseUseResult = function() { return /** @type{?proto.bosdyn.api.LeaseUseResult} */ ( jspb.Message.getWrapperField(this, bosdyn_api_lease_pb.LeaseUseResult, 2)); }; /** * @param {?proto.bosdyn.api.LeaseUseResult|undefined} value * @return {!proto.bosdyn.api.docking.DockingCommandFeedbackResponse} returns this */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.prototype.setLeaseUseResult = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.bosdyn.api.docking.DockingCommandFeedbackResponse} returns this */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.prototype.clearLeaseUseResult = function() { return this.setLeaseUseResult(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.prototype.hasLeaseUseResult = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional Status status = 3; * @return {!proto.bosdyn.api.docking.DockingCommandFeedbackResponse.Status} */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.prototype.getStatus = function() { return /** @type {!proto.bosdyn.api.docking.DockingCommandFeedbackResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {!proto.bosdyn.api.docking.DockingCommandFeedbackResponse.Status} value * @return {!proto.bosdyn.api.docking.DockingCommandFeedbackResponse} returns this */ proto.bosdyn.api.docking.DockingCommandFeedbackResponse.prototype.setStatus = function(value) { return jspb.Message.setProto3EnumField(this, 3, 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.docking.ConfigRange.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.docking.ConfigRange.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.docking.ConfigRange} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.docking.ConfigRange.toObject = function(includeInstance, msg) { var f, obj = { idStart: jspb.Message.getFieldWithDefault(msg, 1, 0), idEnd: jspb.Message.getFieldWithDefault(msg, 2, 0), type: jspb.Message.getFieldWithDefault(msg, 3, 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.docking.ConfigRange} */ proto.bosdyn.api.docking.ConfigRange.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.bosdyn.api.docking.ConfigRange; return proto.bosdyn.api.docking.ConfigRange.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.bosdyn.api.docking.ConfigRange} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.bosdyn.api.docking.ConfigRange} */ proto.bosdyn.api.docking.ConfigRange.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {number} */ (reader.readUint32()); msg.setIdStart(value); break; case 2: var value = /** @type {number} */ (reader.readUint32()); msg.setIdEnd(value); break; case 3: var value = /** @type {!proto.bosdyn.api.docking.DockType} */ (reader.readEnum()); msg.setType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.bosdyn.api.docking.ConfigRange.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.bosdyn.api.docking.ConfigRange.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.docking.ConfigRange} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.bosdyn.api.docking.ConfigRange.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getIdStart(); if (f !== 0) { writer.writeUint32( 1, f ); } f = message.getIdEnd(); if (f !== 0) { writer.writeUint32( 2, f ); } f = message.getType(); if (f !== 0.0) { writer.writeEnum( 3, f ); } }; /** * optional uint32 id_start = 1; * @return {number} */ proto.bosdyn.api.docking.ConfigRange.prototype.getIdStart = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.docking.ConfigRange} returns this */ proto.bosdyn.api.docking.ConfigRange.prototype.setIdStart = function(value) { return jspb.Message.setProto3IntField(this, 1, value); }; /** * optional uint32 id_end = 2; * @return {number} */ proto.bosdyn.api.docking.ConfigRange.prototype.getIdEnd = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.bosdyn.api.docking.ConfigRange} returns this */ proto.bosdyn.api.docking.ConfigRange.prototype.setIdEnd = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * optional DockType type = 3; * @return {!proto.bosdyn.api.docking.DockType} */ proto.bosdyn.api.docking.ConfigRange.prototype.getType = function() { return /** @type {!proto.bosdyn.api.docking.DockType} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {!proto.bosdyn.api.docking.DockType} value * @return {!proto.bosdyn.api.docking.ConfigRange} returns this */ proto.bosdyn.api.docking.ConfigRange.prototype.setType = function(value) { return jspb.Message.setProto3EnumField(this, 3, 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.docking.GetDockingConfigRequest.prototype.toObject = function(opt_includeInstance) { return proto.bosdyn.api.docking.GetDockingConfigRequest.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecat